From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to clear a register
Date: Tue, 20 Jan 2009 17:18:07 -0800 (PST) [thread overview]
Message-ID: <bab7642f-e2ce-434c-b793-7c3f6d47c932@p36g2000prp.googlegroups.com> (raw)
In-Reply-To: mailman.5379.1232474199.26697.help-gnu-emacs@gnu.org
btw, i find the whole processing of copying to register and giving a
name and pasting from register with a name too cumbersome. So i have:
(defun copy-to-register-1 (p1 p2)
"Copy text selection to register named “1”."
(interactive "r")
(copy-to-register ?1 p1 p2 )
)
(defun insert-register-content-1 ()
"Insert register named “1”'s content."
(interactive)
(insert-register ?1)
)
(defalias 'cp1 'copy-to-register-1)
(defalias 'pst1 'insert-register-content-1)
Xah
∑ http://xahlee.org/
☄
next prev parent reply other threads:[~2009-01-21 1:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5315.1232429190.26697.help-gnu-emacs@gnu.org>
2009-01-20 9:50 ` How to clear a register Asgeir
2009-01-20 17:56 ` Harry Putnam
[not found] ` <mailman.5379.1232474199.26697.help-gnu-emacs@gnu.org>
2009-01-21 1:18 ` Xah Lee [this message]
2009-01-20 5:26 Harry P
2009-01-20 11:34 ` Bastien
2009-01-20 17:57 ` Harry Putnam
[not found] ` <mailman.5336.1232451298.26697.help-gnu-emacs@gnu.org>
2009-01-20 16:59 ` Asgeir
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=bab7642f-e2ce-434c-b793-7c3f6d47c932@p36g2000prp.googlegroups.com \
--to=xahlee@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.