GNU bug report logs - #69691
30.0.50; vc-pull buffer doesn't fontify links after refresh

Previous Next

Package: emacs;

Reported by: Po Lu <luangruo <at> yahoo.com>

Date: Sun, 10 Mar 2024 03:37:02 UTC

Severity: normal

Found in version 30.0.50

To reply to this bug, email your comments to 69691 AT debbugs.gnu.org.

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#69691; Package emacs. (Sun, 10 Mar 2024 03:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Po Lu <luangruo <at> yahoo.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 10 Mar 2024 03:37:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; vc-pull buffer doesn't fontify links after refresh
Date: Sun, 10 Mar 2024 11:35:17 +0800
New VCS output inserted after the compilation buffer created by a
`vc-pull' command is refreshed (by selecting "refresh" from tool bar,
for instance) is not fontified as such but as ordinary compiler output,
and file names inside are not clickable.  This is a bug, since no
compelling reason exists to treat VCS commands as compilers once they
are executed a second time.

In GNU Emacs 30.0.50 (build 1, aarch64-unknown-linux-android22) of
 2024-03-10 built on trinity
Repository revision: d7071359522f60d332320cf63700faa58d237d0b
Repository branch: master-android-1
Windowing system distributor 'Google', version 30.0.0
System Description: google/marlin/marlin:10/QP1A.191005.007.A3/5972272:user/release-keys

Configured using:
 'configure --with-png=yes --with-webp=yes --with-gif=yes
 --with-json=ifavailable --with-jpeg=yes --with-xml2=yes
 --with-sqlite3=yes --with-gnutls=yes --with-tiff=yes --with-selinux=yes
 --with-modules=yes --with-tree-sitter=ifavailable --with-imagemagick=no
 --with-lcms2=yes --with-mailutils= --with-pop=no-by-default
 --with-harfbuzz=yes --with-threads=yes --enable-check-lisp-object-type=
 'CFLAGS=-O2 -g3 -Werror=implicit-function-declaration''

Configured features:
GIF GMP GNUTLS HARFBUZZ JPEG JSON LIBSELINUX LIBXML2 MODULES NOTIFY
INOTIFY PDUMPER PNG SECCOMP SQLITE3 THREADS TIFF TREE_SITTER WEBP ZLIB

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

Major mode: Compilation

Minor modes in effect:
  save-place-mode: t
  kill-ring-deindent-mode: t
  electric-pair-mode: t
  server-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  modifier-bar-mode: t
  tool-bar-mode: t
  tab-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  window-divider-mode: t
  minibuffer-regexp-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Features:
(compile vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs vc-svn vc-cvs
vc-rcs log-view easy-mmode pcvs-util vc-dir ewoc vc vc-dispatcher
dired-aux misearch multi-isearch pp shadow sort mail-extr emacsbug
message yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa
derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums org-mouse org ob ob-tangle ob-ref ob-lob ob-table ob-exp
org-macro org-src ob-comint org-pcomplete org-list org-footnote
org-faces org-entities noutline outline org-version ob-emacs-lisp
ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys
oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-compat
org-macs cl-extra icons saveplace tramp-sh tramp rx trampver
tramp-integration files-x tramp-message help-mode tramp-compat xdg shell
pcomplete comint ansi-osc ring parse-time iso8601 format-spec ansi-color
tramp-loaddefs indent-aux gnus nnheader gnus-util text-property-search
time-date mail-utils range mm-util mail-prsvr wid-edit elec-pair
cus-load server aircon-theme-autoloads bash-completion-autoloads
bison-mode-autoloads corfu-autoloads coterm-autoloads debbugs-autoloads
ement-autoloads jinx-autoloads jit-spell-autoloads magit-autoloads
git-commit-autoloads markdown-mode-autoloads org-drill-autoloads
persist-autoloads plz-autoloads svg-lib-autoloads
taxy-magit-section-autoloads taxy-autoloads magit-section-autoloads
dash-autoloads transient-autoloads visual-fill-autoloads
visual-fill-column-autoloads info with-editor-autoloads package
browse-url url url-proxy url-privacy url-expand url-methods url-history
url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers
url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache
json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs
cl-lib rmc iso-transl tooltip cus-start cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
android-win term/common-win touch-screen ls-lisp tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-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 nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads inotify android multi-tty
move-toolbar make-network-process emacs)

Memory information:
((conses 16 338563 122792) (symbols 48 35588 32)
 (strings 32 102829 3470) (string-bytes 1 2541090) (vectors 16 57987)
 (vector-slots 8 1477083 25171) (floats 8 325 231)
 (intervals 56 1220 595) (buffers 984 17))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69691; Package emacs. (Sun, 10 Mar 2024 06:28:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 69691 <at> debbugs.gnu.org
Subject: Re: bug#69691: 30.0.50;
 vc-pull buffer doesn't fontify links after refresh
Date: Sun, 10 Mar 2024 08:26:30 +0200
> Date: Sun, 10 Mar 2024 11:35:17 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> New VCS output inserted after the compilation buffer created by a
> `vc-pull' command is refreshed (by selecting "refresh" from tool bar,
> for instance) is not fontified as such but as ordinary compiler output,
> and file names inside are not clickable.  This is a bug, since no
> compelling reason exists to treat VCS commands as compilers once they
> are executed a second time.

Please provide a recipe for reproducing the problem starting from
"emacs -Q".  The above description is too terse and lacks crucial
details, like the stuff you see in the buffer, which parts are not
fontified and/or not clickable, etc.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69691; Package emacs. (Sun, 10 Mar 2024 06:37:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 69691 <at> debbugs.gnu.org
Subject: Re: bug#69691: 30.0.50; vc-pull buffer doesn't fontify links after
 refresh
Date: Sun, 10 Mar 2024 14:35:35 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Sun, 10 Mar 2024 11:35:17 +0800
>> From:  Po Lu via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>> 
>> New VCS output inserted after the compilation buffer created by a
>> `vc-pull' command is refreshed (by selecting "refresh" from tool bar,
>> for instance) is not fontified as such but as ordinary compiler output,
>> and file names inside are not clickable.  This is a bug, since no
>> compelling reason exists to treat VCS commands as compilers once they
>> are executed a second time.
>
> Please provide a recipe for reproducing the problem starting from
> "emacs -Q".  The above description is too terse and lacks crucial
> details, like the stuff you see in the buffer, which parts are not
> fontified and/or not clickable, etc.

I'm not sure what I omitted, but it should be reproducible by typing "g"
in a compilation buffer created by vc-pull.  If any new upstream changes
are then detected and retrieved, the file names the resulting VCS
process prints will not be fontified or made clickable.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69691; Package emacs. (Fri, 15 Mar 2024 02:08:02 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Po Lu <luangruo <at> yahoo.com>, 69691 <at> debbugs.gnu.org
Subject: Re: bug#69691: 30.0.50; vc-pull buffer doesn't fontify links after
 refresh
Date: Fri, 15 Mar 2024 04:06:23 +0200
On 10/03/2024 05:35, Po Lu via Bug reports for GNU Emacs, the Swiss army 
knife of text editors wrote:
> New VCS output inserted after the compilation buffer created by a
> `vc-pull' command is refreshed (by selecting "refresh" from tool bar,

You probably mean "Recompile".

> for instance) is not fontified as such but as ordinary compiler output,
> and file names inside are not clickable.  This is a bug, since no
> compelling reason exists to treat VCS commands as compilers once they
> are executed a second time.

I guess some specific provision for restoring more of the variables 
after "recompile" could be made inside vc-compilation-mode's definition.

Maybe it'll have to go as far as defining a separate major mode and its 
own "recompile" command with a dedicated binding, since it doesn't seem 
like 'M-x recompile' runs anything generic that would help us here.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69691; Package emacs. (Fri, 15 Mar 2024 02:51:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: 69691 <at> debbugs.gnu.org
Subject: Re: bug#69691: 30.0.50; vc-pull buffer doesn't fontify links after
 refresh
Date: Fri, 15 Mar 2024 10:49:11 +0800
Dmitry Gutov <dmitry <at> gutov.dev> writes:

> You probably mean "Recompile".

That's the name of the command, yes.  I was going off the name of the
tool bar icon.

> I guess some specific provision for restoring more of the variables
> after "recompile" could be made inside vc-compilation-mode's
> definition.
>
> Maybe it'll have to go as far as defining a separate major mode and
> its own "recompile" command with a dedicated binding, since it doesn't
> seem like 'M-x recompile' runs anything generic that would help us
> here.

Sure, I'm only concerned with the functioning of the tool bar item.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69691; Package emacs. (Fri, 15 Mar 2024 03:01:01 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 69691 <at> debbugs.gnu.org
Subject: Re: bug#69691: 30.0.50; vc-pull buffer doesn't fontify links after
 refresh
Date: Fri, 15 Mar 2024 05:00:08 +0200
On 15/03/2024 04:49, Po Lu wrote:
> Dmitry Gutov <dmitry <at> gutov.dev> writes:
> 
>> You probably mean "Recompile".
> 
> That's the name of the command, yes.  I was going off the name of the
> tool bar icon.

In compilation-mode the button has a text as well. Anyway, not important.

>> I guess some specific provision for restoring more of the variables
>> after "recompile" could be made inside vc-compilation-mode's
>> definition.
>>
>> Maybe it'll have to go as far as defining a separate major mode and
>> its own "recompile" command with a dedicated binding, since it doesn't
>> seem like 'M-x recompile' runs anything generic that would help us
>> here.
> 
> Sure, I'm only concerned with the functioning of the tool bar item.

Right, and the above is the way to reach that, if I haven't missed 
something.

I don't have the time to get to this now, so patches welcome.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69691; Package emacs. (Fri, 15 Mar 2024 08:10:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: luangruo <at> yahoo.com, 69691 <at> debbugs.gnu.org
Subject: Re: bug#69691: 30.0.50;
 vc-pull buffer doesn't fontify links after refresh
Date: Fri, 15 Mar 2024 10:08:49 +0200
> Date: Fri, 15 Mar 2024 04:06:23 +0200
> From: Dmitry Gutov <dmitry <at> gutov.dev>
> 
> > for instance) is not fontified as such but as ordinary compiler output,
> > and file names inside are not clickable.  This is a bug, since no
> > compelling reason exists to treat VCS commands as compilers once they
> > are executed a second time.
> 
> I guess some specific provision for restoring more of the variables 
> after "recompile" could be made inside vc-compilation-mode's definition.
> 
> Maybe it'll have to go as far as defining a separate major mode and its 
> own "recompile" command with a dedicated binding, since it doesn't seem 
> like 'M-x recompile' runs anything generic that would help us here.

Maybe just customize revert-buffer-function in vc-compilation-mode?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69691; Package emacs. (Fri, 15 Mar 2024 12:12:01 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: luangruo <at> yahoo.com, 69691 <at> debbugs.gnu.org
Subject: Re: bug#69691: 30.0.50; vc-pull buffer doesn't fontify links after
 refresh
Date: Fri, 15 Mar 2024 14:10:39 +0200
On 15/03/2024 10:08, Eli Zaretskii wrote:
>> Date: Fri, 15 Mar 2024 04:06:23 +0200
>> From: Dmitry Gutov<dmitry <at> gutov.dev>
>>
>>> for instance) is not fontified as such but as ordinary compiler output,
>>> and file names inside are not clickable.  This is a bug, since no
>>> compelling reason exists to treat VCS commands as compilers once they
>>> are executed a second time.
>> I guess some specific provision for restoring more of the variables
>> after "recompile" could be made inside vc-compilation-mode's definition.
>>
>> Maybe it'll have to go as far as defining a separate major mode and its
>> own "recompile" command with a dedicated binding, since it doesn't seem
>> like 'M-x recompile' runs anything generic that would help us here.
> Maybe just customize revert-buffer-function in vc-compilation-mode?

'M-x recompile' doesn't call it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69691; Package emacs. (Fri, 15 Mar 2024 12:43:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: luangruo <at> yahoo.com, 69691 <at> debbugs.gnu.org
Subject: Re: bug#69691: 30.0.50; vc-pull buffer doesn't fontify links after
 refresh
Date: Fri, 15 Mar 2024 14:41:34 +0200
> Date: Fri, 15 Mar 2024 14:10:39 +0200
> Cc: luangruo <at> yahoo.com, 69691 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry <at> gutov.dev>
> 
> On 15/03/2024 10:08, Eli Zaretskii wrote:
> >> Date: Fri, 15 Mar 2024 04:06:23 +0200
> >> From: Dmitry Gutov<dmitry <at> gutov.dev>
> >>
> >>> for instance) is not fontified as such but as ordinary compiler output,
> >>> and file names inside are not clickable.  This is a bug, since no
> >>> compelling reason exists to treat VCS commands as compilers once they
> >>> are executed a second time.
> >> I guess some specific provision for restoring more of the variables
> >> after "recompile" could be made inside vc-compilation-mode's definition.
> >>
> >> Maybe it'll have to go as far as defining a separate major mode and its
> >> own "recompile" command with a dedicated binding, since it doesn't seem
> >> like 'M-x recompile' runs anything generic that would help us here.
> > Maybe just customize revert-buffer-function in vc-compilation-mode?
> 
> 'M-x recompile' doesn't call it.

Po Lu said to press 'g', which AFAIU does?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69691; Package emacs. (Fri, 15 Mar 2024 13:01:02 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: luangruo <at> yahoo.com, 69691 <at> debbugs.gnu.org
Subject: Re: bug#69691: 30.0.50; vc-pull buffer doesn't fontify links after
 refresh
Date: Fri, 15 Mar 2024 14:59:52 +0200
On 15/03/2024 14:41, Eli Zaretskii wrote:
>> Date: Fri, 15 Mar 2024 14:10:39 +0200
>> Cc:luangruo <at> yahoo.com,69691 <at> debbugs.gnu.org
>> From: Dmitry Gutov<dmitry <at> gutov.dev>
>>
>> On 15/03/2024 10:08, Eli Zaretskii wrote:
>>>> Date: Fri, 15 Mar 2024 04:06:23 +0200
>>>> From: Dmitry Gutov<dmitry <at> gutov.dev>
>>>>
>>>>> for instance) is not fontified as such but as ordinary compiler output,
>>>>> and file names inside are not clickable.  This is a bug, since no
>>>>> compelling reason exists to treat VCS commands as compilers once they
>>>>> are executed a second time.
>>>> I guess some specific provision for restoring more of the variables
>>>> after "recompile" could be made inside vc-compilation-mode's definition.
>>>>
>>>> Maybe it'll have to go as far as defining a separate major mode and its
>>>> own "recompile" command with a dedicated binding, since it doesn't seem
>>>> like 'M-x recompile' runs anything generic that would help us here.
>>> Maybe just customize revert-buffer-function in vc-compilation-mode?
>> 'M-x recompile' doesn't call it.
> Po Lu said to press 'g', which AFAIU does?

It calls 'recompile'.




This bug report was last modified 1 year and 96 days ago.

Previous Next


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