From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10771: TAB completion for info-display-manual Date: Sun, 02 Dec 2012 23:57:52 +0200 Organization: JURTA Message-ID: <87boeci0bj.fsf@mail.jurta.org> References: <87haz0gxuf.fsf@mail.jurta.org> <83obt7alx2.fsf@gnu.org> <87a9txlzqa.fsf@gnu.org> <8338zotlhq.fsf@gnu.org> <87boecqjzz.fsf@mail.jurta.org> <83obicrvgz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354486136 9368 80.91.229.3 (2 Dec 2012 22:08:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2012 22:08:56 +0000 (UTC) Cc: 10771@debbugs.gnu.org, cyd@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 02 23:09:08 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TfHif-000587-VP for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Dec 2012 23:09:02 +0100 Original-Received: from localhost ([::1]:55134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfHiU-0003FP-6a for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Dec 2012 17:08:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfHiO-0003Dk-IV for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 17:08:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfHiN-0003qw-Hg for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 17:08:44 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfHiN-0003qs-EA for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 17:08:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TfHkb-0003g0-Lc for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2012 17:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Dec 2012 22:11: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.135448622214084 (code B ref 10771); Sun, 02 Dec 2012 22:11:01 +0000 Original-Received: (at 10771) by debbugs.gnu.org; 2 Dec 2012 22:10:22 +0000 Original-Received: from localhost ([127.0.0.1]:50534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfHjx-0003f6-LP for submit@debbugs.gnu.org; Sun, 02 Dec 2012 17:10:22 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:59936 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfHjt-0003es-Un for 10771@debbugs.gnu.org; Sun, 02 Dec 2012 17:10:19 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id C0BCA451E187; Sun, 2 Dec 2012 14:07:57 -0800 (PST) In-Reply-To: <83obicrvgz.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Dec 2012 23:32:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) 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.x 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:67815 Archived-At: >> @@ -5138,7 +5138,7 @@ (defun info-display-manual (manual) >> (apply-partially 'Info-read-node-name-2 >> Info-directory-list >> (mapcar 'car Info-suffix-list)) >> - nil t)))) >> + nil nil)))) >> (let ((blist (buffer-list)) >> (manual-re (concat "\\(/\\|\\`\\)" manual "\\(\\.\\|\\'\\)")) >> (case-fold-search t) > > How is this better than the original command against which this bug > was filed? At least this is not worse than the original command that reads a manual name without completion. Completion is useful to read a manual name that is not already visited. So when you want to visit a new manual, you can use completion, when a manual is already visited, you can type its name and get it from the history with M-p. BTW, there is another problem with selecting an Info buffer by its Info file name: what if there are two Info buffers visiting a manual with the same name. Which one of them should be preferred by this command? Also which manual should be preferred in completion when one manual is already visited and another manual with the same name is available in Info-directory-list?