GNU bug report logs - #50550
28.0.50; pulse-momentary highlighting does not dissapear when switching to bookmark

Previous Next

Package: emacs;

Reported by: ivan.popovich000 <at> gmail.com

Date: Sun, 12 Sep 2021 15:12:03 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50550 in the body.
You can then email your comments to 50550 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50550; Package emacs. (Sun, 12 Sep 2021 15:12:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to ivan.popovich000 <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 12 Sep 2021 15:12:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ivan.popovich000 <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; pulse-momentary highlighting does not dissapear when
 switching to bookmark
Date: Sun, 12 Sep 2021 16:01:11 +0300
I have a function that pulses line where cursor is when i switch
to other window.

(add-to-list 'window-selection-change-functions
             (lambda (arg)
               (pulse-momentary-highlight-one-line (point))))

When using this function in emacs 28 and switching to bookmark, or
creating bookmark for this file line at which point was when function is
executed gets permanently highlighted.


Steps to reproduce:
1. emacs -Q
2. evaluate
   (add-to-list 'window-selection-change-functions
                (lambda (arg)
                  (pulse-momentary-highlight-one-line (point))))
3. Create new buffer (C-x b b RET)
4. Insert text with newlines (RET test RET test)
4. Write buffer to disk so it can be bookmarked (C-x C-w RET)
5. Store bookmark (C-x r m RET)
6. Line of text where cursor was when (C-x r m RET) was executed will be
   highlighted
Text will also be highlighted when opening bookmark using C-x r b

Same thing happens when using emacs from terminal with emacs -Q -nw


This bug occurs only in emacs 28 that is compiled from sourse using
PKGBUILD from https://aur.archlinux.org/packages/emacs-git/ with option
JIT set to "YES", which, from reading PKGBUILD adds
--with-native-compilation to ./configure flags and runs *make
NATIVE_FULL_AOT=1* instead of just *make*.
In emacs27.2-1 installed using pacman this bug does not occur.



In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4)
 of 2021-09-12 built on Arch
Repository revision: c5bdb287e8109beef06f477fa1212226945c265e
Repository branch: makepkg
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Arch Linux

Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games
 --with-sound=alsa --with-modules --without-gconf --without-gsettings
 --enable-link-time-optimization --with-native-compilation
 --with-x-toolkit=gtk3 --without-xaw3d --without-compress-install
 '--program-transform-name=s/\([ec]tags\)/\1.emacs/'
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
 -fstack-clash-protection -fcf-protection -flto -fuse-linker-plugin'
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2
LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE
XIM XPM GTK3 ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-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
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort emacsbug sendmail vc-git diff-mode easy-mmode vc-dispatcher
bookmark pp pulse color kmacro mail-extr message rmc puny dired
dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config
gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core
cl-macs eieio-loaddefs password-cache json map text-property-search
time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader
cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd
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 easymenu timer select scroll-bar
mouse jit-lock font-lock syntax 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 button loaddefs faces
cus-face macroexp files window text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify lcms2 dynamic-setting
font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty
make-network-process native-compile emacs)

Memory information:
((conses 16 79543 5871)
 (symbols 48 7500 0)
 (strings 32 21960 1662)
 (string-bytes 1 722659)
 (vectors 16 15929)
 (vector-slots 8 275098 26415)
 (floats 8 105 173)
 (intervals 56 313 1)
 (buffers 992 12))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50550; Package emacs. (Mon, 13 Sep 2021 08:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 50550 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: ivan.popovich000 <at> gmail.com
Cc: 50550 <at> debbugs.gnu.org
Subject: Re: bug#50550: 28.0.50; pulse-momentary highlighting does not
 dissapear when switching to bookmark
Date: Mon, 13 Sep 2021 10:40:31 +0200
ivan.popovich000 <at> gmail.com writes:

> 5. Store bookmark (C-x r m RET)
> 6. Line of text where cursor was when (C-x r m RET) was executed will be
>    highlighted

I haven't tried the recipe, but are you sure that you're not just seeing
the effects of:

*** New user option 'bookmark-fontify'.
If non-nil, setting a bookmark will colorize the current line with
'bookmark-face'.

?

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




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 13 Sep 2021 08:42:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50550; Package emacs. (Mon, 13 Sep 2021 10:11:01 GMT) Full text and rfc822 format available.

Message #13 received at 50550 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "" <ivan.popovich000 <at> gmail.com>
Cc: 50550 <at> debbugs.gnu.org
Subject: Re: bug#50550: 28.0.50; pulse-momentary highlighting does not
 dissapear when switching to bookmark
Date: Mon, 13 Sep 2021 12:10:31 +0200
"" <ivan.popovich000 <at> gmail.com> writes:

> I think that having bookmark-fontify enabled by default is
> confusing, same was was mentioned in bug#48179 by yugenekr <at>
> gmail.com. This disscussion can be moved to that reply, and
> this issue can be closed now, thank you for your reply.

Yes, we're still not quite sure what to do about this feature...

But I'm closing this bug report, then.




bug closed, send any further explanations to 50550 <at> debbugs.gnu.org and ivan.popovich000 <at> gmail.com Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 13 Sep 2021 10:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 11 Oct 2021 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.