From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#3717: M-x man completion Date: Wed, 25 Nov 2009 19:29:42 +0200 Organization: JURTA Message-ID: <87d4364lmh.fsf@mail.jurta.org> References: <87bpo6p3de.fsf@turtle.gmx.de> <87ab3pfqj0.fsf@jidanni.org> <87ocmsqa7z.fsf@mail.jurta.org> Reply-To: Juri Linkov , 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 1259171300 20252 80.91.229.12 (25 Nov 2009 17:48:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2009 17:48:20 +0000 (UTC) Cc: 3717@emacsbugs.donarmstrong.com, user42@zip.com.au, jidanni@jidanni.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 25 18:48:13 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 1NDLyO-0003V1-NN for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Nov 2009 18:48:12 +0100 Original-Received: from localhost ([127.0.0.1]:51010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDLyO-00019R-BG for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Nov 2009 12:48:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDLxj-0000j9-Ti for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2009 12:47:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDLxe-0000hL-Ra for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2009 12:47:30 -0500 Original-Received: from [199.232.76.173] (port=58377 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDLxe-0000hI-Ia for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2009 12:47:26 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45863) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDLxd-0001OP-Un for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2009 12:47: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 nAPHlMi4011552; Wed, 25 Nov 2009 09:47:23 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAPHe6xh010713; Wed, 25 Nov 2009 09:40:06 -0800 Resent-Date: Wed, 25 Nov 2009 09:40:06 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 25 Nov 2009 17:40: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.125917030210147 (code B ref 3717); Wed, 25 Nov 2009 17:40:05 +0000 Original-Received: (at 3717) by emacsbugs.donarmstrong.com; 25 Nov 2009 17:31:42 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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) In-Reply-To: (Stefan Monnier's message of "Tue, 24 Nov 2009 15:01:07 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 25 Nov 2009 12:47: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:32919 Archived-At: >> 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/