unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
@ 2010-04-21 17:18 Eli Zaretskii
  2010-04-21 17:40 ` Drew Adams
  2010-04-22  8:35 ` Juri Linkov
  0 siblings, 2 replies; 16+ messages in thread
From: Eli Zaretskii @ 2010-04-21 17:18 UTC (permalink / raw)
  To: 5998

 emacs -Q
 C-u C-h i /path/to/emacs/info/emacs RET
 g Narrowing RET
 C-u 1 C-v

Note that the display does not scroll by one line.  "C-u 2 C-v" does
scroll by 2 lines, as well as "C-u 1 C-v" if the breadcrumbs are not
visible.

You can see this in any node, not just in Narrowing, of course.


In GNU Emacs 23.1.96.1 (i386-mingw-nt5.1.2600)
 of 2010-04-20 on HOME-C4E4A596F7
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1255
  default enable-multibyte-characters: t

Major mode: Mail

Minor modes in effect:
  flyspell-mode: t
  desktop-save-mode: t
  show-paren-mode: t
  display-time-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  line-number-mode: t
  abbrev-mode: t

Recent input:
<down> <up> C-h c C-z C-z C-z C-z C-z C-z C-z C-u 1 
C-v <next> C-u 1 C-v C-z C-z C-z M-z M-z M-z M-z M-z 
M-z M-z M-z M-z M-z M-z M-z M-z M-z M-z M-z M-z M-z 
M-z M-z M-z M-z M-z M-z M-z M-z M-z M-z M-z M-z M-z 
C-z C-z M-z M-z M-z M-z M-z M-z M-z M-z M-z <up> C-z 
C-z C-z <down> C-z <down> C-z <down> C-z <down> C-z 
<down> C-z <down> C-z <down> C-z <down> C-z <down> 
C-z <down> C-z <down> C-z <down> C-z <down> C-z <down> 
C-z <down> C-z <down> C-z <down> C-z <down> C-z <down> 
C-z <down> C-z <down> C-z C-z C-z <up> <up> <up> <up> 
<up> <up> <up> <up> C-z C-z C-z M-z M-z M-z M-z M-z 
M-z M-z M-z M-z M-z M-z M-z M-z M-z <up> <up> <up> 
C-z C-z M-z M-z M-z M-z M-z M-z M-z M-z C-z C-z C-z 
<up> <up> <up> C-z C-z C-z C-z C-z C-z M-z M-z M-z 
M-z M-z M-z M-z M-z M-z M-z M-z C-z <up> M-z C-z M-z 
M-z C-z <down> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
M-z M-z C-z C-z C-z C-z <help-echo> <help-echo> <help-echo> 
<down-mouse-1> <mouse-2> l <help-echo> <left> <left> 
<right> <right> <left> <left> <left> <right> <kp-0> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <switch-frame> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <switch-frame> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> C-z C-z M-z 
M-z C-z M-z M-z C-z C-z C-z C-z <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> M-x r e p o r t - e m 
<tab> <return>

Recent messages:
Mark saved where search started
Quit
"\b\\|@[a-zA-Z]*[ 
]\\|\f\\|[ 	]*$"
Making completion list...
Found `paragraph-start' in Index.  (Only match)
Beginning of buffer
C-z runs the command (lambda nil (interactive) (scroll-up 1))
Beginning of buffer [2 times]
call-interactively: Beginning of buffer [2 times]
call-interactively: End of buffer

Load-path shadows:
None found.

Features:
(shadow emacsbug multi-isearch help-mode view texinfo auth-source
message ecomplete rfc822 mml mml-sec password-cache mm-decode
mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp
ietf-drums nnheader gnus-util netrc mm-util mail-prsvr gmm-utils
wid-edit mailheader canlock hashcash smtpmail dabbrev mailalias
mailabbrev sendmail rmailout conf-mode newcomment ld-script sh-script
executable dired-x dired-aux dired tcl generic parse-time nxml-uchnm
rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri
rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns
nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok
sgml-mode arc-mode archive-mode make-mode python-21 python comint ring
jka-compr vc-cvs info add-log flyspell ispell org-wl org-w3m org-vm
org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html
org-exp org-exp-blocks org-agenda org-info org-gnus org-bibtex
org-bbdb org byte-opt bytecomp byte-compile advice help-fns
advice-preload org-footnote org-src org-list org-faces org-compat
org-macs time-date noutline outline easy-mmode vc-bzr sha1 hex-util
cc-mode cc-fonts easymenu cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs regexp-opt rmailsum rmail mail-utils desktop
server filecache saveplace generic-x paren battery time tooltip
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp
w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process multi-tty
emacs)







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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2010-04-21 17:18 bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info Eli Zaretskii
@ 2010-04-21 17:40 ` Drew Adams
  2016-09-05  4:42   ` Andrew Hyatt
  2010-04-22  8:35 ` Juri Linkov
  1 sibling, 1 reply; 16+ messages in thread
From: Drew Adams @ 2010-04-21 17:40 UTC (permalink / raw)
  To: 'Eli Zaretskii', 5998

>  emacs -Q
>  C-u C-h i /path/to/emacs/info/emacs RET
>  g Narrowing RET
>  C-u 1 C-v
> 
> Note that the display does not scroll by one line.

And it is a regression: the problem does not exist in
GNU Emacs 23.1.95.1 (i386-mingw-nt5.1.2600)
 of 2010-04-03 on G41R2F1







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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2010-04-21 17:18 bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info Eli Zaretskii
  2010-04-21 17:40 ` Drew Adams
@ 2010-04-22  8:35 ` Juri Linkov
  2010-04-22  9:03   ` Juri Linkov
  1 sibling, 1 reply; 16+ messages in thread
From: Juri Linkov @ 2010-04-22  8:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 5998

>  C-u 1 C-v
>
> Note that the display does not scroll by one line.  "C-u 2 C-v" does
> scroll by 2 lines, as well as "C-u 1 C-v" if the breadcrumbs are not
> visible.

It seems the bug is in the display engine.  `move_it_to' in
`window_scroll_pixel_based' doesn't move point when it's on
the overlay with the breadcrumbs line.

-- 
Juri Linkov
http://www.jurta.org/emacs/






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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2010-04-22  8:35 ` Juri Linkov
@ 2010-04-22  9:03   ` Juri Linkov
  2010-04-23  8:39     ` Juri Linkov
  0 siblings, 1 reply; 16+ messages in thread
From: Juri Linkov @ 2010-04-22  9:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 5998

>>  C-u 1 C-v
>>
>> Note that the display does not scroll by one line.  "C-u 2 C-v" does
>> scroll by 2 lines, as well as "C-u 1 C-v" if the breadcrumbs are not
>> visible.

This patch removes the scrolling problem:

=== modified file 'lisp/info.el'
--- lisp/info.el	2010-04-20 00:49:46 +0000
+++ lisp/info.el	2010-04-22 09:01:46 +0000
@@ -4365,8 +4365,7 @@ (defun Info-fontify-node ()
             (cond
              ((> Info-breadcrumbs-depth 0)
 	      (let ((ov (make-overlay (point-min) (1+ header-end))))
-		(overlay-put ov 'invisible t)
-		(overlay-put ov 'after-string (Info-breadcrumbs))
+		(overlay-put ov 'display (Info-breadcrumbs))
 		(overlay-put ov 'evaporate t)))
              ((not (bobp))
               ;; Hide the punctuation at the end, too.

-- 
Juri Linkov
http://www.jurta.org/emacs/






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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2010-04-22  9:03   ` Juri Linkov
@ 2010-04-23  8:39     ` Juri Linkov
  2010-04-23 14:38       ` Stefan Monnier
  0 siblings, 1 reply; 16+ messages in thread
From: Juri Linkov @ 2010-04-23  8:39 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 5998

If there are no objections, I'll install this patch to the
emacs-23 branch.

>>>  C-u 1 C-v
>>>
>>> Note that the display does not scroll by one line.  "C-u 2 C-v" does
>>> scroll by 2 lines, as well as "C-u 1 C-v" if the breadcrumbs are not
>>> visible.
>
> This patch removes the scrolling problem:
>
> === modified file 'lisp/info.el'
> --- lisp/info.el	2010-04-20 00:49:46 +0000
> +++ lisp/info.el	2010-04-22 09:01:46 +0000
> @@ -4365,8 +4365,7 @@ (defun Info-fontify-node ()
>              (cond
>               ((> Info-breadcrumbs-depth 0)
>  	      (let ((ov (make-overlay (point-min) (1+ header-end))))
> -		(overlay-put ov 'invisible t)
> -		(overlay-put ov 'after-string (Info-breadcrumbs))
> +		(overlay-put ov 'display (Info-breadcrumbs))
>  		(overlay-put ov 'evaporate t)))
>               ((not (bobp))
>                ;; Hide the punctuation at the end, too.

-- 
Juri Linkov
http://www.jurta.org/emacs/






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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2010-04-23  8:39     ` Juri Linkov
@ 2010-04-23 14:38       ` Stefan Monnier
  2010-04-23 15:32         ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Stefan Monnier @ 2010-04-23 14:38 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 5998

> If there are no objections, I'll install this patch to the
> emacs-23 branch.

Fine by me, it's a good change anyway.  But we should still try and fix
the underlying redisplay bug, of course.


        Stefan


>>>> C-u 1 C-v
>>>> 
>>>> Note that the display does not scroll by one line.  "C-u 2 C-v" does
>>>> scroll by 2 lines, as well as "C-u 1 C-v" if the breadcrumbs are not
>>>> visible.
>> 
>> This patch removes the scrolling problem:
>> 
>> === modified file 'lisp/info.el'
>> --- lisp/info.el	2010-04-20 00:49:46 +0000
>> +++ lisp/info.el	2010-04-22 09:01:46 +0000
>> @@ -4365,8 +4365,7 @@ (defun Info-fontify-node ()
>> (cond
>> ((> Info-breadcrumbs-depth 0)
>> (let ((ov (make-overlay (point-min) (1+ header-end))))
>> -		(overlay-put ov 'invisible t)
>> -		(overlay-put ov 'after-string (Info-breadcrumbs))
>> +		(overlay-put ov 'display (Info-breadcrumbs))
>> (overlay-put ov 'evaporate t)))
>> ((not (bobp))
>> ;; Hide the punctuation at the end, too.

> -- 
> Juri Linkov
> http://www.jurta.org/emacs/









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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2010-04-23 14:38       ` Stefan Monnier
@ 2010-04-23 15:32         ` Eli Zaretskii
  2010-04-23 16:57           ` Juri Linkov
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2010-04-23 15:32 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 5998

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Cc: Eli Zaretskii <eliz@gnu.org>, 5998@debbugs.gnu.org
> Date: Fri, 23 Apr 2010 10:38:03 -0400
> 
> > If there are no objections, I'll install this patch to the
> > emacs-23 branch.
> 
> Fine by me, it's a good change anyway.  But we should still try and fix
> the underlying redisplay bug, of course.

For that, I'd request a separate bug report, with a clear recipe to
reproduce ``the bug'' and an explanation what behavior was expected.






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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2010-04-23 15:32         ` Eli Zaretskii
@ 2010-04-23 16:57           ` Juri Linkov
  2010-04-23 17:38             ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Juri Linkov @ 2010-04-23 16:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Stefan Monnier, 5998

>> Fine by me, it's a good change anyway.  But we should still try and fix
>> the underlying redisplay bug, of course.
>
> For that, I'd request a separate bug report, with a clear recipe to
> reproduce ``the bug'' and an explanation what behavior was expected.

I tried to create a clear recipe to reproduce it:

(progn
  (goto-char (point-min))
  (insert "line 0\nline 1\nline 2\nline 3\n")
  (narrow-to-region (+ 7 (point-min)) (point-max))
  (let ((ov (make-overlay (point-min) (+ 6 (point-min)))))
    (overlay-put ov 'invisible t)
    (overlay-put ov 'after-string "after-string 1")
    (overlay-put ov 'evaporate t))
  (goto-char (point-min))
  (scroll-up 1))

but it doesn't fail.  Something more from Info mode affects it.

-- 
Juri Linkov
http://www.jurta.org/emacs/






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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2010-04-23 16:57           ` Juri Linkov
@ 2010-04-23 17:38             ` Eli Zaretskii
  2010-04-23 18:08               ` Juri Linkov
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2010-04-23 17:38 UTC (permalink / raw)
  To: Juri Linkov; +Cc: monnier, 5998

> From: Juri Linkov <juri@jurta.org>
> Cc: Stefan Monnier <monnier@IRO.UMontreal.CA>,  5998@debbugs.gnu.org
> Date: Fri, 23 Apr 2010 19:57:31 +0300
> 
> >> Fine by me, it's a good change anyway.  But we should still try and fix
> >> the underlying redisplay bug, of course.
> >
> > For that, I'd request a separate bug report, with a clear recipe to
> > reproduce ``the bug'' and an explanation what behavior was expected.
> 
> I tried to create a clear recipe to reproduce it:
> 
> (progn
>   (goto-char (point-min))
>   (insert "line 0\nline 1\nline 2\nline 3\n")
>   (narrow-to-region (+ 7 (point-min)) (point-max))
>   (let ((ov (make-overlay (point-min) (+ 6 (point-min)))))
>     (overlay-put ov 'invisible t)
>     (overlay-put ov 'after-string "after-string 1")
>     (overlay-put ov 'evaporate t))
>   (goto-char (point-min))
>   (scroll-up 1))
> 
> but it doesn't fail.  Something more from Info mode affects it.

Okay, but why do you think the bug is in redisplay?






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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2010-04-23 17:38             ` Eli Zaretskii
@ 2010-04-23 18:08               ` Juri Linkov
  0 siblings, 0 replies; 16+ messages in thread
From: Juri Linkov @ 2010-04-23 18:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: monnier, 5998

>> > For that, I'd request a separate bug report, with a clear recipe to
>> > reproduce ``the bug'' and an explanation what behavior was expected.
>>
>> I tried to create a clear recipe to reproduce it:
>>
>> (progn
>>   (goto-char (point-min))
>>   (insert "line 0\nline 1\nline 2\nline 3\n")
>>   (narrow-to-region (+ 7 (point-min)) (point-max))
>>   (let ((ov (make-overlay (point-min) (+ 6 (point-min)))))
>>     (overlay-put ov 'invisible t)
>>     (overlay-put ov 'after-string "after-string 1")
>>     (overlay-put ov 'evaporate t))
>>   (goto-char (point-min))
>>   (scroll-up 1))
>>
>> but it doesn't fail.  Something more from Info mode affects it.
>
> Okay, but why do you think the bug is in redisplay?

It seems the bug is somewhere in `move_it_by_lines'.
I don't know whether it is redisplay or not.

-- 
Juri Linkov
http://www.jurta.org/emacs/






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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2010-04-21 17:40 ` Drew Adams
@ 2016-09-05  4:42   ` Andrew Hyatt
  2016-09-05 14:54     ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Andrew Hyatt @ 2016-09-05  4:42 UTC (permalink / raw)
  To: Drew Adams; +Cc: 5998

"Drew Adams" <drew.adams@oracle.com> writes:

>>  emacs -Q
>>  C-u C-h i /path/to/emacs/info/emacs RET
>>  g Narrowing RET
>>  C-u 1 C-v
>> 
>> Note that the display does not scroll by one line.
>
> And it is a regression: the problem does not exist in
> GNU Emacs 23.1.95.1 (i386-mingw-nt5.1.2600)
>  of 2010-04-03 on G41R2F1

The problem appears fixed in Emacs 25. Eli, can you reproduce this
still?





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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2016-09-05  4:42   ` Andrew Hyatt
@ 2016-09-05 14:54     ` Eli Zaretskii
  2016-09-05 19:28       ` Juri Linkov
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2016-09-05 14:54 UTC (permalink / raw)
  To: Andrew Hyatt; +Cc: 5998

> From: Andrew Hyatt <ahyatt@gmail.com>
> Cc: "'Eli Zaretskii'" <eliz@gnu.org>,  <5998@debbugs.gnu.org>
> Date: Mon, 05 Sep 2016 00:42:47 -0400
> 
> "Drew Adams" <drew.adams@oracle.com> writes:
> 
> >>  emacs -Q
> >>  C-u C-h i /path/to/emacs/info/emacs RET
> >>  g Narrowing RET
> >>  C-u 1 C-v
> >> 
> >> Note that the display does not scroll by one line.
> >
> > And it is a regression: the problem does not exist in
> > GNU Emacs 23.1.95.1 (i386-mingw-nt5.1.2600)
> >  of 2010-04-03 on G41R2F1
> 
> The problem appears fixed in Emacs 25. Eli, can you reproduce this
> still?

No.  Juri installed the patched he proposed during the discussion, so
the bug is no longer exposed.  (But the original problem with
scrolling a window that starts with invisible text followed by an
overlay with an after-string -- that problem still exists.)





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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2016-09-05 14:54     ` Eli Zaretskii
@ 2016-09-05 19:28       ` Juri Linkov
  2016-09-06 15:02         ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Juri Linkov @ 2016-09-05 19:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Andrew Hyatt, 5998

>> >>  emacs -Q
>> >>  C-u C-h i /path/to/emacs/info/emacs RET
>> >>  g Narrowing RET
>> >>  C-u 1 C-v
>> >>
>> >> Note that the display does not scroll by one line.
>> >
>> > And it is a regression: the problem does not exist in
>> > GNU Emacs 23.1.95.1 (i386-mingw-nt5.1.2600)
>> >  of 2010-04-03 on G41R2F1
>>
>> The problem appears fixed in Emacs 25. Eli, can you reproduce this
>> still?
>
> No.  Juri installed the patched he proposed during the discussion, so
> the bug is no longer exposed.  (But the original problem with
> scrolling a window that starts with invisible text followed by an
> overlay with an after-string -- that problem still exists.)

Or there is no bug at all: with invisible text followed by an overlay
with an after-string you can't put point to the beginning of the Info
buffer - probably for a reason.  OTOH, using more reasonable ‘display’
allows point to move to the top of the window, so perhaps this is why
scrolling works in the latter case but doesn't work in the former one.





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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2016-09-05 19:28       ` Juri Linkov
@ 2016-09-06 15:02         ` Eli Zaretskii
  2020-09-14 13:32           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2016-09-06 15:02 UTC (permalink / raw)
  To: Juri Linkov; +Cc: ahyatt, 5998

> From: Juri Linkov <juri@linkov.net>
> Cc: Andrew Hyatt <ahyatt@gmail.com>,  5998@debbugs.gnu.org,  drew.adams@oracle.com
> Date: Mon, 05 Sep 2016 22:28:18 +0300
> 
> > (But the original problem with
> > scrolling a window that starts with invisible text followed by an
> > overlay with an after-string -- that problem still exists.)
> 
> Or there is no bug at all: with invisible text followed by an overlay
> with an after-string you can't put point to the beginning of the Info
> buffer - probably for a reason.  OTOH, using more reasonable ‘display’
> allows point to move to the top of the window, so perhaps this is why
> scrolling works in the latter case but doesn't work in the former one.

The actual problem is that an "empty" overlay (i.e. overlay that hides
no buffer positions) with a before-string or after-string at the
beginning of the window exposes a flaw in the method the Emacs display
engine determines a window-start position: it is specified by a buffer
position.  That makes the actual window-start on display ambiguous,
since both the overlay string and the buffer position after it have
the same value.  If the string also includes a newline, it defeats the
algorithm for scrolling a window by N lines, which just goes to the
window-start point, and then moves forward/back by those N lines.  In
particular, if N = 1, the buffer position after the move is unchanged,
and the scroll will appear to have not happened.

I have a working patch for fixing this, but it sometimes requires to
invoke the scroll command twice, so I'm trying to find a better fix.
If I won't find it, I will commit what I have, because it's an
improvement.





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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2016-09-06 15:02         ` Eli Zaretskii
@ 2020-09-14 13:32           ` Lars Ingebrigtsen
  2020-09-14 18:26             ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-14 13:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: ahyatt, Juri Linkov, 5998

Eli Zaretskii <eliz@gnu.org> writes:

> I have a working patch for fixing this, but it sometimes requires to
> invoke the scroll command twice, so I'm trying to find a better fix.
> If I won't find it, I will commit what I have, because it's an
> improvement.

This was four years ago -- was this fixed?

Skimming this thread, there seems to be no recipe to reproduce this
bug; the original reported bug (with a test case) has been fixed.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info
  2020-09-14 13:32           ` Lars Ingebrigtsen
@ 2020-09-14 18:26             ` Eli Zaretskii
  0 siblings, 0 replies; 16+ messages in thread
From: Eli Zaretskii @ 2020-09-14 18:26 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: ahyatt, 5998-done, juri

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Juri Linkov <juri@linkov.net>,  ahyatt@gmail.com,
>   drew.adams@oracle.com,  5998@debbugs.gnu.org
> Date: Mon, 14 Sep 2020 15:32:43 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > I have a working patch for fixing this, but it sometimes requires to
> > invoke the scroll command twice, so I'm trying to find a better fix.
> > If I won't find it, I will commit what I have, because it's an
> > improvement.
> 
> This was four years ago -- was this fixed?
> 
> Skimming this thread, there seems to be no recipe to reproduce this
> bug; the original reported bug (with a test case) has been fixed.

Yes, so I'm closing this bug.





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

end of thread, other threads:[~2020-09-14 18:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21 17:18 bug#5998: 23.1.96; Breadcrumbs defeat C-u 1 C-v in Info Eli Zaretskii
2010-04-21 17:40 ` Drew Adams
2016-09-05  4:42   ` Andrew Hyatt
2016-09-05 14:54     ` Eli Zaretskii
2016-09-05 19:28       ` Juri Linkov
2016-09-06 15:02         ` Eli Zaretskii
2020-09-14 13:32           ` Lars Ingebrigtsen
2020-09-14 18:26             ` Eli Zaretskii
2010-04-22  8:35 ` Juri Linkov
2010-04-22  9:03   ` Juri Linkov
2010-04-23  8:39     ` Juri Linkov
2010-04-23 14:38       ` Stefan Monnier
2010-04-23 15:32         ` Eli Zaretskii
2010-04-23 16:57           ` Juri Linkov
2010-04-23 17:38             ` Eli Zaretskii
2010-04-23 18:08               ` Juri Linkov

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).