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

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

bug#10771: TAB completion for info-display-manual


From: Juri Linkov
Subject: bug#10771: TAB completion for info-display-manual
Date: Thu, 09 Feb 2012 11:28:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (x86_64-pc-linux-gnu)

tags 10771 patch
thanks

> M-x info-display-manual RET em TAB
>
> I hoped this would offer completion over the manuals in my INFOPATH, but
> it just inserts a literal tab.

This patch offers completion:

=== modified file 'lisp/info.el'
--- lisp/info.el        2012-01-25 17:54:01 +0000
+++ lisp/info.el        2012-02-09 09:27:10 +0000
@@ -4984,7 +4984,13 @@ (defun Info-bookmark-jump (bmk)
 ;;;###autoload
 (defun info-display-manual (manual)
   "Go to Info buffer that displays MANUAL, creating it if none already exists."
-  (interactive "sManual name: ")
+  (interactive
+   (list
+    (completing-read "Manual name: "
+                    (apply-partially 'Info-read-node-name-2
+                                     Info-directory-list
+                                     (mapcar 'car Info-suffix-list))
+                    nil t)))
   (let ((blist (buffer-list))
        (manual-re (concat "\\(/\\|\\`\\)" manual "\\(\\.\\|\\'\\)"))
        (case-fold-search t)






reply via email to

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