* 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)
;;;###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.