GNU bug report logs -
#10771
TAB completion for info-display-manual
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Thu, 9 Feb 2012 06:38:01 UTC
Severity: wishlist
Tags: patch
Found in version 24.0.93
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Juri Linkov <juri <at> jurta.org>
> Date: Thu, 09 Feb 2012 11:28:18 +0200
> Cc: 10771 <at> debbugs.gnu.org
>
> > 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)
Thanks, but this is wrong: it should offer completion only on Info
buffers that already exist in the current session. Completion on
manuals installed on the system is perhaps for "C-u C-h i" or some
variation of it.
The purpose of this command is to assist with switching between
manuals that are already loaded, not in adding others.
This bug report was last modified 12 years and 252 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.