From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: Re: Compleet buffer to clipboard Date: Sat, 18 Apr 2009 22:51:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: <402db8b7-6036-4b25-b38c-c11ecb79a524@g19g2000yql.googlegroups.com> 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 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1240123257 30232 80.91.229.12 (19 Apr 2009 06:40:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Apr 2009 06:40:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 19 08:42:17 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 1LvQjC-0006jQ-U1 for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Apr 2009 08:42:11 +0200 Original-Received: from localhost ([127.0.0.1]:37430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvQhn-0000Q8-T2 for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Apr 2009 02:40:43 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g19g2000yql.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: posting.google.com 1240120264 15871 127.0.0.1 (19 Apr 2009 05:51:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 19 Apr 2009 05:51:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g19g2000yql.googlegroups.com; posting-host=84.53.123.169; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168592 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:63864 Archived-At: On Apr 18, 7:58=A0pm, "B. T. Raven" wrote: > >> I find it easier and faster to do: > >> =A0 =A0 C-c C-a > >> then to do: > >> =A0 =A0 C-x h > >> =A0 =A0 M-w > >> =A0 =A0 C-u C-SPC > >> =A0 =A0 C-u C-SPC > > > What is C-c C-a bound to? It's undefined here. In any case your solutio= n > > involves two more (unnecessary) key chords than Drew's > > > Or do you mean ... easier ..... THAN to do: ??? Excuse my English. It should have been than. :-{ > > 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." > > =A0 (defun buffer-yank() > =A0 =A0 =A0 =A0(interactive) > =A0 =A0 =A0 =A0(kill-ring-save(point-min)(point-max))) > > =A0 =A0 =A0(global-set-key (kbd "C-c C-a") 'buffer-yank) > > Does your version cut from the original buffer or just copy? This does a copy. (That is what I almost alway want, and otherwise is 'C-x h, C-w' not so bad to do.) But I could change the function that with 'C-u' prepended it does a cut instead of a copy.