* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
@ 2021-02-05 5:08 ynyaaa
2021-02-06 13:01 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: ynyaaa @ 2021-02-05 5:08 UTC (permalink / raw)
To: 46316
(1) When isearch fails after last match
Evaluate the form below and type 'C-s a C-s', then emacs messages
'Failing I-search: a' and the buffer scrolls back left and the current
point is out of the window.
Type C-s again, and overwrapped search succeeds at the same point,
but the matched point is still out of the window.
(let ((buf (generate-new-buffer "tmp")))
(switch-to-buffer buf)
(setq truncate-lines t)
(dotimes (i 100) (insert (format "%d\n" i)))
(insert-char ?x 200)
(insert ?a)
(goto-char (point-min)))
(2) When image-toggle-display
Evaluate the form below, then the SVG image is displayed.
Type 'C-c C-c' to view the source text and type 'C-c C-c' again to view
the image, then the buffer keeps scrolled right and the image is hidden
out of the window.
Type C-a and the image is shown, type 'C-c C-c' to view the source text
again, then the buffer keeps scrolled left and the current point is out
of the window.
(let ((buf (generate-new-buffer "tmp"))
(svg "<svg width=\"80\" height=\"80\" version=\"1.1\"\
xmlns=\"http://www.w3.org/2000/svg\"\
xmlns:xlink=\"http://www.w3.org/1999/xlink\">\
<rect width=\"80\" height=\"80\" x=\"0\" y=\"0\" fill=\"blue\"></rect>\
</svg>"))
(switch-to-buffer buf)
(setq truncate-lines t)
(insert svg)
(image-mode))
In GNU Emacs 27.1 (build 1, x86_64-w64-mingw32)
of 2020-08-22 built on CIRROCUMULUS
Repository revision: 86d8d76aa36037184db0b2897c434cdaab1a9ae8
Repository branch: HEAD
Windowing system distributor 'Microsoft Corp.', version 10.0.18363
System Description: Microsoft Windows 10 Pro (v10.0.1909.18363.1316)
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading c:/home/yagi/.emacs.d/minimal-init.el (source)...
Loading term/bobcat...done
Loading c:/home/yagi/.emacs.d/minimal-init.el (source)...done
Configured using:
'configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static''
Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP
Important settings:
value of $LANG: JPN
locale-coding-system: cp932
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-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-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs text-property-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
term/bobcat japan-util tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win
w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads w32notify w32 lcms2 multi-tty make-network-process
emacs)
Memory information:
((conses 16 49564 9493)
(symbols 48 6091 1)
(strings 32 16912 1998)
(string-bytes 1 523773)
(vectors 16 10730)
(vector-slots 8 208731 12936)
(floats 8 21 314)
(intervals 56 225 0)
(buffers 1000 11))
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
2021-02-05 5:08 bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t ynyaaa
@ 2021-02-06 13:01 ` Eli Zaretskii
2021-02-07 15:28 ` ynyaaa
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2021-02-06 13:01 UTC (permalink / raw)
To: ynyaaa; +Cc: 46316
tags 46316 notabug
thanks
> From: ynyaaa@gmail.com
> Date: Fri, 05 Feb 2021 14:08:06 +0900
>
>
> (1) When isearch fails after last match
> Evaluate the form below and type 'C-s a C-s', then emacs messages
> 'Failing I-search: a' and the buffer scrolls back left and the current
> point is out of the window.
> Type C-s again, and overwrapped search succeeds at the same point,
> but the matched point is still out of the window.
>
> (let ((buf (generate-new-buffer "tmp")))
> (switch-to-buffer buf)
> (setq truncate-lines t)
> (dotimes (i 100) (insert (format "%d\n" i)))
> (insert-char ?x 200)
> (insert ?a)
> (goto-char (point-min)))
>
> (2) When image-toggle-display
> Evaluate the form below, then the SVG image is displayed.
> Type 'C-c C-c' to view the source text and type 'C-c C-c' again to view
> the image, then the buffer keeps scrolled right and the image is hidden
> out of the window.
> Type C-a and the image is shown, type 'C-c C-c' to view the source text
> again, then the buffer keeps scrolled left and the current point is out
> of the window.
>
> (let ((buf (generate-new-buffer "tmp"))
> (svg "<svg width=\"80\" height=\"80\" version=\"1.1\"\
> xmlns=\"http://www.w3.org/2000/svg\"\
> xmlns:xlink=\"http://www.w3.org/1999/xlink\">\
> <rect width=\"80\" height=\"80\" x=\"0\" y=\"0\" fill=\"blue\"></rect>\
> </svg>"))
> (switch-to-buffer buf)
> (setq truncate-lines t)
> (insert svg)
> (image-mode))
I don't think this behavior is a bug. We only change the hscroll of a
window when point moves, and in these two scenarios it doesn't move.
I see no reason to assume that the user will necessarily want to have
the window scroll, instead of keeping it at its current horizontal
scroll.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
2021-02-06 13:01 ` Eli Zaretskii
@ 2021-02-07 15:28 ` ynyaaa
2021-02-07 15:34 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: ynyaaa @ 2021-02-07 15:28 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 46316
Eli Zaretskii <eliz@gnu.org> writes:
> tags 46316 notabug
> thanks
>
>> From: ynyaaa@gmail.com
>> Date: Fri, 05 Feb 2021 14:08:06 +0900
>>
>>
>> (1) When isearch fails after last match
>> Evaluate the form below and type 'C-s a C-s', then emacs messages
>> 'Failing I-search: a' and the buffer scrolls back left and the current
>> point is out of the window.
>> Type C-s again, and overwrapped search succeeds at the same point,
>> but the matched point is still out of the window.
>>
>> (let ((buf (generate-new-buffer "tmp")))
>> (switch-to-buffer buf)
>> (setq truncate-lines t)
>> (dotimes (i 100) (insert (format "%d\n" i)))
>> (insert-char ?x 200)
>> (insert ?a)
>> (goto-char (point-min)))
>>
>> (2) When image-toggle-display
>> Evaluate the form below, then the SVG image is displayed.
>> Type 'C-c C-c' to view the source text and type 'C-c C-c' again to view
>> the image, then the buffer keeps scrolled right and the image is hidden
>> out of the window.
>> Type C-a and the image is shown, type 'C-c C-c' to view the source text
>> again, then the buffer keeps scrolled left and the current point is out
>> of the window.
>>
>> (let ((buf (generate-new-buffer "tmp"))
>> (svg "<svg width=\"80\" height=\"80\" version=\"1.1\"\
>> xmlns=\"http://www.w3.org/2000/svg\"\
>> xmlns:xlink=\"http://www.w3.org/1999/xlink\">\
>> <rect width=\"80\" height=\"80\" x=\"0\" y=\"0\" fill=\"blue\"></rect>\
>> </svg>"))
>> (switch-to-buffer buf)
>> (setq truncate-lines t)
>> (insert svg)
>> (image-mode))
>
> I don't think this behavior is a bug. We only change the hscroll of a
> window when point moves, and in these two scenarios it doesn't move.
> I see no reason to assume that the user will necessarily want to have
> the window scroll, instead of keeping it at its current horizontal
> scroll.
In the case of isearch, the hscroll is changed without point motion
when isearch fails.
In the case of image-toggle-display, the hscroll is changed without
point motion when typing 'C-c C-c' for the first time.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
2021-02-07 15:28 ` ynyaaa
@ 2021-02-07 15:34 ` Eli Zaretskii
2021-02-07 18:54 ` ynyaaa
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2021-02-07 15:34 UTC (permalink / raw)
To: ynyaaa; +Cc: 46316
> Cc: 46316@debbugs.gnu.org
> From: ynyaaa@gmail.com
> Date: Mon, 08 Feb 2021 00:28:57 +0900
>
> > I don't think this behavior is a bug. We only change the hscroll of a
> > window when point moves, and in these two scenarios it doesn't move.
> > I see no reason to assume that the user will necessarily want to have
> > the window scroll, instead of keeping it at its current horizontal
> > scroll.
>
> In the case of isearch, the hscroll is changed without point motion
> when isearch fails.
Yes, because the focus changes into the minibuffer, where we show the
failure message.
> In the case of image-toggle-display, the hscroll is changed without
> point motion when typing 'C-c C-c' for the first time.
Yes, and for a similar good reason.
I don't really understand the insistence: you can easily cause the
window to auto-scroll if you move point by one character. Emacs
cannot possibly guess which part of the display is more important for
the user in situations like this.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
2021-02-07 15:34 ` Eli Zaretskii
@ 2021-02-07 18:54 ` ynyaaa
2021-02-07 19:10 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: ynyaaa @ 2021-02-07 18:54 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 46316
Eli Zaretskii <eliz@gnu.org> writes:
>> Cc: 46316@debbugs.gnu.org
>> From: ynyaaa@gmail.com
>> Date: Mon, 08 Feb 2021 00:28:57 +0900
>>
>> > I don't think this behavior is a bug. We only change the hscroll of a
>> > window when point moves, and in these two scenarios it doesn't move.
>> > I see no reason to assume that the user will necessarily want to have
>> > the window scroll, instead of keeping it at its current horizontal
>> > scroll.
>>
>> In the case of isearch, the hscroll is changed without point motion
>> when isearch fails.
>
> Yes, because the focus changes into the minibuffer, where we show the
> failure message.
>
>> In the case of image-toggle-display, the hscroll is changed without
>> point motion when typing 'C-c C-c' for the first time.
>
> Yes, and for a similar good reason.
When emacs misses the appropriate hscroll, typing 'M-: t RET' changes
the forcus into the minibuffer temporally, but does not change the
hscroll of the original buffer.
> I don't really understand the insistence: you can easily cause the
> window to auto-scroll if you move point by one character. Emacs
> cannot possibly guess which part of the display is more important for
> the user in situations like this.
I only want auto-hscroll-mode to scroll buffer automatically.
Otherwise I will be very confused.
If a searched string is not displayed in the window, I might think the
searched string does not exist in the buffer.
If an image is hidden, I might think the image is a solid color same as
the emacs background color.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
2021-02-07 18:54 ` ynyaaa
@ 2021-02-07 19:10 ` Eli Zaretskii
2021-02-12 15:41 ` ynyaaa
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2021-02-07 19:10 UTC (permalink / raw)
To: ynyaaa; +Cc: 46316
> Cc: 46316@debbugs.gnu.org
> From: ynyaaa@gmail.com
> Date: Mon, 08 Feb 2021 03:54:32 +0900
>
> I only want auto-hscroll-mode to scroll buffer automatically.
It does, when you give it enough information that it should. When
your input focus is in another window (the mini-window in the case of
C-s), I think it would be strange for Emacs to auto-scroll some other
window.
> If a searched string is not displayed in the window, I might think the
> searched string does not exist in the buffer.
The searched string _is_ displayed, when you first find it.
> If an image is hidden, I might think the image is a solid color same as
> the emacs background color.
Just move the cursor and you will see it.
Sorry, I see no problem here, certainly not something that would
justify complicated triggers for redisplaying a window.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
2021-02-07 19:10 ` Eli Zaretskii
@ 2021-02-12 15:41 ` ynyaaa
2021-02-13 15:30 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: ynyaaa @ 2021-02-12 15:41 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 46316
Eli Zaretskii <eliz@gnu.org> writes:
>> Cc: 46316@debbugs.gnu.org
>> From: ynyaaa@gmail.com
>> Date: Mon, 08 Feb 2021 03:54:32 +0900
>>
>> I only want auto-hscroll-mode to scroll buffer automatically.
>
> It does, when you give it enough information that it should. When
> your input focus is in another window (the mini-window in the case of
> C-s), I think it would be strange for Emacs to auto-scroll some other
> window.
>
>> If a searched string is not displayed in the window, I might think the
>> searched string does not exist in the buffer.
>
> The searched string _is_ displayed, when you first find it.
>
>> If an image is hidden, I might think the image is a solid color same as
>> the emacs background color.
>
> Just move the cursor and you will see it.
>
> Sorry, I see no problem here, certainly not something that would
> justify complicated triggers for redisplaying a window.
I investigated some more.
#'isearch-update tries to control the hsrcoll using
#'pos-visible-in-window-group-p.
Under the folloing conditions, it returns coordinates as if the point is
at the beginning of a virtual next line.
(1) the point is the end of the buffer.
(2) the buffer does not end with a newline.
(3) the last line is displayed in the window.
(4) the last line is truncated.
So the calculation is wrong and the hscroll becomes inappropriate.
With a different reason, if isearch started with a large hscroll and the
last match is near the beginning of a line, the hscroll becomes
inapropriate.
For example, evaluate the form below, and type 'C-s a C-s', then the
current point is hidden to the left of the window.
This is because #'isearch-update only checks whether the point is to the
right of the window and does not check whether the point is to the left
of the window.
(let ((buf (generate-new-buffer "tmp")))
(switch-to-buffer buf)
(setq truncate-lines t)
(insert-char ?x 100)
(save-excursion
(insert-char ?\n 100)
(insert ?a)))
Regarding image-mode, a simpler example of the bug is written as below.
The hscroll does not change when the buffer is changed.
Image display, window focus or message is not related.
(let ((buf (generate-new-buffer "tmp")))
(switch-to-buffer buf)
(setq truncate-lines t)
(dotimes (i 200)
(insert (format ":%03d" i))
(when (= 0 (% (1+ i) 100)) (insert ?\n)))
(forward-char -1)
(sit-for 1)
(set-window-hscroll nil (window-hscroll))
(save-excursion
(forward-char -100)
(insert-char ?\n 10)
))
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
2021-02-12 15:41 ` ynyaaa
@ 2021-02-13 15:30 ` Eli Zaretskii
2021-02-14 15:43 ` ynyaaa
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2021-02-13 15:30 UTC (permalink / raw)
To: ynyaaa; +Cc: 46316
> Cc: 46316@debbugs.gnu.org
> From: ynyaaa@gmail.com
> Date: Sat, 13 Feb 2021 00:41:18 +0900
>
> #'isearch-update tries to control the hsrcoll using
> #'pos-visible-in-window-group-p.
> Under the folloing conditions, it returns coordinates as if the point is
> at the beginning of a virtual next line.
> (1) the point is the end of the buffer.
> (2) the buffer does not end with a newline.
> (3) the last line is displayed in the window.
> (4) the last line is truncated.
> So the calculation is wrong and the hscroll becomes inappropriate.
Thanks, I wasn't aware isearch called pos-visible-in-window-p.
I fixed pos-visible-in-window-p on the master branch in this case, so
this part of the report now works correctly.
> With a different reason, if isearch started with a large hscroll and the
> last match is near the beginning of a line, the hscroll becomes
> inapropriate.
> For example, evaluate the form below, and type 'C-s a C-s', then the
> current point is hidden to the left of the window.
> This is because #'isearch-update only checks whether the point is to the
> right of the window and does not check whether the point is to the left
> of the window.
>
> (let ((buf (generate-new-buffer "tmp")))
> (switch-to-buffer buf)
> (setq truncate-lines t)
> (insert-char ?x 100)
> (save-excursion
> (insert-char ?\n 100)
> (insert ?a)))
This now also works correctly.
> Regarding image-mode, a simpler example of the bug is written as below.
> The hscroll does not change when the buffer is changed.
> Image display, window focus or message is not related.
>
> (let ((buf (generate-new-buffer "tmp")))
> (switch-to-buffer buf)
> (setq truncate-lines t)
> (dotimes (i 200)
> (insert (format ":%03d" i))
> (when (= 0 (% (1+ i) 100)) (insert ?\n)))
> (forward-char -1)
> (sit-for 1)
> (set-window-hscroll nil (window-hscroll))
> (save-excursion
> (forward-char -100)
> (insert-char ?\n 10)
> ))
Sorry, I don't think I follow: what exactly is the bug here? What did
you expect to happen ,and what did actually happen?
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
2021-02-13 15:30 ` Eli Zaretskii
@ 2021-02-14 15:43 ` ynyaaa
2021-02-14 18:50 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: ynyaaa @ 2021-02-14 15:43 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 46316
Eli Zaretskii <eliz@gnu.org> writes:
>> Regarding image-mode, a simpler example of the bug is written as below.
>> The hscroll does not change when the buffer is changed.
>> Image display, window focus or message is not related.
>>
>> (let ((buf (generate-new-buffer "tmp")))
>> (switch-to-buffer buf)
>> (setq truncate-lines t)
>> (dotimes (i 200)
>> (insert (format ":%03d" i))
>> (when (= 0 (% (1+ i) 100)) (insert ?\n)))
>> (forward-char -1)
>> (sit-for 1)
>> (set-window-hscroll nil (window-hscroll))
>> (save-excursion
>> (forward-char -100)
>> (insert-char ?\n 10)
>> ))
>
> Sorry, I don't think I follow: what exactly is the bug here? What did
> you expect to happen ,and what did actually happen?
The expression '(set-window-hscroll nil (window-hscroll))' should not
have any effect, but if it is deleted from the form, auto-hscroll-mode
works correctly.
Not only point motion but also buffer modification should be checked for
auto-hscroll-mode.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
2021-02-14 15:43 ` ynyaaa
@ 2021-02-14 18:50 ` Eli Zaretskii
2021-04-09 16:59 ` Stefan Kangas
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2021-02-14 18:50 UTC (permalink / raw)
To: ynyaaa; +Cc: 46316
> From: ynyaaa@gmail.com
> Cc: 46316@debbugs.gnu.org
> Date: Mon, 15 Feb 2021 00:43:32 +0900
>
> >> (let ((buf (generate-new-buffer "tmp")))
> >> (switch-to-buffer buf)
> >> (setq truncate-lines t)
> >> (dotimes (i 200)
> >> (insert (format ":%03d" i))
> >> (when (= 0 (% (1+ i) 100)) (insert ?\n)))
> >> (forward-char -1)
> >> (sit-for 1)
> >> (set-window-hscroll nil (window-hscroll))
> >> (save-excursion
> >> (forward-char -100)
> >> (insert-char ?\n 10)
> >> ))
> >
> > Sorry, I don't think I follow: what exactly is the bug here? What did
> > you expect to happen ,and what did actually happen?
>
> The expression '(set-window-hscroll nil (window-hscroll))' should not
> have any effect
That's not true: calling set-window-hscroll inhibits automatic
hscrolling, until point moves for some reason.
> but if it is deleted from the form, auto-hscroll-mode works
> correctly.
I think this is expected: the text your recipe adds is not around
point, so we don't re-enable auto-hscroll.
> Not only point motion but also buffer modification should be checked for
> auto-hscroll-mode.
If you want this to happen, don't call set-window-hscroll.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t
2021-02-14 18:50 ` Eli Zaretskii
@ 2021-04-09 16:59 ` Stefan Kangas
0 siblings, 0 replies; 11+ messages in thread
From: Stefan Kangas @ 2021-04-09 16:59 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: ynyaaa, 46316-done
Eli Zaretskii <eliz@gnu.org> writes:
>> From: ynyaaa@gmail.com
>> Cc: 46316@debbugs.gnu.org
>> Date: Mon, 15 Feb 2021 00:43:32 +0900
>>
>> >> (let ((buf (generate-new-buffer "tmp")))
>> >> (switch-to-buffer buf)
>> >> (setq truncate-lines t)
>> >> (dotimes (i 200)
>> >> (insert (format ":%03d" i))
>> >> (when (= 0 (% (1+ i) 100)) (insert ?\n)))
>> >> (forward-char -1)
>> >> (sit-for 1)
>> >> (set-window-hscroll nil (window-hscroll))
>> >> (save-excursion
>> >> (forward-char -100)
>> >> (insert-char ?\n 10)
>> >> ))
>> >
>> > Sorry, I don't think I follow: what exactly is the bug here? What did
>> > you expect to happen ,and what did actually happen?
>>
>> The expression '(set-window-hscroll nil (window-hscroll))' should not
>> have any effect
>
> That's not true: calling set-window-hscroll inhibits automatic
> hscrolling, until point moves for some reason.
>
>> but if it is deleted from the form, auto-hscroll-mode works
>> correctly.
>
> I think this is expected: the text your recipe adds is not around
> point, so we don't re-enable auto-hscroll.
>
>> Not only point motion but also buffer modification should be checked for
>> auto-hscroll-mode.
>
> If you want this to happen, don't call set-window-hscroll.
This was tagged notabug and Eli explained that the behavior is
expected. The bug that was here has been fixed.
There also has been no further update within 7 weeks.
I'm therefore closing this bug report.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2021-04-09 16:59 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-05 5:08 bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t ynyaaa
2021-02-06 13:01 ` Eli Zaretskii
2021-02-07 15:28 ` ynyaaa
2021-02-07 15:34 ` Eli Zaretskii
2021-02-07 18:54 ` ynyaaa
2021-02-07 19:10 ` Eli Zaretskii
2021-02-12 15:41 ` ynyaaa
2021-02-13 15:30 ` Eli Zaretskii
2021-02-14 15:43 ` ynyaaa
2021-02-14 18:50 ` Eli Zaretskii
2021-04-09 16:59 ` Stefan Kangas
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.