GNU bug report logs - #18725
Emacs 24.4. Say "no" to "erase customizations?". .emacs gets written.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Tue, 14 Oct 2014 22:11:01 UTC

Severity: normal

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18725 in the body.
You can then email your comments to 18725 AT debbugs.gnu.org in the normal way.

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#18725; Package emacs. (Tue, 14 Oct 2014 22:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alan Mackenzie <acm <at> muc.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 14 Oct 2014 22:11:02 GMT) Full text and rfc822 format available.

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

From: Alan Mackenzie <acm <at> muc.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Emacs 24.4.  Say "no" to "erase customizations?".  .emacs gets
 written.
Date: Tue, 14 Oct 2014 22:04:26 +0000
Hi, Emacs.

In Emacs 24.4, started with a .emacs which includes a customisation for
face show-paren-match, do

M-x customize-group <RET> paren-showing-faces <RET>

.  One of the widgets is "Revert ...".  Hit <RET> on this widget, then 2
for "Erase customizations".  Emacs prompts with "Really erase
customizations? (yes or no)".  Type  "no".

.emacs is then written.  It shouldn't be.

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18725; Package emacs. (Wed, 15 Oct 2014 10:46:02 GMT) Full text and rfc822 format available.

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

From: Alan Mackenzie <acm <at> muc.de>
To: gnu-emacs-bug <at> moderators.isc.org
Subject: Re: bug#18725 [PATCH]: Emacs 24.4. Say "no" to "erase
 customizations?". .emacs gets written.
Date: Wed, 15 Oct 2014 10:45:04 +0000 (UTC)
Alan Mackenzie <acm <at> muc.de> wrote:
> In Emacs 24.4, started with a .emacs which includes a customisation for
> face show-paren-match, do

> M-x customize-group <RET> paren-showing-faces <RET>

> .  One of the widgets is "Revert ...".  Hit <RET> on this widget, then 2
> for "Erase customizations".  Emacs prompts with "Really erase
> customizations? (yes or no)".  Type  "no".

> .emacs is then written.  It shouldn't be.

Here is a possible patch for the problem:


=== modified file 'lisp/cus-edit.el'
--- lisp/cus-edit.el    2014-06-29 02:33:50 +0000
+++ lisp/cus-edit.el    2014-10-15 10:11:00 +0000
@@ -779,7 +779,8 @@
   "Call function FUN on all widgets in `custom-options'.
 If there is more than one widget, ask user for confirmation using
 the query string QUERY, using `y-or-n-p' if STRONG-QUERY is nil,
-and `yes-or-no-p' otherwise."
+and `yes-or-no-p' otherwise.  Return t if the functionality has
+been executed, nil otherwise."
   (if (or (and (= 1 (length custom-options))
               (memq (widget-type (car custom-options))
                     '(custom-variable custom-face)))
@@ -892,16 +893,17 @@
   ;; Bind these temporarily.
   (let ((custom-reset-standard-variables-list '(t))
        (custom-reset-standard-faces-list '(t)))
-    (custom-command-apply
-     (lambda (widget)
-       (and (or (null (widget-get widget :custom-standard-value))
-               (widget-apply widget :custom-standard-value))
-           (memq (widget-get widget :custom-state)
-                 '(modified set changed saved rogue))
-           (widget-apply widget :custom-mark-to-reset-standard)))
-     "The settings will revert to their default values, in this
+    (if
+       (custom-command-apply
+        (lambda (widget)
+          (and (or (null (widget-get widget :custom-standard-value))
+                   (widget-apply widget :custom-standard-value))
+               (memq (widget-get widget :custom-state)
+                     '(modified set changed saved rogue))
+               (widget-apply widget :custom-mark-to-reset-standard)))
+        "The settings will revert to their default values, in this
 and future sessions.  Really erase customizations? " t)
-    (custom-reset-standard-save-and-update)))
+       (custom-reset-standard-save-and-update))))

 ;;; The Customize Commands


-- 
Alan Mackenzie (Nuremberg, Germany).





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18725; Package emacs. (Wed, 15 Oct 2014 11:38:02 GMT) Full text and rfc822 format available.

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

From: Ivan Shmakov <ivan <at> siamics.net>
To: 18725 <at> debbugs.gnu.org
Subject: Re: bug#18725: [PATCH]: Emacs 24.4. Say "no" to "erase
 customizations?". .emacs gets written 
Date: Wed, 15 Oct 2014 11:37:39 +0000
>>>>> Alan Mackenzie <acm <at> muc.de> writes:

[…]

 > +    (if
 > +       (custom-command-apply
 > +        (lambda (widget)

	Could this please be a ‘when’?

	TIA.

[…]

-- 
FSF associate member #7257  http://boycottsystemd.org/  … 3013 B6A0 230E 334A




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18725; Package emacs. (Wed, 15 Oct 2014 12:56:02 GMT) Full text and rfc822 format available.

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

From: Alan Mackenzie <acm <at> muc.de>
To: gnu-emacs-bug <at> moderators.isc.org
Subject: Re: bug#18725: [PATCH]: Emacs 24.4. Say "no" to "erase
 customizations?".	.emacs gets written
Date: Wed, 15 Oct 2014 12:55:04 +0000 (UTC)
Hello, Ivan.

Ivan Shmakov <ivan <at> siamics.net> wrote:
>>>>>> Alan Mackenzie <acm <at> muc.de> writes:

> [?]

> > +    (if
> > +       (custom-command-apply
> > +        (lambda (widget)

>        Could this please be a ?when??

It could.  But why?  Any special reason?

>        TIA.

> [?]

-- 
Alan Mackenzie (Nuremberg, Germany).





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18725; Package emacs. (Wed, 15 Oct 2014 14:41:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 18725 <at> debbugs.gnu.org
Subject: Re: bug#18725: [PATCH]: Emacs 24.4. Say "no" to "erase
 customizations?". .emacs gets written.
Date: Wed, 15 Oct 2014 10:39:48 -0400
[ How did you end up with gnu-emacs-bug <at> moderators.isc.org in the "To:"
  field?  ]

> +and `yes-or-no-p' otherwise.  Return t if the functionality has
                                       ^^^
We prefer                            non-nil

Otherwise, looks good, please install,


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18725; Package emacs. (Wed, 15 Oct 2014 15:47:02 GMT) Full text and rfc822 format available.

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

From: Alan Mackenzie <acm <at> muc.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18725 <at> debbugs.gnu.org
Subject: Re: bug#18725: [PATCH]: Emacs 24.4. Say "no" to "erase
 customizations?". .emacs gets written.
Date: Wed, 15 Oct 2014 15:40:39 +0000
Hello, Stefan.

On Wed, Oct 15, 2014 at 10:39:48AM -0400, Stefan Monnier wrote:

> > +and `yes-or-no-p' otherwise.  Return t if the functionality has
>                                        ^^^
> We prefer                            non-nil

> Otherwise, looks good, please install,

Done, with requested amendment, revision #117588.

> [ How did you end up with gnu-emacs-bug <at> moderators.isc.org in the "To:"
>   field?  ]

This is going to make Glenn unhappy.  I posted it via Usenet, for lack
of getting a CC of my original bug report to which I could've replied.
It seems the bug-gnu-emacs mail server has been reconfigured not to send
CCs to people involved by default, and I'm not subscribed to
bug-gnu-emacs at the moment.

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18725; Package emacs. (Wed, 15 Oct 2014 15:53:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Alan Mackenzie <acm <at> muc.de>, 18725 <at> debbugs.gnu.org
Subject: Re: bug#18725: [PATCH]: Emacs 24.4. Say "no" to "erase
 customizations?". .emacs gets written.
Date: Wed, 15 Oct 2014 11:52:17 -0400
Stefan Monnier wrote:

> [ How did you end up with gnu-emacs-bug <at> moderators.isc.org in the "To:"
>   field?  ]

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16155#51

> Otherwise, looks good, please install,

Did you mean into emacs-24, because AFAIK this is not a new issue and is
only a minor thing. Are we sure this is safe?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18725; Package emacs. (Wed, 15 Oct 2014 16:08:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 18725 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#18725: [PATCH]: Emacs 24.4. Say "no" to "erase
 customizations?". .emacs gets written.
Date: Wed, 15 Oct 2014 12:07:37 -0400
Alan Mackenzie wrote:

> This is going to make Glenn unhappy.

There's no "going to" about it. I'm aware that you continue to do it.

> for lack of getting a CC of my original bug report to which I could've
> replied.

I checked just now and the automated bug acknowledgment emails are still
going out, just as they always have done, and they still contain
instructions on how to reply. If you did not get one, maybe check into
your email settings.

There's also M-x gnus-read-ephemeral-emacs-bug-group, which is great.

> It seems the bug-gnu-emacs mail server has been reconfigured not to
> send CCs to people involved by default, and I'm not subscribed to
> bug-gnu-emacs at the moment.

There's been no change of configuration on bug-gnu-emacs.
People who report bugs have never been expected to be subscribed to the
list, and never will be.

I've said everything I have to say on this before.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18725; Package emacs. (Wed, 15 Oct 2014 17:00:04 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 18725 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#18725: [PATCH]: Emacs 24.4. Say "no" to "erase
 customizations?". .emacs gets written.
Date: Wed, 15 Oct 2014 18:58:52 +0200
Alan Mackenzie <acm <at> muc.de> writes:

>> [ How did you end up with gnu-emacs-bug <at> moderators.isc.org in the "To:"
>>   field?  ]
>
> This is going to make Glenn unhappy.  I posted it via Usenet, for lack
> of getting a CC of my original bug report to which I could've replied.
> It seems the bug-gnu-emacs mail server has been reconfigured not to send
> CCs to people involved by default, and I'm not subscribed to
> bug-gnu-emacs at the moment.

I do read all gnu-emacs MLs via gmane, which allows me to reply w/o such
problems. Maybe you give it a try.

(setq gnus-secondary-select-methods
        '((nnml "")
	  ...
	  (nntp "news" (nntp-address "news.gmane.org")))
      gnus-select-method '(nnnil))

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18725; Package emacs. (Wed, 15 Oct 2014 18:05:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 18725 <at> debbugs.gnu.org
Subject: Re: bug#18725: [PATCH]: Emacs 24.4. Say "no" to "erase
 customizations?". .emacs gets written.
Date: Wed, 15 Oct 2014 14:04:37 -0400
> This is going to make Glenn unhappy.  I posted it via Usenet, for lack
> of getting a CC of my original bug report to which I could've replied.

IIUC by default you don't get a Cc, indeed.
But you do receive a acknowledgment, instead, which should work fine
for replying.  Maybe the acknowledgment should contain the original
report as an attachment (or does it already?  I can't remember and
don't have one on hand).
I'd expect that many users would be confused if they received an
automatic Cc: for their bug-reports.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18725; Package emacs. (Wed, 15 Oct 2014 18:10:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Alan Mackenzie <acm <at> muc.de>, 18725 <at> debbugs.gnu.org
Subject: Re: bug#18725: [PATCH]: Emacs 24.4. Say "no" to "erase
 customizations?". .emacs gets written.
Date: Wed, 15 Oct 2014 14:09:18 -0400
> Are we sure this is safe?

It looks pretty safe to me, yes.
It looks more like an omission, really (it makes it work more like Custom-save).


        Stefan




bug Marked as found in versions 24.3. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 15 Oct 2014 19:20:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.4, send any further explanations to 18725 <at> debbugs.gnu.org and Alan Mackenzie <acm <at> muc.de> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 15 Oct 2014 19:20:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 13 Nov 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 167 days ago.

Previous Next


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