From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: pushing and popping the mark Date: Sun, 10 May 2015 00:34:29 +0200 Organization: Aioe.org NNTP Server Message-ID: <87sib51itm.fsf@debian.uxu> References: <87wq0h1kzz.fsf@debian.uxu> <3b561956-c3d1-490b-a02c-6b385cd20fb2@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1431210617 27192 80.91.229.3 (9 May 2015 22:30:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 May 2015 22:30:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 10 00:30:17 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YrDGC-0003ZY-JF for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2015 00:30:16 +0200 Original-Received: from localhost ([::1]:60630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrDGC-0006xx-3Z for geh-help-gnu-emacs@m.gmane.org; Sat, 09 May 2015 18:30:16 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:cOsMOsuYCLE0zFpS4QBKf2X2k1w= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:212056 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104340 Archived-At: Sam Halliday writes: >> So use the kill *ring*. >> >> When you yank, if it isn't what you like, do >> (immediately after the yank) `M-y' for `yank-pop'. > > I know this is called `yank-pop`, but it is more of > a "peek" because it keeps the kill ring intact. > > More generally though, this is a neat solution. > I hadn't thought to do it this way. The only problem > with it is that it necessitates doing everything in > exact order and not making any mistakes along > the way. Try yanking and then do `M-y' *several times* - and if you skip the insert you'd like by mistake do the Elisp I provided (bind it to for example `C-M-y'), which can likewise be repeated. I'd say the second best solution is to split the window. Or sometimes that would be the best solution - it depends. Jumping back and forth in the same buffer is the worst solution by far (so far). Think of this as something physical. Someone chops wood and then puts it in the stove. No one would cut one piece of firewood, carry it all the way back, put it in, then return all the way for another piece, and so on. -- underground experts united http://user.it.uu.se/~embe8573