From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: yank-secondary Date: Tue, 06 May 2008 23:15:21 -0400 Message-ID: References: <000b01c883aa$0177b340$0600a8c0@us.oracle.com> <000901c8ae3c$ae309770$0200a8c0@us.oracle.com> <000901c8af91$67d4d7e0$0200a8c0@us.oracle.com> <005501c8afeb$afe7ab70$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210130146 12588 80.91.229.12 (7 May 2008 03:15:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 May 2008 03:15:46 +0000 (UTC) Cc: 'Ehud Karni' , 'David De La Harpe Golden' , 'Emacs-Devel' To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 07 05:16:21 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jta8e-0004kI-GN for ged-emacs-devel@m.gmane.org; Wed, 07 May 2008 05:16:16 +0200 Original-Received: from localhost ([127.0.0.1]:49457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jta7w-0002La-GG for ged-emacs-devel@m.gmane.org; Tue, 06 May 2008 23:15:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jta7r-0002KC-HY for emacs-devel@gnu.org; Tue, 06 May 2008 23:15:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jta7m-0002Ht-JJ for emacs-devel@gnu.org; Tue, 06 May 2008 23:15:26 -0400 Original-Received: from [199.232.76.173] (port=35324 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jta7m-0002Hf-Dg for emacs-devel@gnu.org; Tue, 06 May 2008 23:15:22 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jta7m-0007gb-6l for emacs-devel@gnu.org; Tue, 06 May 2008 23:15:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAAq8IEhMCqqd/2dsb2JhbACBU6s7 X-IronPort-AV: E=Sophos;i="4.27,446,1204520400"; d="scan'208";a="20005026" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 06 May 2008 23:15:21 -0400 Original-Received: from pastel.home ([76.10.170.157]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id NIW79621; Tue, 06 May 2008 23:15:21 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 59C628E5F; Tue, 6 May 2008 23:15:21 -0400 (EDT) In-Reply-To: <005501c8afeb$afe7ab70$0200a8c0@us.oracle.com> (Drew Adams's message of "Tue, 6 May 2008 19:40:17 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:96643 Archived-At: >> > Dunno if anyone tried the code I sent, but I've >> > since combined the three commands in one, >> > `yank-secondary-or-swap-w-region': >> >> > * no prefix arg: yank-secondary >> > * prefix arg >= 0: primary-to-secondary >> > * prefix arg < 0: secondary-to-primary >> >> Why not just either yank and swap primary<->secondary? >> Also it can just be called secondary-dwim. > I don't know what you're suggesting. I don't know what you mean here by > "either...and" ^^^ should be or > and by "swap primary<->secondary". You know... "swap" aka "exchange", i.e. both primary-to-secondary and secondary-to-primary at the same time. Stefan