From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: PCM completion word boundaries Date: Sat, 13 Aug 2011 11:18:24 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313248720 14330 80.91.229.12 (13 Aug 2011 15:18:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2011 15:18:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 13 17:18:34 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QsFyo-0001h9-M5 for ged-emacs-devel@m.gmane.org; Sat, 13 Aug 2011 17:18:30 +0200 Original-Received: from localhost ([::1]:37950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsFyn-0003gW-UW for ged-emacs-devel@m.gmane.org; Sat, 13 Aug 2011 11:18:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsFyl-0003gR-9p for emacs-devel@gnu.org; Sat, 13 Aug 2011 11:18:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsFyj-0004i2-Ss for emacs-devel@gnu.org; Sat, 13 Aug 2011 11:18:26 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:56128 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsFyj-0004hu-MN for emacs-devel@gnu.org; Sat, 13 Aug 2011 11:18:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EACCVRk5FxKeo/2dsb2JhbABBp3d4gUABAQQBJy8jBQsLNBIUGA0kiAO5A4ZHBJ9uhDU X-IronPort-AV: E=Sophos;i="4.67,367,1309752000"; d="scan'208";a="131002720" Original-Received: from 69-196-167-168.dsl.teksavvy.com (HELO ceviche.home) ([69.196.167.168]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 13 Aug 2011 11:18:24 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 54EF8660CF; Sat, 13 Aug 2011 11:18:24 -0400 (EDT) In-Reply-To: (Leo's message of "Sat, 06 Aug 2011 18:40:36 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143197 Archived-At: > 2. (defun string->symbol ()) > 3. In an emacs-lisp-mode buffer, type string-symbol M-TAB Right, because string->symbol does not match the "string*-symbol" glob. > It says no match. I wonder if it should match in this case. For example > minibuffer-bitset M-TAB completes to minibuffer--bitset. But here "minibuffer--bitset" does match the "minibuffer*-bitset" glob. I.e. the "-" you typed matches the second "-", not the first. I.e. for string->symbol, you'd need to type "str>sym", at which point it would correctly expand. > The reason I am including > is that in Scheme there are tons of > functions with -> in it. > is a bit slower to type and would be great if > I can avoid it using completion. That would make sense, yes, but it would require more changes. You may want to start by looking at completion-pcm--string->pattern. Stefan