GNU bug report logs - #79412
30.2; `define-globalized-minor-mode' does not respect `:variable'

Previous Next

Package: emacs;

Reported by: inet0 <at> qq.com

Date: Tue, 9 Sep 2025 02:01:03 UTC

Severity: normal

Found in version 30.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: inet0 <at> qq.com, 79412 <at> debbugs.gnu.org
Subject: bug#79412: 30.2; `define-globalized-minor-mode' does not respect `:variable'
Date: Sat, 13 Sep 2025 13:45:26 -0400
>> No, like
>> 
>>     (when ,MODE-variable (,mode -1))
>
> And what about this one:
>
> 	 ;; Go through existing buffers.
> 	 (dolist (buf (buffer-list))
> 	   (with-current-buffer buf
>              (if ,global-mode (funcall ,turn-on-function)
>                (when ,mode (,MODE-variable -1)))))
>          ,@body)

It needs the same change, yes: `mode` should be used only as the name of
a function, not as the name of a variable.


        Stefan





This bug report was last modified 1 day ago.

Previous Next


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