emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 dbe6a3ecf7: Fix regression in 'custom-prompt-customize-unsaved-


From: Eli Zaretskii
Subject: emacs-28 dbe6a3ecf7: Fix regression in 'custom-prompt-customize-unsaved-options'
Date: Thu, 10 Mar 2022 13:28:26 -0500 (EST)

branch: emacs-28
commit dbe6a3ecf74536cbfb7ca59630b48020ae4e732a
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix regression in 'custom-prompt-customize-unsaved-options'
    
    * lisp/cus-edit.el (custom-prompt-customize-unsaved-options):
    Don't depend on the value returned by 'customize-unsaved'.  Fix
    the doc string.  Patch by Sebastian Miele <iota@whxvd.name>.
    (Bug#54329)
---
 lisp/cus-edit.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index c2ddaeb7b1..fd42c542b4 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1531,12 +1531,12 @@ If TYPE is `groups', include only groups."
 ;;;###autoload
 (defun custom-prompt-customize-unsaved-options ()
   "Prompt user to customize any unsaved customization options.
-Return non-nil if user chooses to customize, for use in
+Return nil if user chooses to customize, for use in
 `kill-emacs-query-functions'."
   (not (and (custom-unsaved-options)
-           (yes-or-no-p "Some customized options have not been saved; Examine? 
")
-           (customize-unsaved)
-           t)))
+           (yes-or-no-p
+             "Some customized options have not been saved; Examine? ")
+           (progn (customize-unsaved) t))))
 
 ;;; Buffer.
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]