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: Shift selection using interactive spec Date: Fri, 14 Mar 2008 23:31:43 -0400 Message-ID: References: <87k5k69p92.fsf@stupidchicken.com> <200803140408.m2E47hPU014494@sallyv1.ics.uci.edu> <87prtxpekk.fsf@kfs-lx.rd.rdm> <87abl11ilo.fsf@stupidchicken.com> <874pb9koyw.fsf@stupidchicken.com> <87od9gzqv9.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205552323 7143 80.91.229.12 (15 Mar 2008 03:38:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Mar 2008 03:38:43 +0000 (UTC) Cc: Dan Nicolaescu , emacs-devel@gnu.org, "Kim F. Storm" To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 15 04:39:11 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 1JaNEj-0003PS-L6 for ged-emacs-devel@m.gmane.org; Sat, 15 Mar 2008 04:39:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JaNEA-0002gx-79 for ged-emacs-devel@m.gmane.org; Fri, 14 Mar 2008 23:38:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JaNE5-0002ef-F9 for emacs-devel@gnu.org; Fri, 14 Mar 2008 23:38:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JaNE3-0002dc-If for emacs-devel@gnu.org; Fri, 14 Mar 2008 23:38:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JaNE3-0002dU-AO for emacs-devel@gnu.org; Fri, 14 Mar 2008 23:38:27 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JaNE3-0006DF-4D for emacs-devel@gnu.org; Fri, 14 Mar 2008 23:38:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAHfh2kdMCpRO/2dsb2JhbACpOYEJ X-IronPort-AV: E=Sophos;i="4.25,505,1199682000"; d="scan'208";a="16082185" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 14 Mar 2008 23:38:25 -0400 Original-Received: from ceviche.home ([76.10.148.78]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id VGB65925 for ; Fri, 14 Mar 2008 23:38:25 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id A8F73B41C8; Fri, 14 Mar 2008 23:31:43 -0400 (EDT) In-Reply-To: <87od9gzqv9.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 14 Mar 2008 22:02:34 -0400") 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:92653 Archived-At: >> First and foremost it should be an elisp function that people can >> call at the beginning of their function, just like they can call >> `barf-if-buffer-read-only'. >> >> Then we can provide a special char in `interactive' strings for those >> commands that currently don't use an elisp interactive spec. >> >> Then we can tweak the code of that function to decide how it should >> behave when the command is bound to a shifted key. > So we define (i) an elisp function called, say, > shift-translation-handler, and (ii) a new interactive code that says > to call shift-translation-handler when a command is activated through > a shift translated keybinding. No: the function is called every time. *All* the work is done by the elisp function. Stefan