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 21:55:08 -0400 Message-ID: References: <000b01c883aa$0177b340$0600a8c0@us.oracle.com> <000901c8ae3c$ae309770$0200a8c0@us.oracle.com> <000901c8af91$67d4d7e0$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 1210125389 2916 80.91.229.12 (7 May 2008 01:56:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 May 2008 01:56:29 +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 03:57:04 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 1JtYtx-0003mS-1i for ged-emacs-devel@m.gmane.org; Wed, 07 May 2008 03:57:01 +0200 Original-Received: from localhost ([127.0.0.1]:50176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JtYtF-0001cx-7q for ged-emacs-devel@m.gmane.org; Tue, 06 May 2008 21:56:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JtYsC-0001EH-3M for emacs-devel@gnu.org; Tue, 06 May 2008 21:55:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JtYsA-0001DX-H4 for emacs-devel@gnu.org; Tue, 06 May 2008 21:55:11 -0400 Original-Received: from [199.232.76.173] (port=45054 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JtYsA-0001DR-9C for emacs-devel@gnu.org; Tue, 06 May 2008 21:55:10 -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 1JtYs9-0001go-MU for emacs-devel@gnu.org; Tue, 06 May 2008 21:55:09 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAFKpIEhMCqqd/2dsb2JhbACBU6tK X-IronPort-AV: E=Sophos;i="4.27,445,1204520400"; d="scan'208";a="20003024" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 06 May 2008 21:55:09 -0400 Original-Received: from pastel.home ([76.10.170.157]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id NGK28109; Tue, 06 May 2008 21:55:09 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D5AC68E5F; Tue, 6 May 2008 21:55:08 -0400 (EDT) In-Reply-To: <000901c8af91$67d4d7e0$0200a8c0@us.oracle.com> (Drew Adams's message of "Tue, 6 May 2008 08:54:01 -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:96631 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. Stefan