* bug#13277: 24.2.91; -nw display bug with overlay-arrow
@ 2012-12-25 18:13 Andreas Schwab
2012-12-25 19:03 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2012-12-25 18:13 UTC (permalink / raw)
To: 13277
This is a regression from emacs 23, already present in 24.1:
$ cat bug.el
(set (make-local-variable 'overlay-arrow-string) "=>")
(set (make-local-variable 'overlay-arrow-position) (point-marker))
;;(setq truncate-lines t)
(insert-char ?- (window-width))
(goto-char (point-min))
$ emacs -nw -l ./bug.el
The cursor is placed at the right margin. Either moving forward two
characters or deleting one character (so that the line fits in the
window) puts the cursor after the arrow, where it belongs.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#13277: 24.2.91; -nw display bug with overlay-arrow
2012-12-25 18:13 bug#13277: 24.2.91; -nw display bug with overlay-arrow Andreas Schwab
@ 2012-12-25 19:03 ` Eli Zaretskii
2012-12-27 17:32 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2012-12-25 19:03 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 13277
> From: Andreas Schwab <schwab@linux-m68k.org>
> Date: Tue, 25 Dec 2012 19:13:44 +0100
>
> This is a regression from emacs 23, already present in 24.1:
>
> $ cat bug.el
> (set (make-local-variable 'overlay-arrow-string) "=>")
> (set (make-local-variable 'overlay-arrow-position) (point-marker))
> ;;(setq truncate-lines t)
> (insert-char ?- (window-width))
> (goto-char (point-min))
> $ emacs -nw -l ./bug.el
>
> The cursor is placed at the right margin. Either moving forward two
> characters or deleting one character (so that the line fits in the
> window) puts the cursor after the arrow, where it belongs.
It's a consequence of the bidirectional display, under which we can no
longer assume that, if point is at position P, and that position is
not visible, the cursor should be put on the first visible glyph whose
position is >= P. (In this case, the first 2 characters are obscured
by the overlay arrow, and don't appear on the line.)
I will look into fixing this soon. Thanks for reporting this.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#13277: 24.2.91; -nw display bug with overlay-arrow
2012-12-25 19:03 ` Eli Zaretskii
@ 2012-12-27 17:32 ` Eli Zaretskii
0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2012-12-27 17:32 UTC (permalink / raw)
To: schwab; +Cc: 13277-done
> Date: Tue, 25 Dec 2012 21:03:22 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 13277@debbugs.gnu.org
>
> > From: Andreas Schwab <schwab@linux-m68k.org>
> > Date: Tue, 25 Dec 2012 19:13:44 +0100
> >
> > This is a regression from emacs 23, already present in 24.1:
> >
> > $ cat bug.el
> > (set (make-local-variable 'overlay-arrow-string) "=>")
> > (set (make-local-variable 'overlay-arrow-position) (point-marker))
> > ;;(setq truncate-lines t)
> > (insert-char ?- (window-width))
> > (goto-char (point-min))
> > $ emacs -nw -l ./bug.el
> >
> > The cursor is placed at the right margin. Either moving forward two
> > characters or deleting one character (so that the line fits in the
> > window) puts the cursor after the arrow, where it belongs.
>
> It's a consequence of the bidirectional display, under which we can no
> longer assume that, if point is at position P, and that position is
> not visible, the cursor should be put on the first visible glyph whose
> position is >= P. (In this case, the first 2 characters are obscured
> by the overlay arrow, and don't appear on the line.)
Should be fixed in revision 111082 on the emacs-24 branch. (The fix
is a simple one-liner, and is so obviously correct that it can only
cause problems if it exposes another bug, so I think it's appropriate
for the branch.)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-27 17:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-25 18:13 bug#13277: 24.2.91; -nw display bug with overlay-arrow Andreas Schwab
2012-12-25 19:03 ` Eli Zaretskii
2012-12-27 17:32 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.