GNU bug report logs - #28904
modes changed outside Customize

Previous Next

Package: emacs;

Reported by: charles <at> aurox.ch (Charles A. Roelli)

Date: Thu, 19 Oct 2017 19:47:02 UTC

Severity: minor

Tags: fixed

Fixed in version 28.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: charles <at> aurox.ch (Charles A. Roelli)
To: 28904 <at> debbugs.gnu.org
Subject: bug#28904: modes changed outside Customize
Date: Thu, 19 Oct 2017 21:46:33 +0200
From emacs -q (26.0.90):

M-x column-number-mode
C-x z				> Repeat it to turn it back off.
M-x load-theme RET tango RET 	> Any theme will do.

Notice that column numbers are turned on again in the mode line.  They
should not be on.

If you type M-x customize-variable RET column-number-mode RET right
before loading the theme in the above steps, you'll see something like
this:

Hide Column Number Mode: off (nil)
    State : CHANGED outside Customize.
   Non-nil if Column-Number mode is enabled.
   See the ‘column-number-mode’ command
   for a description of this minor mode.

I think it's the fact that column-number-mode is considered as
"CHANGED outside Customize" that causes column-number-mode to be
erroneously turned on when you load a theme.  So I suspect the issue
is in customize-mark-as-set, which is called by the column-number-mode
function defined by define-minor-mode.  I tried to debug a call to
customize-mark-as-set with Edebug, but I haven't had much time to see
why it might cause the above issue.




This bug report was last modified 5 years and 1 day ago.

Previous Next


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