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: regexp completion (was: kill-ring visualization) Date: Thu, 25 Mar 2010 22:00:15 -0400 Message-ID: References: <87y6hib6vi.fsf@mail.jurta.org> <8739zp80up.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269569237 29993 80.91.229.12 (26 Mar 2010 02:07:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Mar 2010 02:07:17 +0000 (UTC) Cc: Emacs development discussions To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 26 03:07:13 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nuyx4-0001lO-SM for ged-emacs-devel@m.gmane.org; Fri, 26 Mar 2010 03:07:11 +0100 Original-Received: from localhost ([127.0.0.1]:39280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nuyx3-0006Sf-SI for ged-emacs-devel@m.gmane.org; Thu, 25 Mar 2010 22:07:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuyvT-0005wN-Rl for emacs-devel@gnu.org; Thu, 25 Mar 2010 22:05:31 -0400 Original-Received: from [140.186.70.92] (port=54089 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuyvF-0005mv-Fw for emacs-devel@gnu.org; Thu, 25 Mar 2010 22:05:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuyqP-0008CZ-Qg for emacs-devel@gnu.org; Thu, 25 Mar 2010 22:00:21 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:15135 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuyqO-0008Bu-0D for emacs-devel@gnu.org; Thu, 25 Mar 2010 22:00:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAP6xq0tFpYrY/2dsb2JhbACbKXS+PIR9BIsd X-IronPort-AV: E=Sophos;i="4.51,310,1267419600"; d="scan'208";a="59081800" Original-Received: from 69-165-138-216.dsl.teksavvy.com (HELO pastel.home) ([69.165.138.216]) by ironport2-out.pppoe.ca with ESMTP; 25 Mar 2010 22:00:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 41B487F1B; Thu, 25 Mar 2010 22:00:15 -0400 (EDT) In-Reply-To: <8739zp80up.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 25 Mar 2010 09:04:28 +0200") 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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122682 Archived-At: >> PS: I do not know how to do regexp-style completion, to tell you the >> truth. I.e. I know how to implement the all-completions part of it, >> obviously, but I don't know how to then merge the matches into something >> suitable for try-completion. I guess you could just apply >> try-completion to the list of matches, but that would only lead to >> something useful if the matches share some prefix. > Currently a `*' in the completion string acts as the simplest regexp > (wildcard), and it does its job pretty well. Couldn't this be extended > to the true regular expressions? It probably could, but I don't know *how*. But maybe it's because I'd want it to do something more than what it can. I.e. maybe the "trivial" answer is pretty much the only answer. Stefan