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 23:01:19 +0100 Message-ID: <85bq4yse34.fsf@lola.goethe.zz> References: <87k5k69p92.fsf@stupidchicken.com> <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> <87myoiikqh.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 1206741808 7539 80.91.229.12 (28 Mar 2008 22:03:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2008 22:03:28 +0000 (UTC) Cc: juri@jurta.org, M Jared Finder , lennart.borgman@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 28 23:03:58 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 1JfMg2-0002zd-F3 for ged-emacs-devel@m.gmane.org; Fri, 28 Mar 2008 23:03:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfMfR-0005Rf-5d for ged-emacs-devel@m.gmane.org; Fri, 28 Mar 2008 18:03:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfMdk-0004jW-DX for emacs-devel@gnu.org; Fri, 28 Mar 2008 18:01:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfMdg-0004iE-PV for emacs-devel@gnu.org; Fri, 28 Mar 2008 18:01:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfMdg-0004i7-G6 for emacs-devel@gnu.org; Fri, 28 Mar 2008 18:01:32 -0400 Original-Received: from mail-in-11.arcor-online.net ([151.189.21.51]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JfMdc-00056f-0L; Fri, 28 Mar 2008 18:01:28 -0400 Original-Received: from mail-in-17-z2.arcor-online.net (mail-in-17-z2.arcor-online.net [151.189.8.34]) by mail-in-11.arcor-online.net (Postfix) with ESMTP id 8FFBF24122F; Fri, 28 Mar 2008 23:01:24 +0100 (CET) Original-Received: from mail-in-11.arcor-online.net (mail-in-11.arcor-online.net [151.189.21.51]) by mail-in-17-z2.arcor-online.net (Postfix) with ESMTP id 7756845C047; Fri, 28 Mar 2008 23:01:24 +0100 (CET) Original-Received: from lola.goethe.zz (dslb-084-061-073-098.pools.arcor-ip.net [84.61.73.98]) by mail-in-11.arcor-online.net (Postfix) with ESMTP id 270F724926D; Fri, 28 Mar 2008 23:01:24 +0100 (CET) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 6003E1C4CE00; Fri, 28 Mar 2008 23:01:19 +0100 (CET) In-Reply-To: <87myoiikqh.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 28 Mar 2008 17:47:50 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: ClamAV 0.92.1/6452/Fri Mar 28 22:32:49 2008 on mail-in-11.arcor-online.net X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:93721 Archived-At: Chong Yidong writes: > Richard Stallman writes: > >> It'd be a disaster to have to restate the whole command or even just the >> interactive spec to make commands CUA-mode aware. Right now, if I am >> using an external package that is not fully CUA-mode aware (like >> CC-mode), all I need to do is: >> >> That is a valid point -- it is useful to be able to patch an external >> library command by adding a property. >> >> However, for writing commands in Emacs, I think the cleanest way >> is to use the interactive spec. >> >> So I think we should support both ways, but prefer the interactive >> spec. > > Yeah. > > So I suppose precedence would be given to the interactive spec; if the ^ > code is not present, we'd check the `handle-shift-selection' property. > Also, to support an easy way of turning off shift selection in commands, > a value of (say) `off' in the `handle-shift-selection' property would > mean to avoid doing shift selection (otherwise, we wouldn't be able to > tell whether `handle-shift-selection' nil means the property hasn't been > defined, or whether the user wants to turn shift-selection off). > > We would probably need a global variable to turn off shift-selection for > all commands too. > > WDYT? I think it nonsensical to have a particular special way to alter a lot of commands individually in just one aspect. If the functionality is as annoying when being switched on as to warrant per-function fine-tuning, we should tone down the obnoxious parts. Do you have an example for a function which should by default obey shift-selection, but where a user would rather have it turned off? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum