From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Grab and yank
Date: Sun, 24 Jan 2010 15:32:49 +0100 [thread overview]
Message-ID: <4B5C5A11.9030403@easy-emacs.de> (raw)
In-Reply-To: <m1k4v8ecdv.fsf@ip116-027.hgracht.rwth-aachen.de>
andrea wrote:
> I notice that I often do this operation:
> I am in one buffer and I need to fetch something from another buffer.
> So I visit the other one, select what I need, go back and yank.
> Now something like that would be nice instead:
> - visit the buffer in view mode
> - when quitting automatically put it in kill-ring and yank it to the
> point of the original buffer
>
> This would save quite a lot of time, what do you thik?
> I started something like that
>
> -8<---------------cut here---------------start------------->8---
> (defun grab-and-yank (buffer)
> "Grabs from another buffer and yank it to your point"
> (interactive "bbuffer:\n")
> (switch-to-buffer-other-window buffer)
> (view-mode 1))
> --8<---------------cut here---------------end--------------->8---
>
> But the view mode apparently don't keep it read only, and I think I
> should change the keymap to make "q" do something different than just
> exiting
>
>
>
>
>
>
Hi,
what about the following procedure:
1) register your point
2) swirl around and collect your honey into a second register :-)
3) back to point (first register)
4 insert second register
Andreas
next prev parent reply other threads:[~2010-01-24 14:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-23 21:31 Grab and yank andrea
2010-01-24 10:34 ` andrea
2010-01-24 16:43 ` Drew Adams
2010-01-24 11:24 ` Lennart Borgman
2010-01-24 11:50 ` Andrea Crotti
2010-01-24 12:05 ` Lennart Borgman
2010-01-24 13:48 ` Lennart Borgman
2010-01-24 15:13 ` Richard Riley
2010-01-24 15:16 ` Lennart Borgman
2010-01-24 17:29 ` Richard Riley
2010-01-24 17:39 ` Drew Adams
2010-01-24 17:47 ` Richard Riley
2010-01-24 14:32 ` Andreas Röhler [this message]
[not found] ` <mailman.99.1264332314.14305.help-gnu-emacs@gnu.org>
2010-01-25 18:07 ` Stefan Monnier
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=4B5C5A11.9030403@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--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.