unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Grab and yank
@ 2010-01-23 21:31 andrea
  2010-01-24 10:34 ` andrea
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: andrea @ 2010-01-23 21:31 UTC (permalink / raw)
  To: help-gnu-emacs

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






^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-01-25 18:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [not found] ` <mailman.99.1264332314.14305.help-gnu-emacs@gnu.org>
2010-01-25 18:07   ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).