From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#3717: M-x man completion Date: Thu, 26 Nov 2009 11:54:19 -0500 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> Reply-To: Stefan Monnier , 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 1259257387 676 80.91.229.12 (26 Nov 2009 17:43:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2009 17:43:07 +0000 (UTC) Cc: 3717@emacsbugs.donarmstrong.com, Kevin Ryde , 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 18:42:59 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 1NDiMq-0003R4-Tg for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 18:42:57 +0100 Original-Received: from localhost ([127.0.0.1]:32904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDiMp-0000aY-Th for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 12:42:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDhoe-0001bc-2q for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2009 12:07:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDhoY-0001Yk-1V for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2009 12:07:35 -0500 Original-Received: from [199.232.76.173] (port=49599 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDhoX-0001Yf-PV for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2009 12:07:29 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38430) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDhoW-0001ny-Ih for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2009 12:07:29 -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 nAQH7MVJ012857; Thu, 26 Nov 2009 09:07:22 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAQH04tV011476; Thu, 26 Nov 2009 09:00:04 -0800 Resent-Date: Thu, 26 Nov 2009 09:00:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 26 Nov 2009 17:00:04 +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.125925446711037 (code B ref 3717); Thu, 26 Nov 2009 17:00:04 +0000 Original-Received: (at 3717) by emacsbugs.donarmstrong.com; 26 Nov 2009 16:54:27 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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" Original-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 Original-Received: by ceviche.home (Postfix, from userid 20848) id 5F0DEB40E6; Thu, 26 Nov 2009 11:54:19 -0500 (EST) 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) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 26 Nov 2009 12:07:35 -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:32954 Archived-At: >> 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