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: Wed, 02 Dec 2009 19:53:20 -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> <87r5rdf17x.fsf@blah.blah> 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 1259802466 3697 80.91.229.12 (3 Dec 2009 01:07:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2009 01:07:46 +0000 (UTC) Cc: 3717@emacsbugs.donarmstrong.com To: Kevin Ryde Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 03 02:07:39 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 1NG0AU-00027L-0W for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2009 02:07:38 +0100 Original-Received: from localhost ([127.0.0.1]:50606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG0AT-0000vn-Gy for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 20:07:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NG0AO-0000rp-5k for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 20:07:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NG0AJ-0000io-At for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 20:07:31 -0500 Original-Received: from [199.232.76.173] (port=59840 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG0AJ-0000id-7H for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 20:07:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57475) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NG0AI-0003og-O5 for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 20:07:27 -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 nB317Oc3003355; Wed, 2 Dec 2009 17:07:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB3104k7001866; Wed, 2 Dec 2009 17:00:04 -0800 Resent-Date: Wed, 2 Dec 2009 17: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, 03 Dec 2009 01: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.12598016081403 (code B ref 3717); Thu, 03 Dec 2009 01:00:04 +0000 Original-Received: (at 3717) by emacsbugs.donarmstrong.com; 3 Dec 2009 00:53:28 +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 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" Original-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 Original-Received: by pastel.home (Postfix, from userid 20848) id 2524E86C4; Wed, 2 Dec 2009 19:53:20 -0500 (EST) 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) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 02 Dec 2009 20:07:31 -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:33158 Archived-At: > 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