GNU bug report logs - #76687
global-hi-lock-mode prompts on its own help

Previous Next

Package: emacs;

Reported by: Daniel Colascione <dancol <at> dancol.org>

Date: Sun, 2 Mar 2025 15:50:01 UTC

Severity: normal

Full log


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

From: Daniel Colascione <dancol <at> dancol.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 76687 <at> debbugs.gnu.org
Subject: Re: bug#76687: global-hi-lock-mode prompts on its own help
Date: Sun, 02 Mar 2025 12:21:40 -0500
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Daniel Colascione <dancol <at> dancol.org>
>> Date: Sun, 02 Mar 2025 10:49:15 -0500
>> 
>> >From emacs -Q, M-x global-hi-lock-mode, then C-h m, then quit the help
>> buffer, and type C-h m again.  You'll get prompted about whether you
>> want to apply the hi-lock patterns in the help buffer.  And then,
>> because for some reason we don't actually clear the help buffer but just
>> narrow it to what we want, the next time you ask for help, even on
>> something unrelated to hi-lock (e.g. progn), hi-lock will ask you
>> whether you want to apply hi-lock patterns.
>
> That's the default of hi-lock-file-patterns-policy, no?  IIUC, hi-lock
> asks this question for every file you visit, if it finds the patterns
> there.
>
> Or what am I missing?

Hi-lock is asking to apply patterns in the help buffer because it's
matching its own example patterns, not patterns any user meant to
actually apply.

  When hi-lock is started and if the mode is not excluded or patterns
  rejected, the beginning of the buffer is searched for lines of the
  form:
    Hi-lock: (FOO ...)

It's not helpful to prompt the user in this case, especially not for
help invocations unrelated to hi-lock.




This bug report was last modified 103 days ago.

Previous Next


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