From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: 2 ways to paste Date: Thu, 6 Nov 2008 08:18:59 -0800 (PST) Organization: http://groups.google.com Message-ID: <8260beb0-d756-421d-9fe1-22981ff51b00@t39g2000prh.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1225989653 32656 80.91.229.12 (6 Nov 2008 16:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2008 16:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 17:41:54 2008 connect(): Connection refused 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 1Ky7vZ-0000rc-Co for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2008 17:41:49 +0100 Original-Received: from localhost ([127.0.0.1]:48750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ky7uS-0008BM-73 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2008 11:40:40 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!t39g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 82 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1225988340 1311 127.0.0.1 (6 Nov 2008 16:19:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 6 Nov 2008 16:19:00 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t39g2000prh.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164175 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:59511 Archived-At: On Nov 6, 7:38 am, tomer wrote: > here his the scenario ( timed order): > 1) i mark region A > 2) i copy (alt+w) region B > > now i want the have the possiblity to yank region A and region B each > with different command. > > is it possible? > > in other words , Is it possible to have 2 different indepenable > mechanism for > 1) copy yank marking block (with mark and set). > 2) copy yank block that was copied to clipboard by alt+w. > > hope my question is cleared (^_^) but am quite confused. You want 2 independent clipboards, so that you can have different texts in each, is that it? If so, you can use emacs's so-called register. See this tips page: http://xahlee.org/emacs/emacs_esoteric.html excerpt: Q: I have a set of different texts i want to paste frequently. Is there a way to use like multiple clipboards? Yes. Select the region, then type =E2=80=9CCtrl+x r s=E2=80=9D (or =E2=80= =9CAlt+x copy-to- register=E2=80=9D), give it a name such as 1. To paste it, type =E2=80=9CCt= rl+x r i=E2=80=9D (or =E2=80=9CAlt+x insert-register=E2=80=9D). If your text is frequently needed long term, such as a XML template or signature, you can define a function and bind it to a key, so that it inserts the string when you press a button. Here's a example: (defun insert-p () "insert

at cursor point." (interactive) (insert "

") (backward-char 4)) (global-set-key (kbd "") 'insert-p) Put the above in your =E2=80=9C.emacs=E2=80=9D. ----------------------- btw, your use of jargons is fairly confused. Either use modern terms or stick with emacs's, throughout. Here's simple table: Modern Emacs ----------------------------------- copy kill-ring-save cut kill paste yank clipboard kill-ring text selection region window frame (sometimes =E2=80=9Cwindow=E2=80=9D as in split-wi= ndow- vertically) frame/pane window left button mouse-1 mid button mouse-2 right button mouse-3 when you =E2=80=9Cmark=E2=80=9D, you set a boundary to region. You don't = =E2=80=9Cmark a region=E2=80=9D. Xah =E2=88=91 http://xahlee.org/ =E2=98=84