help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to clear a register


From: Xah Lee
Subject: Re: How to clear a register
Date: Tue, 20 Jan 2009 17:18:07 -0800 (PST)
User-agent: G2/1.0

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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]