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: `mouse-save-then-kill' changes Date: Sun, 07 Nov 2010 14:01:18 -0500 Message-ID: References: <59B673DED28140FEBB895891578B6202@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289156496 20221 80.91.229.12 (7 Nov 2010 19:01:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Nov 2010 19:01:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 07 20:01:31 2010 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.69) (envelope-from ) id 1PFAUc-00007i-Rj for ged-emacs-devel@m.gmane.org; Sun, 07 Nov 2010 20:01:31 +0100 Original-Received: from localhost ([127.0.0.1]:38009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFAUc-0003c4-CO for ged-emacs-devel@m.gmane.org; Sun, 07 Nov 2010 14:01:30 -0500 Original-Received: from [140.186.70.92] (port=57035 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFAUT-0003YU-W5 for emacs-devel@gnu.org; Sun, 07 Nov 2010 14:01:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFAUS-0002u0-MT for emacs-devel@gnu.org; Sun, 07 Nov 2010 14:01:21 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:55882 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFAUS-0002tf-K9 for emacs-devel@gnu.org; Sun, 07 Nov 2010 14:01:20 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoEKAM2F1kxMCpqE/2dsb2JhbAChCH9yuDWFSASEWI1a X-IronPort-AV: E=Sophos;i="4.58,310,1286164800"; d="scan'208";a="81868581" Original-Received: from 76-10-154-132.dsl.teksavvy.com (HELO pastel.home) ([76.10.154.132]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 07 Nov 2010 14:01:18 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 2DF6EA8686; Sun, 7 Nov 2010 14:01:18 -0500 (EST) In-Reply-To: <59B673DED28140FEBB895891578B6202@us.oracle.com> (Drew Adams's message of "Fri, 5 Nov 2010 10:49:37 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.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:132429 Archived-At: > Now (Emacs 24) I have to (a) duplicate all of the code of > `mouse-save-then-kill', (b) replace the 3 lines that delete or kill > the region by a call to `foobar', and (c) change references to > `mouse-save-then-kill' within the new command to the new command > name - e.g. places where the code checks `(eq last-command > 'mouse-save-then-kill)'. Maybe you can use buffer-substring-filters instead? Stefan