unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 10771@debbugs.gnu.org, cyd@gnu.org
Subject: bug#10771: TAB completion for info-display-manual
Date: Sun, 02 Dec 2012 23:57:52 +0200	[thread overview]
Message-ID: <87boeci0bj.fsf@mail.jurta.org> (raw)
In-Reply-To: <83obicrvgz.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Dec 2012 23:32:28 +0200")

>> @@ -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?





  reply	other threads:[~2012-12-02 21:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-09  6:36 bug#10771: TAB completion for info-display-manual Glenn Morris
2012-02-09  9:28 ` Juri Linkov
2012-02-09 18:42   ` Eli Zaretskii
2012-02-10 10:17     ` Juri Linkov
2012-12-02  6:44     ` Chong Yidong
2012-12-02 17:25       ` Eli Zaretskii
2012-12-02 21:12         ` Juri Linkov
2012-12-02 21:32           ` Eli Zaretskii
2012-12-02 21:57             ` Juri Linkov [this message]
2012-12-03  3:37               ` Eli Zaretskii
2012-12-03  6:57                 ` Chong Yidong
2012-12-03 16:31                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87boeci0bj.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=10771@debbugs.gnu.org \
    --cc=cyd@gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).