From unknown Sat Jun 21 10:31:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#45392 <45392@debbugs.gnu.org> To: bug#45392 <45392@debbugs.gnu.org> Subject: Status: 28.0.50; read-from-minibuffer sets `this-command` variable to `exit-minibuffer` Reply-To: bug#45392 <45392@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:31:22 +0000 retitle 45392 28.0.50; read-from-minibuffer sets `this-command` variable to= `exit-minibuffer` reassign 45392 emacs submitter 45392 dalanicolai severity 45392 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 23 08:11:56 2020 Received: (at submit) by debbugs.gnu.org; 23 Dec 2020 13:11:56 +0000 Received: from localhost ([127.0.0.1]:52316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ks3vn-0007xk-UQ for submit@debbugs.gnu.org; Wed, 23 Dec 2020 08:11:56 -0500 Received: from lists.gnu.org ([209.51.188.17]:44300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ks3vl-0007xY-Uu for submit@debbugs.gnu.org; Wed, 23 Dec 2020 08:11:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ks3vl-0006nb-PV for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2020 08:11:53 -0500 Received: from mail-ua1-x936.google.com ([2607:f8b0:4864:20::936]:39580) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ks3vh-0003MF-Ak for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2020 08:11:53 -0500 Received: by mail-ua1-x936.google.com with SMTP id t15so5381890ual.6 for ; Wed, 23 Dec 2020 05:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bkL6NI5bEkFSObXYCbcpKOgh+8DvPBn3vukEB5lpO14=; b=NWvNzQLy+Y4sp6bPIIrEqJuoNDHyrtq2A+3PFI01+6DHEBiNKXyaoDnWglLPa3gHCq OA5sE36U77Bww+KOiocxJgSSVxxhJpoLHFn2RuDlCqXCOa/I+CgPFJP9VOG+zkMQ3Dhk gbzzI2VITv2isrE8aE3+99jk4yfwTVqQsU15Fc5KOOTOhQFQoun1LYqy9ivqjtX5HOAj LpAdbDnF8SdQJ+dyrwgMcPTT+iMI6DW51JfGX/8q1LGsypSlekkLzZHtZjiRHpUIzY1m pgM3ojJHvVYny5BkUHFTQt0EyMjlG25liPaZlyE6tXOkuZfWRwrda609EIRUbMQwUuYq +47A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bkL6NI5bEkFSObXYCbcpKOgh+8DvPBn3vukEB5lpO14=; b=GX7zG4fC5p+08KmNX0Dj/9mhrtTmXAI3ZWkAfsXeArCo1XQGz2J2EEse1D7xZqHawW guNvGbs+s6HBVAp23mjFQLYzTEoP35zWad9M0YIM25ku2K/BWWx/qomHf7oA5K3jUpta epz9C29WzVtmpJPgfX7sYOBFoysHw+5CCxB+6gMWam+x6SQN15BdAXIDa/4MgZKRcS22 Fu4STi2sPXSPHwC6MbtXhpMRNijdOHwBBnzFbT54rfuhpEtiJ5N+b/wuQED+s/f6drVh gCXuJktciM0Ly+XX5DTGb80FXyNMJa6nYRYBnCpCVxePvppai1EzaJWFJHv0A5U46kQH rvzw== X-Gm-Message-State: AOAM5319E/En9rbLsGqZVz/ol2q9JMTySsjKBFfSTyhE3VlJ0XTh0Bjd f/ZzEuay63AxfI6dWDbeiQLwq5foWrW7X4Rz5HI5aUnOsgU= X-Google-Smtp-Source: ABdhPJxgLX5G/oIwsHVR253+xGDAGgxglGIhHIVYP5e5WEmRudZp6r2rW2SstpSyjFrQn/oERhsmg0LY4gFKgYew1/Y= X-Received: by 2002:ab0:242:: with SMTP id 60mr10559363uas.134.1608729107784; Wed, 23 Dec 2020 05:11:47 -0800 (PST) MIME-Version: 1.0 From: dalanicolai Date: Wed, 23 Dec 2020 14:11:36 +0100 Message-ID: Subject: 28.0.50; read-from-minibuffer sets `this-command` variable to `exit-minibuffer` To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="00000000000002670e05b7216f42" Received-SPF: pass client-ip=2607:f8b0:4864:20::936; envelope-from=dalanicolai@gmail.com; helo=mail-ua1-x936.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) --00000000000002670e05b7216f42 Content-Type: text/plain; charset="UTF-8" Load the following code block: (defun test () (interactive) (print this-command) (read-from-minibuffer "test") (print this-command)) Now run M-x test. The first print prints correctly "test" while the second print prints "exit-minibuffer" The docstring of the `this-command` variable says: "The command now being executed." I would think the command "exit-minibuffer" should have been completed here, so the current command being executed for the second print, i.e. the value of the `this-command` variable, should again be "test". In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) of 2020-12-21 built on daniel-Ubuntu Repository revision: faf3613cba8571eaef2709bd7bb6f11a956b9262 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Ubuntu 20.10 Configured using: 'configure --with-imagemagick --with-cairo --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD PDUMPER LCMS2 Important settings: value of $LC_MONETARY: nl_NL.UTF-8 value of $LC_NUMERIC: nl_NL.UTF-8 value of $LC_TIME: nl_NL.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Message Minor modes in effect: mml-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t auto-fill-function: message-do-auto-fill transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (cus-edit cus-start cus-load wid-edit mailalias mailclient pp shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs 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 help-fns radix-tree cl-print debug backtrace help-mode find-func .emacs finder-inf info package easymenu 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 cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu 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 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 237418 22864) (symbols 48 15091 0) (strings 32 75289 3389) (string-bytes 1 1916083) (vectors 16 22714) (vector-slots 8 306359 25686) (floats 8 41 58) (intervals 56 1029 11) (buffers 984 16)) --00000000000002670e05b7216f42 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Load the following code block:

=C2=A0=C2=A0=C2=A0 (defun test ()
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (interactive)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (print this-command)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (read-from-minibuffer "test")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (print this-command))

Now run M-x test.

The first print prints correctly "test" while the second print pr= ints "exit-minibuffer"
The docstring of the `this-command` variable says: "The command now
being executed." I would think the command "exit-minibuffer"= should have
been completed here, so the current command being executed for the
second print, i.e. the value of the `this-command` variable,=C2=A0 should a= gain be "test".


In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, c= airo version 1.16.0)
of 2020-12-21 built on daniel-Ubuntu
Repository revision: faf3613cba8571eaef2709bd7bb6f11a956b9262
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.1= 2009000
System Description: Ubuntu 20.10

Configured using:
'configure --with-imagemagick --with-cairo --with-modules'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS GSETTINGS
GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ
M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES
THREADS LIBSYSTEMD PDUMPER LCMS2

Important settings:
=C2=A0 value of $LC_MONETARY: nl_NL.UTF-8
=C2=A0 value of $LC_NUMERIC: nl_NL.UTF-8
=C2=A0 value of $LC_TIME: nl_NL.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Message

Minor modes in effect:
=C2=A0 mml-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 auto-fill-function: message-do-auto-fill
=C2=A0 transient-mark-mode: t
=C2=A0 abbrev-mode: t

Load-path shadows:
None found.

Features:
(cus-edit cus-start cus-load wid-edit mailalias mailclient pp shadow
sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml
mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs
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 help-fns radix-tree cl-print
debug backtrace help-mode find-func .emacs finder-inf info package
easymenu 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 cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json subr-x map url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu 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 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 237418 22864)
(symbols 48 15091 0)
(strings 32 75289 3389)
(string-bytes 1 1916083)
(vectors 16 22714)
(vector-slots 8 306359 25686)
(floats 8 41 58)
(intervals 56 1029 11)
(buffers 984 16))
--00000000000002670e05b7216f42-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 07 18:35:28 2021 Received: (at 45392) by debbugs.gnu.org; 7 Jan 2021 23:35:28 +0000 Received: from localhost ([127.0.0.1]:48903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxeoS-0007hg-DY for submit@debbugs.gnu.org; Thu, 07 Jan 2021 18:35:28 -0500 Received: from sonic307-7.consmr.mail.ir2.yahoo.com ([87.248.110.32]:43212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxeoP-0007hL-C9 for 45392@debbugs.gnu.org; Thu, 07 Jan 2021 18:35:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1610062518; bh=bUjdgZzciTdZgelDRsbrizqPjhbk5q5DuPJ8XbkumFQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject; b=PTU2i0ONms54tNiy863mIKcmQ5fhq9lTotJMlfuNskuwQnZOXaEYMG5KYyFp9us8NxGJFPNHfArILMRZaibiztWh85WKgqCbG8VvrJ88thCYHvHZXgs9f9iXmSK206xrNl2Eanx4K6Bmxg78zRRj/w7gowqZNyZZv5sJ1S4t6WGsKWFRvTzFzoUlr/4NMrn0pE7XP1F3WFNVgUXCYZ7nmo5EpL+ueVxGhOiolaSSQFfqif10a2C1HxQOBx36ulCVYe5R/NMBhVXSRYHMA0XLwZNFKPCjDPo0W3GArzRiKE7J+8A6pzkZuKSGgo6B7ec7DxVUUhrPfFcAWAGB1DTaLQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1610062518; bh=Hd7kkp9psYU4/UBSPfZtOJgVfrYENHRdy50PbhNW73w=; h=From:To:Subject:Date:From:Subject; b=ld2aAmhFOMZcjeXm3lr2OfQi8eV/TDy8gfCwEV9Och+ICxOph6j448DdSF/Z6U/qz7kQOXn2bj3oWhEe7ntCG3TWIIAaN1mGdEQmQvJBD3x1CH/bh8jhYJQrAy9nJlAOMeVtE34dem/akKJ5d82LcXzdlJjTWmCHnZGLXbIbJRDNMrNQD/X0Hn9xC7SkRHaY15OHKdCuNiu8eQVUNNyQZX4yCIEiWLmaubpytU/rS+zLKvDZZhL1XzTINdeVTOHHopkI5zNjArQz1Zz34VvGjXITUyO2ypmwcKKU0HuXeYb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Ndq9sp_eLmibv6_z_0A2m3Kxa8 WLxxY8BCZiNKu6B6XnBaa3mKM6XbWBayB8t5hOQAoj78ra2zxdCzASx0s8y31U_sSpkMREqpI_AJ 2hAwfN.fm8RLt74UgFmmHFTiTGlNYV_NhLRiaimHd7.AHlZhNqCfw7SVta9cPUKJMw4QZMeD9zKO 0fGVGM1_YmpGJPMF5N_GFOMTNL3NAh3qdCdRIMIi8_gYE0OmvlZCW2_66U3FWwiIxxacxFaaYMSc bsTahpcyHVL8m8gGS0wOX5bKHhOyvC9KBdR77SfgDOcXY0XkHE0Y06uvaZvIMFr5quPuH_oHb8l9 Gv.XvphoQa712PnL46LISa4FhWVPazNZpAnrESIkxG0OykhyXt_y7xoR2Gv0Xw_PRrui9.qIA7Pa wV.9NikpFKr5iq40NoB6pWq3RdGfle9Hf8ZpAcPQcRxcIFeUbSU2AQ5.RkGnOCdnDPzW7mSqtqap ri2wtigO2DbspHw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ir2.yahoo.com with HTTP; Thu, 7 Jan 2021 23:35:18 +0000 Received: by smtp411.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e9dc0064ade34f2d9da036a31598cd7e; Thu, 07 Jan 2021 23:35:15 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: dalanicolai Subject: Re: bug#45392: 28.0.50; read-from-minibuffer sets `this-command` variable to `exit-minibuffer` References: Date: Fri, 08 Jan 2021 00:35:13 +0100 In-Reply-To: (dalanicolai@gmail.com's message of "Wed, 23 Dec 2020 14:11:36 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.17278 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.8) Content-Length: 1136 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 45392 Cc: 45392@debbugs.gnu.org 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: -0.8 (/) dalanicolai writes: > Load the following code block: > > (defun test () > (interactive) > (print this-command) > (read-from-minibuffer "test") > (print this-command)) > > Now run M-x test. > > The first print prints correctly "test" while the second print prints > "exit-minibuffer" > The docstring of the `this-command` variable says: "The command now > being executed." I would think the command "exit-minibuffer" should have > been completed here, so the current command being executed for the > second print, i.e. the value of the `this-command` variable, should again > be "test". > Thanks for your bug report. I think it is expected that 'this-command' is 'exit-minibuffer' in this case, because 'this-command' is usually set only once *at the beginning* of the execution of a command. It keeps its value until a *new* command is executed by Emacs. This is not explicitly said in the docstring, but it is mentioned in the Elisp Info manual. I don't know if the docstring could be expressed more clearly; I prefer to leave those command loop details to the Info manuals. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 23 17:50:13 2021 Received: (at 45392) by debbugs.gnu.org; 23 Jan 2021 22:50:13 +0000 Received: from localhost ([127.0.0.1]:35566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3RjR-0001jj-1W for submit@debbugs.gnu.org; Sat, 23 Jan 2021 17:50:13 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3RjO-0001jE-Nk for 45392@debbugs.gnu.org; Sat, 23 Jan 2021 17:50:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=rVvpysGWUKhH5DkAib8qcI92rwaUNw4Cx3Q4qJ7C0ss=; b=VUMcVYRekzL19FrTvxqjXPkxi1 G95n5+4B3xC8O80AiPtQggpM0dZBbOH2JwYM0vva9eeRnF1dSL8YGUcSXyp5lykaE4Lxj4MJKr9BE zoOh+Cwe1x8ztyYzsTLXUZefFUwes67nXYv7fHVNpd8cLcn5YemhodfmBn4yvHLptSpw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3Rj9-0006NC-6I; Sat, 23 Jan 2021 23:50:04 +0100 From: Lars Ingebrigtsen To: Daniel =?utf-8?Q?Mart=C3=ADn?= Subject: Re: bug#45392: 28.0.50; read-from-minibuffer sets `this-command` variable to `exit-minibuffer` References: X-Now-Playing: Arthur Russell's _Sketches For World Of Echo (June 25 1984 Live At Ei)_: "They And Their Friends (Live 6-24-84)" Date: Sat, 23 Jan 2021 23:49:54 +0100 In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Fri, 08 Jan 2021 00:35:13 +0100") Message-ID: <875z3ns1yl.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Daniel Martín writes: > Thanks for your bug report. I think it is expected that 'this-command' > is 'exit-minibuffer' in this case, because 'this-command' is usually set > only once *at the beginning* of the execution of a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45392 Cc: dalanicolai , 45392@debbugs.gnu.org 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 (-) Daniel Mart=C3=ADn writes: > Thanks for your bug report. I think it is expected that 'this-command' > is 'exit-minibuffer' in this case, because 'this-command' is usually set > only once *at the beginning* of the execution of a command. It keeps > its value until a *new* command is executed by Emacs. This is not > explicitly said in the docstring, but it is mentioned in the Elisp Info > manual. > > I don't know if the docstring could be expressed more clearly; I prefer > to leave those command loop details to the Info manuals. I think so, too, so there doesn't seem to be anything further to do in this bug report, and I'm closing it. If there's more to be done here, please respond to the debbugs address and we'll reopen. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 23 17:50:18 2021 Received: (at control) by debbugs.gnu.org; 23 Jan 2021 22:50:18 +0000 Received: from localhost ([127.0.0.1]:35569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3RjW-0001k4-DO for submit@debbugs.gnu.org; Sat, 23 Jan 2021 17:50:18 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3RjU-0001jZ-HY for control@debbugs.gnu.org; Sat, 23 Jan 2021 17:50:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=f5ishSLb/d5K/mkYMOJJc2ZO7sccPqhpwjq14Ct0pAM=; b=gClPNR01uHRqT3QDrKA5U3yveP CUJEoGrG63ss1I0oKspwZ8fuJwN+tff4+UpDAftuo47WsDNOzsUZCLwAiWi8g2dxlmrXlLW4Q8SSY fXFFjGX8zCz7yuhUGHTEslFputco21UWy4gvMAX4JY70xfi+WSSSusLp0IWUCqD2yDR8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3RjN-0006NR-0a for control@debbugs.gnu.org; Sat, 23 Jan 2021 23:50:10 +0100 Date: Sat, 23 Jan 2021 23:50:08 +0100 Message-Id: <874kj7s1y7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45392 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 45392 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) close 45392 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 25 12:08:49 2021 Received: (at 45392) by debbugs.gnu.org; 25 Jan 2021 17:08:49 +0000 Received: from localhost ([127.0.0.1]:39769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l45M9-0001Kb-1j for submit@debbugs.gnu.org; Mon, 25 Jan 2021 12:08:49 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:43609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l45M6-0001KM-Mu for 45392@debbugs.gnu.org; Mon, 25 Jan 2021 12:08:47 -0500 X-Originating-IP: 91.129.98.64 Received: from mail.gandi.net (m91-129-98-64.cust.tele2.ee [91.129.98.64]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 8AA0EFF811; Mon, 25 Jan 2021 17:08:37 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45392: 28.0.50; read-from-minibuffer sets `this-command` variable to `exit-minibuffer` Organization: LINKOV.NET References: <875z3ns1yl.fsf@gnus.org> Date: Mon, 25 Jan 2021 19:05:55 +0200 In-Reply-To: <875z3ns1yl.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 23 Jan 2021 23:49:54 +0100") Message-ID: <87o8he4scs.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45392 Cc: dalanicolai , 45392@debbugs.gnu.org, Daniel =?iso-8859-1?Q?Mart=EDn?= 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.7 (-) >> Thanks for your bug report. I think it is expected that 'this-command' >> is 'exit-minibuffer' in this case, because 'this-command' is usually set >> only once *at the beginning* of the execution of a command. It keeps >> its value until a *new* command is executed by Emacs. This is not >> explicitly said in the docstring, but it is mentioned in the Elisp Info >> manual. >> >> I don't know if the docstring could be expressed more clearly; I prefer >> to leave those command loop details to the Info manuals. > > I think so, too, so there doesn't seem to be anything further to do in > this bug report, and I'm closing it. If there's more to be done here, > please respond to the debbugs address and we'll reopen. Is it what the recently added varible 'current-minibuffer-command' intended to do? Then OP could use it like (defun test () (interactive) (print current-minibuffer-command) (read-from-minibuffer "test") (print current-minibuffer-command)) From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 19:11:52 2021 Received: (at 45392) by debbugs.gnu.org; 29 Jan 2021 00:11:52 +0000 Received: from localhost ([127.0.0.1]:50614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5HOC-0002j3-Av for submit@debbugs.gnu.org; Thu, 28 Jan 2021 19:11:52 -0500 Received: from mail-vk1-f171.google.com ([209.85.221.171]:37835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5HOA-0002iq-BU for 45392@debbugs.gnu.org; Thu, 28 Jan 2021 19:11:51 -0500 Received: by mail-vk1-f171.google.com with SMTP id y8so1779752vky.4 for <45392@debbugs.gnu.org>; Thu, 28 Jan 2021 16:11:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kmD6zYvAg35o4RDeyHsID2Wc27E1Ff7wXok4Dj1g0S8=; b=l5Z1i+QmBdyeJtxQIFjUa+WIsg9iGJ4vd6D5HEpdyXsQ0QHo3UR321Ycjo/3MNgdqx BHd473dGEE45pKt8OhQYznGvuyRRqxoo/n0p68bEtXTw8jA04KSChVgLo/sFHMSyfrPl 7Cp3uDqGoISGaLcUN6yuFlBcqldyqPk736eEDnIo5g6yL10DGbL7/1tmFKf08YEpXDr9 zClAbqGZYAI6xi/iVoWzgnZL6yhFpUqQD8woEdxc+ZpsIPkhSkaOZiaFlooq320GD27T qRWkaWZqnzAxetVwnDnmdTqz3oMaoJb2HdZKV1ct4ofGNKktV9s+nQFU/DTpc6y7V83I bsWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kmD6zYvAg35o4RDeyHsID2Wc27E1Ff7wXok4Dj1g0S8=; b=eZ8GV0EAEQKLQbzowSgPl8ORHifxNxoB4UhpETasyCT8GJQ21a/KkTTm2dXyUc39cm uS26IVDfls6ObYeMKQzxGsYI9EWRRw7240oJ+BZT8ruo5k69L6wDjBSVEu00EHzOy03m IAlHnR1rS5+lO8PiYbO40vFBlRwEQKAtLXu3nqjg7onI//FX8S9lQDiFf99vgWKgZ3QE l5gRZ2kW/MaE4ypGVmyNanoWjO6QQULfuv3uNX8EEdV2rvNpgEFEvxliy8Yh7gpiwlWP bXWMNBB20jt5ShVdQM/Ftmw+j7WTKELPKl4KCltcHEWMDRLzJGmDBKiQ1TJwAHpPwQIH JPbw== X-Gm-Message-State: AOAM532oKLLs/W9InEQIPX5CxKVDlfwUk3PL1v6WYcsjOfNqYF+RvgPh JrtBEL+PdX9IBHVQxfIpBZNMskTH+WbWTTCKN9M= X-Google-Smtp-Source: ABdhPJztMm417VZ756F1ldhtvZLcW+KFO0cqPYXoFR689Q/3BiEQROAcKLfkPP+SjW+SqGVR270WKrXktnoacBNJTmU= X-Received: by 2002:a1f:450e:: with SMTP id s14mr1759173vka.4.1611879104704; Thu, 28 Jan 2021 16:11:44 -0800 (PST) MIME-Version: 1.0 References: <875z3ns1yl.fsf@gnus.org> <87o8he4scs.fsf@mail.linkov.net> In-Reply-To: <87o8he4scs.fsf@mail.linkov.net> From: dalanicolai Date: Fri, 29 Jan 2021 01:11:33 +0100 Message-ID: Subject: Re: bug#45392: 28.0.50; read-from-minibuffer sets `this-command` variable to `exit-minibuffer` To: Juri Linkov Content-Type: multipart/alternative; boundary="00000000000074f59205b9fed978" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45392 Cc: Lars Ingebrigtsen , 45392@debbugs.gnu.org, =?UTF-8?Q?Daniel_Mart=C3=ADn?= 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 (-) --00000000000074f59205b9fed978 Content-Type: text/plain; charset="UTF-8" Yes, that's it. Great, thanks! On Mon, 25 Jan 2021 at 18:08, Juri Linkov wrote: > >> Thanks for your bug report. I think it is expected that 'this-command' > >> is 'exit-minibuffer' in this case, because 'this-command' is usually set > >> only once *at the beginning* of the execution of a command. It keeps > >> its value until a *new* command is executed by Emacs. This is not > >> explicitly said in the docstring, but it is mentioned in the Elisp Info > >> manual. > >> > >> I don't know if the docstring could be expressed more clearly; I prefer > >> to leave those command loop details to the Info manuals. > > > > I think so, too, so there doesn't seem to be anything further to do in > > this bug report, and I'm closing it. If there's more to be done here, > > please respond to the debbugs address and we'll reopen. > > Is it what the recently added varible 'current-minibuffer-command' > intended to do? Then OP could use it like > > (defun test () > (interactive) > (print current-minibuffer-command) > (read-from-minibuffer "test") > (print current-minibuffer-command)) > --00000000000074f59205b9fed978 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, that's it. Great, thanks!

On Mon, 25 Jan 2021 = at 18:08, Juri Linkov <juri@linkov.ne= t> wrote:
>> Thanks for your bug report.=C2=A0 I think it is expected that = 9;this-command'
>> is 'exit-minibuffer' in this case, because 'this-comma= nd' is usually set
>> only once *at the beginning* of the execution of a command.=C2=A0 = It keeps
>> its value until a *new* command is executed by Emacs.=C2=A0 This i= s not
>> explicitly said in the docstring, but it is mentioned in the Elisp= Info
>> manual.
>>
>> I don't know if the docstring could be expressed more clearly;= I prefer
>> to leave those command loop details to the Info manuals.
>
> I think so, too, so there doesn't seem to be anything further to d= o in
> this bug report, and I'm closing it.=C2=A0 If there's more to = be done here,
> please respond to the debbugs address and we'll reopen.

Is it what the recently added varible 'current-minibuffer-command'<= br> intended to do?=C2=A0 Then OP could use it like

=C2=A0 (defun test ()
=C2=A0 =C2=A0 (interactive)
=C2=A0 =C2=A0 (print current-minibuffer-command)
=C2=A0 =C2=A0 (read-from-minibuffer "test")
=C2=A0 =C2=A0 (print current-minibuffer-command))
--00000000000074f59205b9fed978-- From unknown Sat Jun 21 10:31:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 26 Feb 2021 12:24:16 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator