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: kill-ring visualization Date: Wed, 24 Mar 2010 09:54:58 -0400 Message-ID: References: <87y6hib6vi.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1269438924 5778 80.91.229.12 (24 Mar 2010 13:55:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2010 13:55:24 +0000 (UTC) Cc: joakim@verona.se, Emacs development discussions To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 24 14:55:19 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 1NuR3B-0000rV-Tu for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 14:55:14 +0100 Original-Received: from localhost ([127.0.0.1]:55509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuR36-0006BF-CW for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 09:55:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuR31-0006Aw-7H for emacs-devel@gnu.org; Wed, 24 Mar 2010 09:55:03 -0400 Original-Received: from [140.186.70.92] (port=55580 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuR2z-0006AA-N4 for emacs-devel@gnu.org; Wed, 24 Mar 2010 09:55:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuR2y-0006ti-35 for emacs-devel@gnu.org; Wed, 24 Mar 2010 09:55:01 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:3266 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuR2x-0006tb-Vv for emacs-devel@gnu.org; Wed, 24 Mar 2010 09:55:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAFa2qUvO+IPa/2dsb2JhbACbHXS/H4R+BIsc X-IronPort-AV: E=Sophos;i="4.51,301,1267419600"; d="scan'208";a="58953800" Original-Received: from 206-248-131-218.dsl.teksavvy.com (HELO ceviche.home) ([206.248.131.218]) by ironport2-out.pppoe.ca with ESMTP; 24 Mar 2010 09:54:58 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 53097660BF; Wed, 24 Mar 2010 09:54:58 -0400 (EDT) In-Reply-To: <87y6hib6vi.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 24 Mar 2010 11:34:01 +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:122607 Archived-At: >> OTOH the few times I've used it I wished it use a form of completion. >> Basically, I'd like it to use an interface similar to completing-read, >> except maybe that it'd bring up the *Completions* buffer right away (and >> that the completion would use a substring search). >>=20 >> So I think if we want to enable such a feature by default, it'd need to >> be better integrated with the completion code. > And please also add an ability to search for a regexp in completions > of the kill-ring. If you use a `substring' style completion, you're already closer (tho it's not a regexp-search). Stefan 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-compl=E9tion. 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.