all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: andrea <andrea.crotti.0@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Grab and yank
Date: Sat, 23 Jan 2010 22:31:56 +0100	[thread overview]
Message-ID: <m1k4v8ecdv.fsf@ip116-027.hgracht.rwth-aachen.de> (raw)

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






             reply	other threads:[~2010-01-23 21:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23 21:31 andrea [this message]
2010-01-24 10:34 ` Grab and yank 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

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=m1k4v8ecdv.fsf@ip116-027.hgracht.rwth-aachen.de \
    --to=andrea.crotti.0@gmail.com \
    --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.