From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: save buffer contents without moving mark/point? Date: Mon, 26 Feb 2007 17:41:53 -0600 Organization: UseNetServer.com Message-ID: <154aa$45e37046$49fa695$27984@DIALUPUSA.NET> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172536845 16910 80.91.229.12 (27 Feb 2007 00:40:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2007 00:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 27 01:40:37 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HLqOS-0003as-LY for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Feb 2007 01:40:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLqOS-0003GZ-My for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Feb 2007 19:40:36 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!208.49.83.146.MISMATCH!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!DIALUPUSA.NET!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 29 Original-X-Trace: 154aa45e37046a13a033027984 Original-Xref: shelby.stanford.edu gnu.emacs.help:145894 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41498 Archived-At: "Thomas L Roche" wrote in message news:mailman.130.1172517269.7795.help-gnu-emacs@gnu.org... > Apologies if this is a FAQ, but I didn't see it when searching C-h F. > I'm currently using GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit) of > 2004-03-22 on cm-test. (Hmm, I guess I need to upgrade my cygwin.) > > 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). > > What to use? If possible please reply directly to me as well as to the > list, and TIA. > > > I think M-w already does that: M-w runs the command copy-region-as-kill-nomark which is an interactive compiled Lisp function in `pc-select'. (copy-region-as-kill-nomark BEG END) This is for Motif, Mac, MS Windows like behavior but you should be able to use it under Linux or Cygwin too. Ed