From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Shift-movement selection Date: Mon, 10 Mar 2008 09:06:01 +0900 Message-ID: <8763vvzbme.fsf@catnip.gol.com> References: <200803050637.m256bXL3008361@sallyv1.ics.uci.edu> <87hcfkdhqk.fsf@stupidchicken.com> <87d4q8sq9c.fsf@jurta.org> <8763w0n393.fsf@catnip.gol.com> <871w6ounk0.fsf@kfs-lx.rd.rdm> <87ablacdxt.fsf@catnip.gol.com> <87skyzzeng.fsf@catnip.gol.com> <87d4q35u3z.fsf@kfs-lx.rd.rdm> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205107655 2011 80.91.229.12 (10 Mar 2008 00:07:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2008 00:07:35 +0000 (UTC) Cc: juri@jurta.org, cyd@stupidchicken.com, Stefan Monnier , rms@gnu.org, emacs-devel@gnu.org To: storm@cua.dk (Kim F. Storm) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 10 01:08:02 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 1JYVYb-0005cu-E9 for ged-emacs-devel@m.gmane.org; Mon, 10 Mar 2008 01:07:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYVY3-0000kt-Cp for ged-emacs-devel@m.gmane.org; Sun, 09 Mar 2008 20:07:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JYVWz-00088w-Em for emacs-devel@gnu.org; Sun, 09 Mar 2008 20:06:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JYVWx-00086I-Pc for emacs-devel@gnu.org; Sun, 09 Mar 2008 20:06:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYVWx-000864-EY for emacs-devel@gnu.org; Sun, 09 Mar 2008 20:06:15 -0400 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JYVWp-0006Az-OG; Sun, 09 Mar 2008 20:06:08 -0400 Original-Received: from 203-216-96-086.dsl.gol.ne.jp ([203.216.96.86] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) id 1JYVWk-0006o1-Vg; Mon, 10 Mar 2008 09:06:03 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id CA08F2FF7; Mon, 10 Mar 2008 09:06:01 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <87d4q35u3z.fsf@kfs-lx.rd.rdm> (Kim F. Storm's message of "Mon, 10 Mar 2008 00:57:04 +0100") Original-Lines: 35 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com 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:91962 Archived-At: storm@cua.dk (Kim F. Storm) writes: > Easier would be (shift-region-check) or some such. Perhaps we should try to remove the "shift" from the command name -- the concept seems independent of the actual key modifier used. >> The method I showed earlier seems almost as simple, and has the >> advantage that it's very unintrusive -- you only need to worry about the >> commands which implement the special behavior -- and seems to work >> pretty well. > > Can't we just combine the two methods (actually three - using the > deactivate-mark 'only instead of transient-mark-mode 'only)? Yeah, the various issues seem orthogona (copying some text from my previous message): (1) how to turn on shift-selection -- binding keys vs. special detection of commands (2) How to turn _off_ shift-selection -- post-command-hook vs. transient-mark-mode "only mode" vs. ... You're right that it seems better to extend the deactivate-mark variable to implement this feature so it works right for t-m-m users too. Do you have an exact mechanism in mind? I find the dance of variables used for deactivate-mark and transient-mark-mode kind of confusing... :-) -Miles -- Circus, n. A place where horses, ponies and elephants are permitted to see men, women and children acting the fool.