all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: pushing and popping the mark
Date: Sun, 10 May 2015 00:34:29 +0200	[thread overview]
Message-ID: <87sib51itm.fsf@debian.uxu> (raw)
In-Reply-To: 3b561956-c3d1-490b-a02c-6b385cd20fb2@googlegroups.com

Sam Halliday <sam.halliday@gmail.com> 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


  reply	other threads:[~2015-05-09 22:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-09 11:18 pushing and popping the mark Sam Halliday
2015-05-09 11:30 ` Sam Halliday
2015-05-09 12:49   ` Francis Belliveau
     [not found]   ` <mailman.2663.1431175800.904.help-gnu-emacs@gnu.org>
2015-05-09 21:08     ` Sam Halliday
2015-05-09 21:15       ` Drew Adams
     [not found]       ` <mailman.2680.1431206116.904.help-gnu-emacs@gnu.org>
2015-05-09 22:04         ` Sam Halliday
2015-05-09 21:47 ` Emanuel Berg
2015-05-09 22:11   ` Sam Halliday
2015-05-09 22:34     ` Emanuel Berg [this message]
2015-05-10  0:02     ` Drew Adams
     [not found]     ` <mailman.2683.1431216187.904.help-gnu-emacs@gnu.org>
2015-05-10  1:59       ` Emanuel Berg
2015-05-10 13:41     ` Jude DaShiell
  -- strict thread matches above, loose matches on Subject: below --
2015-05-09 15:03 Jude DaShiell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sib51itm.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.