From jidanni@jidanni.org Mon Jun 29 13:48:24 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Jun 2009 20:48:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL,GENDER, SARE_RECV_SPAM_DOMN0b autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5TKmLEA002302 for ; Mon, 29 Jun 2009 13:48:22 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLNm0-00049T-Sk for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 16:48:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLNlv-00048w-Tg for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 16:48:20 -0400 Received: from [199.232.76.173] (port=39955 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLNlv-00048s-MC for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 16:48:15 -0400 Received: from balanced.mail.policyd.dreamhost.com ([208.97.132.119]:59950 helo=homiemail-a5.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLNlv-0002MJ-8D for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 16:48:15 -0400 Received: from jidanni.org (122-127-34-177.dynamic.hinet.net [122.127.34.177]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a5.g.dreamhost.com (Postfix) with ESMTP id 8FDA5BC976 for ; Mon, 29 Jun 2009 13:48:13 -0700 (PDT) From: jidanni@jidanni.org To: bug-gnu-emacs@gnu.org Subject: M-x man completion Date: Tue, 30 Jun 2009 04:48:10 +0800 Message-ID: <87bpo63gxh.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) severity: wishlist I was thinking when M-x man prompts Manual entry (default Neurdsburg): wouldn't it be neat if there was completion, just like for M-! shell-command... From monnier@iro.umontreal.ca Mon Jun 29 15:02:39 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 29 Jun 2009 22:02:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.5 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from smtp-01.vtx.ch (smtp-01.vtx.ch [212.147.0.84]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5TM2YWZ015536 for <3717@emacsbugs.donarmstrong.com>; Mon, 29 Jun 2009 15:02:35 -0700 Received: from alfajor.home (dyn.144-85-166-002.dsl.vtx.ch [144.85.166.2]) by smtp-01.vtx.ch (VTX Services SA) with ESMTP id 7A3A0280EA; Tue, 30 Jun 2009 00:02:33 +0200 (CEST) Received: by alfajor.home (Postfix, from userid 20848) id 4FF1464346; Tue, 30 Jun 2009 00:02:33 +0200 (CEST) From: Stefan Monnier To: jidanni@jidanni.org Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo63gxh.fsf@jidanni.org> Date: Tue, 30 Jun 2009 00:02:33 +0200 In-Reply-To: <87bpo63gxh.fsf@jidanni.org> (jidanni@jidanni.org's message of "Tue, 30 Jun 2009 04:48:10 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>>>> "jidanni" == jidanni writes: > severity: wishlist > I was thinking when M-x man prompts > Manual entry (default Neurdsburg): > wouldn't it be neat if there was completion, just like for > M-! shell-command... I use the patch below. It's very lightly tested. Stefan === modified file 'lisp/man.el' --- lisp/man.el 2009-03-07 20:30:47 +0000 +++ lisp/man.el 2009-03-14 03:18:28 +0000 @@ -749,6 +749,22 @@ ;;;###autoload (defalias 'manual-entry 'man) +(defun Man-completion-table (string pred action) + (let ((table '())) + (with-temp-buffer + ;; Actually for my `man' the arg is a regexp. Don't know how + ;; standard that is. Also, it's not clear what kind of + ;; regexp are accepted: under GNU/Linux it seems it's ERE-style, + ;; whereas under MacOSX it seems to be BRE-style and + ;; doesn't accept backslashes at all. Let's not bother to + ;; quote anything. + (call-process "man" nil '(t nil) nil "-k" (concat "^" string)) + (goto-char (point-min)) + (while (re-search-forward "^[^ \t\n]+" nil t) + (push (match-string 0) table))) + ;; The table may contain false positives since the match is made + ;; by "man -k" not just on the manpage's name. + (complete-with-action action table string pred))) ;;;###autoload (defun man (man-args) @@ -765,12 +781,13 @@ `Man-switches' variable, which see." (interactive (list (let* ((default-entry (Man-default-man-entry)) - (input (read-string + (input (completing-read (format "Manual entry%s" (if (string= default-entry "") ": " (format " (default %s): " default-entry))) - nil 'Man-topic-history default-entry))) + 'Man-completion-table + nil nil nil 'Man-topic-history default-entry))) (if (string= input "") (error "No man args given") input)))) From svenjoac@gmx.de Tue Jun 30 00:50:19 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 30 Jun 2009 07:50:20 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.6 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n5U7oDRk016627 for <3717@emacsbugs.donarmstrong.com>; Tue, 30 Jun 2009 00:50:14 -0700 Received: (qmail invoked by alias); 30 Jun 2009 07:50:06 -0000 Received: from p54867DB8.dip.t-dialin.net (EHLO turtle.gmx.de) [84.134.125.184] by mail.gmx.net (mp007) with SMTP; 30 Jun 2009 09:50:06 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1/VwL8Z5UnV5JUqk6BRIQZ8Hylo9dK9qTUd2L/rbu epS3uagubibH3P Received: by turtle.gmx.de (Postfix, from userid 1000) id 83A83354B3; Tue, 30 Jun 2009 09:50:05 +0200 (CEST) From: Sven Joachim To: Stefan Monnier Cc: 3717@debbugs.gnu.org, jidanni@jidanni.org Subject: Re: bug#3717: M-x man completion References: <87bpo63gxh.fsf@jidanni.org> Date: Tue, 30 Jun 2009 09:50:05 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 30 Jun 2009 00:02:33 +0200") Message-ID: <87bpo6p3de.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 On 2009-06-30 00:02 +0200, Stefan Monnier wrote: >>>>>> "jidanni" == jidanni writes: > >> severity: wishlist >> I was thinking when M-x man prompts >> Manual entry (default Neurdsburg): >> wouldn't it be neat if there was completion, just like for >> M-! shell-command... > > I use the patch below. It's very lightly tested. Hey, cool! Works great for me. Sven From jidanni@jidanni.org Tue Jun 30 12:52:25 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 30 Jun 2009 19:52:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.7 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,SARE_RECV_SPAM_DOMN0b autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from homiemail-a2.g.dreamhost.com (caiajhbdcaid.dreamhost.com [208.97.132.83]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5UJqL59013935 for <3717@emacsbugs.donarmstrong.com>; Tue, 30 Jun 2009 12:52:23 -0700 Received: from jidanni.org (122-127-32-71.dynamic.hinet.net [122.127.32.71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id 53E75D2729; Tue, 30 Jun 2009 12:52:21 -0700 (PDT) From: jidanni@jidanni.org To: svenjoac@gmx.de Cc: monnier@iro.umontreal.ca, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> Date: Wed, 01 Jul 2009 03:52:19 +0800 Message-ID: <87ab3pfqj0.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> I use the patch below. It's very lightly tested. SJ> Hey, cool! Works great for me. I hope it gets included into emacs then. From gg@zip.com.au Tue Jun 30 15:38:21 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 30 Jun 2009 22:38:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-14.pacific.net.au [125.255.80.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5UMcG9F010345 for <3717@emacsbugs.donarmstrong.com>; Tue, 30 Jun 2009 15:38:18 -0700 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id AA38E4EC062; Wed, 1 Jul 2009 08:38:15 +1000 (EST) Received: from blah.blah (ppp23D3.dyn.pacific.net.au [61.8.35.211]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 645CF8C52; Wed, 1 Jul 2009 08:38:12 +1000 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1MLlxo-00023w-70; Wed, 01 Jul 2009 08:38:08 +1000 From: Kevin Ryde To: 3717@debbugs.gnu.org Cc: jidanni@jidanni.org Subject: Re: bug#3717: M-x man completion Organization: Bah Humbug References: <87bpo63gxh.fsf@jidanni.org> Date: Wed, 01 Jul 2009 08:38:07 +1000 In-Reply-To: (Stefan Monnier's message of "Tue, 30 Jun 2009 00:02:33 +0200") Message-ID: <87vdmdgxf4.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier writes: > > +(defun Man-completion-table (string pred action) As a bit of shameless self-promotion, I use my man-completion.el ... http://user42.tuxfamily.org/man-completion/index.html Among its feeping creatures it tries to cope with pages the same name in different sections, long names truncated to the tty width, a cache because man -k takes a couple of seconds for me, and filenames for M-x man "-l foo". From juri@jurta.org Tue Nov 24 09:15:46 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 24 Nov 2009 17:15:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAOHFi80002968 for <3717@emacsbugs.donarmstrong.com>; Tue, 24 Nov 2009 09:15:46 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.34.225.cable.starman.ee [82.131.34.225]) by mx1.starman.ee (Postfix) with ESMTP id B82893F4132; Tue, 24 Nov 2009 19:15:35 +0200 (EET) From: Juri Linkov To: monnier@iro.umontreal.ca Cc: jidanni@jidanni.org, user42@zip.com.au, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> Date: Tue, 24 Nov 2009 19:11:32 +0200 In-Reply-To: <87ab3pfqj0.fsf@jidanni.org> (jidanni@jidanni.org's message of "Wed, 01 Jul 2009 03:52:19 +0800") Message-ID: <87ocmsqa7z.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> I use the patch below. It's very lightly tested. > SJ> Hey, cool! Works great for me. > I hope it gets included into emacs then. Stefan, could you please install your patch that implements completions for `man'. This is very useful. Maybe later Kevin Ryde will add more code to man.el from his man-completion.el. Some useful things in man-completion.el are the cache for `man -k', handling same names in different sections. Also part of man-completion.el deals with man-completion-at-point that returns a man page name as a string found at point. I think this part should be properly integrated into the "thing-at-point" framework. -- Juri Linkov http://www.jurta.org/emacs/ From juri@jurta.org Tue Nov 24 09:15:47 2009 Received: (at control) by emacsbugs.donarmstrong.com; 24 Nov 2009 17:15:47 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.4 required=4.0 tests=AWL,ONEWORD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAOHFjRu002970 for ; Tue, 24 Nov 2009 09:15:47 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.34.225.cable.starman.ee [82.131.34.225]) by mx1.starman.ee (Postfix) with ESMTP id 766393F40EF for ; Tue, 24 Nov 2009 19:15:37 +0200 (EET) From: Juri Linkov To: control@debbugs.gnu.org Subject: control Organization: JURTA Date: Tue, 24 Nov 2009 19:11:57 +0200 Message-ID: <87aaycqa04.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii merge 3717 4056 thanks From monnier@faina.iro.umontreal.ca Tue Nov 24 12:01:10 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 24 Nov 2009 20:01:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.4 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAOK18SD017609 for <3717@emacsbugs.donarmstrong.com>; Tue, 24 Nov 2009 12:01:10 -0800 Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id nAOK175K032328; Tue, 24 Nov 2009 15:01:07 -0500 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 381153A1B6; Tue, 24 Nov 2009 15:01:07 -0500 (EST) From: Stefan Monnier To: Juri Linkov Cc: jidanni@jidanni.org, user42@zip.com.au, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> Date: Tue, 24 Nov 2009 15:01:07 -0500 In-Reply-To: <87ocmsqa7z.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 24 Nov 2009 19:11:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3413=0 > Stefan, could you please install your patch that implements > completions for `man'. This is very useful. Yes, done, thank you, Stefan From gg@zip.com.au Tue Nov 24 15:00:50 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 24 Nov 2009 23:00:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,FVGT_m_MULTI_ODD,GENDER, HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-1.pacific.net.au [61.8.2.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAON0m8J000917 for <3717@emacsbugs.donarmstrong.com>; Tue, 24 Nov 2009 15:00:49 -0800 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 7C0FF510BAE; Wed, 25 Nov 2009 10:00:46 +1100 (EST) Received: from blah.blah (ppp291C.dyn.pacific.net.au [61.8.41.28]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 4494227451; Wed, 25 Nov 2009 10:00:45 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1ND4Kn-0000rv-Fe; Wed, 25 Nov 2009 09:58:09 +1100 From: Kevin Ryde To: Juri Linkov Cc: monnier@iro.umontreal.ca, jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> Date: Wed, 25 Nov 2009 09:58:09 +1100 In-Reply-To: <87ocmsqa7z.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 24 Nov 2009 19:11:32 +0200") Message-ID: <87k4xf4jjy.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Juri Linkov writes: > > man-completion.el are the cache for `man -k' It's pretty vital for me, since man -k is about 1 to 2 seconds per run, which is too slow if you hit tab a few times (twice each to see the completion list). > handling same names in different sections. It's been through a few goes at making it friendly for both page names and file names and stuff. :-) > Also part of man-completion.el deals with man-completion-at-point > that returns a man page name as a string found at point. That's another been though loosening and tightening. I quite like what I got to for line-break hyphenations. I looked last week at Man-hyphenated-reference-regexp and wondered if it was the same thing, but the docstring of Man-possibly-hyphenated-word about returning the previous line's word like "tcgetp-" suggested not. If it is the same then a U+2010 hyphen could be worked in there -- it comes out of recent groff "-Tutf8". If nothing else then give the following bit a go. man-db truncates page names longer than about half the screen width. (Long names arise from perl classes.) 2009-11-24 Kevin Ryde * man.el (Man-completion-table): default-directory "/" in case doesn't otherwise exist. process-environment COLUMNS=999 so as not to truncate long names. process-connection-type pipe to avoid any chance of hitting the pseudo-tty TIOCGWINSZ. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=man.el.no-truncate.diff --- man.el.~1.187.~ 2009-11-25 09:08:03.000000000 +1100 +++ man.el 2009-11-25 09:26:02.000000000 +1100 @@ -754,13 +754,17 @@ ((memq action '(t nil)) (let ((table '())) (with-temp-buffer + (setq default-directory "/") ;; in case inherited doesn't exist ;; Actually for my `man' the arg is a regexp. Don't know how ;; standard that is. Also, it's not clear what kind of ;; regexp are accepted: under GNU/Linux it seems it's ERE-style, ;; whereas under MacOSX it seems to be BRE-style and ;; doesn't accept backslashes at all. Let's not bother to ;; quote anything. - (call-process "man" nil '(t nil) nil "-k" (concat "^" string)) + (let ((process-connection-type nil) ;; pipe + (process-environment (copy-sequence process-environment))) + (setenv "COLUMNS" "999") ;; don't truncate long names + (call-process "man" nil '(t nil) nil "-k" (concat "^" string))) (goto-char (point-min)) (while (re-search-forward "^[^ \t\n]+" nil t) (push (match-string 0) table))) --=-=-=-- From gg@zip.com.au Tue Nov 24 15:45:56 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 24 Nov 2009 23:45:56 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-5.pacific.net.au [61.8.2.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAONjrUL008851 for <3717@emacsbugs.donarmstrong.com>; Tue, 24 Nov 2009 15:45:55 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id 8A5FD190228; Wed, 25 Nov 2009 10:45:52 +1100 (EST) Received: from blah.blah (ppp291C.dyn.pacific.net.au [61.8.41.28]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 9CE0C8C2C; Wed, 25 Nov 2009 10:45:51 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1ND54t-0001eT-OX; Wed, 25 Nov 2009 10:45:47 +1100 From: Kevin Ryde To: Juri Linkov Cc: monnier@iro.umontreal.ca, jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> Date: Wed, 25 Nov 2009 10:45:47 +1100 In-Reply-To: <87k4xf4jjy.fsf@blah.blah> (Kevin Ryde's message of "Wed, 25 Nov 2009 09:58:09 +1100") Message-ID: <87r5rn32s4.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Oh, and I've also found case-insensitive completion best for page names, when trying to type bizarre-case things like the x11 funcs. I was going to make the sensitivity configurable, or switchable with C-t like isearch, but never thought of a good way, so it's hard coded insensitive -- with the justification that man itself is case-insensitive on the command line. :-) From eliz@gnu.org Tue Nov 24 20:21:46 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 25 Nov 2009 04:21:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout23.012.net.il (mtaout23.012.net.il [80.179.55.175]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAP4LiWQ001360 for <3717@emacsbugs.donarmstrong.com>; Tue, 24 Nov 2009 20:21:45 -0800 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0KTN00600DAWMY00@a-mtaout23.012.net.il> for 3717@emacsbugs.donarmstrong.com; Wed, 25 Nov 2009 06:21:37 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.37.193]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KTN006X6DG0K600@a-mtaout23.012.net.il>; Wed, 25 Nov 2009 06:21:37 +0200 (IST) Date: Wed, 25 Nov 2009 06:21:42 +0200 From: Eli Zaretskii Subject: Re: bug#3717: M-x man completion In-reply-to: <87k4xf4jjy.fsf@blah.blah> X-012-Sender: halo1@inter.net.il To: Kevin Ryde , 3717@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: <83638znsix.fsf@gnu.org> References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> > From: Kevin Ryde > Date: Wed, 25 Nov 2009 09:58:09 +1100 > Cc: 3717@emacsbugs.donarmstrong.com, jidanni@jidanni.org > > - (call-process "man" nil '(t nil) nil "-k" (concat "^" string)) > + (let ((process-connection-type nil) ;; pipe > + (process-environment (copy-sequence process-environment))) > + (setenv "COLUMNS" "999") ;; don't truncate long names > + (call-process "man" nil '(t nil) nil "-k" (concat "^" string))) This needs to deal with versions of `man' that don't support the -k switch. From monnier@iro.umontreal.ca Wed Nov 25 06:47:30 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 25 Nov 2009 14:47:30 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAPElSGB026164 for <3717@emacsbugs.donarmstrong.com>; Wed, 25 Nov 2009 06:47:29 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvYEAG/SDEtFpYc//2dsb2JhbACBTdQ6hDIEihY X-IronPort-AV: E=Sophos;i="4.47,286,1257138000"; d="scan'208";a="49991015" Received: from 69-165-135-63.dsl.teksavvy.com (HELO pastel.home) ([69.165.135.63]) by ironport2-out.pppoe.ca with ESMTP; 25 Nov 2009 09:47:22 -0500 Received: by pastel.home (Postfix, from userid 20848) id 60A5880E3; Wed, 25 Nov 2009 09:47:22 -0500 (EST) From: Stefan Monnier To: Eli Zaretskii Cc: 3717@debbugs.gnu.org, Kevin Ryde Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> <83638znsix.fsf@gnu.org> Date: Wed, 25 Nov 2009 09:47:22 -0500 In-Reply-To: <83638znsix.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Nov 2009 06:21:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> - (call-process "man" nil '(t nil) nil "-k" (concat "^" string)) >> + (let ((process-connection-type nil) ;; pipe >> + (process-environment (copy-sequence process-environment))) >> + (setenv "COLUMNS" "999") ;; don't truncate long names >> + (call-process "man" nil '(t nil) nil "-k" (concat "^" string))) > This needs to deal with versions of `man' that don't support the -k > switch. It pretty much does, I believe. At worst (i.e. in case that "man" sends its error message to stdout rather than stderr) it may suggest a couple of words of completion which are taken from the error message. I.e. I wouldn't worry about it for now, Stefan From juri@jurta.org Wed Nov 25 09:31:42 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 25 Nov 2009 17:31:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,FOURLA,GENDER, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAPHVeRU010144 for <3717@emacsbugs.donarmstrong.com>; Wed, 25 Nov 2009 09:31:42 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.52.48.cable.starman.ee [82.131.52.48]) by mx1.starman.ee (Postfix) with ESMTP id 421953F416D; Wed, 25 Nov 2009 19:31:32 +0200 (EET) From: Juri Linkov To: Stefan Monnier Cc: jidanni@jidanni.org, user42@zip.com.au, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> Date: Wed, 25 Nov 2009 19:29:42 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 24 Nov 2009 15:01:07 -0500") Message-ID: <87d4364lmh.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> Stefan, could you please install your patch that implements >> completions for `man'. This is very useful. > > Yes, done, thank you, Thanks. Currently it doesn't add a section name to the end of completion strings. So it is not clear to which section does a manual belong and also it's impossible to select an ambiguous name that belongs to different sections. For instance, typing `M-x man RET lib TAB' displays only one completion whereas there are two manuals in different sections: `lib (3erl)' for Erlang and `lib (3perl)' for Perl. Replacing a regexp in your change with "^[^ \t\n]+\\([ \t\n]+[^-)]+)\\)?" that adds section names to completion strings fixes this problem, so the *Completions* buffer displays in the aforementioned case: Possible completions are: lib (3erl) lib (3perl) WDYT? -- Juri Linkov http://www.jurta.org/emacs/ From monnier@iro.umontreal.ca Wed Nov 25 11:30:24 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 25 Nov 2009 19:30:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAPJUMqK022920 for <3717@emacsbugs.donarmstrong.com>; Wed, 25 Nov 2009 11:30:24 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am8FABkUDUtFpYc//2dsb2JhbACBTtRghDIEihY X-IronPort-AV: E=Sophos;i="4.47,287,1257138000"; d="scan'208";a="50015488" Received: from 69-165-135-63.dsl.teksavvy.com (HELO pastel.home) ([69.165.135.63]) by ironport2-out.pppoe.ca with ESMTP; 25 Nov 2009 14:30:17 -0500 Received: by pastel.home (Postfix, from userid 20848) id C468C80E3; Wed, 25 Nov 2009 14:30:16 -0500 (EST) From: Stefan Monnier To: Juri Linkov Cc: jidanni@jidanni.org, user42@zip.com.au, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> Date: Wed, 25 Nov 2009 14:30:16 -0500 In-Reply-To: <87d4364lmh.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 25 Nov 2009 19:29:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Replacing a regexp in your change with "^[^ \t\n]+\\([ \t\n]+[^-)]+)\\)?" > that adds section names to completion strings fixes this problem, > so the *Completions* buffer displays in the aforementioned case: Fine by me, but please try and make the regexp a bit tighter. E.g. the above one doesn't have an explicit "(" and allows several spaces between the page name and the section, whereas AFAICT there's never more than one space there. Stefan From juri@jurta.org Wed Nov 25 13:18:19 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 25 Nov 2009 21:18:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAPLIH5e001463 for <3717@emacsbugs.donarmstrong.com>; Wed, 25 Nov 2009 13:18:19 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.34.85.cable.starman.ee [82.131.34.85]) by mx1.starman.ee (Postfix) with ESMTP id 9B3033F4132; Wed, 25 Nov 2009 23:18:10 +0200 (EET) From: Juri Linkov To: Stefan Monnier Cc: jidanni@jidanni.org, user42@zip.com.au, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> Date: Wed, 25 Nov 2009 23:17:20 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 25 Nov 2009 14:30:16 -0500") Message-ID: <87ocmqcnj3.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> Replacing a regexp in your change with "^[^ \t\n]+\\([ \t\n]+[^-)]+)\\)?" >> that adds section names to completion strings fixes this problem, >> so the *Completions* buffer displays in the aforementioned case: > > Fine by me, but please try and make the regexp a bit tighter. E.g. the > above one doesn't have an explicit "(" and allows several spaces between > the page name and the section, whereas AFAICT there's never more than > one space there. Done. -- Juri Linkov http://www.jurta.org/emacs/ From gg@zip.com.au Wed Nov 25 14:53:36 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 25 Nov 2009 22:53:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-5.pacific.net.au [61.8.2.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAPMrZNp010206 for <3717@emacsbugs.donarmstrong.com>; Wed, 25 Nov 2009 14:53:36 -0800 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id 303CB19E673; Thu, 26 Nov 2009 09:53:34 +1100 (EST) Received: from blah.blah (ppp2DC6.dyn.pacific.net.au [61.8.45.198]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id BE69A27433; Thu, 26 Nov 2009 09:53:33 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NDQjo-0000sP-GO; Thu, 26 Nov 2009 09:53:28 +1100 From: Kevin Ryde To: Eli Zaretskii Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> <83638znsix.fsf@gnu.org> Date: Thu, 26 Nov 2009 09:53:28 +1100 In-Reply-To: <83638znsix.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Nov 2009 06:21:42 +0200") Message-ID: <87fx82tdw7.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Eli Zaretskii writes: > > This needs to deal with versions of `man' that don't support the -k > switch. Is the "apropos" program better? It's been about 15 years since I had to use anything other than man-db :-). From gg@zip.com.au Wed Nov 25 15:04:25 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 25 Nov 2009 23:04:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-1.pacific.net.au [61.8.2.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAPN4NCi010953 for <3717@emacsbugs.donarmstrong.com>; Wed, 25 Nov 2009 15:04:25 -0800 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 98342511AC4; Thu, 26 Nov 2009 10:04:22 +1100 (EST) Received: from blah.blah (ppp2DC6.dyn.pacific.net.au [61.8.45.198]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id ED4FD2740F; Thu, 26 Nov 2009 10:04:21 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NDQuG-0000sh-GN; Thu, 26 Nov 2009 10:04:16 +1100 From: Kevin Ryde To: Juri Linkov Cc: Stefan Monnier , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> Date: Thu, 26 Nov 2009 10:04:16 +1100 In-Reply-To: <87d4364lmh.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 25 Nov 2009 19:29:42 +0200") Message-ID: <87bpiqtde7.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Juri Linkov writes: > > Possible completions are: > lib (3erl) > lib (3perl) If you complete from "li" it gives "lib (", which will make man error out. I insert a bare "lib" for such cases so that completion stops without the "(" for whatever is man's default page for "lib". You may have seen the "chmod" example in my code. I also put in stuff like "3erl lib", since you can enter it like that to man, and it can be easier to give the section first then complete among pages in the section, as opposed to a section suffix. That latter probably doesn't cooperate with Stefan's prefix-based cache thing as it stands. But I found it better to cache all page names once, because a "-k" run is pretty much as slow asking for a few matches as many. I did say there was lots of things I've already been through for friendliness and features! :-) From gg@zip.com.au Wed Nov 25 15:11:29 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 25 Nov 2009 23:11:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-5.pacific.net.au [61.8.2.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAPNBScc012434 for <3717@emacsbugs.donarmstrong.com>; Wed, 25 Nov 2009 15:11:29 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id D6E8B19A798; Thu, 26 Nov 2009 10:11:26 +1100 (EST) Received: from blah.blah (ppp2DC6.dyn.pacific.net.au [61.8.45.198]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id C7BF78C24; Thu, 26 Nov 2009 10:11:25 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NDR16-0000t9-6F; Thu, 26 Nov 2009 10:11:20 +1100 From: Kevin Ryde To: Stefan Monnier Cc: Juri Linkov , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> Date: Thu, 26 Nov 2009 10:11:19 +1100 In-Reply-To: (Stefan Monnier's message of "Tue, 24 Nov 2009 15:01:07 -0500") Message-ID: <877htetd2g.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier writes: > > Yes, done In the completions table I insinuate "-k " and "-l " so it's possible to type those things without needing C-q Space. Is there a better way to defang `minibuffer-complete-word', ie. make it just insert a space in certain circumstances? (The way M-x man accepts "-k pattern" seems to be a well-kept secret -- or is it obvious to everyone except me!) From gg@zip.com.au Wed Nov 25 15:18:40 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 25 Nov 2009 23:18:40 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-5.pacific.net.au [61.8.2.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAPNIdFL012833 for <3717@emacsbugs.donarmstrong.com>; Wed, 25 Nov 2009 15:18:40 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id 47EC819EB5A; Thu, 26 Nov 2009 10:18:38 +1100 (EST) Received: from blah.blah (ppp2DC6.dyn.pacific.net.au [61.8.45.198]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 9212B8C1E; Thu, 26 Nov 2009 10:18:37 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NDR84-0000td-CE; Thu, 26 Nov 2009 10:18:32 +1100 From: Kevin Ryde To: Juri Linkov Cc: Stefan Monnier , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87ocmqcnj3.fsf@mail.jurta.org> Date: Thu, 26 Nov 2009 10:18:32 +1100 In-Reply-To: <87ocmqcnj3.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 25 Nov 2009 23:17:20 +0200") Message-ID: <873a42tcqf.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Juri Linkov writes: > > Done. Incidentally, I'm just today tinkering in my stuff with keeping the description part of that -k output in the completions table too, to make it available for completing-help.el. I think icicles.el has a similar help/info thing for completions, but I haven't looked into that one yet. From monnier@iro.umontreal.ca Wed Nov 25 19:03:36 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 03:03:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQ33Yum031537 for <3717@emacsbugs.donarmstrong.com>; Wed, 25 Nov 2009 19:03:35 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArcEALN+DUtFpYc//2dsb2JhbACBTdMHhDIEihc X-IronPort-AV: E=Sophos;i="4.47,290,1257138000"; d="scan'208";a="50052276" Received: from 69-165-135-63.dsl.teksavvy.com (HELO ceviche.home) ([69.165.135.63]) by ironport2-out.pppoe.ca with ESMTP; 25 Nov 2009 22:03:28 -0500 Received: by ceviche.home (Postfix, from userid 20848) id D40F3B40E6; Wed, 25 Nov 2009 22:03:27 -0500 (EST) From: Stefan Monnier To: Kevin Ryde Cc: Juri Linkov , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <877htetd2g.fsf@blah.blah> Date: Wed, 25 Nov 2009 22:03:27 -0500 In-Reply-To: <877htetd2g.fsf@blah.blah> (Kevin Ryde's message of "Thu, 26 Nov 2009 10:11:19 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > (The way M-x man accepts "-k pattern" seems to be a well-kept secret -- > or is it obvious to everyone except me!) It's not a feature, AFAIK, more like an accident. M-x man xterm|tail RET also works, but again, it's just an accident. Hopefully at some point we'll get rid of the sed script and then we may run "man" without going through a shell, in which case those accidents won't work any more. Stefan From eliz@gnu.org Wed Nov 25 20:20:42 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 04:20:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout21.012.net.il (mtaout21.012.net.il [80.179.55.169]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQ4KeKs006334 for <3717@emacsbugs.donarmstrong.com>; Wed, 25 Nov 2009 20:20:42 -0800 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0KTP00K007Z2WP00@a-mtaout21.012.net.il> for 3717@emacsbugs.donarmstrong.com; Thu, 26 Nov 2009 06:20:19 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.37.193]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KTP00KLD81UFV10@a-mtaout21.012.net.il>; Thu, 26 Nov 2009 06:20:19 +0200 (IST) Date: Thu, 26 Nov 2009 06:20:25 +0200 From: Eli Zaretskii Subject: Re: bug#3717: M-x man completion In-reply-to: <87fx82tdw7.fsf@blah.blah> X-012-Sender: halo1@inter.net.il To: Kevin Ryde Cc: 3717@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: <83zl69nchi.fsf@gnu.org> References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> <83638znsix.fsf@gnu.org> <87fx82tdw7.fsf@blah.blah> > From: Kevin Ryde > Cc: 3717@emacsbugs.donarmstrong.com > Date: Thu, 26 Nov 2009 09:53:28 +1100 > > Eli Zaretskii writes: > > > > This needs to deal with versions of `man' that don't support the -k > > switch. > > Is the "apropos" program better? It could be, but it also isn't universally available, especially if you are on a non-Posix platform. Ideally, `man' should test what's available, like `grep' does, and if nothing is, simply not provide this feature. From juri@jurta.org Thu Nov 26 01:44:49 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 09:44:49 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx2.starman.ee (smtp-out4.starman.ee [85.253.0.6]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQ9ilnM001442 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 01:44:49 -0800 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.35.156.cable.starman.ee [82.131.35.156]) by mx2.starman.ee (Postfix) with ESMTP id C5D443F40D8; Thu, 26 Nov 2009 11:44:41 +0200 (EET) From: Juri Linkov To: Kevin Ryde Cc: Stefan Monnier , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87ocmqcnj3.fsf@mail.jurta.org> <873a42tcqf.fsf@blah.blah> Date: Thu, 26 Nov 2009 11:28:37 +0200 In-Reply-To: <873a42tcqf.fsf@blah.blah> (Kevin Ryde's message of "Thu, 26 Nov 2009 10:18:32 +1100") Message-ID: <878wdt4ou2.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Incidentally, I'm just today tinkering in my stuff with keeping the > description part of that -k output in the completions table too, to make > it available for completing-help.el. I think icicles.el has a similar > help/info thing for completions, but I haven't looked into that one yet. You could try to use annotations in the *Completions* buffer. I can't say in advance how convenient it would be to use them for man completions. -- Juri Linkov http://www.jurta.org/emacs/ From juri@jurta.org Thu Nov 26 01:44:49 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 09:44:49 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx2.starman.ee (smtp-out4.starman.ee [85.253.0.6]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQ9il7R001441 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 01:44:49 -0800 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.35.156.cable.starman.ee [82.131.35.156]) by mx2.starman.ee (Postfix) with ESMTP id 0BA423F40C9; Thu, 26 Nov 2009 11:44:39 +0200 (EET) From: Juri Linkov To: Kevin Ryde Cc: Stefan Monnier , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> Date: Thu, 26 Nov 2009 11:28:27 +0200 In-Reply-To: <87bpiqtde7.fsf@blah.blah> (Kevin Ryde's message of "Thu, 26 Nov 2009 10:04:16 +1100") Message-ID: <87aay94ouh.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> Possible completions are: >> lib (3erl) >> lib (3perl) > > If you complete from "li" it gives "lib (", which will make man error > out. What man error? I see no problem here. If the user sees an incomplete manual name with the opening parenthesis, then s?he continues to complete it to the specific section name. > I insert a bare "lib" for such cases so that completion stops > without the "(" for whatever is man's default page for "lib". You may > have seen the "chmod" example in my code. I think it's bad to hide the fact that a manual name is ambiguous and that the user have to select the necessary section instead of using an arbitrary default section. IOW, what I don't like is missing indication that may cause to select a wrong section. For manual names that belong only to one section, removing the section name would be ok. `M-x woman' deals with this problem by asking a manual file name when the selected manual name is ambiguous. > I also put in stuff like "3erl lib", since you can enter it like that to > man, and it can be easier to give the section first then complete among > pages in the section, as opposed to a section suffix. This duplicates completions for every manual name with e.g. "lib (3erl)" and "3erl lib". Perhaps this is not a problem, because when the first character of the completion is a digit, then completions are performed on the format "3erl lib". Otherwise, completions are performed on the format "lib (3erl)". For the format "lib (3erl)", you can narrow all completions to the specific section with `M-x man RET * (3erl) TAB'. But for the "3erl lib" format, it is easier to type `M-x man RET 3erl TAB'. So it seems this is a good change. > That latter probably doesn't cooperate with Stefan's prefix-based cache > thing as it stands. But I found it better to cache all page names once, > because a "-k" run is pretty much as slow asking for a few matches as > many. > > I did say there was lots of things I've already been through for > friendliness and features! :-) In your first message to bug#3717, you named them "feeping creatures" :-) (I hope most features in man-completion.el are not creeping.) -- Juri Linkov http://www.jurta.org/emacs/ From monnier@iro.umontreal.ca Thu Nov 26 08:54:27 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 16:54:27 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQGsPUN011033 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 08:54:27 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At8EAEdBDktFpYc//2dsb2JhbACBTdNfhDEEihk X-IronPort-AV: E=Sophos;i="4.47,295,1257138000"; d="scan'208";a="50087468" Received: from 69-165-135-63.dsl.teksavvy.com (HELO ceviche.home) ([69.165.135.63]) by ironport2-out.pppoe.ca with ESMTP; 26 Nov 2009 11:54:19 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 5F0DEB40E6; Thu, 26 Nov 2009 11:54:19 -0500 (EST) From: Stefan Monnier To: Juri Linkov Cc: Kevin Ryde , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> Date: Thu, 26 Nov 2009 11:54:19 -0500 In-Reply-To: <87aay94ouh.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 26 Nov 2009 11:28:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> If you complete from "li" it gives "lib (", which will make man error >> out. > What man error? I see no problem here. If the user sees an incomplete > manual name with the opening parenthesis, then s?he continues to complete it > to the specific section name. Maybe, but maybe the user doesn't want to care. "lib" is a valid name to pass to man, so completion should provide it. After all, M-x man can show *all* the pages found, so the choice of section can be made later. >> I also put in stuff like "3erl lib", since you can enter it like that to >> man, and it can be easier to give the section first then complete among >> pages in the section, as opposed to a section suffix. > This duplicates completions for every manual name with e.g. > "lib (3erl)" and "3erl lib". Yes, a better way to do it would be to consider "3erl " "as a directory", i.e. the completion table should recognize it and set a "boundary" right there. It doesn't need to provide completion for the section names. > For the format "lib (3erl)", you can narrow all completions to the > specific section with `M-x man RET * (3erl) TAB'. But for the > "3erl lib" format, it is easier to type `M-x man RET 3erl TAB'. You could also do it via M-x man RET 3erl C-a TAB since a * is implicitly added at point. Stefan From gg@zip.com.au Thu Nov 26 13:13:04 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 21:13:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-1.pacific.net.au [61.8.2.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQLD2fG001974 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 13:13:04 -0800 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 4CAF6512694; Fri, 27 Nov 2009 08:13:01 +1100 (EST) Received: from blah.blah (ppp2F4D.dyn.pacific.net.au [61.8.47.77]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id BBEBE2740F; Fri, 27 Nov 2009 08:13:00 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NDle0-00019i-JK; Fri, 27 Nov 2009 08:12:52 +1100 From: Kevin Ryde To: Stefan Monnier Cc: Juri Linkov , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <877htetd2g.fsf@blah.blah> Date: Fri, 27 Nov 2009 08:12:52 +1100 In-Reply-To: (Stefan Monnier's message of "Wed, 25 Nov 2009 22:03:27 -0500") Message-ID: <87my2956sr.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier writes: > > It's not a feature, AFAIK, more like an accident. I'm pretty sure it's intentional, explicit in Man-highlight-references, just not described in the M-x man docstring, and only a bullet point in the commentary ... > sed script That bit's pretty scary. I supposed it could equally well de-mangle in the buffer with some lisp, if it was to be re-done. From gg@zip.com.au Thu Nov 26 13:37:03 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 21:37:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-5.pacific.net.au [61.8.2.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQLb1Rl003945 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 13:37:03 -0800 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id D96DD19F0C0; Fri, 27 Nov 2009 08:37:00 +1100 (EST) Received: from blah.blah (ppp2F4D.dyn.pacific.net.au [61.8.47.77]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 4ECAE27416; Fri, 27 Nov 2009 08:37:00 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NDm1E-0001fj-JC; Fri, 27 Nov 2009 08:36:52 +1100 From: Kevin Ryde To: Eli Zaretskii Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> <83638znsix.fsf@gnu.org> <87fx82tdw7.fsf@blah.blah> <83zl69nchi.fsf@gnu.org> Date: Fri, 27 Nov 2009 08:36:52 +1100 In-Reply-To: <83zl69nchi.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 26 Nov 2009 06:20:25 +0200") Message-ID: <87iqcx55or.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Eli Zaretskii writes: > > It could be, but it also isn't universally available, especially if > you are on a non-Posix platform. I see V7 doesn't have either :-) http://plan9.bell-labs.com/7thEdMan/index.html but that -k is in posix (and specified as an ERE regexp, answering a comment Stefan put), http://www.opengroup.org/onlinepubs/009695399/utilities/man.html > Ideally, `man' should test what's available, like `grep' does, and if > nothing is, simply not provide this feature. I'd be open to ideas for my code at least, as long as it's not merely defunct cp/m derivatives where there's a potential problem :). From gg@zip.com.au Thu Nov 26 14:01:22 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 22:01:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-5.pacific.net.au [61.8.2.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQM1Kmj005894 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 14:01:22 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id AC14C19E40F; Fri, 27 Nov 2009 09:01:19 +1100 (EST) Received: from blah.blah (ppp2F4D.dyn.pacific.net.au [61.8.47.77]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 12EF18C0F; Fri, 27 Nov 2009 09:01:18 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NDmOj-00020z-La; Fri, 27 Nov 2009 09:01:09 +1100 From: Kevin Ryde To: Juri Linkov Cc: Stefan Monnier , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> Date: Fri, 27 Nov 2009 09:01:08 +1100 In-Reply-To: <87aay94ouh.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 26 Nov 2009 11:28:27 +0200") Message-ID: <87einl54kb.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Juri Linkov writes: > > What man error? M-x man lib ( Ret => error in process sentinel: *Man lib (*: process exited abnormally with code 2 I think "(" goes onto the command line and the shell doesn't like it. (Only balanced parens for the section getting transformed to "man 1 lib" etc within M-x man.) > I think it's bad to hide the fact that a manual name is ambiguous and > that the user have to select the necessary section instead of using an > arbitrary default section. Perhaps that could be an option, but if so I think I'd try to bring up a display-completion-list thingie, to emphasise you're being asked to choose, since the incomplete "lib (" is no good. > For manual names that belong only to one section, removing the section > name would be ok. Yep, that's what I've got, to declutter. > when the first character > of the completion is a digit, then completions are performed on the > format "3erl lib". Otherwise, completions are performed on the > format "lib (3erl)". Yes. There's an occasional program name starting with a digit, but you can type "3 " or whatever with the space to get past that -- in fact if you want a specific section I think that's a pretty natural thing to type. > In your first message to bug#3717, you named them "feeping creatures" :-) You're not going to hold me to anything I said so long ago are you! :-) The perl searching for the default page name at point creeps a bit, but I've found it very helpful, and haven't had a better idea for where to tie it in. Stefan Monnier writes: > > "lib" is a valid name to pass to man, so completion should provide it. That was my rationale. > After all, M-x man > can show *all* the pages found, so the choice of section can be > made later. I didn't think of that, but yes. > Yes, a better way to do it would be to consider "3erl " "as > a directory", i.e. the completion table should recognize it and set > a "boundary" right there. It doesn't need to provide completion for the > section names. I haven't understood the boundaries thing. Is it as simple as making a space or "(" a boundary point? > You could also do it via M-x man RET 3erl C-a TAB since a * is > implicitly added at point. You've got to be smarter than me to think of that :). My main idea is that you can type M-x man "2 chmod", and likewise on the man command line, so completion should help you with that typing. From gg@zip.com.au Thu Nov 26 14:09:29 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 22:09:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-5.pacific.net.au [61.8.2.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQM9Rho007117 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 14:09:28 -0800 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id 0A94919F0F4; Fri, 27 Nov 2009 09:09:27 +1100 (EST) Received: from blah.blah (ppp2F4D.dyn.pacific.net.au [61.8.47.77]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 745EC27414; Fri, 27 Nov 2009 09:09:26 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NDmWd-00022K-3a; Fri, 27 Nov 2009 09:09:19 +1100 From: Kevin Ryde To: Juri Linkov Cc: Stefan Monnier , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87ocmqcnj3.fsf@mail.jurta.org> <873a42tcqf.fsf@blah.blah> <878wdt4ou2.fsf@mail.jurta.org> Date: Fri, 27 Nov 2009 09:09:18 +1100 In-Reply-To: <878wdt4ou2.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 26 Nov 2009 11:28:37 +0200") Message-ID: <87aay9546p.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Juri Linkov writes: > > You could try to use annotations in the *Completions* buffer. Ah yeah. > I can't say > in advance how convenient it would be to use them for man completions. Could be a bit noisy, or stop you easily seeing all of a medium-long list of completions. Is there a conventional builtin way to enable/disable annotations on a particular flavour of completion? A flag or function variable would work no doubt. But I might just tie-in to completing-help and whatever else and let them worry about how to select. From juri@jurta.org Thu Nov 26 14:42:04 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 22:42:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQMg2Zb009869 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 14:42:04 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.35.21.cable.starman.ee [82.131.35.21]) by mx1.starman.ee (Postfix) with ESMTP id 3D3A53F4132; Fri, 27 Nov 2009 00:41:55 +0200 (EET) From: Juri Linkov To: Kevin Ryde Cc: Stefan Monnier , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87einl54kb.fsf@blah.blah> Date: Fri, 27 Nov 2009 00:36:23 +0200 In-Reply-To: <87einl54kb.fsf@blah.blah> (Kevin Ryde's message of "Fri, 27 Nov 2009 09:01:08 +1100") Message-ID: <878wdskj6g.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> For manual names that belong only to one section, removing the section >> name would be ok. > > Yep, that's what I've got, to declutter. But then you don't see additional information about section names that may help to select the necessary manual. So I tend to agree with your implementation in man-completion.el that provides completions in 3 formats: without a section name, with the section name appended in parens, and prepended at the beginning: "chmod" "chmod (1)" "chmod (2)" "1 chmod" "2 chmod" -- Juri Linkov http://www.jurta.org/emacs/ From gg@zip.com.au Thu Nov 26 15:16:20 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 23:16:20 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-5.pacific.net.au [61.8.2.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQNGIcJ013440 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 15:16:20 -0800 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id 93EF619E232; Fri, 27 Nov 2009 10:16:16 +1100 (EST) Received: from blah.blah (ppp2F4D.dyn.pacific.net.au [61.8.47.77]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 2438127446; Fri, 27 Nov 2009 10:16:11 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NDnYZ-0002GL-Bb; Fri, 27 Nov 2009 10:15:23 +1100 From: Kevin Ryde To: Juri Linkov Cc: Stefan Monnier , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87einl54kb.fsf@blah.blah> <878wdskj6g.fsf@mail.jurta.org> Date: Fri, 27 Nov 2009 10:15:23 +1100 In-Reply-To: <878wdskj6g.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 27 Nov 2009 00:36:23 +0200") Message-ID: <87zl68514k.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Juri Linkov writes: > > But then you don't see additional information about section names that > may help to select the necessary manual. You mean on a unique name, like say "gunzip"? I wasn't terribly interested in the section number as a suffix if it's unique. Omitting it makes for a cleaner list; and it could be a bit confusing if the bare name is present for duplicated pages but not present for unique ones. But perhaps it's personal preference. From jidanni@jidanni.org Thu Nov 26 15:34:50 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 23:34:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.2 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER, SARE_RECV_SPAM_DOMN0b autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from homiemail-a7.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQNYn37014598 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 15:34:50 -0800 Received: from jidanni.org (218-163-1-232.dynamic.hinet.net [218.163.1.232]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTPSA id E227325C042; Thu, 26 Nov 2009 15:34:48 -0800 (PST) From: jidanni@jidanni.org To: juri@jurta.org Cc: user42@zip.com.au, monnier@iro.umontreal.ca, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <878wdskj6g.fsf@mail.jurta.org> Date: Fri, 27 Nov 2009 07:34:46 +0800 Message-ID: <87tywgeu7d.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii JL> "chmod (1)" You guys are way over my head but I remember man page name have no space before the "(". From gg@zip.com.au Thu Nov 26 16:24:46 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 27 Nov 2009 00:24:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-5.pacific.net.au [61.8.2.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAR0OjS1019083 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 16:24:46 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id 0C03219BC17; Fri, 27 Nov 2009 11:24:44 +1100 (EST) Received: from blah.blah (ppp2F4D.dyn.pacific.net.au [61.8.47.77]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 03E9E8C38; Fri, 27 Nov 2009 11:24:37 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NDod9-0002Vk-Q5; Fri, 27 Nov 2009 11:24:11 +1100 From: Kevin Ryde To: jidanni@jidanni.org Cc: juri@jurta.org, monnier@iro.umontreal.ca, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <878wdskj6g.fsf@mail.jurta.org> <87tywgeu7d.fsf@jidanni.org> Date: Fri, 27 Nov 2009 11:24:11 +1100 In-Reply-To: <87tywgeu7d.fsf@jidanni.org> (jidanni@jidanni.org's message of "Fri, 27 Nov 2009 07:34:46 +0800") Message-ID: <87k4xc4xxw.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii jidanni@jidanni.org writes: > > I remember man page name have no space > before the "(". That's my preference too. It's how cross-references appear in man pages, so I made the completions that way too, without worrying that "man -k" likes to output. From monnier@iro.umontreal.ca Thu Nov 26 18:31:21 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 27 Nov 2009 02:31:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAR2VJBl030278 for <3717@emacsbugs.donarmstrong.com>; Thu, 26 Nov 2009 18:31:21 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuQEAD/JDktFpYc//2dsb2JhbACBTNQJhDEEihk X-IronPort-AV: E=Sophos;i="4.47,298,1257138000"; d="scan'208";a="50134482" Received: from 69-165-135-63.dsl.teksavvy.com (HELO ceviche.home) ([69.165.135.63]) by ironport2-out.pppoe.ca with ESMTP; 26 Nov 2009 21:30:56 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 5FE3EB40E6; Thu, 26 Nov 2009 21:30:56 -0500 (EST) From: Stefan Monnier To: Kevin Ryde Cc: Juri Linkov , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87ocmqcnj3.fsf@mail.jurta.org> <873a42tcqf.fsf@blah.blah> <878wdt4ou2.fsf@mail.jurta.org> <87aay9546p.fsf@blah.blah> Date: Thu, 26 Nov 2009 21:30:56 -0500 In-Reply-To: <87aay9546p.fsf@blah.blah> (Kevin Ryde's message of "Fri, 27 Nov 2009 09:09:18 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> I can't say in advance how convenient it would be to use them for >> man completions. > Could be a bit noisy, or stop you easily seeing all of a medium-long > list of completions. Is there a conventional builtin way to > enable/disable annotations on a particular flavour of completion? > A flag or function variable would work no doubt. I've been mulling over completing-help for quite a while now and I don't think a customization var is a good solution. Instead, we'd want something more dynamic. An easy solution is to put a help-echo property on the completion string. Otherwise some completion-list-mode command should be provided to toggle annotations. Stefan From eliz@gnu.org Fri Nov 27 00:47:11 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 27 Nov 2009 08:47:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout21.012.net.il (mtaout21.012.net.il [80.179.55.169]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAR8l9Ju030578 for <3717@emacsbugs.donarmstrong.com>; Fri, 27 Nov 2009 00:47:11 -0800 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0KTR00E00EYKJA00@a-mtaout21.012.net.il> for 3717@emacsbugs.donarmstrong.com; Fri, 27 Nov 2009 10:47:03 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.37.193]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KTR00E80F2BAD10@a-mtaout21.012.net.il>; Fri, 27 Nov 2009 10:47:00 +0200 (IST) Date: Fri, 27 Nov 2009 10:47:08 +0200 From: Eli Zaretskii Subject: Re: bug#3717: M-x man completion In-reply-to: <87iqcx55or.fsf@blah.blah> X-012-Sender: halo1@inter.net.il To: Kevin Ryde Cc: 3717@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: <83ws1cmk1f.fsf@gnu.org> References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> <83638znsix.fsf@gnu.org> <87fx82tdw7.fsf@blah.blah> <83zl69nchi.fsf@gnu.org> <87iqcx55or.fsf@blah.blah> > From: Kevin Ryde > Cc: 3717@emacsbugs.donarmstrong.com > Date: Fri, 27 Nov 2009 08:36:52 +1100 > > Eli Zaretskii writes: > > > > It could be, but it also isn't universally available, especially if > > you are on a non-Posix platform. > > I see V7 doesn't have either :-) > > http://plan9.bell-labs.com/7thEdMan/index.html > > but that -k is in posix (and specified as an ERE regexp, answering a > comment Stefan put), > > http://www.opengroup.org/onlinepubs/009695399/utilities/man.html Emacs doesn't (and shouldn't, IMO) require Posix to work well. > > Ideally, `man' should test what's available, like `grep' does, and if > > nothing is, simply not provide this feature. > > I'd be open to ideas for my code at least, as long as it's not merely > defunct cp/m derivatives where there's a potential problem :). I'm not sure I understand the remark, but how about searching MANPATH directories ourselves? That would be much more portable, I think. From juri@jurta.org Fri Nov 27 01:44:24 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 27 Nov 2009 09:44:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAR9iM09003308 for <3717@emacsbugs.donarmstrong.com>; Fri, 27 Nov 2009 01:44:24 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.54.21.cable.starman.ee [82.131.54.21]) by mx1.starman.ee (Postfix) with ESMTP id 0154B3F4146; Fri, 27 Nov 2009 11:44:14 +0200 (EET) From: Juri Linkov To: Kevin Ryde Cc: Stefan Monnier , jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87einl54kb.fsf@blah.blah> <878wdskj6g.fsf@mail.jurta.org> <87zl68514k.fsf@blah.blah> Date: Fri, 27 Nov 2009 11:01:00 +0200 In-Reply-To: <87zl68514k.fsf@blah.blah> (Kevin Ryde's message of "Fri, 27 Nov 2009 10:15:23 +1100") Message-ID: <87y6lsmjuz.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> But then you don't see additional information about section names that >> may help to select the necessary manual. > > You mean on a unique name, like say "gunzip"? I wasn't terribly > interested in the section number as a suffix if it's unique. You are not interested in the section number for "gunzip" because you already know that it's a command name. I'm not interested in the section number for known commands too. But in the rest 90% cases, I would be terribly interested in the section number to know if the unique name belongs to 3erl or 3form or 3menu or 3nas or 3ncurses or 3perl or 3pm or 3readline or 3ssl or 3tiff or 3x. > Omitting it makes for a cleaner list; and it could be a bit confusing > if the bare name is present for duplicated pages but not present for > unique ones. I'd rather get rid of the bare name than of the section number appended to the manual name. > But perhaps it's personal preference. We could add an option. -- Juri Linkov http://www.jurta.org/emacs/ From juri@jurta.org Fri Nov 27 01:44:25 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 27 Nov 2009 09:44:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAR9iO95003309 for <3717@emacsbugs.donarmstrong.com>; Fri, 27 Nov 2009 01:44:25 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.54.21.cable.starman.ee [82.131.54.21]) by mx1.starman.ee (Postfix) with ESMTP id 203093F414F; Fri, 27 Nov 2009 11:44:17 +0200 (EET) From: Juri Linkov To: Kevin Ryde Cc: jidanni@jidanni.org, monnier@iro.umontreal.ca, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <878wdskj6g.fsf@mail.jurta.org> <87tywgeu7d.fsf@jidanni.org> <87k4xc4xxw.fsf@blah.blah> Date: Fri, 27 Nov 2009 11:04:34 +0200 In-Reply-To: <87k4xc4xxw.fsf@blah.blah> (Kevin Ryde's message of "Fri, 27 Nov 2009 11:24:11 +1100") Message-ID: <87fx80mjp1.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> I remember man page name have no space >> before the "(". > > That's my preference too. It's how cross-references appear in man > pages, so I made the completions that way too, without worrying that > "man -k" likes to output. A name with a space is more readable, but for completion it seems a name with no space would be better. -- Juri Linkov http://www.jurta.org/emacs/ From juri@jurta.org Sat Nov 28 10:19:13 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 28 Nov 2009 18:19:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx2.starman.ee (smtp-out4.starman.ee [85.253.0.6]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nASIJBKh026025 for <3717@emacsbugs.donarmstrong.com>; Sat, 28 Nov 2009 10:19:13 -0800 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.33.180.cable.starman.ee [82.131.33.180]) by mx2.starman.ee (Postfix) with ESMTP id 0CCD23F4103; Sat, 28 Nov 2009 20:19:04 +0200 (EET) From: Juri Linkov To: 3717@debbugs.gnu.org Cc: Kevin Ryde , jidanni@jidanni.org Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87einl54kb.fsf@blah.blah> <878wdskj6g.fsf@mail.jurta.org> <87zl68514k.fsf@blah.blah> <87y6lsmjuz.fsf@mail.jurta.org> Date: Sat, 28 Nov 2009 19:56:38 +0200 In-Reply-To: <87y6lsmjuz.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 27 Nov 2009 11:01:00 +0200") Message-ID: <878wdqbjll.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> But then you don't see additional information about section names that >>> may help to select the necessary manual. >> >> You mean on a unique name, like say "gunzip"? I wasn't terribly >> interested in the section number as a suffix if it's unique. > > You are not interested in the section number for "gunzip" because you > already know that it's a command name. I'm not interested in the > section number for known commands too. > > But in the rest 90% cases, I would be terribly interested in the section > number to know if the unique name belongs to 3erl or 3form or 3menu or 3nas > or 3ncurses or 3perl or 3pm or 3readline or 3ssl or 3tiff or 3x. I think with the Stefan's 2009-11-27 change we have almost perfect implementation. After typing `M-x man RET gunzip TAB' it stops at "gunzip", not at "gunzip(1)" (that you can get with another TAB). That's nice. The only problem I see is with the "2 chmod" format completion. Currently it's too difficult to use it. Let's see: M-x man RET 2 TAB [No match] Another attempt: M-x man RET 2 SPC [No match] Only after quoting SPC you get a list of completions for the section 2: M-x man RET 2 C-q SPC TAB I think it would be fine to list manuals of the section 2 after: M-x man RET 2 TAB because manual names that begin with a digit are very rare. Here I can find only one such command - "7z". We could add this sole name to the list of manuals from the section 7 on typing M-x man RET 7 TAB -- Juri Linkov http://www.jurta.org/emacs/ From gg@zip.com.au Sat Nov 28 11:50:37 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 28 Nov 2009 19:50:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-1.pacific.net.au [61.8.2.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nASJoZci002875 for <3717@emacsbugs.donarmstrong.com>; Sat, 28 Nov 2009 11:50:37 -0800 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 742755040D7; Sun, 29 Nov 2009 06:50:34 +1100 (EST) Received: from blah.blah (ppp2E3A.dyn.pacific.net.au [61.8.46.58]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 0407427410; Sun, 29 Nov 2009 06:50:28 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NETI9-0000nV-4Y; Sun, 29 Nov 2009 06:49:13 +1100 From: Kevin Ryde To: Eli Zaretskii Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> <83638znsix.fsf@gnu.org> <87fx82tdw7.fsf@blah.blah> <83zl69nchi.fsf@gnu.org> <87iqcx55or.fsf@blah.blah> <83ws1cmk1f.fsf@gnu.org> Date: Sun, 29 Nov 2009 06:49:12 +1100 In-Reply-To: <83ws1cmk1f.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 27 Nov 2009 10:47:08 +0200") Message-ID: <87pr72pgzr.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Eli Zaretskii writes: > > how about searching MANPATH directories ourselves? M-x woman does that, though finding the manpath isn't necessarily easy (with the man-db /etc/manpath.conf), and there can be pagename aliases found by lexgrog in the pages, which don't have actual filenames. If man can say its page names then asking it would have to be the most reliable way. I slightly hoped near enough to all mans could do that these days ... From gg@zip.com.au Sat Nov 28 12:15:58 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 28 Nov 2009 20:15:59 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-1.pacific.net.au [61.8.2.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nASKFvEX006223 for <3717@emacsbugs.donarmstrong.com>; Sat, 28 Nov 2009 12:15:58 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id 79EF55082C8; Sun, 29 Nov 2009 07:15:56 +1100 (EST) Received: from blah.blah (ppp2E3A.dyn.pacific.net.au [61.8.46.58]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 99C2C8C15; Sun, 29 Nov 2009 07:15:49 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NETh5-0000rF-0r; Sun, 29 Nov 2009 07:14:59 +1100 From: Kevin Ryde To: Juri Linkov Cc: 3717@debbugs.gnu.org, jidanni@jidanni.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87einl54kb.fsf@blah.blah> <878wdskj6g.fsf@mail.jurta.org> <87zl68514k.fsf@blah.blah> <87y6lsmjuz.fsf@mail.jurta.org> <878wdqbjll.fsf@mail.jurta.org> Date: Sun, 29 Nov 2009 07:14:58 +1100 In-Reply-To: <878wdqbjll.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 28 Nov 2009 19:56:38 +0200") Message-ID: <87hbsepfst.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Juri Linkov writes: > > The only problem I see is with the "2 chmod" format completion. It's quite important too, as it's the natural format from the man command line. > because manual names that begin with a digit are very rare. > Here I can find only one such command - "7z". Debian has an "822-date" program too, I don't know of any others. With some care it should be possible to treat them like any other name. From juri@jurta.org Sat Nov 28 15:28:16 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 28 Nov 2009 23:28:16 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nASNSENk024807 for <3717@emacsbugs.donarmstrong.com>; Sat, 28 Nov 2009 15:28:16 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.33.180.cable.starman.ee [82.131.33.180]) by mx1.starman.ee (Postfix) with ESMTP id 4FCD03F40EA; Sun, 29 Nov 2009 01:28:08 +0200 (EET) From: Juri Linkov To: Kevin Ryde Cc: 3717@debbugs.gnu.org, jidanni@jidanni.org Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87einl54kb.fsf@blah.blah> <878wdskj6g.fsf@mail.jurta.org> <87zl68514k.fsf@blah.blah> <87y6lsmjuz.fsf@mail.jurta.org> <878wdqbjll.fsf@mail.jurta.org> <87hbsepfst.fsf@blah.blah> Date: Sun, 29 Nov 2009 00:54:49 +0200 In-Reply-To: <87hbsepfst.fsf@blah.blah> (Kevin Ryde's message of "Sun, 29 Nov 2009 07:14:58 +1100") Message-ID: <87eini5jiu.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> The only problem I see is with the "2 chmod" format completion. > > It's quite important too, as it's the natural format from the man > command line. > >> because manual names that begin with a digit are very rare. >> Here I can find only one such command - "7z". > > Debian has an "822-date" program too, I don't know of any others. > With some care it should be possible to treat them like any other name. When I run "822-date", it says: 822-date: warning: This program is deprecated. Please use 'date -R' instead. So it's not important. But nevertheless we should take care about such rare cases. -- Juri Linkov http://www.jurta.org/emacs/ From juri@jurta.org Sat Nov 28 15:28:17 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 28 Nov 2009 23:28:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nASNSF4u024812 for <3717@emacsbugs.donarmstrong.com>; Sat, 28 Nov 2009 15:28:16 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.33.180.cable.starman.ee [82.131.33.180]) by mx1.starman.ee (Postfix) with ESMTP id E478F3F40EB; Sun, 29 Nov 2009 01:28:09 +0200 (EET) From: Juri Linkov To: Kevin Ryde Cc: 3717@debbugs.gnu.org, Eli Zaretskii Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> <83638znsix.fsf@gnu.org> <87fx82tdw7.fsf@blah.blah> <83zl69nchi.fsf@gnu.org> <87iqcx55or.fsf@blah.blah> <83ws1cmk1f.fsf@gnu.org> <87pr72pgzr.fsf@blah.blah> Date: Sun, 29 Nov 2009 00:59:19 +0200 In-Reply-To: <87pr72pgzr.fsf@blah.blah> (Kevin Ryde's message of "Sun, 29 Nov 2009 06:49:12 +1100") Message-ID: <87iqcu44qw.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > If man can say its page names then asking it would have to be the most > reliable way. It should be implemented to fail gracefully to not display completions when man can not say its page names. > I slightly hoped near enough to all mans could do that these days ... At least, all GNU/Linux men do that these days :-) -- Juri Linkov http://www.jurta.org/emacs/ From monnier@iro.umontreal.ca Sun Nov 29 07:34:35 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 29 Nov 2009 15:34:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nATFYXeg014481 for <3717@emacsbugs.donarmstrong.com>; Sun, 29 Nov 2009 07:34:35 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroEADYjEktFpYc//2dsb2JhbACBTdFFhDEEihk X-IronPort-AV: E=Sophos;i="4.47,308,1257138000"; d="scan'208";a="50279953" Received: from 69-165-135-63.dsl.teksavvy.com (HELO ceviche.home) ([69.165.135.63]) by ironport2-out.pppoe.ca with ESMTP; 29 Nov 2009 10:34:27 -0500 Received: by ceviche.home (Postfix, from userid 20848) id DF3E0B40E6; Sun, 29 Nov 2009 10:34:26 -0500 (EST) From: Stefan Monnier To: Juri Linkov Cc: 3717@debbugs.gnu.org, Kevin Ryde Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> <83638znsix.fsf@gnu.org> <87fx82tdw7.fsf@blah.blah> <83zl69nchi.fsf@gnu.org> <87iqcx55or.fsf@blah.blah> <83ws1cmk1f.fsf@gnu.org> <87pr72pgzr.fsf@blah.blah> <87iqcu44qw.fsf@mail.jurta.org> Date: Sun, 29 Nov 2009 10:34:26 -0500 In-Reply-To: <87iqcu44qw.fsf@mail.jurta.org> (Juri Linkov's message of "Sun, 29 Nov 2009 00:59:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> If man can say its page names then asking it would have to be the most >> reliable way. > It should be implemented to fail gracefully to not display completions > when man can not say its page names. AFAIK it does. Stefan From juri@jurta.org Sun Nov 29 08:07:36 2009 Received: (at 3717-done) by emacsbugs.donarmstrong.com; 29 Nov 2009 16:07:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx2.starman.ee (smtp-out4.starman.ee [85.253.0.6]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nATG7ZdS018116 for <3717-done@emacsbugs.donarmstrong.com>; Sun, 29 Nov 2009 08:07:36 -0800 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.68.144.cable.starman.ee [82.131.68.144]) by mx2.starman.ee (Postfix) with ESMTP id 6629C3F40C6; Sun, 29 Nov 2009 18:07:28 +0200 (EET) From: Juri Linkov To: Stefan Monnier Cc: 3717-done@debbugs.gnu.org, Kevin Ryde Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87k4xf4jjy.fsf@blah.blah> <83638znsix.fsf@gnu.org> <87fx82tdw7.fsf@blah.blah> <83zl69nchi.fsf@gnu.org> <87iqcx55or.fsf@blah.blah> <83ws1cmk1f.fsf@gnu.org> <87pr72pgzr.fsf@blah.blah> <87iqcu44qw.fsf@mail.jurta.org> Date: Sun, 29 Nov 2009 18:01:05 +0200 In-Reply-To: (Stefan Monnier's message of "Sun, 29 Nov 2009 10:34:26 -0500") Message-ID: <87fx7x72qd.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> If man can say its page names then asking it would have to be the most >>> reliable way. >> It should be implemented to fail gracefully to not display completions >> when man can not say its page names. > > AFAIK it does. Yes, I tried to emulate `man' that doesn't support the -k switch (using a non-existent switch), and it fails gracefully by not providing completions, i.e. the same behavior as was in Emacs 23.1. Anyone on platforms where `man' doesn't support the -k switch, could use woman.el anyway. -- Juri Linkov http://www.jurta.org/emacs/ From gg@zip.com.au Wed Dec 2 14:42:03 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 2 Dec 2009 22:42:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-6.pacific.net.au [61.8.2.229]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB2Mg1Cb022043 for <3717@emacsbugs.donarmstrong.com>; Wed, 2 Dec 2009 14:42:03 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id 8397B1A2294 for <3717@emacsbugs.donarmstrong.com>; Thu, 3 Dec 2009 09:42:00 +1100 (EST) Received: from blah.blah (ppp241D.dyn.pacific.net.au [61.8.36.29]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 44EEE8C11 for <3717@emacsbugs.donarmstrong.com>; Thu, 3 Dec 2009 09:41:55 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NFxsw-0003sT-L8 for 3717@emacsbugs.donarmstrong.com; Thu, 03 Dec 2009 09:41:22 +1100 From: Kevin Ryde To: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> Date: Thu, 03 Dec 2009 09:41:22 +1100 In-Reply-To: (Stefan Monnier's message of "Thu, 26 Nov 2009 11:54:19 -0500") Message-ID: <87r5rdf17x.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier writes: > > "boundary" Speaking of boundaries, I wonder if perl "::" would be a good boundary, since it's basically a directory separator in disguise. I'll give it a go - though I'm not a sophisticated completions user, so I wonder if I'll notice the difference :). (cond ((eq (car-safe action) 'boundaries) ;; emacs23 (let* ((suffix (cdr action)) ;; after last "::", or after start of string ;; (page names don't have newlines, so ".*" is ok) (start (if (string-match ".*::" str) (match-end 0) 0)) ;; first "::", or end of string (end (string-match "::\\|\\'" suffix))) (cons 'boundaries (cons start end)))) From monnier@iro.umontreal.ca Wed Dec 2 16:53:27 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 3 Dec 2009 00:53:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB30rPDx001385 for <3717@emacsbugs.donarmstrong.com>; Wed, 2 Dec 2009 16:53:27 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEAPeaFktFpZ1E/2dsb2JhbACBTtYuhDEEgWqILQ X-IronPort-AV: E=Sophos;i="4.47,331,1257138000"; d="scan'208";a="50554448" Received: from 69-165-157-68.dsl.teksavvy.com (HELO pastel.home) ([69.165.157.68]) by ironport2-out.pppoe.ca with ESMTP; 02 Dec 2009 19:53:20 -0500 Received: by pastel.home (Postfix, from userid 20848) id 2524E86C4; Wed, 2 Dec 2009 19:53:20 -0500 (EST) From: Stefan Monnier To: Kevin Ryde Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87r5rdf17x.fsf@blah.blah> Date: Wed, 02 Dec 2009 19:53:20 -0500 In-Reply-To: <87r5rdf17x.fsf@blah.blah> (Kevin Ryde's message of "Thu, 03 Dec 2009 09:41:22 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Stefan Monnier writes: >> "boundary" > Speaking of boundaries, I wonder if perl "::" would be a good boundary, > since it's basically a directory separator in disguise. I'll give it a > go - though I'm not a sophisticated completions user, so I wonder if > I'll notice the difference :). > (cond ((eq (car-safe action) 'boundaries) ;; emacs23 > (let* ((suffix (cdr action)) > ;; after last "::", or after start of string > ;; (page names don't have newlines, so ".*" is ok) > (start (if (string-match ".*::" str) (match-end 0) 0)) > ;; first "::", or end of string > (end (string-match "::\\|\\'" suffix))) > (cons 'boundaries (cons start end)))) The `completion-boundaries' info is really a meta-information about what `all-completions' returns. So it doesn't make sense to only change `bundaries' without changing the `all-completions' behavior accodingly. This said: adding ":" to completion-pcm-word-delimiters would be easier and would work probably as well if not better, Stefan From gg@zip.com.au Fri Dec 4 14:50:22 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 4 Dec 2009 22:50:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-1.pacific.net.au [61.8.2.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB4MoKWG003515 for <3717@emacsbugs.donarmstrong.com>; Fri, 4 Dec 2009 14:50:22 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id 63A4750E921; Sat, 5 Dec 2009 09:50:19 +1100 (EST) Received: from blah.blah (ppp2782.dyn.pacific.net.au [61.8.39.130]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 924998C05; Sat, 5 Dec 2009 09:50:18 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NGgyO-0004hK-Rj; Sat, 05 Dec 2009 09:50:00 +1100 From: Kevin Ryde To: Stefan Monnier Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87r5rdf17x.fsf@blah.blah> Date: Sat, 05 Dec 2009 09:50:00 +1100 In-Reply-To: (Stefan Monnier's message of "Wed, 02 Dec 2009 19:53:20 -0500") Message-ID: <87skbqjqw7.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier writes: > > This said: adding ":" to completion-pcm-word-delimiters would be easier > and would work probably as well if not better, Ah, I think that's what I wanted. Add with a let binding, or globally? From gg@zip.com.au Fri Dec 4 14:53:47 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 4 Dec 2009 22:53:47 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-6.pacific.net.au [61.8.2.229]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB4Mrkdt003567 for <3717@emacsbugs.donarmstrong.com>; Fri, 4 Dec 2009 14:53:47 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id 3CA1A193911; Sat, 5 Dec 2009 09:53:45 +1100 (EST) Received: from blah.blah (ppp2782.dyn.pacific.net.au [61.8.39.130]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 7C7198C02; Sat, 5 Dec 2009 09:53:44 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NGh1i-0004hi-AE; Sat, 05 Dec 2009 09:53:26 +1100 From: Kevin Ryde To: Stefan Monnier Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87ocmqcnj3.fsf@mail.jurta.org> <873a42tcqf.fsf@blah.blah> <878wdt4ou2.fsf@mail.jurta.org> <87aay9546p.fsf@blah.blah> Date: Sat, 05 Dec 2009 09:53:26 +1100 In-Reply-To: (Stefan Monnier's message of "Thu, 26 Nov 2009 21:30:56 -0500") Message-ID: <87ocmejqqh.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier writes: > > An easy solution is to put a help-echo property on the completion > string. It works straight away. Would it be recommended basically always, or be a touch too intrusive? I suppose there's configs already for how help-echo becomes tooltips etc. From monnier@iro.umontreal.ca Fri Dec 4 21:02:39 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 5 Dec 2009 05:02:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB552b0p005182 for <3717@emacsbugs.donarmstrong.com>; Fri, 4 Dec 2009 21:02:39 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAI94GUtFpZ7i/2dsb2JhbACBTNQghDMEihw X-IronPort-AV: E=Sophos;i="4.47,346,1257138000"; d="scan'208";a="50733909" Received: from 69-165-158-226.dsl.teksavvy.com (HELO ceviche.home) ([69.165.158.226]) by ironport2-out.pppoe.ca with ESMTP; 05 Dec 2009 00:02:32 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 23A4F70213; Sat, 5 Dec 2009 00:02:31 -0500 (EST) From: Stefan Monnier To: Kevin Ryde Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87r5rdf17x.fsf@blah.blah> <87skbqjqw7.fsf@blah.blah> Date: Sat, 05 Dec 2009 00:02:31 -0500 In-Reply-To: <87skbqjqw7.fsf@blah.blah> (Kevin Ryde's message of "Sat, 05 Dec 2009 09:50:00 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> This said: adding ":" to completion-pcm-word-delimiters would be easier >> and would work probably as well if not better, > Ah, I think that's what I wanted. Add with a let binding, or globally? I think we can just change the default. It could also include other punctuation chars like / (used for pcomplete function names, for example). Stefan From eliz@gnu.org Sat Dec 5 01:34:05 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 5 Dec 2009 09:34:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout22.012.net.il (mtaout22.012.net.il [80.179.55.172]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB59Y33M029424 for <3717@emacsbugs.donarmstrong.com>; Sat, 5 Dec 2009 01:34:05 -0800 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KU600800AFC8P00@a-mtaout22.012.net.il> for 3717@emacsbugs.donarmstrong.com; Sat, 05 Dec 2009 11:33:57 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.213.252]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KU6004HWAKK3XA0@a-mtaout22.012.net.il>; Sat, 05 Dec 2009 11:33:57 +0200 (IST) Date: Sat, 05 Dec 2009 11:31:54 +0200 From: Eli Zaretskii Subject: Re: bug#3717: M-x man completion In-reply-to: <87ocmejqqh.fsf@blah.blah> X-012-Sender: halo1@inter.net.il To: Kevin Ryde , 3717@debbugs.gnu.org Cc: monnier@iro.umontreal.ca Reply-to: Eli Zaretskii Message-id: <83ljhhkbqt.fsf@gnu.org> References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87ocmqcnj3.fsf@mail.jurta.org> <873a42tcqf.fsf@blah.blah> <878wdt4ou2.fsf@mail.jurta.org> <87aay9546p.fsf@blah.blah> <87ocmejqqh.fsf@blah.blah> > From: Kevin Ryde > Date: Sat, 05 Dec 2009 09:53:26 +1100 > Cc: 3717@emacsbugs.donarmstrong.com > > Stefan Monnier writes: > > > > An easy solution is to put a help-echo property on the completion > > string. > > It works straight away. Would it be recommended basically always, or be > a touch too intrusive? I suppose there's configs already for how > help-echo becomes tooltips etc. If you decide to go this way, please don't forget that help-echo can be configured to be displayed in the echo area. From gg@zip.com.au Sat Dec 5 15:13:12 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 5 Dec 2009 23:13:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-1.pacific.net.au [61.8.2.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5NDBw3014294 for <3717@emacsbugs.donarmstrong.com>; Sat, 5 Dec 2009 15:13:12 -0800 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 4C5C85115FB; Sun, 6 Dec 2009 10:13:09 +1100 (EST) Received: from blah.blah (ppp225B.dyn.pacific.net.au [61.8.34.91]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id C4D0327407; Sun, 6 Dec 2009 10:13:08 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NH3o0-000142-Gp; Sun, 06 Dec 2009 10:12:48 +1100 From: Kevin Ryde To: Stefan Monnier Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87r5rdf17x.fsf@blah.blah> <87skbqjqw7.fsf@blah.blah> Date: Sun, 06 Dec 2009 10:12:48 +1100 In-Reply-To: (Stefan Monnier's message of "Sat, 05 Dec 2009 00:02:31 -0500") Message-ID: <87ws11vwun.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier writes: > > I think we can just change the default. Sounds good. It won't upset cp/m drive letters in filename completion will it? From monnier@iro.umontreal.ca Sun Dec 6 18:26:53 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 7 Dec 2009 02:26:53 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB72Qpfg024085 for <3717@emacsbugs.donarmstrong.com>; Sun, 6 Dec 2009 18:26:52 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgEAA/2G0tMCrV1/2dsb2JhbACBS9QbhDMEih4 X-IronPort-AV: E=Sophos;i="4.47,351,1257138000"; d="scan'208";a="50815259" Received: from 76-10-181-117.dsl.teksavvy.com (HELO pastel.home) ([76.10.181.117]) by ironport2-out.pppoe.ca with ESMTP; 06 Dec 2009 21:26:46 -0500 Received: by pastel.home (Postfix, from userid 20848) id 6E04C80B4; Sun, 6 Dec 2009 21:26:45 -0500 (EST) From: Stefan Monnier To: Kevin Ryde Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion Message-ID: References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87bpiqtde7.fsf@blah.blah> <87aay94ouh.fsf@mail.jurta.org> <87r5rdf17x.fsf@blah.blah> <87skbqjqw7.fsf@blah.blah> <87ws11vwun.fsf@blah.blah> Date: Sun, 06 Dec 2009 21:26:45 -0500 In-Reply-To: <87ws11vwun.fsf@blah.blah> (Kevin Ryde's message of "Sun, 06 Dec 2009 10:12:48 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> I think we can just change the default. > Sounds good. It won't upset cp/m drive letters in filename completion > will it? I wouldn't be able to tell you. Stefan From gg@zip.com.au Fri Dec 11 14:43:33 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 11 Dec 2009 22:43:33 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER, RCVD_IN_SBLXBL,RCVD_IN_SBLXBL_CBL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-1.pacific.net.au [61.8.2.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBBMhVOL026354 for <3717@emacsbugs.donarmstrong.com>; Fri, 11 Dec 2009 14:43:33 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id DF65250C5F8; Sat, 12 Dec 2009 09:43:29 +1100 (EST) Received: from blah.blah (ppp2FE5.dyn.pacific.net.au [61.8.47.229]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 211898C02; Sat, 12 Dec 2009 09:43:28 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NJECg-0006xb-5J; Sat, 12 Dec 2009 09:43:14 +1100 From: Kevin Ryde To: Eli Zaretskii Cc: 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87ocmqcnj3.fsf@mail.jurta.org> <873a42tcqf.fsf@blah.blah> <878wdt4ou2.fsf@mail.jurta.org> <87aay9546p.fsf@blah.blah> <87ocmejqqh.fsf@blah.blah> <83ljhhkbqt.fsf@gnu.org> Date: Sat, 12 Dec 2009 09:43:13 +1100 In-Reply-To: <83ljhhkbqt.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 05 Dec 2009 11:31:54 +0200") Message-ID: <878wd9dtdq.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Eli Zaretskii writes: > > If you decide to go this way, please don't forget that help-echo can > be configured to be displayed in the echo area. Which would hide the minibuffer prompt and text entry? I think I struck something like that in another context, a message hiding my text entry or something like that. Not good. (Might be ok for completions if it was only when you've switched current window to the completions window, or something like that ...) From eliz@gnu.org Sat Dec 12 01:02:21 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 12 Dec 2009 09:02:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout20.012.net.il (mtaout20.012.net.il [80.179.55.166]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBC92JU4026928 for <3717@emacsbugs.donarmstrong.com>; Sat, 12 Dec 2009 01:02:21 -0800 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KUJ000007OVGZ00@a-mtaout20.012.net.il> for 3717@emacsbugs.donarmstrong.com; Sat, 12 Dec 2009 11:01:29 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.213.252]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KUJ00LRX7QFTL60@a-mtaout20.012.net.il>; Sat, 12 Dec 2009 11:01:27 +0200 (IST) Date: Sat, 12 Dec 2009 11:03:30 +0200 From: Eli Zaretskii Subject: Re: bug#3717: M-x man completion In-reply-to: <878wd9dtdq.fsf@blah.blah> X-012-Sender: halo1@inter.net.il To: Kevin Ryde Cc: 3717@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: <831vj08syl.fsf@gnu.org> References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <87d4364lmh.fsf@mail.jurta.org> <87ocmqcnj3.fsf@mail.jurta.org> <873a42tcqf.fsf@blah.blah> <878wdt4ou2.fsf@mail.jurta.org> <87aay9546p.fsf@blah.blah> <87ocmejqqh.fsf@blah.blah> <83ljhhkbqt.fsf@gnu.org> <878wd9dtdq.fsf@blah.blah> > From: Kevin Ryde > Cc: 3717@emacsbugs.donarmstrong.com > Date: Sat, 12 Dec 2009 09:43:13 +1100 > > Eli Zaretskii writes: > > > > If you decide to go this way, please don't forget that help-echo can > > be configured to be displayed in the echo area. > > Which would hide the minibuffer prompt and text entry? Maybe, I don't know. I just meant to say that any such features need to be tested with help-echo in echo area as well, before they are accepted as good solutions. From jidanni@jidanni.org Mon Dec 14 22:18:49 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 15 Dec 2009 06:18:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER, SARE_RECV_SPAM_DOMN0b autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from homiemail-a3.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBF6ImlR027365 for <3717@emacsbugs.donarmstrong.com>; Mon, 14 Dec 2009 22:18:49 -0800 Received: from jidanni.org (218-163-4-110.dynamic.hinet.net [218.163.4.110]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTP id 42896C5C74; Mon, 14 Dec 2009 22:18:48 -0800 (PST) From: jidanni@jidanni.org To: user42@zip.com.au Cc: juri@jurta.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87hbsepfst.fsf@blah.blah> Date: Tue, 15 Dec 2009 14:18:44 +0800 Message-ID: <87hbrsn4jf.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I get completion--some: Searching for program: no such file or directory, LC_CTYPE=C man when I do M-x man ca Because I do (setq manual-program "LC_CTYPE=C man") in .emacs due to various reasons... I use Debian emacs-snapshot 1:20091128-1 From eliz@gnu.org Tue Dec 15 00:04:36 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 15 Dec 2009 08:04:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBF84Y8m004559 for <3717@emacsbugs.donarmstrong.com>; Tue, 15 Dec 2009 00:04:36 -0800 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NKSOU-00037c-TN; Tue, 15 Dec 2009 03:04:30 -0500 From: Eli Zaretskii To: jidanni@jidanni.org, 3717@debbugs.gnu.org CC: user42@zip.com.au In-reply-to: <87hbrsn4jf.fsf@jidanni.org> Subject: Re: bug#3717: M-x man completion Reply-to: Eli Zaretskii References: <87hbsepfst.fsf@blah.blah> <87hbrsn4jf.fsf@jidanni.org> Message-Id: Date: Tue, 15 Dec 2009 03:04:30 -0500 > From: jidanni@jidanni.org > Date: Tue, 15 Dec 2009 14:18:44 +0800 > Cc: 3717@emacsbugs.donarmstrong.com > Reply-To: jidanni@jidanni.org, 3717@emacsbugs.donarmstrong.com > > I get > completion--some: Searching for program: no such file or directory, LC_CTYPE=C man > when I do M-x man ca > Because I do (setq manual-program "LC_CTYPE=C man") That's an abuse of manual-program: it is supposed to be the name of a program, not a command string. From juri@jurta.org Tue Dec 15 17:05:01 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 16 Dec 2009 01:05:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBG150Vo017572 for <3717@emacsbugs.donarmstrong.com>; Tue, 15 Dec 2009 17:05:01 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.94.242.cable.starman.ee [82.131.94.242]) by mx1.starman.ee (Postfix) with ESMTP id 2D2EA3F415E; Wed, 16 Dec 2009 03:04:52 +0200 (EET) From: Juri Linkov To: Eli Zaretskii Cc: 3717@debbugs.gnu.org, jidanni@jidanni.org, user42@zip.com.au Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87hbsepfst.fsf@blah.blah> <87hbrsn4jf.fsf@jidanni.org> Date: Wed, 16 Dec 2009 02:42:17 +0200 In-Reply-To: (Eli Zaretskii's message of "Tue, 15 Dec 2009 03:04:30 -0500") Message-ID: <87hbrrpwou.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> I get >> completion--some: Searching for program: no such file or directory, LC_CTYPE=C man >> when I do M-x man ca >> Because I do (setq manual-program "LC_CTYPE=C man") > > That's an abuse of manual-program: it is supposed to be the name of a > program, not a command string. I wonder why such abuse works for the normal use of `M-x man', but doesn't work for man completions that run "man -k". I see that `Man-getpage-in-background' calls `start-process' (with a shell command name prepended) to run "man", but `Man-completion-table' calls `call-process' (without a shell command prepended) to run "man -k". That's the difference. Shouldn't `Man-completion-table' prepend a shell command name to not fail when `manual-program' is "LC_CTYPE=C man"? Isn't it easier just to do this than to declare it as an abuse? If we declare such use of `manual-program' as an abuse, what we can suggest to use instead? -- Juri Linkov http://www.jurta.org/emacs/ From eliz@gnu.org Tue Dec 15 20:17:52 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 16 Dec 2009 04:17:52 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout20.012.net.il (mtaout20.012.net.il [80.179.55.166]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBG4HoiP005033 for <3717@emacsbugs.donarmstrong.com>; Tue, 15 Dec 2009 20:17:51 -0800 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KUQ00B009153100@a-mtaout20.012.net.il> for 3717@emacsbugs.donarmstrong.com; Wed, 16 Dec 2009 06:16:58 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.160.137]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KUQ00ASX9896D40@a-mtaout20.012.net.il>; Wed, 16 Dec 2009 06:16:58 +0200 (IST) Date: Wed, 16 Dec 2009 06:19:04 +0200 From: Eli Zaretskii Subject: Re: bug#3717: M-x man completion In-reply-to: <87hbrrpwou.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Cc: 3717@debbugs.gnu.org, jidanni@jidanni.org, user42@zip.com.au Reply-to: Eli Zaretskii Message-id: <83hbrr7dqf.fsf@gnu.org> References: <87hbsepfst.fsf@blah.blah> <87hbrsn4jf.fsf@jidanni.org> <87hbrrpwou.fsf@mail.jurta.org> > From: Juri Linkov > Cc: 3717@emacsbugs.donarmstrong.com, jidanni@jidanni.org, user42@zip.com.au > Date: Wed, 16 Dec 2009 02:42:17 +0200 > > I see that `Man-getpage-in-background' calls `start-process' (with > a shell command name prepended) to run "man", but `Man-completion-table' > calls `call-process' (without a shell command prepended) to run "man -k". > That's the difference. > > Shouldn't `Man-completion-table' prepend a shell command name to not fail > when `manual-program' is "LC_CTYPE=C man"? Isn't it easier just to do this > than to declare it as an abuse? I have nothing against calling `man' through the shell in all cases, but if we do that, we need to rename the variable to something like `man-shell-command' and document it as a "shell command that produces manual pages". From gg@zip.com.au Wed Dec 16 13:25:54 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 16 Dec 2009 21:25:54 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.8 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-5.pacific.net.au [61.8.2.212]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBGLPqn9022204 for <3717@emacsbugs.donarmstrong.com>; Wed, 16 Dec 2009 13:25:54 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id 37F105145F9; Thu, 17 Dec 2009 08:25:51 +1100 (EST) Received: from blah.blah (ppp2FAB.dyn.pacific.net.au [61.8.47.171]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 3F3538C03; Thu, 17 Dec 2009 08:25:47 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NL1Mv-0001aY-CO; Thu, 17 Dec 2009 08:25:14 +1100 From: Kevin Ryde To: Juri Linkov Cc: Eli Zaretskii , 3717@debbugs.gnu.org, jidanni@jidanni.org Subject: Re: bug#3717: M-x man completion References: <87hbsepfst.fsf@blah.blah> <87hbrsn4jf.fsf@jidanni.org> <87hbrrpwou.fsf@mail.jurta.org> Date: Thu, 17 Dec 2009 08:25:11 +1100 In-Reply-To: <87hbrrpwou.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 16 Dec 2009 02:42:17 +0200") Message-ID: <87ws0mboi0.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Juri Linkov writes: > > shell command name prepended) to run "man", I think that's how "-k foo" and "-l /dir/bar.1" work, because it's a bit of a shell line, not a single arg. Slightly dangerous if you're silly enough to enter "; rm /my/whole/filesystem" :-). Eli Zaretskii writes: > > `man-shell-command' I don't think it should be renamed. If it's been a shell command forever then just use it that way. From gg@zip.com.au Wed Dec 16 13:41:49 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 16 Dec 2009 21:41:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.8 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout2.pacific.net.au (mailout2-6.pacific.net.au [61.8.2.229]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBGLfmFx023543 for <3717@emacsbugs.donarmstrong.com>; Wed, 16 Dec 2009 13:41:49 -0800 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id 82972193B18; Thu, 17 Dec 2009 08:41:45 +1100 (EST) Received: from blah.blah (ppp2FAB.dyn.pacific.net.au [61.8.47.171]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id E5A632742E; Thu, 17 Dec 2009 08:41:39 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NL1bW-0001zm-39; Thu, 17 Dec 2009 08:40:18 +1100 From: Kevin Ryde To: 3717@debbugs.gnu.org Cc: jidanni@jidanni.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <877htetd2g.fsf@blah.blah> <87my2956sr.fsf@blah.blah> Date: Thu, 17 Dec 2009 08:40:17 +1100 In-Reply-To: <87my2956sr.fsf@blah.blah> (Kevin Ryde's message of "Fri, 27 Nov 2009 08:12:52 +1100") Message-ID: <87pr6ebnsu.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On the subject of M-x man "-k foo" being kept secret, I thought to revise the docstring a bit per below (formatted for reading). I think samples of what can be entered are easier to read than words, especially if skimming. The "-a" bit is per man-db, but it's not posix, so I wonder if it varies on other mans. Did for instance BSD from years ago have the equivalent of -a as its default anyway? 2009-12-16 Kevin Ryde * man.el (man): Revise docstring to show -k and -l examples, and mention -a in the "all sections" bit. Get a Un*x manual page and put it in a buffer. This command is the top-level command in the man package. It runs a Un*x command to retrieve and clean a manpage in the background and places the results in a `Man-mode' browsing buffer. See variable `Man-notify-method' for what happens when the buffer is ready. If a buffer already exists for this man page, it will display immediately. For a manpage from a certain section, use either of the following forms. "cat(1)" is how cross-references appear and is passed to man as "1 cat". cat(1) 1 cat To see manpages from all sections related to a subject, put an "all pages" option into `Man-switches', usually "-a", then step through with `Man-next-manpage' (M-n) etc. An explicit filename can be given. Use -l if it might otherwise look like a page name. /my/file/name.1.gz -l somefile.1 An "apropos" query with -k gives a buffer of matching page names or descriptions. The pattern argument is usually an "egrep" style regexp. -k pattern From gg@zip.com.au Wed Dec 16 13:44:29 2009 Received: (at 3717) by emacsbugs.donarmstrong.com; 16 Dec 2009 21:44:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.8 required=4.0 tests=AWL,GENDER,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailout1.pacific.net.au (mailout1-5.pacific.net.au [61.8.2.212]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBGLiRBn023573 for <3717@emacsbugs.donarmstrong.com>; Wed, 16 Dec 2009 13:44:28 -0800 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id A1C5A512705; Thu, 17 Dec 2009 08:44:26 +1100 (EST) Received: from blah.blah (ppp2FAB.dyn.pacific.net.au [61.8.47.171]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id BE93C8C1C; Thu, 17 Dec 2009 08:44:25 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NL1f8-0001zr-CJ; Thu, 17 Dec 2009 08:44:02 +1100 From: Kevin Ryde To: Stefan Monnier Cc: jidanni@jidanni.org, 3717@debbugs.gnu.org Subject: Re: bug#3717: M-x man completion References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> <877htetd2g.fsf@blah.blah> Date: Thu, 17 Dec 2009 08:44:02 +1100 In-Reply-To: <877htetd2g.fsf@blah.blah> (Kevin Ryde's message of "Thu, 26 Nov 2009 10:11:19 +1100") Message-ID: <87iqc6bnml.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I wrote: > > insinuate "-k " and "-l " so it's possible to type those things > without needing C-q Space. I've since thought to help any "-" option, not just -k and -l, with a constructed table in the completion handler along these lines. Not sure it's fantastic for "?" or "tab", but gets the right effect on space. ((string-match "\\`-\\(.\\)?" str) ;; "-" or "-X" -- alone and with a space so you don't have to type ;; C-q space after an option. "-l" or "-k" are shown as standard ;; options, but then add anything else so other options can be ;; typed. ;; ;; For formatting options like "-Tascii" could think about applying ;; the pagename or filename completion to the next arg, but ;; normally such options will go in `Man-switches'. ;; (let ((table '(("-l " . "run man on a file") ("-k " . "search apropos database")))) (unless (member str '("-k" "-l" "-k " "-l ")) (push (cons str "option") table) (push (cons (concat str " ") "option") table)) (man-completion--complete-with-action action table str pred))) From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 17 19:31:36 2009 Received: (at 3717) by debbugs.gnu.org; 18 Dec 2009 00:31:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLQkq-0006Ge-Kw for submit@debbugs.gnu.org; Thu, 17 Dec 2009 19:31:36 -0500 Received: from smtp-out3.starman.ee ([85.253.0.5] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLQSX-0005XE-Sr for 3717@debbugs.gnu.org; Thu, 17 Dec 2009 19:12:42 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.31.182.cable.starman.ee [82.131.31.182]) by mx1.starman.ee (Postfix) with ESMTP id 97C573F4127; Fri, 18 Dec 2009 02:12:32 +0200 (EET) From: Juri Linkov To: Kevin Ryde Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87hbsepfst.fsf@blah.blah> <87hbrsn4jf.fsf@jidanni.org> <87hbrrpwou.fsf@mail.jurta.org> <87ws0mboi0.fsf@blah.blah> <87ljh29ypb.fsf@mail.jurta.org> <87r5qt5p52.fsf@blah.blah> Date: Fri, 18 Dec 2009 01:35:47 +0200 In-Reply-To: <87r5qt5p52.fsf@blah.blah> (Kevin Ryde's message of "Fri, 18 Dec 2009 07:20:09 +1100") Message-ID: <871vitcgjw.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Debbugs-Envelope-To: 3717 X-Mailman-Approved-At: Thu, 17 Dec 2009 19:31:35 -0500 Cc: 3717@debbugs.gnu.org, Eli Zaretskii , jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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 > Man-completion-table would no doubt need a shell-quote-argument or > something to get its match string through the shell. But I still think > Man-completion-table might better grab the entire list of page names > once. On my old pc with 13,000 page names (yes, really :-) it's almost > as slow to fetch a few matches or the whole lot. The cost is the RAM to > keep them all of course. How much RAM does this need? With my 11,000 page names as text they take 700 KB. I think this is not that much. -- Juri Linkov http://www.jurta.org/emacs/ From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 17 20:08:14 2009 Received: (at 3717) by debbugs.gnu.org; 18 Dec 2009 01:08:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLRKH-0006d8-V6 for submit@debbugs.gnu.org; Thu, 17 Dec 2009 20:08:13 -0500 Received: from mailout2-6.pacific.net.au ([61.8.2.229] helo=mailout2.pacific.net.au) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLRDN-0006YQ-Jz for 3717@debbugs.gnu.org; Thu, 17 Dec 2009 20:01:05 -0500 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id DDF8C1A29D1; Fri, 18 Dec 2009 12:00:58 +1100 (EST) Received: from blah.blah (ppp2F0D.dyn.pacific.net.au [61.8.47.13]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 2A90A27422; Fri, 18 Dec 2009 12:00:58 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.71) (envelope-from ) id 1NLRD3-0005vy-E5; Fri, 18 Dec 2009 12:00:45 +1100 From: Kevin Ryde To: Juri Linkov Subject: Re: bug#3717: M-x man completion References: <87hbsepfst.fsf@blah.blah> <87hbrsn4jf.fsf@jidanni.org> <87hbrrpwou.fsf@mail.jurta.org> <87ws0mboi0.fsf@blah.blah> <87ljh29ypb.fsf@mail.jurta.org> <87r5qt5p52.fsf@blah.blah> <871vitcgjw.fsf@mail.jurta.org> Date: Fri, 18 Dec 2009 12:00:44 +1100 In-Reply-To: <871vitcgjw.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 18 Dec 2009 01:35:47 +0200") Message-ID: <871vit5c5f.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Debbugs-Envelope-To: 3717 X-Mailman-Approved-At: Thu, 17 Dec 2009 20:08:13 -0500 Cc: 3717@debbugs.gnu.org, Eli Zaretskii , jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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 Juri Linkov writes: > > 700 KB More with cons cells? > I think this is not that much. Oh, it's about speed for me really. If man-db was faster I expect I'd think different (as the saying goes :-). Another motivation for me keeping the whole lot is my perl page-at-point helper which looks for a suffix of a page name for a shorthand of otherwise long perl classes. It means an immediate lookup on any class-like thing at point, which is upcase or :: at the moment. -- The sigfile one-line movie reviews series: "Les Amants du Pont Neuf" -- fine sequel to Les Amants du Pont Huit. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 18 02:32:29 2009 Received: (at 3717) by debbugs.gnu.org; 18 Dec 2009 07:32:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLXK9-0002nc-1E for submit@debbugs.gnu.org; Fri, 18 Dec 2009 02:32:29 -0500 Received: from smtp-out3.starman.ee ([85.253.0.5] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLWL4-0002H0-87 for 3717@emacsbugs.donarmstrong.com; Fri, 18 Dec 2009 01:29:22 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.31.103.cable.starman.ee [82.131.31.103]) by mx1.starman.ee (Postfix) with ESMTP id 116CD3F410F; Thu, 17 Dec 2009 04:07:27 +0200 (EET) From: Juri Linkov To: Kevin Ryde Subject: Re: bug#3717: M-x man completion Organization: JURTA References: <87hbsepfst.fsf@blah.blah> <87hbrsn4jf.fsf@jidanni.org> <87hbrrpwou.fsf@mail.jurta.org> <87ws0mboi0.fsf@blah.blah> Date: Thu, 17 Dec 2009 03:27:44 +0200 In-Reply-To: <87ws0mboi0.fsf@blah.blah> (Kevin Ryde's message of "Thu, 17 Dec 2009 08:25:11 +1100") Message-ID: <87ljh29ypb.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Debbugs-Envelope-To: 3717 X-Mailman-Approved-At: Fri, 18 Dec 2009 02:32:26 -0500 Cc: 3717@debbugs.gnu.org, Eli Zaretskii , jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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 > I don't think it should be renamed. If it's been a shell command > forever then just use it that way. I agree that it should not be renamed. But we still have a problem that Jidanni (who asked us to implement man completions) can't use this feature because `Man-completion-table' currently doesn't allow a command line like `Man-getpage-in-background' does for a long time. -- Juri Linkov http://www.jurta.org/emacs/ From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 18 02:32:42 2009 Received: (at 3717) by debbugs.gnu.org; 18 Dec 2009 07:32:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLXKM-0002nu-4K for submit@debbugs.gnu.org; Fri, 18 Dec 2009 02:32:42 -0500 Received: from hapkido.dreamhost.com ([66.33.216.122]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLVpw-000241-Vp for 3717@emacsbugs.donarmstrong.com; Fri, 18 Dec 2009 00:57:13 -0500 Received: from homiemail-a5.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by hapkido.dreamhost.com (Postfix) with ESMTP id 0E94517BFF6 for <3717@emacsbugs.donarmstrong.com>; Thu, 17 Dec 2009 13:59:23 -0800 (PST) Received: from jidanni.org (218-163-2-76.dynamic.hinet.net [218.163.2.76]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a5.g.dreamhost.com (Postfix) with ESMTP id 85222BCB04; Thu, 17 Dec 2009 13:59:21 -0800 (PST) From: jidanni@jidanni.org To: user42@zip.com.au Subject: Re: bug#3717: M-x man completion References: <87r5qt5p52.fsf@blah.blah> Date: Fri, 18 Dec 2009 05:59:17 +0800 Message-ID: <87oclx2rey.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Debbugs-Envelope-To: 3717 X-Mailman-Approved-At: Fri, 18 Dec 2009 02:32:40 -0500 Cc: juri@jurta.org, 3717@debbugs.gnu.org, eliz@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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 All I know is these can handle command expansion just fine, ! runs the command dired-do-shell-command, which is an interactive compiled Lisp function in `dired-aux.el'. [and the] command compile, which is an interactive compiled Lisp function in `compile.el'. OK, so you want to get more than just section 1, and 8 [$PATH commands.] But the fact that I need to (setq manual-program "LC_CTYPE=C man") shouldn't have anything to do with it. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 18 08:43:42 2009 Received: (at 3717) by debbugs.gnu.org; 18 Dec 2009 13:43:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLd7O-000763-7Y for submit@debbugs.gnu.org; Fri, 18 Dec 2009 08:43:42 -0500 Received: from mailout1-5.pacific.net.au ([61.8.2.212] helo=mailout1.pacific.net.au) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLd7M-00075y-Ti for 3717@emacsbugs.donarmstrong.com; Fri, 18 Dec 2009 08:43:41 -0500 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id 89894514B5A; Fri, 18 Dec 2009 07:20:23 +1100 (EST) Received: from blah.blah (ppp2F0D.dyn.pacific.net.au [61.8.47.13]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 70CA68C35; Fri, 18 Dec 2009 07:20:22 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.71) (envelope-from ) id 1NLMpV-00015r-W0; Fri, 18 Dec 2009 07:20:10 +1100 From: Kevin Ryde To: Juri Linkov Subject: Re: bug#3717: M-x man completion References: <87hbsepfst.fsf@blah.blah> <87hbrsn4jf.fsf@jidanni.org> <87hbrrpwou.fsf@mail.jurta.org> <87ws0mboi0.fsf@blah.blah> <87ljh29ypb.fsf@mail.jurta.org> Date: Fri, 18 Dec 2009 07:20:09 +1100 In-Reply-To: <87ljh29ypb.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 17 Dec 2009 03:27:44 +0200") Message-ID: <87r5qt5p52.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Debbugs-Envelope-To: 3717 Cc: 3717@debbugs.gnu.org, Eli Zaretskii , jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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 Juri Linkov writes: > > because `Man-completion-table' currently doesn't allow a command line I threw down a couple of lines (call-process shell-file-name nil t nil shell-command-switch (concat manual-program " -k \"\"")) which get the right effect for me. Not sure if Man-switches should be worked in there. If they're page formatting options they might be bad with -k. Man-completion-table would no doubt need a shell-quote-argument or something to get its match string through the shell. But I still think Man-completion-table might better grab the entire list of page names once. On my old pc with 13,000 page names (yes, really :-) it's almost as slow to fetch a few matches or the whole lot. The cost is the RAM to keep them all of course. From unknown Wed Jun 25 00:25:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Sat, 23 Jan 2010 22:05:02 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 23 17:04:11 2010 Received: (at control) by debbugs.gnu.org; 23 Jan 2010 22:04:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYo5T-0002xv-5M for submit@debbugs.gnu.org; Sat, 23 Jan 2010 17:04:11 -0500 Received: from caiajhbdccac.dreamhost.com ([208.97.132.202] helo=homiemail-a4.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYo5R-0002xi-Cy; Sat, 23 Jan 2010 17:04:10 -0500 Received: from jidanni.org (218-163-0-228.dynamic.hinet.net [218.163.0.228]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTP id 58123418C9; Sat, 23 Jan 2010 14:04:04 -0800 (PST) From: jidanni@jidanni.org To: 4056@debbugs.gnu.org Subject: completion--some: Searching for program: no such file or directory, LC_CTYPE=C man Date: Sun, 24 Jan 2010 06:04:02 +0800 Message-ID: <87ljfocwbx.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control Cc: control@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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.3 (--) reopen 4056 found 4056 1:20100118-1 thanks Help, as of debian-snapshot 1:20100118-1 I am still getting completion--some: Searching for program: no such file or directory, LC_CTYPE=C man when I hit M-x man bla just because I have (setq manual-program "LC_CTYPE=C man") in http://jidanni.org/comp/configuration/.emacs . From unknown Wed Jun 25 00:25:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 12 Mar 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator