]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix regression in 'custom-prompt-customize-unsaved-options'
authorEli Zaretskii <eliz@gnu.org>
Thu, 10 Mar 2022 18:26:13 +0000 (20:26 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 10 Mar 2022 18:26:13 +0000 (20:26 +0200)
* 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

index c2ddaeb7b19a291a77db2ebda0e26b1c464b3595..fd42c542b461adfa90e6f57cf635c0fe5fe3f306 100644 (file)
@@ -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.