From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10771: TAB completion for info-display-manual Date: Thu, 09 Feb 2012 20:42:17 +0200 Message-ID: <83obt7alx2.fsf@gnu.org> References: <87haz0gxuf.fsf@mail.jurta.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1328812982 5232 80.91.229.3 (9 Feb 2012 18:43:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2012 18:43:02 +0000 (UTC) Cc: 10771@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 09 19:43:01 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RvYxO-0007XQ-Oc for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Feb 2012 19:42:58 +0100 Original-Received: from localhost ([::1]:57290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvYxO-0000Gr-An for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Feb 2012 13:42:58 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvYxK-0000GW-Ok for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2012 13:42:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvYxJ-00056y-IE for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2012 13:42:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvYxJ-00056Q-GX for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2012 13:42:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RvYyP-0006Ae-Lf for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2012 13:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Feb 2012 18:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10771-submit@debbugs.gnu.org id=B10771.132881301223673 (code B ref 10771); Thu, 09 Feb 2012 18:44:01 +0000 Original-Received: (at 10771) by debbugs.gnu.org; 9 Feb 2012 18:43:32 +0000 Original-Received: from localhost ([127.0.0.1]:34011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvYxu-00069l-Ql for submit@debbugs.gnu.org; Thu, 09 Feb 2012 13:43:31 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:62823) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvYxs-00069V-4e for 10771@debbugs.gnu.org; Thu, 09 Feb 2012 13:43:29 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LZ500A002IEXN00@a-mtaout23.012.net.il> for 10771@debbugs.gnu.org; Thu, 09 Feb 2012 20:42:13 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.149.156]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LZ500A662MBQIA0@a-mtaout23.012.net.il>; Thu, 09 Feb 2012 20:42:12 +0200 (IST) In-reply-to: <87haz0gxuf.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56726 Archived-At: > From: Juri Linkov > Date: Thu, 09 Feb 2012 11:28:18 +0200 > Cc: 10771@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.