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

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

Re: save buffer contents without moving mark/point?


From: james
Subject: Re: save buffer contents without moving mark/point?
Date: 26 Feb 2007 11:43:56 -0800
User-agent: G2/1.0

On Feb 26, 1:14 pm, Thomas L Roche <tlro...@us.ibm.com> wrote:
> I'm looking for a {function, key binding} with semantics like windows
> C-a, i.e. that will select the current contents of the buffer
> (preferably respecting narrowing) and save it to the kill ring without
> killing (like copy-region-as-kill).

(defun my-select-all ()
  (interactive)
  (copy-region-as-kill (point-min) (point-max)))




reply via email to

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