From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#3717: M-x man completion Date: Fri, 27 Nov 2009 09:01:08 +1100 Message-ID: <87einl54kb.fsf@blah.blah> 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> Reply-To: Kevin Ryde , 3717@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259274469 19040 80.91.229.12 (26 Nov 2009 22:27:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2009 22:27:49 +0000 (UTC) Cc: 3717@emacsbugs.donarmstrong.com, jidanni@jidanni.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 26 23:27:41 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NDmoP-0007WY-LA for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 23:27:41 +0100 Original-Received: from localhost ([127.0.0.1]:38403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDmoP-0006h7-5v for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 17:27:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDmoF-0006bk-Hy for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2009 17:27:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDmoB-0006Xl-0O for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2009 17:27:30 -0500 Original-Received: from [199.232.76.173] (port=34098 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDmoA-0006Xd-MW for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2009 17:27:26 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49657) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDmo9-0003u2-Rb for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2009 17:27:26 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAQMRM1k008609; Thu, 26 Nov 2009 14:27:23 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAQMA5Fc007217; Thu, 26 Nov 2009 14:10:06 -0800 Resent-Date: Thu, 26 Nov 2009 14:10:06 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kevin Ryde Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 26 Nov 2009 22:10:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3717 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3717-submit@emacsbugs.donarmstrong.com id=B3717.12592728825897 (code B ref 3717); Thu, 26 Nov 2009 22:10:05 +0000 Original-Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 22:01:22 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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) Original-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) Original-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 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.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 26 Nov 2009 17:27:30 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32961 Archived-At: 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.