* bug#36283: 27.0.50; hl-line-mode updates the wrong window after clone-indirect-buffer
@ 2019-06-18 18:18 Matthew Newton
2019-07-04 21:16 ` Noam Postavsky
0 siblings, 1 reply; 4+ messages in thread
From: Matthew Newton @ 2019-06-18 18:18 UTC (permalink / raw
To: 36283
In GUI Emacs on MacOS:
emacs -Q
M-x hl-line-mode
C-p
M-x clone-indirect-buffer
C-p
The highlighted line moves in the inactive window and does not move in the active window.
I tested this on Emacs 24.5 from https://emacsformacosx.com/ so it doesn’t appear to be recent or specific to my build.
Note that if global-hl-line-mode is active, it works as expected, highlighting the line in the active window.
Many thanks,
Matt
In GNU Emacs 27.0.50 (build 8, x86_64-apple-darwin18.6.0, NS appkit-1671.50 Version 10.14.5 (Build 18F132))
of 2019-06-17 built on crab
Repository revision: 44a086e5ccb920bb5a310079130ce1eaabdfe4ce
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1671
System Description: Mac OS X 10.14.5
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Hl-Line mode enabled in current buffer
Configured using:
'configure --without-dbus --without-pop --with-gnutls --with-ns
--disable-ns-self-contained --with-rsvg --with-imagemagick --with-xml2
--with-modules '--program-transform-name=s/^ctags$/ctags.emacs/'
'CFLAGS=-Ofast -march=native -pipe -falign-functions=64
-fomit-frame-pointer -funit-at-a-time -fforce-addr -mfpmath=sse
-ffast-math -fno-finite-math-only -fstack-check -I
/usr/local/opt/libxml2/include/libxml2''
Configured features:
IMAGEMAGICK NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS
MODULES THREADS PDUMPER LCMS2 GMP
Important settings:
value of $LC_COLLATE: C
value of $LC_CTYPE: en_US.UTF-8
value of $LC_MESSAGES: en_US.UTF-8
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
hl-line-mode: t
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
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
hl-line elec-pair tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util
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 menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame 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 minibuffer 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 kqueue cocoa ns lcms2 multi-tty make-network-process
emacs)
Memory information:
((conses 16 43915 6112)
(symbols 48 5826 1)
(strings 32 14868 1748)
(string-bytes 1 493078)
(vectors 16 8916)
(vector-slots 8 108184 10888)
(floats 8 18 20)
(intervals 56 207 0)
(buffers 992 12))
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#36283: 27.0.50; hl-line-mode updates the wrong window after clone-indirect-buffer
2019-06-18 18:18 bug#36283: 27.0.50; hl-line-mode updates the wrong window after clone-indirect-buffer Matthew Newton
@ 2019-07-04 21:16 ` Noam Postavsky
2021-02-01 9:31 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Noam Postavsky @ 2019-07-04 21:16 UTC (permalink / raw
To: Matthew Newton; +Cc: 36283
found 36283 24.5
tags 36283 + confirmed
severity 36283 minor
quit
Matthew Newton <matt@knosis.org> writes:
> In GUI Emacs on MacOS:
>
> emacs -Q
> M-x hl-line-mode
> C-p
> M-x clone-indirect-buffer
> C-p
>
> The highlighted line moves in the inactive window and does not move in the active window.
>
> I tested this on Emacs 24.5 from https://emacsformacosx.com/ so it doesn’t appear to be recent or specific to my build.
>
> Note that if global-hl-line-mode is active, it works as expected, highlighting the line in the active window.
I guess hl-line-mode needs to add an entry to clone-indirect-buffer-hook
(and clone-buffer-hook; clone-buffer seems to have the same problem)
to handle copying of hl-line-overlay.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#36283: 27.0.50; hl-line-mode updates the wrong window after clone-indirect-buffer
2019-07-04 21:16 ` Noam Postavsky
@ 2021-02-01 9:31 ` Lars Ingebrigtsen
2021-02-01 16:09 ` bug#36283: [External] : " Drew Adams
0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-01 9:31 UTC (permalink / raw
To: Noam Postavsky; +Cc: Matthew Newton, 36283
Noam Postavsky <npostavs@gmail.com> writes:
> Matthew Newton <matt@knosis.org> writes:
>
>> In GUI Emacs on MacOS:
>>
>> emacs -Q
>> M-x hl-line-mode
>> C-p
>> M-x clone-indirect-buffer
>> C-p
>>
>> The highlighted line moves in the inactive window and does not move
>> in the active window.
>>
>> I tested this on Emacs 24.5 from https://emacsformacosx.com/ so it
>> doesn’t appear to be recent or specific to my build.
>>
>> Note that if global-hl-line-mode is active, it works as expected,
>> highlighting the line in the active window.
>
> I guess hl-line-mode needs to add an entry to clone-indirect-buffer-hook
> (and clone-buffer-hook; clone-buffer seems to have the same problem)
> to handle copying of hl-line-overlay.
I'm not sure it's a bug, though? `hl-line-mode' switches on
highlighting in one specific buffer. An indirect buffer is a new
buffer, and if you want line highlighting there, you should switch it on
there, I think? Automatically switching on the mode in the indirect
buffer would be surprising, I think.
So I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#36283: [External] : bug#36283: 27.0.50; hl-line-mode updates the wrong window after clone-indirect-buffer
2021-02-01 9:31 ` Lars Ingebrigtsen
@ 2021-02-01 16:09 ` Drew Adams
0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2021-02-01 16:09 UTC (permalink / raw
To: Lars Ingebrigtsen, Noam Postavsky; +Cc: Matthew Newton, 36283@debbugs.gnu.org
> I'm not sure it's a bug, though? `hl-line-mode' switches on
> highlighting in one specific buffer. An indirect buffer is a new
> buffer, and if you want line highlighting there, you should switch it
> on there, I think? Automatically switching on the mode in the indirect
> buffer would be surprising, I think.
That's the correct answer. Users should be
able to use indirect buffers as the different
buffers they are. They can use whatever
minor modes they want in whichever indirect
buffers they want.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-02-01 16:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-18 18:18 bug#36283: 27.0.50; hl-line-mode updates the wrong window after clone-indirect-buffer Matthew Newton
2019-07-04 21:16 ` Noam Postavsky
2021-02-01 9:31 ` Lars Ingebrigtsen
2021-02-01 16:09 ` bug#36283: [External] : " Drew Adams
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.