From unknown Tue Aug 12 08:33:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63910: 29.0.91; icomplete-mode ignores minibuffer-completion-confirm Resent-From: Manuel Zimmermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jun 2023 13:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63910 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 63910@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168597288831964 (code B ref -1); Mon, 05 Jun 2023 13:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jun 2023 13:48:08 +0000 Received: from localhost ([127.0.0.1]:48535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6AZ6-0008JS-2e for submit@debbugs.gnu.org; Mon, 05 Jun 2023 09:48:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:48576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6ARF-00082V-Ih for submit@debbugs.gnu.org; Mon, 05 Jun 2023 09:40:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6ARF-0005sJ-AK for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 09:40:01 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6AR2-0000Tj-5w for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 09:40:01 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1685972383; cv=none; d=strato.com; s=strato-dkim-0002; b=b86wUCR+msYFLxhxnvAXOWhV55kdEvR3bRYV/wN0YuavIzS8Mg5fhVSRbbZuYNMxmi HPWZRiJnURoNjVUTuO43zQhRzoFL80lgX5rU9EeHIGofIPmmUUAZQ1E+uvzTxeYooUqJ ZRvoGXaGTUzJ+3qpxofFzhv56AMAzZmqHKkYlX2uOKBPoQa9DigAtTk4CjJsjJaMVk0S QDBicDZbl5HlyhABeENyuRNE0UzOgmfNXl2Uw8kc9fVklmXPjGjCsXCW1+oqQ7+h5+Ax 6FuYz9qGVvYlDxB7V9y24fqg9LfCEqSBKPzo+vu5YVeFi3A4h3MkstcSV4Cusy3G45i2 os1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685972383; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=qu8JuLy8Z8iicDXl+fJY59PGaY+QTlbDn/QTiguUzu4=; b=RWbwbwNDDEZfs3rhMPJI1FrmXeTXu/K77Ds03zLo7JpbQmxxODCiBSEzsAr6Y3fImn iJniSUNUzJP6UN4xJOcD+MRcQYoCM9Ik54UrRgUQfNU/VJt9WqiDxIn9pVg1WWuBB2C4 IXrkKIeytiLWxDCNIB1byg1aXyJHX6D7vCTOMTJ+xLwg4M+y0tux8WZa6Zo9/DyWX0Ks MvV4F0zx2pwrMJZexD87iRyXerzYoFXiQPbjF5o9Mir4HVRo15zEjtHzqFCAaOGEsQi8 V/2Qc5UB4XurXdtAeo2o1gC9LTam2UKRSQcxAyYnpMGDrYcB94FBGhwbjeQczkuVWZPs ciYA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685972383; s=strato-dkim-0002; d=zimnn.de; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=qu8JuLy8Z8iicDXl+fJY59PGaY+QTlbDn/QTiguUzu4=; b=Q14JQl/ifSSSWgTQQhK+NMZgjbtmURNW9E1X1truha0YNnTTiaQg/I3eIAws0goumB ncb9O6Ry7is6wV5Q++eMzCoVcUIw47YKAaPJ8156YhjmzufbTsKJUK+DC0q5KSvOOss/ hrxXiP8WVlpnQEFBak3sDEvRE29XMYmeULbzS5ZSDDUnl9sxsWuJ5wsMuBkiUzCnciK/ fqjABHBxJOY3XmRDapItlZe7jV6tCIXzB8ejUXT9HE7xsrfH+li1r6GuGCmS7TrJVVxW ln9aGDByr2fOQvjdAP7MiN5jlD0ZYhgJ1f8BvNtHxbXG5fuui39RLbmT0DFG8TWhqfvn 3p9Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685972383; s=strato-dkim-0003; d=zimnn.de; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=qu8JuLy8Z8iicDXl+fJY59PGaY+QTlbDn/QTiguUzu4=; b=6fjBBQ79gySfyH1PO6QNp4I/cDbqq2ssJnkiyLQKBVqYfIDUnARjqe07lYc6wUC9bB sfNC+6XO0oUa/eyAt6Ag== X-RZG-AUTH: ":O2kGeEG7b/pS1FewRnG9x4oWjeKGHKuPea77GjUXFjXZ/RiX5ewYFgTKI9Blr+OG0GL2opF9R1rhWsE3OwOl3N7A1Q3YMWHcPl2bvA==" Received: from manuel-usb by smtp.strato.de (RZmta 49.5.3 AUTH) with ESMTPSA id d4e234z55Ddh9LF (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Mon, 5 Jun 2023 15:39:43 +0200 (CEST) From: Manuel Zimmermann Date: Mon, 05 Jun 2023 15:39:42 +0200 Message-ID: <87pm6a110h.fsf@zimnn.de> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=81.169.146.161; envelope-from=m@zimnn.de; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Mon, 05 Jun 2023 09:48:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) The problem is that setting the variable `minibuffer-completion-confirm` to 'confirm is not respected by icomplete-mode. Steps to reproduce: 1. Evaluate following lines: (setq minibuffer-completion-confirm 'confirm) (icomplete-mode) 2. C-x C-f /tmp/non-existent-file The documentation string of `minibuffer-completion-confirm` states: If the value is 'confirm', the user may exit with an input that is not a valid completion alternative, but Emacs asks for confirmation. Since a file is opened which does not exist, I would expect that after pressing RET the first time, Emacs still stays in the minibuffer and appends [Confirm] at the end of the line. Only when pressing RET a second time Emacs switches to the new buffer. The actual behavior is that Emacs directly switches to the new buffer without confirmation after pressing RET for the first time. In GNU Emacs 29.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-06-05 built on host-1 Repository revision: dd2d8ff2f5cf5f495a793c7db0a168474a339613 Repository branch: makepkg System Description: Arch Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-modules --without-libotf --without-m17n-flt --without-gconf --with-native-compilation=yes --with-xinput2 --with-pgtk --without-xaw3d --with-sound=no --with-tree-sitter --without-gpm --without-compress-install '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: icomplete-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t tab-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (cl-print face-remap misearch multi-isearch bug-reference find-func shortdoc help-fns radix-tree xref ring gnutls network-stream nsm vc-git diff-mode easy-mmode vc-dispatcher thingatpt project mailalias smtpmail textsec uni-scripts url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source eieio eieio-core json map byte-opt url-vars idna-mapping ucs-normalize uni-confusable textsec-check pp shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils icomplete cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 291917 41682) (symbols 48 9945 7) (strings 32 56481 2760) (string-bytes 1 1397918) (vectors 16 52625) (vector-slots 8 879756 35852) (floats 8 165 141) (intervals 56 2071 1022) (buffers 984 19)) From unknown Tue Aug 12 08:33:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63910: 29.0.91; icomplete-mode ignores minibuffer-completion-confirm Resent-From: Manuel Zimmermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jun 2023 10:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63910 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 63910@debbugs.gnu.org Received: via spool by 63910-submit@debbugs.gnu.org id=B63910.16860464299367 (code B ref 63910); Tue, 06 Jun 2023 10:14:02 +0000 Received: (at 63910) by debbugs.gnu.org; 6 Jun 2023 10:13:49 +0000 Received: from localhost ([127.0.0.1]:51017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6ThE-0002R0-Ia for submit@debbugs.gnu.org; Tue, 06 Jun 2023 06:13:48 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.23]:43215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6ThB-0002Qp-6r for 63910@debbugs.gnu.org; Tue, 06 Jun 2023 06:13:47 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1686046423; cv=none; d=strato.com; s=strato-dkim-0002; b=FlC+xXm1g0SDkCgwruKiY/j+thN3pS1PnZEa2nMh0kW6GmlIsi2t1QHZViCgmP3mKm pNxUMQC0fAzZWGAhKdv8XCLuZWXMHRmvkyZWCQgi1FNmxqWAvCgnYbOqT3nA5ZDUlSRc dQ5V1eygAgIUSlh20ZqM2/Lk/jJAobUYf8OB4Y81WUgsa/Hwp45GoLMQIJnxrJwTbcro QLQ1Vrqq1Km+jqPx24A7X3XppUxDfD0RGtaYRB68zFktzakKv48I7vxnDMQCGgcXOKYn JN1cbrplvo1mdnF54LhMS9XxaDahrXRoZZrnhHoG1DYerJEtAyKEK9oLbPe8Fk8Xm120 v4BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1686046423; s=strato-dkim-0002; d=strato.com; h=Message-ID:In-Reply-To:Date:References:Subject:To:From:Cc:Date:From: Subject:Sender; bh=CwGNw1WH3y+stytzcU7zdFt6At/0XZjS6NbG/vZknAg=; b=Xz2+qoA0qAc1oxa3lqtt4edty5jFtWXaGyh/gEVyzBSVB26s1WhCAyrt31uEKR1kSW 4tzyId1dDUmvZp+/j2xpxjSRdEY3/OE5kQkKTJX1MJ07kBPYlu3lfc/YefHfUG2QhjRj TXXcIQxZCR05xx8rPY2RZVW1rVtBFzakXU7nXAL3z/Yb9FP4n0yFpGRM75rT5w+rxksG Fqwg7zD0AOntJwSHdILhA9CD7Dp2z/U96SGhLr3jdZYe44kUcMZsQarVOOlu8zqLy2NC T/EssAbcaROqp8ddjzwThhZIUhf9IixrI6P/hUvobx6xhSKHUmJvlFDU2JcAw02JQMtW ukSw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1686046423; s=strato-dkim-0002; d=zimnn.de; h=Message-ID:In-Reply-To:Date:References:Subject:To:From:Cc:Date:From: Subject:Sender; bh=CwGNw1WH3y+stytzcU7zdFt6At/0XZjS6NbG/vZknAg=; b=lEkK2GDezycyGj9kUxYRw3y2yqpgnEVkhxUWFh35OV/TIyIgBYQ57Ug+kq6lF77Dtz 6NiAL4G4aBwKeXWcSVOd9/sZ0s2ekhXmGTPcVsmy9lrAv6nCv0FRRCKdqT7Yehb8jsKB tiAUby+VJkVs0y8uC+BHO7e9ijr7dIeMeepjQTTs6Y5sc7MTuG9uOx5QUrdrD4eABt6V SVOY6is2AVnBJksemXAZKPnZH8apSUsHt8DtcnA7iitcarZ+0o824Omq+1gfvXQm1R8h ZRQy0XbKRs0+nBSpiaD99klke1iq2OyWfBEcx1V19PCZKi+LuhZS7RaOHZ/pk1elgjSs 3sNw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1686046423; s=strato-dkim-0003; d=zimnn.de; h=Message-ID:In-Reply-To:Date:References:Subject:To:From:Cc:Date:From: Subject:Sender; bh=CwGNw1WH3y+stytzcU7zdFt6At/0XZjS6NbG/vZknAg=; b=sB2hnC/TYTXNfPHmFrbbJYR6Cfy+f44W3woy8ag8BnfZoqGga9LmouvSD9CLYtny/8 1YQ4+EHLMzOnHNiPDoBg== X-RZG-AUTH: ":O2kGeEG7b/pS1FewRnG9x4oWjeKGHKuPea77GjUXFjXZ/RiX5ewYFgTKI9Blr+OG0Gr2qsB9R1oGwRzj8mI+CwUN8yoggDtzDGeGBw==" Received: from manuel-usb by smtp.strato.de (RZmta 49.5.3 AUTH) with ESMTPSA id d4e234z56ADhC47 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for <63910@debbugs.gnu.org>; Tue, 6 Jun 2023 12:13:43 +0200 (CEST) From: Manuel Zimmermann References: <87pm6a110h.fsf@zimnn.de> Date: Tue, 06 Jun 2023 12:13:31 +0200 In-Reply-To: <87pm6a110h.fsf@zimnn.de> (Manuel Zimmermann's message of "Mon, 05 Jun 2023 15:39:42 +0200") Message-ID: <87edmorj90.fsf@zimnn.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I want to add that the reason why I tried to customize `minibuffer-complete-and-exit` is that it is mentioned in the Emacs manual in chapter 8.4.3 Completion Exit: When a command reads an argument using the minibuffer with completion, it also controls what happens when you type (=E2=80=98minibuffer-complete-and-exit=E2=80=99) to submit the argument. = There are four types of behavior: [...] While re-reading this chapter today I stumbled upon another variable `confirm-nonexistent-file-or-buffer`. This one does exactly what I want and works. The actual issue described in the original post is therefore solved, but I think the documentation can be improved. I thought may it is just a problem with icomplete-mode. When I just evaluate (setq minibuffer-completion-confirm 'confirm) in emacs -Q, it still does not have any effect. Maybe the variable shouldn't be mentioned at all or at least the purpose of it should be described better.