unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: cursor-type as bar
@ 2007-10-17 15:18 Markus Gritsch
  2007-10-18  5:02 ` Richard Stallman
  0 siblings, 1 reply; 12+ messages in thread
From: Markus Gritsch @ 2007-10-17 15:18 UTC (permalink / raw)
  To: Kim F. Storm, emacs-devel

Kim F. Storm writes:
> Markus Gritsch <address@hidden> writes:
>
> > Richard Stallman wrote:
> >>     To really be usable, the bar cursor should be drawn *between* the
> >>     characters, e.g. shifting it width/2 pixels to the left.
> >> I thought the bar cursor WAS drawn between the characters.
> >> If that is not the case, it is a bug--would someone please fix it?
> >
> > Just being curious: Is there any progress with this issue?
>
> I looked at it briefly.
>
> The problem is that the current code expects the cursor to be drawn
> inside a single "character cell".  Consequently, to distribute a bar
> cursor of width > 1 evenly between two cells requires non-trivial
> changes to the redisplay code (and the changes must be made to each of
> the X, w32, mac ports).
>
> IMO, we shall not do anything about it before the release.

Now since the release is over, is there any chance this gets fixed?  I
tried looking at the code in xdisp.c and w32term.c, but since I am no
C programmer, I am not able to do something useful there myself :/

Kind regards,
Markus

^ permalink raw reply	[flat|nested] 12+ messages in thread
* cursor-type as bar
@ 2006-03-07 15:03 Markus Gritsch
  2006-03-07 19:11 ` J. David Boyd
  2006-03-11 22:06 ` Juri Linkov
  0 siblings, 2 replies; 12+ messages in thread
From: Markus Gritsch @ 2006-03-07 15:03 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

Hi,

I would like to use a bar cursor, instead of a block cursor.
(setq default-frame-alist '((cursor-type . (bar . 2))))

The problem is, that the bar cursor is drawn like a block cursor, only 
using a smaller width. To really be usable, the bar cursor should be 
drawn *between* the characters, e.g. shifting it width/2 pixels to the left.

On the attached Emacs.png the 'u' is partially hiden by the bar-cursor. 
  It is even worse when the cursor is placed at the 'i', in which case 
the letter is hidden completely.  The attachment SciTE.png shows a 
screenshot of the OpenSource Scintilla text editing widget, which shifts 
a 2 pixel wide bar-cursor one pixel to the left.

Kind regards,
Markus

[-- Attachment #2: Emacs.png --]
[-- Type: image/png, Size: 6975 bytes --]

[-- Attachment #3: SciTE.png --]
[-- Type: image/png, Size: 10249 bytes --]

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-10-18  5:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-17 15:18 cursor-type as bar Markus Gritsch
2007-10-18  5:02 ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2006-03-07 15:03 Markus Gritsch
2006-03-07 19:11 ` J. David Boyd
2006-03-07 20:46   ` J. David Boyd
2006-03-08  6:33     ` Markus Gritsch
2006-03-11 22:06 ` Juri Linkov
2006-03-12  9:45   ` Markus Gritsch
2006-03-12 12:47   ` Richard Stallman
2006-04-12  7:22     ` Markus Gritsch
2006-04-12 22:32       ` Kim F. Storm
2006-04-13 16:38         ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).