From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "rgb" Newsgroups: gmane.emacs.help Subject: Re: pasting many times Date: 25 Oct 2006 11:09:24 -0700 Organization: http://groups.google.com Message-ID: <1161799764.064357.254390@h48g2000cwc.googlegroups.com> References: <87slhdsc90.fsf@hans.local.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1161801634 10031 80.91.229.2 (25 Oct 2006 18:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2006 18:40:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 25 20:40:32 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gcnfw-00070i-V6 for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Oct 2006 20:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gcnfw-0002mV-GA for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Oct 2006 14:40:28 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 63.91.129.20 Original-X-Trace: posting.google.com 1161799769 1712 127.0.0.1 (25 Oct 2006 18:09:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 25 Oct 2006 18:09:29 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=63.91.129.20; posting-account=C7LM4w0AAAD23IRuMuUUJVCLQTuHhTK8 Original-Xref: shelby.stanford.edu gnu.emacs.help:142662 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38282 Archived-At: Drew Adams wrote: > > FWIW, I happen to agree with Mathias. If I want an earlier > > kill, I use C-y M-y. > > FWIW, I agree with Drew C-y M-yyy... is the way to go for me since I > usually don't memorise the kill-ring by heart. I too agree. But for those who can remember such things... Positive args can yank multiple times. Negative args can retrieve prior kills. Even if you *can* remember X number of kills you're not likely to ever find it more convenient to yank the (kill-ring-max - n)th entry (which isn't even documented to work anyway). Yank can be changed like this: ; (insert-for-yank (current-kill (cond ; ((listp arg) 0) ; ((eq arg '-) -2) ; (t (1- arg))))) (cond ((listp arg) (insert-for-yank (current-kill 0))) ((eq arg '-) (insert-for-yank (current-kill -2))) ((> arg 0) (dotimes (x arg) (insert-for-yank (current-kill 0)))) (t (insert-for-yank (current-kill (- arg))))) > > And when we are at it. I do not understand why M-y depends on C-y at > all, lets just take the second entry of kill-ring by default and third > and fourth and so on? Here here. > Now we are already 4 forgetful people, could this be made into an > official feature request (for after the release ;-)? Make that 5.