GNU bug report logs - #54653
28.0.92; incorrect modification of completion-at-point-functions

Previous Next

Package: emacs;

Reported by: Holger Schurig <holgerschurig <at> gmail.com>

Date: Thu, 31 Mar 2022 12:50:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.92

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

Bug is archived. No further changes may be made.

Full log


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

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Holger Schurig <holgerschurig <at> gmail.com>
Cc: 54653 <at> debbugs.gnu.org
Subject: Re: bug#54653: 28.0.92; incorrect modification of
 completion-at-point-functions
Date: Sat, 02 Apr 2022 01:02:41 +0200
Holger Schurig <holgerschurig <at> gmail.com> writes:

>   (message "NOW %s %s" completion-at-point-functions (local-variable-p
> 'completion-at-point-functions))
>
> emits
>
>   NOW (elisp-completion-at-point t) t
>
> I think it is a bug that there is a "t" at the end of the list.

That `t` stands for "also run the global value of the hook" - see
(info "(elisp) Running Hooks"):

     If the hook variable is buffer-local, the buffer-local variable
     will be used instead of the global variable.  However, if the
     buffer-local variable contains the element ‘t’, the global hook
     variable will be run as well.

Michael.




This bug report was last modified 3 years and 16 days ago.

Previous Next


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