From unknown Sun Jul 27 08:51:05 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#45177 <45177@debbugs.gnu.org> To: bug#45177 <45177@debbugs.gnu.org> Subject: Status: 27.1; Access to invoking top level command in minibuffer Reply-To: bug#45177 <45177@debbugs.gnu.org> Date: Sun, 27 Jul 2025 15:51:05 +0000 retitle 45177 27.1; Access to invoking top level command in minibuffer reassign 45177 emacs submitter 45177 clemera@posteo.net severity 45177 normal tag 45177 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 11 09:20:45 2020 Received: (at submit) by debbugs.gnu.org; 11 Dec 2020 14:20:45 +0000 Received: from localhost ([127.0.0.1]:40637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knjHo-0003jk-PH for submit@debbugs.gnu.org; Fri, 11 Dec 2020 09:20:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:34492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knjHm-0003jZ-EU for submit@debbugs.gnu.org; Fri, 11 Dec 2020 09:20:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knjHm-0004rx-89 for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 09:20:42 -0500 Received: from mout02.posteo.de ([185.67.36.66]:53895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knjHj-0007nI-Be for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 09:20:42 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id AE2122400FB for ; Fri, 11 Dec 2020 15:20:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607696435; bh=R7M34WmgkNBWOsw6sxs6yvu4gc8OlePlDrUi3envee8=; h=To:Subject:From:Date:From; b=FOjfZD9IShvEwEYKoIS1ma7rq/QDrdHhBCWXWSJTzAM5m7wWEPZOP+gaH2A2ST9Hh VeOOfc2cjplmwneGQ4LRFMuDYoXUP4dBRb5ifnAMyYY9bLW/FUloCvySrOMpCW09yn qYoPOkd6FzZvSagjN2cfaub1cqJeHQgogbUM1BIkXF6Yzh8Dq/5xLkyiitIAS0woVS y73THt3tMm2Z0DKfQoLHO6orPxjplSTBQdjBFQ5fR1MtR+3p+AxaI32pn6DxztwTc5 GxWurEjQuGBENSk+shM37VqdACzMNUxugUzEMyF0vKVZ8M1HGlhD46K408RN1IYHX0 hDht/RpnIROrg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CstH71F4bz6tmL for ; Fri, 11 Dec 2020 15:20:34 +0100 (CET) To: bug-gnu-emacs@gnu.org Subject: 27.1; Access to invoking top level command in minibuffer From: clemera@posteo.net Message-ID: Date: Fri, 11 Dec 2020 15:20:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=clemera@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 (--) Hello, For command based settings it would be nice to be able to have access to the top level command from which the current minibuffer session was invoked from. This should also work with multiple minibuffer invokations during a command. Using `minibuffer-setup-hook' to save `real-this-command' does not work, for example with: ```elisp (defun example-command () (interactive) (read-string "Example: ") (message "%s" real-this-command)) ``` `real-this-command' will be `exit-minibuffer' after the `read-string' so any minibuffer invokation within that command afterwards will no longer know about `example-command'. The described issue is problem for completion frameworks. The popular Ivy(https://github.com/abo-abo/swiper/) package from GNU ELPA does use the `:caller` argument passed to `ivy-read` to circumvent this. With Selectrum(https://github.com/raxod502/selectrum/) we are trying to find a built-in way to handle this. Clemens In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-08-20 built on clemera Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.5 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-modules --with-json --with-cairo' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: de_DE.UTF-8 value of $LC_NUMERIC: de_DE.UTF-8 value of $LC_TIME: de_DE.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils 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 loaddefs button faces cus-face macroexp files 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 44091 12180) (symbols 48 6003 1) (strings 32 15452 1784) (string-bytes 1 506298) (vectors 16 9257) (vector-slots 8 124488 12266) (floats 8 19 43) (intervals 56 183 0) (buffers 1000 11)) From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 11 12:37:39 2020 Received: (at 45177) by debbugs.gnu.org; 11 Dec 2020 17:37:39 +0000 Received: from localhost ([127.0.0.1]:42846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knmMN-0005Gc-4J for submit@debbugs.gnu.org; Fri, 11 Dec 2020 12:37:39 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:41152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knmMI-0005GM-Nn for 45177@debbugs.gnu.org; Fri, 11 Dec 2020 12:37:38 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BBHY71o030047; Fri, 11 Dec 2020 17:37:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=rG4kJTQd7W8S73Q0cw8Xy0sOjXw280V4sJ+9PYfVV7I=; b=g398ifnsqGuHmkvQfXSWSnidzssQBSLQ/6jU3rIGMS5J665XPw37UdvZ0sZn75AjgiUN 6QS3um6L1iN06ussFZRwV9G0IERtrbOrz337sFUgX/Bm1GcRsYWNwa2NCvOU0YlZ9X6U N2HwD0k+gIEz8tNhcvz7qbrNCFVgfGb7HAVbYeNZeC5Qsqc5NX8qB+siGtWEuOSGPVAW JxnI6LTUrZu0bWKRX0+zqWOpkz3JHxcYCCurXVqxoh4mIWgyAFIpWbDiag2WvNZsGrqm NsqJzafmvMmFL86yKjvwrwRLYCEOHxd2yiYolMXVLM7YXcVrDc3O7XB5Z12mQViCokNZ ig== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 3581mrbsaa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Dec 2020 17:37:28 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BBHPuPw151928; Fri, 11 Dec 2020 17:35:28 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 358m549vgr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Dec 2020 17:35:28 +0000 Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 0BBHZQ2w018650; Fri, 11 Dec 2020 17:35:27 GMT MIME-Version: 1.0 Message-ID: <51001427-d881-479e-af82-a4590d183823@default> Date: Fri, 11 Dec 2020 09:35:25 -0800 (PST) From: Drew Adams To: clemera@posteo.net, 45177@debbugs.gnu.org Subject: RE: bug#45177: 27.1; Access to invoking top level command in minibuffer References: In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9832 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 suspectscore=0 bulkscore=0 malwarescore=0 phishscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012110117 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9832 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=999 clxscore=1011 malwarescore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 spamscore=0 impostorscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012110118 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 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 (---) > For command based settings it would be nice to be able to have > access to the top level command from which the current minibuffer > session was invoked from. This should also work with multiple minibuffer > invokations during a command. Using `minibuffer-setup-hook' to save > `real-this-command' does not work, for example with: FWIW, `icicle-mode' puts this on `pre-command-hook': (defun icicle-top-level-prep () "Do top-level stuff. Used in `pre-command-hook'." (unless (> (minibuffer-depth) 0) ;; ... (unless (memq this-command=20 '(minibuffer-complete-and-exit icicle-minibuffer-complete-and-exit exit-minibuffer icicle-exit-minibuffer)) (setq icicle-last-top-level-command this-command)) ;; ... )) (defvar icicle-last-top-level-command nil "Last top-level command used.") From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 11 15:42:10 2020 Received: (at 45177) by debbugs.gnu.org; 11 Dec 2020 20:42:10 +0000 Received: from localhost ([127.0.0.1]:43434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knpEw-0001eG-A2 for submit@debbugs.gnu.org; Fri, 11 Dec 2020 15:42:10 -0500 Received: from quimby.gnus.org ([95.216.78.240]:38228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knpEt-0001e3-Uk for 45177@debbugs.gnu.org; Fri, 11 Dec 2020 15:42:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=SRW7BAZOm+lH1getk2QLSCp5xOFVugFxgOrlFSn1gVc=; b=Cf1Pk19Zh1IfziUMISC8S2nhjo +xgV43TvhdKwaNg+vxtQ86UjpwEkkuaiwwIVILQ/i3UvoYSJj7Oj+j4BfsRRIehBjr/iAlrNEHrOs aiLSGQ4smAnTRKG9pRZFSMfSY4TDONDxfdjJ+BeYJboyXYEMduf/e1J4az4T1GiNh6hA=; 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 1knpEl-0007zg-2k; Fri, 11 Dec 2020 21:42:01 +0100 From: Lars Ingebrigtsen To: clemera@posteo.net Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer References: X-Now-Playing: Twinkle3's _Minor Planets_: "Opik 2099" Date: Fri, 11 Dec 2020 21:41:58 +0100 In-Reply-To: (clemera@posteo.net's message of "Fri, 11 Dec 2020 15:20:34 +0100") Message-ID: <87czzg8489.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 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: clemera@posteo.net writes: > For command based settings it would be nice to be able to have > access to the top level command from which the current minibuffer > session was invoked from. This should also work with multiple min [...] 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: 45177 Cc: 45177@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 (-) clemera@posteo.net writes: > For command based settings it would be nice to be able to have > access to the top level command from which the current minibuffer > session was invoked from. This should also work with multiple minibuffer > invokations during a command. Using `minibuffer-setup-hook' to save > `real-this-command' does not work, for example with: > > ```elisp > (defun example-command () > (interactive) > (read-string "Example: ") > (message "%s" real-this-command)) > ``` > > `real-this-command' will be `exit-minibuffer' after the `read-string' > so any minibuffer invokation within that command afterwards will no > longer know about `example-command'. Hm... I'm not quite sure "the top level command" is a well-defined concept? You can enter a number of nested recursive edits, and I think what you probably want is the innermost command that invoked a recursive edit? So perhaps it would make sense for Frecursive_edit (or some other handy function when entering the minibuffer) to let-bind a new variable (say, `this-recursive-command'?) to the value of `real-this-command'? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 08:28:19 2020 Received: (at 45177) by debbugs.gnu.org; 12 Dec 2020 13:28:19 +0000 Received: from localhost ([127.0.0.1]:44190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko4wd-0001IY-EK for submit@debbugs.gnu.org; Sat, 12 Dec 2020 08:28:19 -0500 Received: from mout01.posteo.de ([185.67.36.65]:59558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko4wc-0001Hp-2j for 45177@debbugs.gnu.org; Sat, 12 Dec 2020 08:28:18 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4C057160060 for <45177@debbugs.gnu.org>; Sat, 12 Dec 2020 14:28:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1607779691; bh=MWmrUnb5zhABmgbTjcaXUPefiLd/6AjhupdlOFcK8rY=; h=Subject:To:From:Date:From; b=EJ4KdTQoDsSex5xj8IouNfChxiOZaIbmfr0NKW6UjPMi4yx+u/ozZWY3ji04iFXXk wz5xAL8d3b4L/bv9BnyfVzoclLLNCN6TNsCv7n1bmMm/8lQMXJvx2OJo4DnmLOEB9F OfKEi1a2M2H/jY3aqX4YwlRql3y1xQC1BiVkeGoWbPHkd/F5aSyHj8f68PgajAx6/J x6c6c8bK/Zvj3fX9OG2/Fj1EnTmGZpep1Gpgs0TRrTATCICFLDTdoyDHbqm8ufYKZz mOg9xa0EIk70zMnmcM4fGjgfeuY4NK3/S/e0NYRKZykRcEY3Syn54xMWlifyerbDzS z8wizcJl/Evcg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CtT4B5czSz9rxb; Sat, 12 Dec 2020 14:28:10 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Drew Adams , 45177@debbugs.gnu.org References: <51001427-d881-479e-af82-a4590d183823@default> From: Clemens Message-ID: <56e39777-54ee-09d9-2b78-8bb49ee49d11@posteo.de> Date: Sat, 12 Dec 2020 14:28:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <51001427-d881-479e-af82-a4590d183823@default> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 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 (---) > (defun icicle-top-level-prep () > "Do top-level stuff. Used in `pre-command-hook'." > (unless (> (minibuffer-depth) 0) > ;; ... > (unless (memq this-command > '(minibuffer-complete-and-exit > icicle-minibuffer-complete-and-exit > exit-minibuffer > icicle-exit-minibuffer)) > (setq icicle-last-top-level-command this-command)) > ;; ... > )) > > (defvar icicle-last-top-level-command nil > "Last top-level command used.") > Thanks Drew! Looks like a nice workaround! From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 08:31:16 2020 Received: (at 45177) by debbugs.gnu.org; 12 Dec 2020 13:31:16 +0000 Received: from localhost ([127.0.0.1]:44193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko4zT-0002dW-QP for submit@debbugs.gnu.org; Sat, 12 Dec 2020 08:31:16 -0500 Received: from mout01.posteo.de ([185.67.36.65]:60544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko4zS-0002XR-Eb for 45177@debbugs.gnu.org; Sat, 12 Dec 2020 08:31:15 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B7A9D160064 for <45177@debbugs.gnu.org>; Sat, 12 Dec 2020 14:31:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607779868; bh=9VkiZbSxjgI9exJQcdWeNxAK8IGIGtvzZhgxCmAUxYo=; h=Subject:To:Cc:From:Date:From; b=hP1yl1Y3uj7ENvU1kqJPXGaF4d9qq5ZfIKDDBSC+Ht8BMsLx3DbcuzUfhNGHuoD9a iK0TuODE2ci7A5irs+B+Ks+HOTYz6aKePN29yyfFk+pT9z0cn6fbqYMjFxY5QhyIOt 58gnoLAZYbB1FTIPZ1vVpZLXJg6WvQeq5GiXzGqIle+gJbvEPsF5t3XtEp7aZl+PkW hSlP3itNf8NgI6XV6Om1K5UixHSuOhUo6I29YfADDalrxo0hzTxipFD/5eG6y65R6d z21tFYVSUQzOewlIMJDeuppDVvfRm44BtP3zG6NCwQXtSz1o9wPZO78s61w/Ejm6zd ftnFuhjTsW2Wg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CtT7b69JHz9rxf; Sat, 12 Dec 2020 14:31:07 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Lars Ingebrigtsen References: <87czzg8489.fsf@gnus.org> From: clemera@posteo.net Message-ID: <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> Date: Sat, 12 Dec 2020 14:31:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87czzg8489.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@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: -3.3 (---) > Hm... I'm not quite sure "the top level command" is a well-defined > concept? You can enter a number of nested recursive edits, and I think > what you probably want is the innermost command that invoked a recursive > edit? Yes, that would be ideal. > So perhaps it would make sense for Frecursive_edit (or some other handy > function when entering the minibuffer) to let-bind a new variable (say, > `this-recursive-command'?) to the value of `real-this-command'? I don't know anything about the C side of Emacs so I can't be of any help here. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 08:39:57 2020 Received: (at 45177) by debbugs.gnu.org; 12 Dec 2020 13:39:57 +0000 Received: from localhost ([127.0.0.1]:44201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko57s-0004LO-U9 for submit@debbugs.gnu.org; Sat, 12 Dec 2020 08:39:57 -0500 Received: from mout01.posteo.de ([185.67.36.65]:52244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko57r-0004Kg-3Q for 45177@debbugs.gnu.org; Sat, 12 Dec 2020 08:39:55 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id ED4E3160062 for <45177@debbugs.gnu.org>; Sat, 12 Dec 2020 14:39:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607780389; bh=ZlwTOVe9Iu43lINrNM+GuKeLWjwUkBS41jX+Dc2gOOg=; h=Subject:To:From:Date:From; b=fuTnt2kCNUmGJJlT9eqq8cle/4Es6AhGcOj4/llOHYs02xbC8WD0AiOq5qggq58uy /JTQFDruGdh6EDVK8RxocAATpXfhBcpyLJQXxHz9yDqIcFgTD0i1q9PlUYFxv9/571 CtO1n0XU15LqXa96Q3FJKmMo49ZrXmjFLaG18NKEUjOboIa9CPelpwO+MknGm2Xz8X v8bz0pWb6tSRGoFKriXfln7gWQ+e77lp/L7LEiCPgG9mv0gdccymwV/w6Kllzgim3L cI2O4oIcQl7vT8nFV3fjn6wbcWWpUMZ0fFfwIn2uReMoDLUVNyq3FMfPvLkvtO00Xn cw7gOHtTEGArQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CtTKc2VR1z9rxP; Sat, 12 Dec 2020 14:39:48 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Drew Adams , clemera@posteo.net, 45177@debbugs.gnu.org References: <51001427-d881-479e-af82-a4590d183823@default> From: clemera@posteo.net Message-ID: Date: Sat, 12 Dec 2020 14:39:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <51001427-d881-479e-af82-a4590d183823@default> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 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 (---) > (defun icicle-top-level-prep () > "Do top-level stuff. Used in `pre-command-hook'." > (unless (> (minibuffer-depth) 0) > ;; ... > (unless (memq this-command > '(minibuffer-complete-and-exit > icicle-minibuffer-complete-and-exit > exit-minibuffer > icicle-exit-minibuffer)) > (setq icicle-last-top-level-command this-command)) > ;; ... > )) > > (defvar icicle-last-top-level-command nil > "Last top-level command used.") Note that ideally I'm looking for something which allows me to get the "innermost command that invoked a recursive edit" as Lars described it. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 16:08:35 2020 Received: (at 45177) by debbugs.gnu.org; 12 Dec 2020 21:08:35 +0000 Received: from localhost ([127.0.0.1]:46908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koC83-0004tz-2o for submit@debbugs.gnu.org; Sat, 12 Dec 2020 16:08:35 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:46195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koC80-0004tj-Rc for 45177@debbugs.gnu.org; Sat, 12 Dec 2020 16:08:33 -0500 X-Originating-IP: 91.129.99.98 Received: from mail.gandi.net (m91-129-99-98.cust.tele2.ee [91.129.99.98]) (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 06084E0004; Sat, 12 Dec 2020 21:08:25 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer Organization: LINKOV.NET References: <87czzg8489.fsf@gnus.org> Date: Sat, 12 Dec 2020 22:14:48 +0200 In-Reply-To: <87czzg8489.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 11 Dec 2020 21:41:58 +0100") Message-ID: <87zh2i94vr.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: 45177 Cc: 45177@debbugs.gnu.org, clemera@posteo.net 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 (-) >> For command based settings it would be nice to be able to have >> access to the top level command from which the current minibuffer >> session was invoked from. This should also work with multiple minibuffer >> invokations during a command. Using `minibuffer-setup-hook' to save >> `real-this-command' does not work, for example with: >> >> ```elisp >> (defun example-command () >> (interactive) >> (read-string "Example: ") >> (message "%s" real-this-command)) >> ``` >> >> `real-this-command' will be `exit-minibuffer' after the `read-string' >> so any minibuffer invokation within that command afterwards will no >> longer know about `example-command'. > > Hm... I'm not quite sure "the top level command" is a well-defined > concept? You can enter a number of nested recursive edits, and I think > what you probably want is the innermost command that invoked a recursive > edit? > > So perhaps it would make sense for Frecursive_edit (or some other handy > function when entering the minibuffer) to let-bind a new variable (say, > `this-recursive-command'?) to the value of `real-this-command'? Or set a (mini)buffer-local variable in minibuffer-setup-hook. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 16:26:00 2020 Received: (at 45177) by debbugs.gnu.org; 12 Dec 2020 21:26:00 +0000 Received: from localhost ([127.0.0.1]:46958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koCOt-0007Rp-Ug for submit@debbugs.gnu.org; Sat, 12 Dec 2020 16:26:00 -0500 Received: from mout01.posteo.de ([185.67.36.65]:45293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koCOr-0007RO-2X for 45177@debbugs.gnu.org; Sat, 12 Dec 2020 16:25:58 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8338016005F for <45177@debbugs.gnu.org>; Sat, 12 Dec 2020 22:25:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607808350; bh=MZWsMQWxIeY3eptGnZr1yqiVAwF6Q947JhGUcdR39YM=; h=Subject:To:Cc:From:Date:From; b=Z6RlNrl4TvDZEY74IEV4QRRsLOk78zsRqYgIbP3a/7C+TqvhIfj7L/fYY7ug2hLOm d2Nb14qGFpqSQ8Pz6uJlIVyJNZS8rnpio5A1lIatbPV9tSxg6JZlf+j0uv2IY3oSQL 4y/IAxWWyvlaCwEGLH9veaxYOHPMgNixjXM85LwJbgRnHa1KH7wEMA/iB4p44NizW9 9zptUh7AJp0uCxw96H6qblBZWBjiUJGnbWtMSOtYKxPJSoLCpmSfEzgx1jhY5zGBIk MLiKQWNX0W+9jXiT9ZBJa5bCkkf+ocLGUxlq2rI3wSBykOYgzlzeU1ULxfSMxNekpP yhNYLFFHtk31w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CtggK5yCrz6tmL; Sat, 12 Dec 2020 22:25:49 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Juri Linkov , Lars Ingebrigtsen References: <87czzg8489.fsf@gnus.org> <87zh2i94vr.fsf@mail.linkov.net> From: clemera@posteo.net Message-ID: Date: Sat, 12 Dec 2020 22:25:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87zh2i94vr.fsf@mail.linkov.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@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: -3.3 (---) > Or set a (mini)buffer-local variable in minibuffer-setup-hook. But wouldn't this still have the problem that multiple minibuffer invocations in the same command would change real-this-command as in my initial example? From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 03:51:40 2020 Received: (at 45177) by debbugs.gnu.org; 13 Dec 2020 08:51:40 +0000 Received: from localhost ([127.0.0.1]:47397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koN6S-0002il-Js for submit@debbugs.gnu.org; Sun, 13 Dec 2020 03:51:40 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:33777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koN6Q-0002iG-UK for 45177@debbugs.gnu.org; Sun, 13 Dec 2020 03:51:39 -0500 X-Originating-IP: 91.129.99.98 Received: from mail.gandi.net (m91-129-99-98.cust.tele2.ee [91.129.99.98]) (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 663CE240004; Sun, 13 Dec 2020 08:51:30 +0000 (UTC) From: Juri Linkov To: clemera@posteo.net Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer Organization: LINKOV.NET References: <87czzg8489.fsf@gnus.org> <87zh2i94vr.fsf@mail.linkov.net> Date: Sun, 13 Dec 2020 10:47:41 +0200 In-Reply-To: (clemera@posteo.net's message of "Sat, 12 Dec 2020 22:25:49 +0100") Message-ID: <87czzeozwy.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: 45177 Cc: Lars Ingebrigtsen , 45177@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.7 (-) >> Or set a (mini)buffer-local variable in minibuffer-setup-hook. > > But wouldn't this still have the problem that multiple minibuffer > invocations in the same command would change real-this-command as in my > initial example? This is not a problem because multiple minibuffer invocations create separate buffers with different names # # # ... From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 06:40:28 2020 Received: (at 45177) by debbugs.gnu.org; 13 Dec 2020 11:40:28 +0000 Received: from localhost ([127.0.0.1]:47563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koPjo-0004Vd-Bs for submit@debbugs.gnu.org; Sun, 13 Dec 2020 06:40:28 -0500 Received: from mout02.posteo.de ([185.67.36.66]:38841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koPjm-0004V1-Ff for 45177@debbugs.gnu.org; Sun, 13 Dec 2020 06:40:27 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 11CF72400FC for <45177@debbugs.gnu.org>; Sun, 13 Dec 2020 12:40:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607859620; bh=4WU3tJIrd5yaeZjNY2Qhj4jXp3F275DyJ8t+9Nj6cTA=; h=Subject:To:Cc:From:Date:From; b=cGFXoT9I9tradh0P8AYmu2bBu4vP1CXri3L6HHdFa35g5MJwOcZILYvLHF+HZp7Xr XwwD+6x+0IiRQ8jAY6Nti44whM5TZxBl1+PADosM4/g3iUNA53AdIUagO/+6X9BZZL MiYyaYUAjzhdTy2jAAImpGMlfIfBFxE8lcYzuCX8FT/jGv1KrfFU0GnY/ew2eptbeQ dG1fGINpq+DUow28+WseisgzB0tEBEPbSf/Er72SnwOHI1T9CbJDiXm60l5Dqzk4jA fQ2jo15yJ0/ThHP+5vDHeq4XV4hObkOuWUtDeeoEdKgw3+Vxuv+HSiueO06RBH+jzU qdpI58HddEO5w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Cv2dH2spgz9rxQ; Sun, 13 Dec 2020 12:40:19 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Juri Linkov References: <87czzg8489.fsf@gnus.org> <87zh2i94vr.fsf@mail.linkov.net> <87czzeozwy.fsf@mail.linkov.net> From: clemera@posteo.net Message-ID: Date: Sun, 13 Dec 2020 12:40:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87czzeozwy.fsf@mail.linkov.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: Lars Ingebrigtsen , 45177@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: -3.3 (---) >> But wouldn't this still have the problem that multiple minibuffer >> invocations in the same command would change real-this-command as in my >> initial example? > > This is not a problem because multiple minibuffer invocations > create separate buffers with different names > > # > # > # > ... I meant sequential invocation the local variables are gone when you exit a session (a nice feature that we also rely on in Selectrum): ```elisp (defvar saved-command nil) (defun save-command () (message "Before: %s" saved-command) (setq-local saved-command real-this-command) (message "After: %s" saved-command)) (defun example-command () (interactive) (read-string "Example1 : ") (read-string "Example2 : ")) ``` Calling example-command above gives : Before: nil After: example-command Before: nil After: exit-minibuffer From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 06:45:39 2020 Received: (at 45177) by debbugs.gnu.org; 13 Dec 2020 11:45:39 +0000 Received: from localhost ([127.0.0.1]:47567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koPop-0004sP-0b for submit@debbugs.gnu.org; Sun, 13 Dec 2020 06:45:39 -0500 Received: from mout01.posteo.de ([185.67.36.65]:57485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koPom-0004rt-Rf for 45177@debbugs.gnu.org; Sun, 13 Dec 2020 06:45:37 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8CE47160060 for <45177@debbugs.gnu.org>; Sun, 13 Dec 2020 12:45:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607859930; bh=UyPzuZnqFnG1GxXrL9zt7zTv74odpLEB96sDO6dL1nc=; h=Subject:To:Cc:From:Date:From; b=mBgH0nA5ds6dMob2//jeMn+OdLXHJWggMBlyvKPw451w9ALO0ns+KOiyaXfd4cz5v bCcdr8L7P2sAeSF75LwERDwKLwian2wiZNMiWo9c8nHjjm9e1ZPUzPb8TB3NFaIKT+ GFCRvWlzbaIHs5enBJ28Dq+lIXUFsuFdWuOGOS8EWSo/aZMEhmn232Q4614o7+mloI 2y1ZbNCN80pthOOg6Sh4ywZlAfKEv9I/ifRfYnhA9AzoXI82j3iy5aCs0PsVUdob8r +MveBHGUsJcUgaSYLaSqBE8WfG+vGRjf9Pn4X3DJtSCvjk1vlI/oY/Ep2ZvLS7sKmq TKhxXYglrs77w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Cv2lF2JkYz9rxQ; Sun, 13 Dec 2020 12:45:29 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Juri Linkov References: <87czzg8489.fsf@gnus.org> <87zh2i94vr.fsf@mail.linkov.net> <87czzeozwy.fsf@mail.linkov.net> From: clemera@posteo.net Message-ID: <09102813-8ec9-cbf0-2399-315e5503f694@posteo.de> Date: Sun, 13 Dec 2020 12:45:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87czzeozwy.fsf@mail.linkov.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: Lars Ingebrigtsen , 45177@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: -3.3 (---) I forgot to include the setup hook in my code example, here is the full version: ```elisp (defvar saved-command nil) (defun save-command () (message "Before: %s" saved-command) (setq-local saved-command real-this-command) (message "After: %s" saved-command)) (defun example-command () (interactive) (read-string "Example1 : ") (read-string "Example2 : ")) (add-hook 'minibuffer-setup-hook #'save-command) ``` Calling example-command above gives : Before: nil After: example-command Before: nil After: exit-minibuffer From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 07:29:21 2020 Received: (at 45177) by debbugs.gnu.org; 13 Dec 2020 12:29:21 +0000 Received: from localhost ([127.0.0.1]:47598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koQV7-0001Er-Kg for submit@debbugs.gnu.org; Sun, 13 Dec 2020 07:29:21 -0500 Received: from quimby.gnus.org ([95.216.78.240]:57910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koQV5-0001EG-Ce for 45177@debbugs.gnu.org; Sun, 13 Dec 2020 07:29:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=FCRD7gB0lrBgO4Z9QgEulwmA+ZkjyDKj+nXMZRtRpAE=; b=b5k8tzohJJAp9aYTL5S/9mAZmv CczL8sZFELXl1vSVBILMhAMwexChnYRPpz9CM2+GBBjzrfKcf3pND0tXtNGq1vE4BbwX7K7LpPWbe kJ0KftUpL3W9tsdrXUjv6Qorf4uvwoVBeK3LEwTYDzigfpfEnYCKk/XE0v9jGMoRFCHM=; 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 1koQUv-0004f7-8t; Sun, 13 Dec 2020 13:29:12 +0100 From: Lars Ingebrigtsen To: clemera@posteo.net Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEUnKjFIWW55hYZX Ym+RmZyMd4beO1DQtL/MydHqHjSzucl8quv////g3T9KAAAAAWJLR0QMgbNRYwAAAAd0SU1FB+QM DQwbKg0MPcAAAAGjSURBVDjLbdFLbsIwEAZgrmDcCxBygcSpVHVpoqrqtmXBvg2EA5DQAxCLAwR5 XzXWdN37dfyIY1MGCYb5/DtOMpvN5nmSJEv9tSCJrxmC/5OR+U1YEkJuQoaQ3wAdIBSblPMyBB3Q kbTUZUA3nJs5obwc4c4uWVgg6QSm4ZmD+RWsCIkiHjIPRQRTgNAIpoDbywEP5vbyDhYZu4pY4Czc ihYeVixMUOaBZZSxac4KBytmyozZfVW95g7sPNMPPW27ppYfqQFul+MUoGla0aEYWOBilrzAGWBo jMj+Tb8PyvJSCSFAB7CEONbvCJRmz8LOh62R5tRXCAUr9Bw3+tlIU31V9QgPehsT+JVj1VsNnQvA xoNsDeyVHsPTNL8IDeKwv5rL1kInq/W6kmFA2IsfZVy7EU7xvBcW8Ke+DrhEHNGBEaLIdgIQhyDQ ejiD6qKzjoB3p6YTtxFAFwcMAOCzVZsoYEGps1LuxD1eUAilEB71Tkq5E++ww1OKEbC+bUAoUBEM Q20C5tVAmAC8yf4TZ/gBFQKeeDv2EAIcbeA/fF18C38TwJZnmmD7qQAAACV0RVh0ZGF0ZTpjcmVh dGUAMjAyMC0xMi0xM1QxMjoyNzo0MiswMDowMOcXzaIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAt MTItMTNUMTI6Mjc6NDErMDA6MDCnom+DAAAAAElFTkSuQmCC X-Now-Playing: Colleen's _A Flame My Love, A Frequency_: "Separating" Date: Sun, 13 Dec 2020 13:29:06 +0100 In-Reply-To: <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> (clemera@posteo.net's message of "Sat, 12 Dec 2020 14:31:07 +0100") Message-ID: <87mtyh6ga5.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 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: clemera@posteo.net writes: > I don't know anything about the C side of Emacs so I can't be of any > help here. I'm not quite sure where to bind the variable... Does the following work for you? 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: 45177 Cc: 45177@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 (-) clemera@posteo.net writes: > I don't know anything about the C side of Emacs so I can't be of any > help here. I'm not quite sure where to bind the variable... Does the following work for you? diff --git a/src/callint.c b/src/callint.c index f80436f3d9..a01338dfe1 100644 --- a/src/callint.c +++ b/src/callint.c @@ -283,6 +283,8 @@ DEFUN ("call-interactively", Fcall_interactively, Scall_interactively, 1, 3, 0, Lisp_Object save_real_this_command = Vreal_this_command; Lisp_Object save_last_command = KVAR (current_kboard, Vlast_command); + specbind (Qrecursive_this_command, Vreal_this_command); + if (NILP (keys)) keys = this_command_keys, key_count = this_command_key_count; else diff --git a/src/keyboard.c b/src/keyboard.c index dbca5be91e..ce2b7f1ef4 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -11830,6 +11830,11 @@ syms_of_keyboard (void) doc: /* This is like `this-command', except that commands should never modify it. */); Vreal_this_command = Qnil; + DEFSYM (Qrecursive_this_command, "recursive-this-command"); + DEFVAR_LISP ("recursive-this-command", Vrecursive_this_command, + doc: /* This is like `real-this-command', but bound recursively in `call-interactively. */); + Vrecursive_this_command = Qnil; + DEFVAR_LISP ("this-command-keys-shift-translated", Vthis_command_keys_shift_translated, doc: /* Non-nil if the key sequence activating this command was shift-translated. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 08:29:11 2020 Received: (at 45177) by debbugs.gnu.org; 13 Dec 2020 13:29:11 +0000 Received: from localhost ([127.0.0.1]:47757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRR0-0000JO-UW for submit@debbugs.gnu.org; Sun, 13 Dec 2020 08:29:11 -0500 Received: from mout02.posteo.de ([185.67.36.66]:56807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRQy-0000It-TI for 45177@debbugs.gnu.org; Sun, 13 Dec 2020 08:29:09 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id BE4B12400FE for <45177@debbugs.gnu.org>; Sun, 13 Dec 2020 14:29:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607866142; bh=52JaJ+hgR1KoTkCXZ7qIJoBQAebKnTLjmHo6YmrZWAQ=; h=Subject:To:Cc:From:Date:From; b=OGvhQUyniVitV3/9w4P6QWyzsswMIanznijqH12mW2sCA1jFekMT5y5MqMPEOs9bU m2oG42QopPVx0GDsL1hwSfVuJs92WoQY9gNsDAjixFHTzFYdtHQ8gaFZK1PgJfJ1KM h4rn5BpIOMoxVeZHo+//5sxN9ZxMZlHnVa/1DQ1IIjS3eBiCmm7udrqWbN5Wx19e8V VoALvqSW+aBzonNdC5C2SHigwSoeONbfvpNct83ecKpM17O+m+lH/IlKG/mT9NQXCE vAgS+mBYyjGgBbpNhDKlzKcJffYDEbJ+3AwDvpu+rmko8Hz/bEPX5uO0a78aJrxsDc F9sZd+5fySyMw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Cv52k1nW4z6tmR; Sun, 13 Dec 2020 14:29:02 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Lars Ingebrigtsen References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> From: clemera@posteo.net Message-ID: Date: Sun, 13 Dec 2020 14:29:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87mtyh6ga5.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@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: -3.3 (---) > I'm not quite sure where to bind the variable... Does the following > work for you? > > diff --git a/src/callint.c b/src/callint.c > index f80436f3d9..a01338dfe1 100644 > --- a/src/callint.c > +++ b/src/callint.c > @@ -283,6 +283,8 @@ DEFUN ("call-interactively", Fcall_interactively, Scall_interactively, 1, 3, 0, > Lisp_Object save_real_this_command = Vreal_this_command; > Lisp_Object save_last_command = KVAR (current_kboard, Vlast_command); > > + specbind (Qrecursive_this_command, Vreal_this_command); > + > if (NILP (keys)) > keys = this_command_keys, key_count = this_command_key_count; > else > diff --git a/src/keyboard.c b/src/keyboard.c > index dbca5be91e..ce2b7f1ef4 100644 > --- a/src/keyboard.c > +++ b/src/keyboard.c > @@ -11830,6 +11830,11 @@ syms_of_keyboard (void) > doc: /* This is like `this-command', except that commands should never modify it. */); > Vreal_this_command = Qnil; > > + DEFSYM (Qrecursive_this_command, "recursive-this-command"); > + DEFVAR_LISP ("recursive-this-command", Vrecursive_this_command, > + doc: /* This is like `real-this-command', but bound recursively in `call-interactively. */); > + Vrecursive_this_command = Qnil; > + > DEFVAR_LISP ("this-command-keys-shift-translated", > Vthis_command_keys_shift_translated, > doc: /* Non-nil if the key sequence activating this command was shift-translated. > Thank you! I recompiled Emacs with this and tested with various nested sequential and recursive calls and this correctly reports the top level command the current minibuffer session was entered from, which is exactly what we are looking for :) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 08:39:35 2020 Received: (at 45177) by debbugs.gnu.org; 13 Dec 2020 13:39:35 +0000 Received: from localhost ([127.0.0.1]:47768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRb5-0000su-7P for submit@debbugs.gnu.org; Sun, 13 Dec 2020 08:39:35 -0500 Received: from mout02.posteo.de ([185.67.36.66]:39665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRb4-0000sW-3M for 45177@debbugs.gnu.org; Sun, 13 Dec 2020 08:39:34 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2737A2400FD for <45177@debbugs.gnu.org>; Sun, 13 Dec 2020 14:39:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607866768; bh=c1GsXTh88TqxSLn6V6OUhB5Woq7WUvhY1O0d1EpYsQ8=; h=Subject:To:Cc:From:Date:From; b=oUfPXnJgDaLl6sFOu7GcQAuwMlVVVBT8CvFCcs6yWwWks+uBJGWyhUla63ivLzC2i cCRfEoVUVuZ5lmPIe5wfjp4yU5hlhlHo/oF3TzgdTYHovkp7Xy5Qpz0TT3NrJsFoUb vlQgd6ReR0XqJw7hIMwSm0Yzre2OqNa+inDQ2QBhs52aVRcsKKk+DlhuXlguzYjb43 h07jE1VbUkqkqetYmoOJpvwt4Gb38woCFq7jlIt3A98dv0iW8BzqVJ5gx6txxrTXHh bxBtRE63Z0/ZNcvcl8OGSATtaT+98KENMA71oM6DOABt5U/HCwkIF6r3aDvKrNTqQ6 l8R/yATU7dSQA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Cv5Gl3nvfz9rxP; Sun, 13 Dec 2020 14:39:27 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Lars Ingebrigtsen References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> From: clemera@posteo.net Message-ID: <3419e50e-eadd-76e2-5fa0-fd381e383251@posteo.de> Date: Sun, 13 Dec 2020 14:39:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87mtyh6ga5.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@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: -3.3 (---) > the top level command the current minibuffer session was entered from I rather meant the command that was current when entering the current minibuffer session. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 09:16:13 2020 Received: (at 45177) by debbugs.gnu.org; 13 Dec 2020 14:16:13 +0000 Received: from localhost ([127.0.0.1]:47808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koSAX-0004Iy-Iw for submit@debbugs.gnu.org; Sun, 13 Dec 2020 09:16:13 -0500 Received: from mout02.posteo.de ([185.67.36.66]:54639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koSAV-0004If-8J for 45177@debbugs.gnu.org; Sun, 13 Dec 2020 09:16:12 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 034652400FF for <45177@debbugs.gnu.org>; Sun, 13 Dec 2020 15:16:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607868965; bh=0DShur8Mn99CDLVMAqzsuLA7Yl3uidq04nuN1hqDT48=; h=Subject:To:Cc:From:Date:From; b=LQbNnmpA1z/+M9u1bsMD8z+U+EhmstgeuvJoo/aBU8rrZwubkkyt8vu4z7gnuCSaA 09AtK5vraIvpI8UXmIFqAkiMxHfY21xqHgnSrT4hvVMFJrUojnxxggfxVfum6uYVlP 7GhjtB7xZ5vfVRm56NjDoYTy4rlQIaH4joknBqLqYzWp8NxbmdMoDd9Edu18yYThR1 AFlhAn4X3RnLPefK+HOE2UClZBR7m0SkKdV2mD04HQG6EV87IZH4hH2PvXFe93TW4b zI/udYkSHjWw54X0unxCckUdKz+9JaQCw7twjR7BxNDQJlPh8aD3y+PEudEZRNIPor 5vMkziDPPikPw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Cv6504Jt8z9rxN; Sun, 13 Dec 2020 15:16:04 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Lars Ingebrigtsen References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> From: clemera@posteo.net Message-ID: <377c1b01-0990-669e-9cc2-1e18a4508e93@posteo.de> Date: Sun, 13 Dec 2020 15:16:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87mtyh6ga5.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@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: -3.3 (---) If you are going to include something like this would it make sense to have an `real-recursive-this-command` and `recursive-this-command`? From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 10:45:27 2020 Received: (at 45177) by debbugs.gnu.org; 14 Dec 2020 15:45:28 +0000 Received: from localhost ([127.0.0.1]:53857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koq2R-0003pL-Hq for submit@debbugs.gnu.org; Mon, 14 Dec 2020 10:45:27 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koq2Q-0003i0-4V for 45177@debbugs.gnu.org; Mon, 14 Dec 2020 10:45:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=hxSNrzDxJbasTTARlA3UOLRoJJL4UX0h2ExAYEQgw4I=; b=eoGjUDQH9vPwdQIUW3yqh0obWE WXfLoqNHUjaQnpg98xvUtcn1TGbb3toR7oRnDbV/XAYMVebAjzkn3gJipjBNiPTh97StcOIqDZBZ7 ZiC+LSgomCcswlhT5UIQvNqHNr4KQ7Db7Jnd3b//rfA2e113BoFv0GGsi/8ZWpLZy3Tw=; 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 1koq2D-0003r9-Vp; Mon, 14 Dec 2020 16:45:19 +0100 From: Lars Ingebrigtsen To: clemera@posteo.net Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVPcZAhOVFtjauf t87X5fD///9yaa3UAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QMDg8sCFiYzacAAAGdSURBVDjLbZTR ecMgDIQFzgDQdAAsMkCKPEFg/5l6EmDjflVeYn6fhA5hokAz4hrkAjHzPwDBFj79Bb4D7iCcqYjz DbipCCxlAZTcTMUiWBbZbcFLAdGtQiFSygSbSOp7UoVFB1mUkAfIKwj6r/RcE7iRyYD1IUfTJ2eC 1uoK6gDfDYFdWg0vcoKjdSKC9ZQ72CM9bV2fDHAvssf0aidRb3024L5KO6OatwB4KW35Ao0SCIqA JDluAD8Dmu0GnDrad8mtvacKtd0EVbCr5wkyqo7XPgEeLKD4Ad7xedXAaRQaVfcVwBBJaERFP/Fx ATX3DR87OG5AqibUVGHpIwabEgXVPVYQsbHSAb1uwKaaFSR/AzoRrGdSU2BeAC6C70V0CLalRj9e gI8e+6ijF8d7PZF6dPCYfZDaZeMEb9ZUwWcZQHzMa4N9RhXkxZIT2JitfRDPqdZLcqyKeUFKstG3 UzbFlDCjqSlHH56HRuciTDl1DzMPED1fYH4BAEyPe1/EvEqG8Oxo44woJSuA8X4Ad6rHJ8fSJXJx fHIS/wI1yLQaHchSrwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0xMi0xNFQxNTo0NDowOCswMDow MEQlE3sAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMTItMTRUMTU6NDQ6MDgrMDA6MDA1eKvHAAAA AElFTkSuQmCC X-Now-Playing: Laurie Freelove's _Songs From The Nineline_: "Broken" Date: Mon, 14 Dec 2020 16:45:06 +0100 In-Reply-To: (clemera@posteo.net's message of "Sun, 13 Dec 2020 14:29:01 +0100") Message-ID: <8736082xz1.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 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: clemera@posteo.net writes: > Thank you! I recompiled Emacs with this and tested with various nested > sequential and recursive calls and this correctly reports the top > level command the current minibuffer session was entered [...] 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: 45177 Cc: 45177@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 (-) clemera@posteo.net writes: > Thank you! I recompiled Emacs with this and tested with various nested > sequential and recursive calls and this correctly reports the top > level command the current minibuffer session was entered from, which > is exactly what we are looking for :) Thanks for testing -- I've now pushed this to Emacs 28, but I renamed the variable to `current-minibuffer-command'. (And if somebody wants to rename that, please go ahead.) With that, I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 10:45:38 2020 Received: (at control) by debbugs.gnu.org; 14 Dec 2020 15:45:38 +0000 Received: from localhost ([127.0.0.1]:53860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koq2b-00040g-V3 for submit@debbugs.gnu.org; Mon, 14 Dec 2020 10:45:38 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koq2Z-0003sn-M4 for control@debbugs.gnu.org; Mon, 14 Dec 2020 10:45:36 -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=YDi+DAHQeIPibaI7sHvYv11KL0lzCgaP2cWzLS3ZCIs=; b=hRnzZ7X0xy288gKlPUMa5abfbK XTVJ59jKFiU4Vx6u6M8KVfy5wCNpVu0/ezdrxnyJiXCeKMnsFE0Va9PIN5nr3bw8ZJgnG4Pm1q8B5 yY8L9JYSv5G0TszZZ3wt0ZxRe21YGz49Ts3xNC2XySmGVWSLrSWXE2Z0el272I9PKsMU=; 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 1koq2R-0003rQ-Ql for control@debbugs.gnu.org; Mon, 14 Dec 2020 16:45:29 +0100 Date: Mon, 14 Dec 2020 16:45:26 +0100 Message-Id: <871rfs2xyh.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45177 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: tags 45177 fixed close 45177 28.1 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 (-) tags 45177 fixed close 45177 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 12:52:19 2020 Received: (at 45177) by debbugs.gnu.org; 14 Dec 2020 17:52:19 +0000 Received: from localhost ([127.0.0.1]:54198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kos1D-0004rt-JA for submit@debbugs.gnu.org; Mon, 14 Dec 2020 12:52:19 -0500 Received: from mout01.posteo.de ([185.67.36.65]:38528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kos1B-0004rg-Hk for 45177@debbugs.gnu.org; Mon, 14 Dec 2020 12:52:18 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id C964316005F for <45177@debbugs.gnu.org>; Mon, 14 Dec 2020 18:52:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607968330; bh=1v1whxo3ZAXYsjkhUt9EI63x2fk1y+drR8FcNrvn8aA=; h=Subject:To:Cc:From:Date:From; b=IiZwx7BhR7Ko/ylForQpUoDvIPP4d1FLdmj9hSPE8jWUB2AiTKxs+en51VS3vW3Ck Av28vN2X/AV2xXCaVPRYG8OlTpI+yJxCiIE9HjGQ0NZe0+Dq6RiNcnBAzRGw5QxvyI 7o6PekkApLfHj1lqdc1jxtBCsIt8QsmhK5AcO/LHIk+My185YWkUev8pkFfM/9591e qozeg/CCTtXP3gumbDvQYnhzeZTq65ryNyd6n6zXNZ/bwy1yZFe/OhypeP741kzZtM szs0NDOZ0UVJmxgXMoYBAffOm/t7Bqlo7zWuF75j3i6NsvQi1UnkGhPU1NlUzxmtis ytd3kLAEx2EDA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Cvpqt0Ztlz6tmM; Mon, 14 Dec 2020 18:52:09 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Lars Ingebrigtsen References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> <8736082xz1.fsf@gnus.org> From: Clemens Message-ID: <868e159b-24f1-d1bc-7967-d10123efcbc3@posteo.net> Date: Mon, 14 Dec 2020 18:52:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <8736082xz1.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@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: -3.3 (---) > Thanks for testing -- I've now pushed this to Emacs 28, but I renamed > the variable to `current-minibuffer-command'. (And if somebody wants to > rename that, please go ahead.) Thank you very much! I also think it was a good decision to make it point to `this-command` that makes more sense after all. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 13:01:16 2020 Received: (at 45177) by debbugs.gnu.org; 14 Dec 2020 18:01:17 +0000 Received: from localhost ([127.0.0.1]:54243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kos9s-000586-Nh for submit@debbugs.gnu.org; Mon, 14 Dec 2020 13:01:16 -0500 Received: from mout01.posteo.de ([185.67.36.65]:46049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kos9r-00057s-1P for 45177@debbugs.gnu.org; Mon, 14 Dec 2020 13:01:15 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 0C26E160060 for <45177@debbugs.gnu.org>; Mon, 14 Dec 2020 19:01:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607968868; bh=Qwsm0NtAJmIz9MFEKlFfgPZZ7Bb0w6JNk1sI+5oTpYQ=; h=Subject:To:Cc:From:Date:From; b=ia0VML7Zri637xnongQfW+bfDYRNsj3bkIwmAtxC9lU/C80o6xiBnWqZdswXJraJX RzFmipTQXVzyr90lWG+9Onb6h3u0Gq/uwlq4gcUtDluUgCfP0K0Wkm/zYLDcCbQUWy sPfMIU4lQOrnlMMdEjbRnC64BzYHbyUk5MGP8K14jLRGgb+GXPkGMUN1Xf1htrc3qG 0t3q6mPm3AHNlo4xJRiu5duRtpHLWRsTXVSEhp+2jDKdBM5SwXTuAq7k6DCvhY5os/ smOV6LURhHx3/Lub/+TLwg8Nl91GyyraI+CmrZW9WgYdQITXq/TxMZhNvq6nZ5dkcK 1Mzb7MuJbYymw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Cvq2C32mWz6tm5; Mon, 14 Dec 2020 19:01:07 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Lars Ingebrigtsen References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> <8736082xz1.fsf@gnus.org> From: Clemens Message-ID: Date: Mon, 14 Dec 2020 19:01:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <8736082xz1.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@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: -3.3 (---) Oh I just noticed it still points to real-this-command right? I was mislead by the docs ;) My thought why `this-command` might have been a good idea was that people might want to call commands from Elisp like this (let ((this-command 'my-cmd)) (call-interactively 'my-cmd)) and then expect the configuration of the minibuffer applied by Selectrum to apply. To make this work with real-this-command they would need to bind that but it is discouraged I think? This is mostly a consideration about what might happen in user code later. From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 15 01:18:52 2020 Received: (at 45177) by debbugs.gnu.org; 15 Dec 2020 06:18:52 +0000 Received: from localhost ([127.0.0.1]:55106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kp3ff-0005Rr-S6 for submit@debbugs.gnu.org; Tue, 15 Dec 2020 01:18:52 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kp3fd-0005Rd-Us for 45177@debbugs.gnu.org; Tue, 15 Dec 2020 01:18:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=RcLoIwxMjfWuaXQwq5OM2BsuaHlwItqo3plofsgOoaI=; b=aa6bZafz3Jnt7oX8kKVIxvJzRd QJ18cDbbUzLBGqGpZN0z8ne8gg2QVFAXrtqw+RnClzIbxtMtjobSA6dO7qG9S7YDvTtUO5J0C2Ug4 Qd/tHyVI3M6rmz/trso9C0WusZZd18ES74dbYoSixzxHueaSQedsFNHam7UF+9DFZdM4=; 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 1kp3fU-0005lX-I1; Tue, 15 Dec 2020 07:18:43 +0100 From: Lars Ingebrigtsen To: Clemens Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> <8736082xz1.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUoM2RORmJXIyWS Rz0pFhcgFBQhK1n///8YXJYjAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+QMDwYSBz6Pl6EAAAG6SURB VDjLbZNNjtwgEIWZTa3jG0RlvI/MBUakyLqFwGtW3P8IeQXYxiPTalri49Ufr435+sWr3R2vzu3M f8y0/LoxiwLh3zMQ5mgVWPEDFNI9CwcW75hDPBVVtxD9Frck3oY0ADWQk+W0ZREFZQ6VxYcckCfk f6aR2vagJOccUs4HdUULJUrw1XWUObno9QHaEY3k53WsDxkEo6FIPZjiz+iDevKEYHIqbiBYZ7Bj blC0zqb6EaoHWR2HG5TeOVZ0zvEFmoBuEB6hOvDcAd2dd7DyujcFTWMfAGNXsCzLOavQinLe2iuH 6UMUgUl2z9uzD4yDG9hD/p7fPEdYQYGVq49WVYIL/qIme3Xex04Jdos7XIUavodAH4XgqGBZXcen olZ1it9t9gIPsU3HDQx5FgAPIHBJKcVUBUR6wOy5ARzh/qkIaEQVCfbB/TuUTQynw9R42jLnYPgW Inj0U5tvq/4gB3pTgU3hU2o71HIr4zKnuGILRx1LVWw9UsddFRMohAxemkxmYBQAWdQb8gyMKmzr /Amovi0F5XzjJyD8I8qyfOFDD1CpvIbC0MwrqPqHe0/+XtbPMFe+/2td6gjK62nSAAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIwLTEyLTE1VDA2OjE4OjA3KzAwOjAwV6szdwAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMC0xMi0xNVQwNjoxODowNyswMDowMCb2i8sAAAAASUVORK5CYII= X-Now-Playing: Anne Pigalle's _Everything Could Be So Perfect..._: "Why does it have to be this way..." Date: Tue, 15 Dec 2020 07:18:39 +0100 In-Reply-To: (Clemens's message of "Mon, 14 Dec 2020 19:01:06 +0100") Message-ID: <87mtyf1tj4.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 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: Clemens writes: > Oh I just noticed it still points to real-this-command right? I was > mislead by the docs ;) My thought why `this-command` might have been > a good idea was that people might want to call commands f [...] 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: 45177 Cc: 45177@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 (-) Clemens writes: > Oh I just noticed it still points to real-this-command right? I was > mislead by the docs ;) My thought why `this-command` might have been > a good idea was that people might want to call commands from Elisp like this > > (let ((this-command 'my-cmd)) > (call-interactively 'my-cmd)) > > and then expect the configuration of the minibuffer applied by > Selectrum to apply. To make this work with real-this-command they > would need to bind that but it is discouraged I think? This is mostly > a consideration about what might happen in user code later. Good catch; I meant to change it to this-command, but I forgot to change it in the actual binding. Fixed now. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 15 06:58:39 2020 Received: (at 45177) by debbugs.gnu.org; 15 Dec 2020 11:58:39 +0000 Received: from localhost ([127.0.0.1]:55802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kp8yV-00021w-7E for submit@debbugs.gnu.org; Tue, 15 Dec 2020 06:58:39 -0500 Received: from mout01.posteo.de ([185.67.36.65]:34346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kp8yS-00021e-Ml for 45177@debbugs.gnu.org; Tue, 15 Dec 2020 06:58:37 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 2527E16005F for <45177@debbugs.gnu.org>; Tue, 15 Dec 2020 12:58:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1608033510; bh=KpKgTNB8D9euusLVlYQuIZAnGPCVWmSIbmjV5rVRK0E=; h=Subject:To:Cc:From:Date:From; b=lpzQtKExNBO60k0VCPptBv/wIUtQEAy7ojfMtwulgvXY1M2jpPs2bf1v9uZWrKMfA XbGKQea1OIj+tK6CeNguqudBMOnFPcYuEWrOd6vS6x2ylWrGidnRKYEXUPsVYaYt3y vNFBfdRLR5Yl7gIOu0eNhDQDdWY5vYO+YlEIIvkoVv248yhKM8ckJ8ups8z8VgcRsz TcvyfoPpoO0jZVP7RGuH6nXctfWcRGn1hFDZUdwbB4cm8U1nNz+YVZUakavm6SdvNO ty8GVUTI+tjMtWjl5sH20OknWdgZvncwhDxmZ24QXW2F1SrTXLsIPOkP7HoyjvxFh1 7k3Ptdgj9nNQA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CwGxK2jw0z6tmP; Tue, 15 Dec 2020 12:58:29 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer To: Lars Ingebrigtsen References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> <8736082xz1.fsf@gnus.org> <87mtyf1tj4.fsf@gnus.org> From: Clemens Message-ID: <4718fee6-6d04-8b93-3f23-a592123532f9@posteo.net> Date: Tue, 15 Dec 2020 12:58:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87mtyf1tj4.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@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: -3.3 (---) > Good catch; I meant to change it to this-command, but I forgot to change > it in the actual binding. Fixed now. Thank you! From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 12 03:46:51 2021 Received: (at 45177) by debbugs.gnu.org; 12 Jan 2021 08:46:51 +0000 Received: from localhost ([127.0.0.1]:59193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzFKE-0003fX-Um for submit@debbugs.gnu.org; Tue, 12 Jan 2021 03:46:51 -0500 Received: from mout01.posteo.de ([185.67.36.65]:34336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzFKB-0003es-WE for 45177@debbugs.gnu.org; Tue, 12 Jan 2021 03:46:49 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 6EB21160063 for <45177@debbugs.gnu.org>; Tue, 12 Jan 2021 09:46:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1610441201; bh=OSVvqbtOWT85gBK0O2zC+Jw7L2tq/BtKN5kKHvad1AI=; h=Subject:From:To:Cc:Date:From; b=M82x2Hq4/bBdm/5LOg/rY8cU7vlBtqB1yDyzDVFIpw0yjhBovuDovqIrMxsGe9H2b q8HMRRhFdHkHPJcMY9YuoMlQxYD7NQc2yzBS40gAvAeDIDSNmLTcnBgjBEkrUwDuZt verz8gRQZ5smLyZ+41rWBxIkfD2sWIMdtiI3gdgK0kbjC/7FUFX1Tj2ahbZD/5z8Hr Hp25+UFxV+xAo0neBnJhvD5TELazE1Jqb8I4qZMKsLiu5AnC8WP5blolU/aFK5QwNX nTqz3QDajU4IM0vHcfF3yZ8zkO1p/LOuKtixwwt+kji1nGxrxokxkGLcsFx8yBzroM uIt5qqoEWXg9w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DFPM454vgz6tmc; Tue, 12 Jan 2021 09:46:40 +0100 (CET) Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer From: Clemens To: Lars Ingebrigtsen References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> <377c1b01-0990-669e-9cc2-1e18a4508e93@posteo.de> Message-ID: <408bda30-7089-877d-2294-b0b2d9389c69@posteo.net> Date: Tue, 12 Jan 2021 09:46:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <377c1b01-0990-669e-9cc2-1e18a4508e93@posteo.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@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: -3.3 (---) After some experiments, this isn't sufficient for our purposes. What we would really need is identifying the call which invokes the minibuffer session. Having access to the surrounding function call would help, in combination with the prompt text and in some cases completion table data this should work. I guess we need to use advice or would it be possible to expose the surrounding function call of the current minibuffer session? I think having the new variable is still an improvement as one just hadn't access to this sate before and it can be used for other purposes as minibuffer session configuration, too. From unknown Sun Jul 27 08:51:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Feb 2021 12:24:11 +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 From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 01 18:52:23 2021 Received: (at control) by debbugs.gnu.org; 1 Aug 2021 22:52:23 +0000 Received: from localhost ([127.0.0.1]:37176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAKJj-00008M-Fp for submit@debbugs.gnu.org; Sun, 01 Aug 2021 18:52:23 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:14070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAKJh-000089-Ue for control@debbugs.gnu.org; Sun, 01 Aug 2021 18:52:22 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 566AC80904; Sun, 1 Aug 2021 18:52:16 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id DA7A380880; Sun, 1 Aug 2021 18:52:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1627858334; bh=KB7iV9VEIOZGWJfLMVa7gzyn4jVgBNkz0QKjDoHPL5c=; h=From:To:Subject:References:Date:In-Reply-To:From; b=iZK3xhjtq9yIyOayqEuw0jnq8mWIxHHeEUWG1X64W/HvHttXFJvQwTz0s1+Vvn8dZ /kPuslFyrrG5UgFszMtN0qT2pWodcTddHedeX6j7rpTtgwtxU6/lhiS8sxj2Wvqy4k +kX08Uq+zsiNxhfCrTnl/DhQIrNYdG6lwlyfCWwLfHXCi7bMWvqoDbximgA2pEGDpj G/cULkrwUrqPtK811b1rNpY/BnIQR4k1bF20pg6OwbCjUVRBgxrEPYhnaG95J52Xm/ YRr/XDGh2etbp3e8t1W6wHY0PnnJ7lviuZQDofatX4uW0XET9Y+3nrbS5xt0vHlslc uFo3YqeUloAQA== Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 754D0120476; Sun, 1 Aug 2021 18:52:14 -0400 (EDT) From: Stefan Monnier To: control@debbugs.gnu.org Subject: Re: Archived problem report bug#45177 (bug#45177: 27.1; Access to invoking top level command in minibuffer) Message-ID: References: Date: Sun, 01 Aug 2021 18:52:13 -0400 In-Reply-To: (GNU bug Tracking System's message of "Sun, 01 Aug 2021 22:43:02 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.094 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) 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: -3.3 (---) unarchive 45177 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 02 00:03:45 2021 Received: (at 45177) by debbugs.gnu.org; 2 Aug 2021 04:03:45 +0000 Received: from localhost ([127.0.0.1]:37365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAPB2-0001Dn-Rh for submit@debbugs.gnu.org; Mon, 02 Aug 2021 00:03:45 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAPAz-0001DV-0X for 45177@debbugs.gnu.org; Mon, 02 Aug 2021 00:03:43 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A47D1100216; Mon, 2 Aug 2021 00:03:34 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1473E100201; Mon, 2 Aug 2021 00:03:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1627877013; bh=T7+ky01QMYp0Y9JPxOAvbEClzLamU4FZ9QICXshCBYk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=GgaIablhnvExVeDgIqCG4eO+dTKgRqLQPXVerl0GMnVufx58Uhyprn+g+/uFVHKsM 52hA5m4swnGCtoFlRrEtgUI1vDOilTOzyoboF7Bog/8ttjR0jIAGfZRBd9EKeaEtWo p1/gEsX4wfZ/J6mc5oacsk/nuY97nuvvm8ShtPetpNrhkMEoXU3nQas9UP/gjoAYoJ pJhIzMMqal2hr5I+frk/N4NCt1Dzmu5wigyDWOB+SoEtZTgEpFkYwSWZO02KjrhRrW VVUwC73FCOwG/mJwouLhdRQIutzqTTLDecNCSI+djq46Zwqf/F4aZnH935k3f4vh1r tBDXImZr1liPw== Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id CF3AE1204B4; Mon, 2 Aug 2021 00:03:32 -0400 (EDT) From: Stefan Monnier To: clemera@posteo.net Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer Message-ID: References: Date: Mon, 02 Aug 2021 00:03:32 -0400 In-Reply-To: (Stefan Monnier's message of "Sun, 01 Aug 2021 18:42:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.094 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@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: -3.3 (---) [ Resending because of that damn archiving misfeature. ] clemera@posteo.net [2020-12-11 15:20:34] wrote: > For command based settings it would be nice to be able to have > access to the top level command from which the current minibuffer > session was invoked from. This should also work with multiple minibuffer > invokations during a command. Using `minibuffer-setup-hook' to save > `real-this-command' does not work, for example with: > > ```elisp > (defun example-command () > (interactive) > (read-string "Example: ") > (message "%s" real-this-command)) > ``` > > `real-this-command' will be `exit-minibuffer' after the `read-string' so any > minibuffer invokation within that command afterwards will no longer know > about `example-command'. If you invoke `example-command` from an alias, you won't get "the right" answer either anyway. > The described issue is problem for completion frameworks. The popular > Ivy(https://github.com/abo-abo/swiper/) package from GNU ELPA does use the > `:caller` argument passed to `ivy-read` to circumvent this. With > Selectrum(https://github.com/raxod502/selectrum/) we are trying to find > a built-in way to handle this. I think this is an XY problem. Changing the behavior based on the caller's name is a very bad idea. It's a bit like `called-interactively-p`, except it's worse because you're looking for even more ill-defined data than just a boolean. The standard UI has introduced the `category` metadata for that kind of problems. I don't claim it's a perfect solution, but whichever "right" solution we come up with it should not be based on the name of the caller but instead it should be based on data provided by the caller. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 02 00:04:16 2021 Received: (at 45177) by debbugs.gnu.org; 2 Aug 2021 04:04:16 +0000 Received: from localhost ([127.0.0.1]:37370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAPBY-0001Ex-7k for submit@debbugs.gnu.org; Mon, 02 Aug 2021 00:04:16 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAPBU-0001Ei-PQ for 45177@debbugs.gnu.org; Mon, 02 Aug 2021 00:04:14 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 656BB80C2C; Mon, 2 Aug 2021 00:04:07 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4922980AA9; Mon, 2 Aug 2021 00:04:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1627877046; bh=Snwmy4KigTces2TtZiTb+I6hfXyuwgvH6QykYVVV3Q8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=mMvf52JWwIla/GBQLPCKuoEq1R1oVFq8h4zw1lfTvZxUH9Qha7GaC8D+gauYmm0yS tNRhJgPDiDMjXmIef8emtav3MtnmrkhGB8acX80nz3SC5E4Y9ecnn9DVlT7bOxR8q/ LQSnY66yfl4Ese7PijSGt7XgMmYmXOUC9H3kZCfFsjshbmE2DesWLifnqb67f4K5R7 tK+Lw3xuZQFlVrCSjx+0YEU8EOX/aOLGbo3S17c/mvO7qV9dEhWCHT5m9ZiBIKScjx UvNTDxubE4yb815H2d4juIO2ycma9P+qIvnNNrk1af++v6aVsraOiKgpDnKIMiQqwF lyMyfX3+fJYzg== Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 11F3812058B; Mon, 2 Aug 2021 00:04:06 -0400 (EDT) From: Stefan Monnier To: Lars Ingebrigtsen Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer Message-ID: References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> <8736082xz1.fsf@gnus.org> Date: Mon, 02 Aug 2021 00:04:05 -0400 In-Reply-To: (Stefan Monnier's message of "Sun, 01 Aug 2021 18:49:23 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.094 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@debbugs.gnu.org, clemera@posteo.net 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 (---) [ Resending because of that damn archiving misfeature. ] > Thanks for testing -- I've now pushed this to Emacs 28, but I renamed > the variable to `current-minibuffer-command'. (And if somebody wants to > rename that, please go ahead.) > With that, I'm closing this bug report. Using such let-binding is exactly what we're trying to move away from; we should bind it buffer-locally in the minibuffer instead (as we've seen with `minibuffer-local-map`). Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 04 01:49:45 2021 Received: (at 45177) by debbugs.gnu.org; 4 Aug 2021 05:49:45 +0000 Received: from localhost ([127.0.0.1]:42200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB9mi-0004ap-PE for submit@debbugs.gnu.org; Wed, 04 Aug 2021 01:49:45 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB9mg-0004aZ-TU for 45177@debbugs.gnu.org; Wed, 04 Aug 2021 01:49:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=TXIETMgp/j998t+6ZtqCTXUO1sZdyX3O3riou8r4SXg=; b=C53sZJHn4UyHsmC29jlNdxG6rZ g1T8DASHETthxxrTw7D9z+RUWaSKxHmdYxe18XzJhNfAfZf1TGEubfIR8Kv6Cn6Osx1grGardPevM GugBbNpJNu8EGC3XG2I5IHOffwrExLk2iMyIMd4HGKgGgbtK1a9p1UhrjzikYyfrCBwM=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mB9mW-0003xy-Qq; Wed, 04 Aug 2021 07:49:35 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer References: <87czzg8489.fsf@gnus.org> <05fa5ca7-f960-0d3b-4395-f8219456c030@posteo.de> <87mtyh6ga5.fsf@gnus.org> <8736082xz1.fsf@gnus.org> Date: Wed, 04 Aug 2021 07:49:32 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 02 Aug 2021 00:04:05 -0400") Message-ID: <87bl6diwsz.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 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: Stefan Monnier writes: > Using such let-binding is exactly what we're trying to move away from; > we should bind it buffer-locally in the minibuffer instead (as we've > seen with `minibuffer-local-map`). 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: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@debbugs.gnu.org, clemera@posteo.net 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 (---) Stefan Monnier writes: > Using such let-binding is exactly what we're trying to move away from; > we should bind it buffer-locally in the minibuffer instead (as we've > seen with `minibuffer-local-map`). Sure -- I guess the results will be pretty much the same when using a recursive minibuffer? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 04 01:51:29 2021 Received: (at 45177) by debbugs.gnu.org; 4 Aug 2021 05:51:29 +0000 Received: from localhost ([127.0.0.1]:42204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB9oP-0004di-6L for submit@debbugs.gnu.org; Wed, 04 Aug 2021 01:51:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB9oO-0004dX-6D for 45177@debbugs.gnu.org; Wed, 04 Aug 2021 01:51:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=25mUUZW0TzkTY+W0GnhLhp+pS4/6gA3kt4cfS58Bfr0=; b=i1ALxzpXLgk5K2WBqj4MfF6Ae7 Xo5GIBcJKdAMSL9owygqp8ebhcnIpazfeN50yFp4/dF7ysT6Vih3h++aUUZgULG9qR2drslr5SRsM vhcE4HthCSxQpoRjWf/5SXRg9unx2ktFNJvPWtRrWFKLu/1TnpkrhbGLfIJTRXhkgEkA=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mB9oE-000411-Lu; Wed, 04 Aug 2021 07:51:21 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#45177: 27.1; Access to invoking top level command in minibuffer References: Date: Wed, 04 Aug 2021 07:51:17 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 02 Aug 2021 00:03:32 -0400") Message-ID: <877dh1iwq2.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 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: Stefan Monnier writes: > Changing the behavior based on the caller's name is a very bad idea. > It's a bit like `called-interactively-p`, except it's worse because > you're looking for even more ill-defined data than just 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: -2.3 (--) X-Debbugs-Envelope-To: 45177 Cc: 45177@debbugs.gnu.org, clemera@posteo.net 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 (---) Stefan Monnier writes: > Changing the behavior based on the caller's name is a very bad idea. > It's a bit like `called-interactively-p`, except it's worse because > you're looking for even more ill-defined data than just a boolean. It's not ideal to look at the name, of course, but I think the user should have a mechanism to do so anyway -- it's an easy and practical way for users to tweak stuff. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sun Jul 27 08:51:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 01 Sep 2021 11:24:12 +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