GNU bug report logs - #24023
24.5; Use `custom-file' (if defined), not init file, for `en/disable-command'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 19 Jul 2016 03:56:02 UTC

Severity: wishlist

Merged with 5974

Found in version 24.5

To reply to this bug, email your comments to 24023 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#24023; Package emacs. (Tue, 19 Jul 2016 03:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 19 Jul 2016 03:56:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; Use `custom-file' (if defined), not init file, for
 `en/disable-command'
Date: Mon, 18 Jul 2016 20:55:07 -0700 (PDT)
This very old feature still writes to your init file.  If you have
defined `custom-file' then it should write to that file instead.

In GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/usr --host=i686-pc-mingw32'




Forcibly Merged 5974 24023. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 19 Jul 2016 06:19:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24023; Package emacs. (Tue, 19 Jul 2016 15:32:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 24023 <at> debbugs.gnu.org
Subject: Re: bug#24023: 24.5;
 Use `custom-file' (if defined), not init file, for
 `en/disable-command'
Date: Tue, 19 Jul 2016 18:30:58 +0300
> Date: Mon, 18 Jul 2016 20:55:07 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> 
> This very old feature still writes to your init file.  If you have
> defined `custom-file' then it should write to that file instead.

This feature is not a defcustom, so it doesn't work like one.  Perhaps
the easiest way forward would be to make it a defcustom, or something
like one.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24023; Package emacs. (Tue, 19 Jul 2016 15:43:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 24023 <at> debbugs.gnu.org
Subject: Re: bug#24023: 24.5;
 Use `custom-file' (if defined), not init file, for
 `en/disable-command'
Date: Tue, 19 Jul 2016 11:42:20 -0400
See discussion from previous identical report:
http://debbugs.gnu.org/5974




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24023; Package emacs. (Tue, 19 Jul 2016 15:48:01 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Drew Adams <drew.adams <at> oracle.com>
Cc: 24023 <at> debbugs.gnu.org
Subject: RE: bug#24023: 24.5; Use `custom-file' (if defined), not init file,
 for	`en/disable-command'
Date: Tue, 19 Jul 2016 08:47:40 -0700 (PDT)
> This feature is not a defcustom, so it doesn't work like one.  Perhaps
> the easiest way forward would be to make it a defcustom, or something
> like one.

I see now that this was all discussed in the bug that this one was merged with. I'd forgotten about that bug.

Yes, something should be done, to bring this feature up to the level of current Emacs.  A priori, I don't really care what is done or how.  IOW, I trust your judgment on this.

The point is that Emacs should not still be writing to a users init file.  As mentioned in that other bug thread, two alternative suggestions were:

* Replace this way of enabling/disabling with a way that uses defcustom.  (It could involve a wrapper around the `put' thingy or something else.)

* Keep the current mechanism, but write to a different file from the init file (and different from `custom-file').




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24023; Package emacs. (Tue, 19 Jul 2016 15:49:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Glenn Morris <rgm <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 24023 <at> debbugs.gnu.org
Subject: RE: bug#24023: 24.5; Use `custom-file' (if defined), not init file,
 for `en/disable-command'
Date: Tue, 19 Jul 2016 08:48:42 -0700 (PDT)
> See discussion from previous identical report:
> http://debbugs.gnu.org/5974

+1.  And apologies for creating a duplicate bug report.




This bug report was last modified 8 years and 329 days ago.

Previous Next


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