From unknown Mon Sep 08 01:50:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10771 <10771@debbugs.gnu.org> To: bug#10771 <10771@debbugs.gnu.org> Subject: Status: TAB completion for info-display-manual Reply-To: bug#10771 <10771@debbugs.gnu.org> Date: Mon, 08 Sep 2025 08:50:52 +0000 retitle 10771 TAB completion for info-display-manual reassign 10771 emacs submitter 10771 Glenn Morris severity 10771 wishlist tag 10771 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 01:37:47 2012 Received: (at submit) by debbugs.gnu.org; 9 Feb 2012 06:37:47 +0000 Received: from localhost ([127.0.0.1]:33171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvNda-0003d8-HT for submit@debbugs.gnu.org; Thu, 09 Feb 2012 01:37:46 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:38083 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvNdY-0003d0-2p for submit@debbugs.gnu.org; Thu, 09 Feb 2012 01:37:45 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RvNcT-000712-Pr; Thu, 09 Feb 2012 01:36:37 -0500 From: Glenn Morris To: submit@debbugs.gnu.org Subject: TAB completion for info-display-manual X-Spook: SAPO INS 22nd SAS ASPIC MD5 crypto anarchy CIA Bush Wired X-Ran: 'pp*gP:>lo]Gmn_}}^ZLOm1:&4!iW>Y|,HE+q_%"#moq1^LB:?_UBU.Pk4u%6pA:|;#1%j X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 09 Feb 2012 01:36:37 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Package: emacs Version: 24.0.93 Severity: wishlist emacs -Q 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 04:32:08 2012 Received: (at 10771) by debbugs.gnu.org; 9 Feb 2012 09:32:08 +0000 Received: from localhost ([127.0.0.1]:33237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvQMK-0000AD-BE for submit@debbugs.gnu.org; Thu, 09 Feb 2012 04:32:08 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:55040 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvQMG-00009J-TT; Thu, 09 Feb 2012 04:32:06 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id D1116451C84A; Thu, 9 Feb 2012 01:29:32 -0800 (PST) From: Juri Linkov To: Glenn Morris Subject: Re: bug#10771: TAB completion for info-display-manual Organization: JURTA References: Date: Thu, 09 Feb 2012 11:28:18 +0200 In-Reply-To: (Glenn Morris's message of "Thu, 09 Feb 2012 01:36:37 -0500") Message-ID: <87haz0gxuf.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10771 Cc: 10771@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) 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) From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 13:43:32 2012 Received: (at 10771) by debbugs.gnu.org; 9 Feb 2012 18:43:32 +0000 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 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 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) 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) Date: Thu, 09 Feb 2012 20:42:17 +0200 From: Eli Zaretskii Subject: Re: bug#10771: TAB completion for info-display-manual In-reply-to: <87haz0gxuf.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Message-id: <83obt7alx2.fsf@gnu.org> References: <87haz0gxuf.fsf@mail.jurta.org> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 10771 Cc: rgm@gnu.org, 10771@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 05:24:24 2012 Received: (at 10771) by debbugs.gnu.org; 10 Feb 2012 10:24:24 +0000 Received: from localhost ([127.0.0.1]:34563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvneP-00055e-2Y for submit@debbugs.gnu.org; Fri, 10 Feb 2012 05:24:23 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:49378 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rvne9-00054t-0M for 10771@debbugs.gnu.org; Fri, 10 Feb 2012 05:24:11 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 92774451C7B7; Fri, 10 Feb 2012 02:21:29 -0800 (PST) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#10771: TAB completion for info-display-manual Organization: JURTA References: <87haz0gxuf.fsf@mail.jurta.org> <83obt7alx2.fsf@gnu.org> Date: Fri, 10 Feb 2012 12:17:50 +0200 In-Reply-To: <83obt7alx2.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Feb 2012 20:42:17 +0200") Message-ID: <87ehu3yrlt.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10771 Cc: rgm@gnu.org, 10771@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > The purpose of this command is to assist with switching between > manuals that are already loaded, not in adding others. If you often switch between loaded manuals, then this is easy to do using the minibuffer history commands, e.g. after visiting two manuals: M-x info-display-manual RET gnus RET M-x info-display-manual RET emacs RET switching between these two manuals: M-x info-display-manual RET M-p M-p RET M-x info-display-manual RET M-p M-p RET BTW, do you know that an easy way to switch between manuals is using `C-1 C-h i' `C-2 C-h i' `C-3 C-h i' etc. This is similar to switching between numbered frames with e.g. `C-2 C-x 5 o'. Do you switch them using frame numbers or frame names with the command `select-frame-by-name'? Maybe then `info-display-manual' should be renamed to `info-select-manual-by-name'? From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 02 01:47:12 2012 Received: (at 10771) by debbugs.gnu.org; 2 Dec 2012 06:47:12 +0000 Received: from localhost ([127.0.0.1]:49196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tf3KX-00054J-Vz for submit@debbugs.gnu.org; Sun, 02 Dec 2012 01:47:12 -0500 Received: from mail-pb0-f44.google.com ([209.85.160.44]:55314) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tf3KV-00054B-Jq for 10771@debbugs.gnu.org; Sun, 02 Dec 2012 01:47:08 -0500 Received: by mail-pb0-f44.google.com with SMTP id uo1so1241455pbc.3 for <10771@debbugs.gnu.org>; Sat, 01 Dec 2012 22:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Z3xPGjQp6RCO9lg43LdRpZ3AAo59Z+uXbifuvfI7tKE=; b=Hj7gTQjo3h3E+QrhqCY8tzSKHh0eGU+8a8fDENtFCK5i1hzwmJcjl4OEUZ154bAUxP AZdkdLpJU/lKvzfoebmkfz8aYRznshojEdCau2EHh/8XXBnpS1J/1VvDHxyHyD5uS0Ps tyv2Ikjh/b/FyNNObVWWbwqou1CUcpky5ZZLXYDKd7ZF4zfOgHNgZdSlEEV8hhvS0/ff DaymZOrDgxQpW/Qnwg62vXzfjsj5szMWJ2FE+jb6aJx5XDA7z+sleHPR/oRsZYnyngoq vVdu//Grm5YM2FAgY3TrlQRvaUUS4jK/QcMPCPOEZG3LMRFzsQ2ELWn8fhfY5ZXskgsV R5sA== Received: by 10.68.234.167 with SMTP id uf7mr19153525pbc.20.1354430691820; Sat, 01 Dec 2012 22:44:51 -0800 (PST) Received: from ulysses (cm198.gamma83.maxonline.com.sg. [202.156.83.198]) by mx.google.com with ESMTPS id hs2sm5909421pbc.22.2012.12.01.22.44.47 (version=SSLv3 cipher=OTHER); Sat, 01 Dec 2012 22:44:49 -0800 (PST) From: Chong Yidong To: Eli Zaretskii Subject: Re: bug#10771: TAB completion for info-display-manual References: <87haz0gxuf.fsf@mail.jurta.org> <83obt7alx2.fsf@gnu.org> Date: Sun, 02 Dec 2012 14:44:45 +0800 In-Reply-To: <83obt7alx2.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Feb 2012 20:42:17 +0200") Message-ID: <87a9txlzqa.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 10771 Cc: Juri Linkov , 10771@debbugs.gnu.org, rgm@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.7 (/) Eli Zaretskii writes: > 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. I disagree; completion should be provided for any value that the command accepts as an argument, so Juri's patch does the right thing. I've committed it to trunk (with a minor fix). (If one wishes to get fancy, I suppose one could define a completion category override to cause completion to favor manuals in existing Info buffers. Not sure if that would produce confusing results, though.) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 02 01:47:20 2012 Received: (at control) by debbugs.gnu.org; 2 Dec 2012 06:47:20 +0000 Received: from localhost ([127.0.0.1]:49199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tf3Kh-00054g-TM for submit@debbugs.gnu.org; Sun, 02 Dec 2012 01:47:20 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:46954) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tf3Kf-00054W-GA for control@debbugs.gnu.org; Sun, 02 Dec 2012 01:47:18 -0500 Received: by mail-pa0-f44.google.com with SMTP id hz11so1142971pad.3 for ; Sat, 01 Dec 2012 22:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=nANVd6xYXAPGwyrOX+4tUBbVmBSmqOo8InuUKKm0xHc=; b=A54eEoa0y504246SdSdFj/T5uL/LNeNJPB/5hQXXHDGeflTwZUi85I11H29q5o/kme wIwZFB7sTPOSjy3IMxC6fzmgTNipn94vipPzO/vvfsG08NxcvR8KxqKf4XKGClwV8fO+ hJ5ajvwZlKU9irEQcGkQzzQawo1sid6UI/YW8EKsADULTVGnzcTiVEMl1fKm89HHPkbb y88NtX25LlYn7kq6KV8Z/ccGQ/a1+htBs88UYIzQEnwlUP5EawWwSCBbfgaBr//p4Ul0 qY5ZcU8JCUsfTO+TTU9B7IbtwH18E5vKWRTvWvsnwOoRWqU1hDEN3dCfpWQJS4f6t44b r71w== Received: by 10.69.1.71 with SMTP id be7mr17749233pbd.45.1354430701574; Sat, 01 Dec 2012 22:45:01 -0800 (PST) Received: from ulysses (cm198.gamma83.maxonline.com.sg. [202.156.83.198]) by mx.google.com with ESMTPS id x6sm5847694pav.29.2012.12.01.22.44.58 (version=SSLv3 cipher=OTHER); Sat, 01 Dec 2012 22:45:00 -0800 (PST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 10771 Date: Sun, 02 Dec 2012 14:44:56 +0800 Message-ID: <87obidc5qv.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.1 (/) close 10771 thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 02 12:27:48 2012 Received: (at 10771) by debbugs.gnu.org; 2 Dec 2012 17:27:48 +0000 Received: from localhost ([127.0.0.1]:50324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfDKV-0004dB-Tm for submit@debbugs.gnu.org; Sun, 02 Dec 2012 12:27:48 -0500 Received: from mtaout21.012.net.il ([80.179.55.169]:44675) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfDKU-0004d3-4F for 10771@debbugs.gnu.org; Sun, 02 Dec 2012 12:27:47 -0500 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MEE00B00YFJMP00@a-mtaout21.012.net.il> for 10771@debbugs.gnu.org; Sun, 02 Dec 2012 19:25:14 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEE00BEUZ21IL70@a-mtaout21.012.net.il>; Sun, 02 Dec 2012 19:25:13 +0200 (IST) Date: Sun, 02 Dec 2012 19:25:05 +0200 From: Eli Zaretskii Subject: Re: bug#10771: TAB completion for info-display-manual In-reply-to: <87a9txlzqa.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: Chong Yidong Message-id: <8338zotlhq.fsf@gnu.org> References: <87haz0gxuf.fsf@mail.jurta.org> <83obt7alx2.fsf@gnu.org> <87a9txlzqa.fsf@gnu.org> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Chong Yidong > Cc: Juri Linkov , 10771@debbugs.gnu.org, rgm@gnu.org > Date: Sun, 02 Dec 2012 14:44:45 +0800 > > Eli Zaretskii writes: > > > 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. > > I disagree; completion should be provided for any value that the command > accepts as an argument, so Juri's patch does the right thing. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.169 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] X-Debbugs-Envelope-To: 10771 Cc: juri@jurta.org, 10771@debbugs.gnu.org, rgm@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Chong Yidong > Cc: Juri Linkov , 10771@debbugs.gnu.org, rgm@gnu.org > Date: Sun, 02 Dec 2012 14:44:45 +0800 > > Eli Zaretskii writes: > > > 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. > > I disagree; completion should be provided for any value that the command > accepts as an argument, so Juri's patch does the right thing. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.169 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4619] > From: Chong Yidong > Cc: Juri Linkov , 10771@debbugs.gnu.org, rgm@gnu.org > Date: Sun, 02 Dec 2012 14:44:45 +0800 > > Eli Zaretskii writes: > > > 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. > > I disagree; completion should be provided for any value that the command > accepts as an argument, so Juri's patch does the right thing. No, it doesn't. The command looks up its argument among Info _buffers_ first, and only if not found, falls back to searching the manuals installed on the system. So at the very least, the completion should include in the collection the manuals loaded into Info buffers in the current session. Because manuals loaded into my Info buffers do not necessarily reflect Info files on my disk. > If one wishes to get fancy, I suppose one could define a completion > category override to cause completion to favor manuals in existing Info > buffers. There's no need to favor existing buffers, but there is a need to include them in the completion. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 02 16:21:59 2012 Received: (at 10771) by debbugs.gnu.org; 2 Dec 2012 21:21:59 +0000 Received: from localhost ([127.0.0.1]:50496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfGz9-0001dZ-IX for submit@debbugs.gnu.org; Sun, 02 Dec 2012 16:21:59 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:34205 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfGz7-0001dO-NO for 10771@debbugs.gnu.org; Sun, 02 Dec 2012 16:21:58 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 4A65D451E186; Sun, 2 Dec 2012 13:19:37 -0800 (PST) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#10771: TAB completion for info-display-manual Organization: JURTA References: <87haz0gxuf.fsf@mail.jurta.org> <83obt7alx2.fsf@gnu.org> <87a9txlzqa.fsf@gnu.org> <8338zotlhq.fsf@gnu.org> Date: Sun, 02 Dec 2012 23:12:35 +0200 In-Reply-To: <8338zotlhq.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Dec 2012 19:25:05 +0200") Message-ID: <87boecqjzz.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 10771 Cc: 10771@debbugs.gnu.org, Chong Yidong , rgm@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) > Because manuals loaded into my Info buffers do not necessarily reflect > Info files on my disk. Is this because you delete Info files from the disk leaving open their Info buffers? I'm not sure whether additional complexity is necessary to handle completion for such rare cases, but at least the minibuffer should allow you to enter such manual names. I mean changing the REQUIRE-MATCH arg of `completing-read' from t to nil, so you can still enter these manual names like at the time when this command accepted a plain string before the latest change. === modified file 'lisp/info.el' --- lisp/info.el 2012-12-02 20:07:04 +0000 +++ lisp/info.el 2012-12-02 21:11:17 +0000 @@ -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) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 02 16:35:10 2012 Received: (at 10771) by debbugs.gnu.org; 2 Dec 2012 21:35:10 +0000 Received: from localhost ([127.0.0.1]:50505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfHBu-0001wt-0p for submit@debbugs.gnu.org; Sun, 02 Dec 2012 16:35:10 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:54813) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfHBr-0001wl-KZ for 10771@debbugs.gnu.org; Sun, 02 Dec 2012 16:35:08 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MEF00400AE4EH00@a-mtaout20.012.net.il> for 10771@debbugs.gnu.org; Sun, 02 Dec 2012 23:32:38 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEF003DOAIBOVF0@a-mtaout20.012.net.il>; Sun, 02 Dec 2012 23:32:35 +0200 (IST) Date: Sun, 02 Dec 2012 23:32:28 +0200 From: Eli Zaretskii Subject: Re: bug#10771: TAB completion for info-display-manual In-reply-to: <87boecqjzz.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Message-id: <83obicrvgz.fsf@gnu.org> References: <87haz0gxuf.fsf@mail.jurta.org> <83obt7alx2.fsf@gnu.org> <87a9txlzqa.fsf@gnu.org> <8338zotlhq.fsf@gnu.org> <87boecqjzz.fsf@mail.jurta.org> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Juri Linkov > Cc: Chong Yidong , 10771@debbugs.gnu.org, rgm@gnu.org > Date: Sun, 02 Dec 2012 23:12:35 +0200 > > > Because manuals loaded into my Info buffers do not necessarily reflect > > Info files on my disk. > > Is this because you delete Info files from the disk leaving open > their Info buffers? [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4944] X-Debbugs-Envelope-To: 10771 Cc: 10771@debbugs.gnu.org, cyd@gnu.org, rgm@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Juri Linkov > Cc: Chong Yidong , 10771@debbugs.gnu.org, rgm@gnu.org > Date: Sun, 02 Dec 2012 23:12:35 +0200 > > > Because manuals loaded into my Info buffers do not necessarily reflect > > Info files on my disk. > > Is this because you delete Info files from the disk leaving open > their Info buffers? [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4505] > From: Juri Linkov > Cc: Chong Yidong , 10771@debbugs.gnu.org, rgm@gnu.org > Date: Sun, 02 Dec 2012 23:12:35 +0200 > > > Because manuals loaded into my Info buffers do not necessarily reflect > > Info files on my disk. > > Is this because you delete Info files from the disk leaving open > their Info buffers? No, it's because I don't want to be restricted to manuals found in directories that are mentioned in Info-directory-list. In general, the Info buffers in the session should not be restricted to what "M-x info" can find, because we have "C-u C-h i" and other methods of loading manuals by their exact file name. > I'm not sure whether additional complexity is necessary to handle > completion for such rare cases Well, _I_ wrote this command, and I needed it precisely because I have dozens of Info manuals loaded in my usual Emacs session. This case is not rare for me. > but at least > the minibuffer should allow you to enter such manual names. > I mean changing the REQUIRE-MATCH arg of `completing-read' from t to nil, > so you can still enter these manual names like at the time when > this command accepted a plain string before the latest change. > > === modified file 'lisp/info.el' > --- lisp/info.el 2012-12-02 20:07:04 +0000 > +++ lisp/info.el 2012-12-02 21:11:17 +0000 > @@ -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? From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 02 17:10:22 2012 Received: (at 10771) by debbugs.gnu.org; 2 Dec 2012 22:10:22 +0000 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 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 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) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#10771: TAB completion for info-display-manual Organization: JURTA 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> Date: Sun, 02 Dec 2012 23:57:52 +0200 In-Reply-To: <83obicrvgz.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Dec 2012 23:32:28 +0200") Message-ID: <87boeci0bj.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 10771 Cc: 10771@debbugs.gnu.org, cyd@gnu.org, rgm@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) >> @@ -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? From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 02 22:40:27 2012 Received: (at 10771) by debbugs.gnu.org; 3 Dec 2012 03:40:27 +0000 Received: from localhost ([127.0.0.1]:50627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfMtP-0006g1-5h for submit@debbugs.gnu.org; Sun, 02 Dec 2012 22:40:27 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:38785) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfMtL-0006fq-1y for 10771@debbugs.gnu.org; Sun, 02 Dec 2012 22:40:24 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MEF00900R8DJA00@a-mtaout22.012.net.il> for 10771@debbugs.gnu.org; Mon, 03 Dec 2012 05:38:01 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEF009SMRFC0TA0@a-mtaout22.012.net.il>; Mon, 03 Dec 2012 05:38:01 +0200 (IST) Date: Mon, 03 Dec 2012 05:37:54 +0200 From: Eli Zaretskii Subject: Re: bug#10771: TAB completion for info-display-manual In-reply-to: <87boeci0bj.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Message-id: <83mwxvst4d.fsf@gnu.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> <87boeci0bj.fsf@mail.jurta.org> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Juri Linkov > Cc: cyd@gnu.org, 10771@debbugs.gnu.org, rgm@gnu.org > Date: Sun, 02 Dec 2012 23:57:52 +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. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.172 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4999] X-Debbugs-Envelope-To: 10771 Cc: 10771@debbugs.gnu.org, cyd@gnu.org, rgm@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) > From: Juri Linkov > Cc: cyd@gnu.org, 10771@debbugs.gnu.org, rgm@gnu.org > Date: Sun, 02 Dec 2012 23:57:52 +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. I didn't say it was worse. I asked how it was better. > 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. Then the command finds one of them, and if you repeat the same command, it finds the second, etc. Which is fine with me, and I do have such multiple manuals by the same name loaded in the same session. > Which one of them should be preferred by this command? I don't need any preference. All I need is a reasonable way of finding each one of them. > 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? The visited one, of course. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 03 01:59:52 2012 Received: (at 10771) by debbugs.gnu.org; 3 Dec 2012 06:59:52 +0000 Received: from localhost ([127.0.0.1]:50746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfQ0K-0003m4-8V for submit@debbugs.gnu.org; Mon, 03 Dec 2012 01:59:52 -0500 Received: from mail-pb0-f44.google.com ([209.85.160.44]:40012) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfQ0H-0003lw-4L for 10771@debbugs.gnu.org; Mon, 03 Dec 2012 01:59:46 -0500 Received: by mail-pb0-f44.google.com with SMTP id uo1so1678969pbc.3 for <10771@debbugs.gnu.org>; Sun, 02 Dec 2012 22:57:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=bB2gDjgVESCH7xDDfCYJMZHo0iulNyUQgJueeyjUNVs=; b=dapTEkQiJIn9QX4uaZbm0oQjeAb7sVDs5q76TP1zfpHOWiFAfmZG/DGUVA0UGRx1Fq zF/MLZsAN7cycG10pg4jZ1gzqgBCSC34/YWcjSxN6fgnRqD27l1/wFQNE0FHjgA713AY m3yRIttOz7/+wl/efwBLneRRUCdbqT1e23Lm/cspCU33Spx2t8xvzyRL+3LU0I+wgHnZ 0LeXNuu3IJlWnRxSQJIFQujxNVHCUrorNTY3aklszV21sXN8N36eQWLwGPkbZn+RqOVm Uf8K1/CpfqVtvELePEkLKwgglDhpy+5ng0XN8+DSxeyDaep2d1CKh+30Aime1Q60NSAz F7Fg== Received: by 10.68.137.131 with SMTP id qi3mr26576243pbb.114.1354517842167; Sun, 02 Dec 2012 22:57:22 -0800 (PST) Received: from ulysses ([155.69.16.129]) by mx.google.com with ESMTPS id kc4sm7567158pbc.23.2012.12.02.22.57.18 (version=SSLv3 cipher=OTHER); Sun, 02 Dec 2012 22:57:20 -0800 (PST) From: Chong Yidong To: Eli Zaretskii Subject: Re: bug#10771: TAB completion for info-display-manual 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> <87boeci0bj.fsf@mail.jurta.org> <83mwxvst4d.fsf@gnu.org> Date: Mon, 03 Dec 2012 14:57:14 +0800 In-Reply-To: <83mwxvst4d.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 03 Dec 2012 05:37:54 +0200") Message-ID: <87y5hf1v3p.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 10771 Cc: Juri Linkov , 10771@debbugs.gnu.org, rgm@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Eli Zaretskii writes: >> At least this is not worse than the original command that reads a >> manual name without completion. > > I didn't say it was worse. I asked how it was better. How about adding existing Info buffers' manual names to the completion table too, like the following? === modified file 'lisp/info.el' *** lisp/info.el 2012-12-02 06:41:22 +0000 --- lisp/info.el 2012-12-03 06:55:15 +0000 *************** *** 5105,5113 **** (progn (info-initialize) (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 "\\(\\.\\|\\'\\)")) --- 5105,5111 ---- (progn (info-initialize) (completing-read "Manual name: " ! (info--manual-names) nil t)))) (let ((blist (buffer-list)) (manual-re (concat "\\(/\\|\\`\\)" manual "\\(\\.\\|\\'\\)")) *************** *** 5126,5131 **** --- 5124,5143 ---- (info (Info-find-file manual) (generate-new-buffer-name "*info*"))))) + (defun info--manual-names () + (let (names) + (dolist (buffer (buffer-list)) + (with-current-buffer buffer + (when (and (eq major-mode 'Info-mode) + (stringp Info-current-file)) + (push (file-name-sans-extension + (file-name-nondirectory Info-current-file)) + names)))) + (delete-dups (append names + (apply-partially 'Info-read-node-name-2 + Info-directory-list + (mapcar 'car Info-suffix-list)))))) + (provide 'info) ;;; info.el ends here From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 03 11:34:29 2012 Received: (at 10771) by debbugs.gnu.org; 3 Dec 2012 16:34:29 +0000 Received: from localhost ([127.0.0.1]:51658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfYyR-0003Hs-Mb for submit@debbugs.gnu.org; Mon, 03 Dec 2012 11:34:29 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:48401) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TfYyP-0003Hk-9z for 10771@debbugs.gnu.org; Mon, 03 Dec 2012 11:34:26 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MEG00J00R2CVY00@a-mtaout22.012.net.il> for 10771@debbugs.gnu.org; Mon, 03 Dec 2012 18:31:31 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEG00IHQR8IKIN0@a-mtaout22.012.net.il>; Mon, 03 Dec 2012 18:31:31 +0200 (IST) Date: Mon, 03 Dec 2012 18:31:26 +0200 From: Eli Zaretskii Subject: Re: bug#10771: TAB completion for info-display-manual In-reply-to: <87y5hf1v3p.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: Chong Yidong Message-id: <83k3szrtb5.fsf@gnu.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> <87boeci0bj.fsf@mail.jurta.org> <83mwxvst4d.fsf@gnu.org> <87y5hf1v3p.fsf@gnu.org> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Chong Yidong > Cc: Juri Linkov , 10771@debbugs.gnu.org, rgm@gnu.org > Date: Mon, 03 Dec 2012 14:57:14 +0800 > > Eli Zaretskii writes: > > >> At least this is not worse than the original command that reads a > >> manual name without completion. > > > > I didn't say it was worse. I asked how it was better. > > How about adding existing Info buffers' manual names to the completion > table too, like the following? [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.172 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4983] X-Debbugs-Envelope-To: 10771 Cc: juri@jurta.org, 10771@debbugs.gnu.org, rgm@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Chong Yidong > Cc: Juri Linkov , 10771@debbugs.gnu.org, rgm@gnu.org > Date: Mon, 03 Dec 2012 14:57:14 +0800 > > Eli Zaretskii writes: > > >> At least this is not worse than the original command that reads a > >> manual name without completion. > > > > I didn't say it was worse. I asked how it was better. > > How about adding existing Info buffers' manual names to the completion > table too, like the following? [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.172 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4217] > From: Chong Yidong > Cc: Juri Linkov , 10771@debbugs.gnu.org, rgm@gnu.org > Date: Mon, 03 Dec 2012 14:57:14 +0800 > > Eli Zaretskii writes: > > >> At least this is not worse than the original command that reads a > >> manual name without completion. > > > > I didn't say it was worse. I asked how it was better. > > How about adding existing Info buffers' manual names to the completion > table too, like the following? Fine with me, but please nreverse the list returned by info--manual-names, so that it is in the order of buffer-list. This is important because that is the order in which the command examines the buffers. Thanks. From unknown Mon Sep 08 01:50:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 01 Jan 2013 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator