From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#45177: 27.1; Access to invoking top level command in minibuffer Date: Fri, 11 Dec 2020 09:35:25 -0800 (PST) Message-ID: <51001427-d881-479e-af82-a4590d183823@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27971"; mail-complaints-to="usenet@ciao.gmane.io" To: clemera@posteo.net, 45177@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 11 19:29:34 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1knnAb-0007AU-62 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 19:29:33 +0100 Original-Received: from localhost ([::1]:45346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knnAa-0006XH-3R for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 13:29:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knmMk-0006lm-2l for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 12:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59533) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knmMj-000462-P5 for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 12:38:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knmMj-0005HG-MP for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 12:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Dec 2020 17:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45177 X-GNU-PR-Package: emacs Original-Received: via spool by 45177-submit@debbugs.gnu.org id=B45177.160770825920254 (code B ref 45177); Fri, 11 Dec 2020 17:38:01 +0000 Original-Received: (at 45177) by debbugs.gnu.org; 11 Dec 2020 17:37:39 +0000 Original-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 Original-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 Original-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== Original-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 Original-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 Original-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 Original-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 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)] 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195794 Archived-At: > 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.")