From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Shift-movement selection Date: Mon, 10 Mar 2008 00:57:04 +0100 Message-ID: <87d4q35u3z.fsf@kfs-lx.rd.rdm> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205107051 32734 80.91.229.12 (9 Mar 2008 23:57:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2008 23:57:31 +0000 (UTC) Cc: juri@jurta.org, cyd@stupidchicken.com, emacs-devel@gnu.org, Stefan Monnier , rms@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 10 00:57: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 1JYVOv-0003Af-Fk for ged-emacs-devel@m.gmane.org; Mon, 10 Mar 2008 00:57:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYVON-0001Ri-Ag for ged-emacs-devel@m.gmane.org; Sun, 09 Mar 2008 19:57:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JYVOI-0001Nw-E5 for emacs-devel@gnu.org; Sun, 09 Mar 2008 19:57:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JYVOF-0001G4-GU for emacs-devel@gnu.org; Sun, 09 Mar 2008 19:57:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYVOF-0001Fl-Be for emacs-devel@gnu.org; Sun, 09 Mar 2008 19:57:15 -0400 Original-Received: from pfepb.post.tele.dk ([195.41.46.236]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JYVO7-0004jh-K5; Sun, 09 Mar 2008 19:57:07 -0400 Original-Received: from kfs-lx.rd.rdm.cua.dk (unknown [80.165.4.121]) by pfepb.post.tele.dk (Postfix) with SMTP id 60A24F84027; Mon, 10 Mar 2008 00:57:04 +0100 (CET) In-Reply-To: <87skyzzeng.fsf@catnip.gol.com> (Miles Bader's message of "Mon\, 10 Mar 2008 08\:00\:35 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:91958 Archived-At: Miles Bader writes: >> and then call it from wherever it's considered useful >> (e.g. forward-char, next-line, ...). That was not an option when I wrote CUA-mode. If that position has changed now, I'm all in favour of this approach! This would also allow external packages to simply add code like (if (fboundp 'activate-on-shift-selecting-movement) (activate-on-shift-selecting-movement)) [I don't quite like the name tough]. Easier would be (shift-region-check) or some such. > 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)? -- Kim F. Storm http://www.cua.dk