From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Miele Newsgroups: gmane.emacs.bugs Subject: bug#54329: 28.0.91; custom-prompt-customize-unsaved-options does not return nil Date: Thu, 10 Mar 2022 17:19:07 +0100 Message-ID: <878rthhjae.fsf@whxvd.name> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40387"; mail-complaints-to="usenet@ciao.gmane.io" To: 54329@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 10 17:34:37 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSLkK-000AFB-AC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Mar 2022 17:34:36 +0100 Original-Received: from localhost ([::1]:33356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSLkJ-0000Pd-BE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Mar 2022 11:34:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSLjm-0007xE-OC for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 11:34:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41462) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSLjm-00058P-FJ for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 11:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nSLjm-0008TW-AR for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 11:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Miele Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2022 16:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54329 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164692999432500 (code B ref -1); Thu, 10 Mar 2022 16:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Mar 2022 16:33:14 +0000 Original-Received: from localhost ([127.0.0.1]:35355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSLiz-0008S7-Dn for submit@debbugs.gnu.org; Thu, 10 Mar 2022 11:33:14 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSLWB-00084d-Tz for submit@debbugs.gnu.org; Thu, 10 Mar 2022 11:20:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSLWB-0006MX-Ob for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 11:19:59 -0500 Original-Received: from mout-p-102.mailbox.org ([80.241.56.152]:60350) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1nSLW8-0002bx-S3 for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 11:19:59 -0500 Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [80.241.60.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4KDvR60HgDz9skl for ; Thu, 10 Mar 2022 17:19:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whxvd.name; s=MBO0001; t=1646929184; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QT9/hNhlgbw7kgsM5jblT94F5YjNHfs9rwnuUCtdNwA=; b=WUlPwlEWBD0iz6bhLou3eBtffEB7DoL/dcwuWad4CkPo51ZcrveOSjwzyyVHY8V37dSVoC 149f6QgCDzRWOzVrw2k3Bj1/7irSEy/wyLaviCgOgnr1bpP++5pS1sksG91+nlewUpHM7v KG44mZDQZhHThNdREsnqrqjjM5H9lem89kdJOZYWeOpb5t07alhb3R8CovDWE98X4by4Vo EYKsTHzEAuQIlPq3w3V+iOX47entWD0UAkYuM1S9jjA/SvXYnh6v2uyzZVaHoH273LJeN8 aqkGWW5aFDpVC/VIvnXilnSArW+NpkitIiAPHI7VNT05ddsb0/4vZ4Ynvq90Bw== Received-SPF: pass client-ip=80.241.56.152; envelope-from=iota@whxvd.name; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 10 Mar 2022 11:33:12 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228193 Archived-At: In an emacs -Q, evaluate (add-hook 'kill-emacs-query-functions 'custom-prompt-customize-unsaved-options) (progn ;; Somthing like the following may be done, e.g., by ;; =E2=80=98activate-transient-input-method=E2=80=99: (setq default-transient-input-method "TeX") (customize-mark-as-set 'default-transient-input-method)) and hit C-x C-c. When asked about whether to examine the unsaved options, say yes. Expected: Emacs does not terminate, so that I can examine. Actual behavior: Emacs terminates. The following diff fixes this issue (and a documentation bug): diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index c2ddaeb7b1..77840c4b65 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -1531,12 +1531,11 @@ customize-apropos-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; Exam= ine? ") - (customize-unsaved) - t))) + (prog1 t (customize-unsaved))))) ;;; Buffer. Best wishes, Sebastian Miele In GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, c= airo version 1.17.4) of 2022-03-10 built on huette Repository revision: d184773c2e2a69bea9b96190c83727b4e7a16542 Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Arch Linux Configured using: 'configure --with-x-toolkit=3Dgtk3 --with-mailutils --with-cairo' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_CTYPE: de_DE.UTF-8 value of $LANG: C locale-coding-system: utf-8-unix Major mode: mu4e:main Minor modes in effect: vertico-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t savehist-mode: t recentf-mode: t global-so-long-mode: t global-eldoc-mode: t show-paren-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t overwrite-mode: overwrite-mode-binary Load-path shadows: /home/w/usr/emacs/helpful/helpful hides /home/w/.config/emacs/usr/helpful-2= 0220220.2308/helpful /home/w/.config/emacs/usr/transient-20220307.2129/transient hides /home/w/u= sr/emacs/0/.0/lisp/transient Features: (shadow emacsbug macrostep-c cmacexp pulse xref dired-aux face-remap bug-reference cus-edit cus-start calc-map calc-stat calc-vec calc-ext calc-menu calc-aent calc calc-loaddefs rect calc-macs misearch multi-isearch tabify cal-move consult-org vc-git vc-dispatcher saveplace oc-basic disp-table ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe ol-docview ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi whx-init::later mu4e mu4e-org mu4e-main mu4e-view mu4e-view-gnus gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win mu4e-view-common mu4e-headers mu4e-compose mu4e-context mu4e-draft mu4e-actions ido rfc2368 smtpmail sendmail mu4e-mark mu4e-proc mu4e-utils doc-view jka-compr image-mode exif mu4e-lists mu4e-message flow-fill mule-util hl-line mu4e-vars mu4e-meta apache-mode systemd pkgbuild-mode flymake-proc flymake project warnings cmake-font-lock cmake-mode rst gitignore-mode gitconfig-mode conf-mode gitattributes-mode sh-script executable lua-mode json-mode json-snatcher js cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs yaml-mode vcard css-mode smie sgml-mode facemenu eww url-queue shr kinsoku svg xml dom mm-url gnus nnheader markdown-mode color thingatpt tex-mode compile ob-shell org-bullets ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox ace-window avy consult-vertico consult magit-bookmark bookmark orderless vertico magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff diff-mode git-commit log-edit message rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor magit-mode magit-git magit-base magit-section crm diary-lib diary-loaddefs cal-iso helpful imenu trace edebug info-look f elisp-refs man dired dired-loaddefs descr-text tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell parse-time iso8601 ls-lisp server whx::safe-local whx-etc::0 whx::transient whx::arg whx::plist whx::list transient cl-extra whx::elpa whx-boot-lib::elpa whx-etc::org whx-etc::org-link whx-etc::org-password whx::password whx::pcase whx::walk org-element org-persist xdg org-id org-refile avl-tree generator whx-etc::org-hide cus-load org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys oc org-compat advice org-macs org-loaddefs format-spec cal-menu calendar cal-loaddefs whx-etc::elisp whx::elisp whx::string s whx::feature dash debug backtrace find-func macrostep pp whx-etc::gc edmacro kmacro whx::binary-unit-prefix whx::bind whx::log whx::meta whx::cl whx::error whx-etc::session savehist recentf tree-widget wid-edit whx-etc::custom whx-etc::core-settings so-long noutline outline easy-mmode diminish no-littering whx-etc::modus-operandi whx-etc::modus-operandi-theme modus-operandi-theme whx::custom modus-themes time-date finder-inf geiser-impl help-fns radix-tree help-mode geiser-custom geiser-base ring package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source eieio eieio-core eieio-loaddefs password-cache json map url-vars seq byte-opt bytecomp byte-compile cconv whx-init::early whx-boot whx-boot::run-level whx-boot-etc::run-level cl-seq whx-boot-etc::packages whx-boot-etc::directories whx-boot::after-init-hook whx-boot-etc::core-settings whx-boot-lib::custom whx-boot-lib::fs-path subr-x whx-boot-lib::symbol whx-boot::session-type whx-boot::verbosity whx-boot-lib::log whx-boot::early-cmdline whx-boot-lib::string rx whx-boot-lib::feature whx-boot-lib::0 info whx-boot-lib::list whx-boot-lib::meta whx-boot-lib::pcase pcase whx-boot-lib::error cl-macs gv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 796178 377838) (symbols 48 59796 95) (strings 32 239722 35837) (string-bytes 1 7038659) (vectors 16 93521) (vector-slots 8 2209654 370338) (floats 8 569 1111) (intervals 56 13204 6070) (buffers 992 26))