From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Shift selection using interactive spec Date: Fri, 28 Mar 2008 12:10:07 +0100 Message-ID: <86prtf2jg0.fsf@lola.quinscape.zz> References: <87k5k69p92.fsf@stupidchicken.com> <87bq5gytbi.fsf@stupidchicken.com> <8763vndi0r.fsf@kfs-lx.rd.rdm> <87hcf6ratt.fsf@stupidchicken.com> <878x0if9ul.fsf@stupidchicken.com> <87od9e9gnx.fsf@stupidchicken.com> <87skyo5bvk.fsf@stupidchicken.com> <87skynrin5.fsf@stupidchicken.com> <87iqzju0lq.fsf@kfs-lx.rd.rdm> <851w5xx5ya.fsf@lola.goethe.zz> <87ve3993dt.fsf@jurta.org> <47EA37C7.7080502@gmail.com> <47EADCC4.2000207@gmail.com> <47EC6E9B.90107@hpalace.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206702627 19594 80.91.229.12 (28 Mar 2008 11:10:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2008 11:10:27 +0000 (UTC) Cc: juri@jurta.org, "Lennart Borgman \(gmail\)" , rms@gnu.org, emacs-devel@gnu.org To: M Jared Finder Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 28 12:10:54 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 1JfCU1-0002pA-Ol for ged-emacs-devel@m.gmane.org; Fri, 28 Mar 2008 12:10:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfCTQ-00015N-Aj for ged-emacs-devel@m.gmane.org; Fri, 28 Mar 2008 07:10:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfCTM-000153-G6 for emacs-devel@gnu.org; Fri, 28 Mar 2008 07:10:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfCTL-00014k-IK for emacs-devel@gnu.org; Fri, 28 Mar 2008 07:10:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfCTL-00014h-B2 for emacs-devel@gnu.org; Fri, 28 Mar 2008 07:10:11 -0400 Original-Received: from mail.quinscape.de ([212.29.44.217]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JfCTK-0000OO-Oo for emacs-devel@gnu.org; Fri, 28 Mar 2008 07:10:11 -0400 Original-Received: (qmail-ldap/ctrl 26477 invoked from network); 28 Mar 2008 11:10:08 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 28 Mar 2008 11:10:07 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id 3C6CA8FC5B; Fri, 28 Mar 2008 12:10:06 +0100 (CET) In-Reply-To: <47EC6E9B.90107@hpalace.com> (M. Jared Finder's message of "Thu, 27 Mar 2008 21:05:47 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-AntiVirus: checked by AntiVir MailGate (version: 2.1.3-2; AVE: 7.6.0.78; VDF: 7.0.3.89; host: quinx) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:93692 Archived-At: M Jared Finder writes: > Richard Stallman wrote: >> Yes, but the problem here is rather that you may need to >> redefine which commands should deactivate the mark. Doing that >> with a symbol property makes it much more flexible. >> >> Why is it important to be able change whether a command deactivates >> the mark without changing the command itself? >> > It'd be a disaster to have to restate the whole command or even just > the interactive spec to make commands CUA-mode aware. Why? We are not talking about "CUA-mode aware" but about mark deactivation. > Right now, if I am using an external package that is not fully > CUA-mode aware (like CC-mode), cc-mode is not an external package. It is distributed as part of Emacs. > all I need to do is: >> (let ((move-fns '(c-forward-conditional c-backward-conditional >> c-down-conditional c-up-conditional >> c-down-conditional-with-else >> c-up-conditional-with-else >> c-beginning-of-statement c-end-of-statement))) >> (require 'cua-base) >> (dolist (symbol move-fns) >> (unless (eq 'move (get symbol 'CUA)) >> (display-warning 'emacs (format "Adding CUA property to `%s'." >> symbol)) >> (setf (get symbol 'CUA) 'move)))) > If I had to restate the interactive spec, this would not be nearly as > easy. Please, listen to the users of CUA-mode and do *not* make this > any harder. If CUA-mode chooses to provide an additional futzing interface for meddling with external packages, this does not preclude us from using a proper interface within Emacs itself. This is quite similar to the usage of advice: it is convenient for _messing_ with things that are not prepared for it. But that does not make it a good idea for _regular_ interaction. -- David Kastrup