bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45177: 27.1; Access to invoking top level command in minibuffer


From: clemera
Subject: bug#45177: 27.1; Access to invoking top level command in minibuffer
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

(defun icicle-top-level-prep ()
   "Do top-level stuff.  Used in `pre-command-hook'."
   (unless (> (minibuffer-depth) 0)
     ;; ... <other stuff>
     (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))
     ;; ... <other stuff>
     ))

(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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]