From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: kill-ring visualization Date: Thu, 18 Mar 2010 18:39:39 +0000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1268940500 1242 80.91.229.12 (18 Mar 2010 19:28:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Mar 2010 19:28:20 +0000 (UTC) Cc: joakim@verona.se, Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 18 20:28:10 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 1NsLO5-00086Q-Cv for ged-emacs-devel@m.gmane.org; Thu, 18 Mar 2010 20:28:09 +0100 Original-Received: from localhost ([127.0.0.1]:53468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsLO3-0002Jh-RK for ged-emacs-devel@m.gmane.org; Thu, 18 Mar 2010 15:28:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NsKgM-00048y-26 for emacs-devel@gnu.org; Thu, 18 Mar 2010 14:42:58 -0400 Original-Received: from [140.186.70.92] (port=46564 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsKgH-0003gh-9i for emacs-devel@gnu.org; Thu, 18 Mar 2010 14:42:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NsKdC-0007re-7b for emacs-devel@gnu.org; Thu, 18 Mar 2010 14:39:43 -0400 Original-Received: from ppsw-7.csi.cam.ac.uk ([131.111.8.137]:39151) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NsKdC-0007rQ-3K for emacs-devel@gnu.org; Thu, 18 Mar 2010 14:39:42 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:47257) by ppsw-7.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1NsKdA-0006rM-Mi (Exim 4.70) (return-path ); Thu, 18 Mar 2010 18:39:40 +0000 In-Reply-To: (Stefan Monnier's message of "Thu, 18 Mar 2010 10:06:44 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:122197 Archived-At: On 2010-03-18 14:06 +0000, Stefan Monnier wrote: >> I find browse-kill-ring very convenient. >> It cleverly advices m-y so if its run before any preceding yank, it >> shows the contents of the kill-ring and the user can select one entry to >> be yanked. >> Could something like this be included in Emacs-24? I feel it would be >> useful to newcomers (and old-timers with bad short-term memory like me) > > I think it's indeed a very nice feature. I end up not using it much, > but at least it seems like a natural use for M-y. > > 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). > > So I think if we want to enable such a feature by default, it'd need to > be better integrated with the completion code. I think at least it should be built on top of ewoc. It seems like a natural choice. I have been using b-k-r for around 2 years, at least keeping it around. But unfortunately when I need it, it refuses to insert the text from time to time, which is really annoying. So I wrote something really simple for myself and I tried to make it work with the existing kill yank facility in Emacs. I think new features can be easily added. I posted the code here: http://paste.lisp.org/display/96565 > Stefan Cheers, Leo