]> git.eshelyaron.com Git - emacs.git/commitdiff
(info-lookup-symbol): Add 'minibuffer-action'.
authorEshel Yaron <me@eshelyaron.com>
Tue, 14 Jan 2025 16:51:22 +0000 (17:51 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 14 Jan 2025 16:51:50 +0000 (17:51 +0100)
lisp/info-look.el

index 8a374d49175acfa02a211870a727429191385ce3..e1e9e0708c3df04ee18419f00d8818eadfcd12da 100644 (file)
@@ -299,6 +299,12 @@ popping up a new one."
    (info-lookup-interactive-arguments 'symbol current-prefix-arg))
   (info-lookup 'symbol symbol mode same-window))
 
+(put 'info-lookup-symbol 'minibuffer-action
+     (cons (lambda (sym)
+             (with-current-buffer minibuffer--original-buffer
+               (info-lookup-symbol sym)))
+           "lookup"))
+
 ;;;###autoload (put 'info-lookup-file 'info-file "emacs")
 ;;;###autoload
 (defun info-lookup-file (file &optional mode)