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: Compleet buffer to clipboard Date: Sat, 18 Apr 2009 12:58:49 -0500 Message-ID: References: <2df3a1e3-5c09-4784-8878-21af07cd5b24@q9g2000yqc.googlegroups.com> <1a7f61de-5912-4f09-bd6e-f86d151a3961@a7g2000yqk.googlegroups.com> <2LadnRYOwq8sjXfUnZ2dnUVZ_vWdnZ2d@sysmatrix.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240080103 13104 80.91.229.12 (18 Apr 2009 18:41:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2009 18:41:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 18 20:43:04 2009 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 1LvFVG-000814-VD for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 20:43:03 +0200 Original-Received: from localhost ([127.0.0.1]:53743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvFTr-0007VU-KK for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 14:41:35 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Sat, 18 Apr 2009 12:58:43 -0500 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) Original-Newsgroups: gnu.emacs.help In-Reply-To: <2LadnRYOwq8sjXfUnZ2dnUVZ_vWdnZ2d@sysmatrix.net> Original-Lines: 34 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.133.55 Original-X-Trace: sv3-KFZxSL0JHuzICMDK6sIHt7BYZHnD7hJJqAT1lYlA+niB+YlqQjIIsAh4WKrEA0POowpWZxa4ntdsDgx!y0J+zdH70w4rEGIsHH6OCGCq4KAdMB3zOAeYBUjcxj+07bIQ0V35gzSgkThvTTHnSnaBOqMWN4jO!QHyRi7Ge3CQqMwsGT+/A8YiS9/5KQA== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 X-Original-Bytes: 2523 Original-Xref: news.stanford.edu gnu.emacs.help:168581 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:63854 Archived-At: B. T. Raven wrote: > Decebal wrote: >> On 18 apr, 18:27, "Drew Adams" wrote: >>>> A lot of times I want to copy the complete buffer to the clipboard. >>>> This is possible with: C-x h M-w >>>> But one of the complications is that you lose your cursor position. >>> C-u C-SPC C-u C-SPC should take you back where you were. >> >> I did not know that. But I prefer my solution. ;-} >> I find it easier and faster to do: >> C-c C-a >> then to do: >> C-x h >> M-w >> C-u C-SPC >> C-u C-SPC > > What is C-c C-a bound to? It's undefined here. In any case your solution > involves two more (unnecessary) key chords than Drew's > > Or do you mean ... easier ..... THAN to do: ??? Oops! I read Drew's answer but not the o.p. This also doesn't seem to mess with the mark or at least the docs say "In Transient Mark mode, deactivate the mark." (defun buffer-yank() (interactive) (kill-ring-save(point-min)(point-max))) (global-set-key (kbd "C-c C-a") 'buffer-yank) Does your version cut from the original buffer or just copy?