From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Amann Newsgroups: gmane.emacs.bugs Subject: bug#1958: 23.0.60; org-mode does not honour shift-select-mode Date: Tue, 20 Jan 2009 11:12:25 +0100 Message-ID: <20090120101225.GA19356__49743.3536606424$1232450183$gmane$org@milli.physik.TU-Berlin.DE> References: <200901191709.n0JH9aPe012455@localhost.localdomain> <28B24655-C322-482B-8615-820CA6A99D09@gmail.com> Reply-To: Andreas Amann , 1958@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232450105 29243 80.91.229.12 (20 Jan 2009 11:15:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2009 11:15:05 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Carsten Dominik , 1958@emacsbugs.donarmstrong.com, Emacs-orgmode mailing list , andreas.amann@web.de, Andreas Amann To: Carsten Dominik Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 20 12:16:15 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPEac-0002VT-4y for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Jan 2009 12:16:15 +0100 Original-Received: from localhost ([127.0.0.1]:34072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPEZK-0003iQ-TP for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Jan 2009 06:14:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPDle-0003FU-95 for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2009 05:23:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPDlb-0003Cr-Mz for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2009 05:23:32 -0500 Original-Received: from [199.232.76.173] (port=40675 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPDlb-0003Cd-2Z for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2009 05:23:31 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44529) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LPDla-0003mG-IP for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2009 05:23:30 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0KANRuS025499; Tue, 20 Jan 2009 02:23:27 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0KAK5um024496; Tue, 20 Jan 2009 02:20:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Andreas Amann Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 20 Jan 2009 10:20:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1958 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1958-submit@emacsbugs.donarmstrong.com id=B1958.123244638923114 (code B ref 1958); Tue, 20 Jan 2009 10:20:05 +0000 Original-Received: (at 1958) by emacsbugs.donarmstrong.com; 20 Jan 2009 10:13:09 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.tu-berlin.de (mail.TU-Berlin.DE [130.149.7.33]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0KAD5sT023103 for <1958@emacsbugs.donarmstrong.com>; Tue, 20 Jan 2009 02:13:06 -0800 Original-Received: from milli.physik.tu-berlin.de ([130.149.114.140]) by mail.tu-berlin.de with esmtp (exim 4.69 mailfrontend-c) id 1LPDbP-0006j5-VI; Tue, 20 Jan 2009 11:13:00 +0100 Original-Received: by milli.physik.tu-berlin.de (Postfix, from userid 3390) id 6D602207; Tue, 20 Jan 2009 11:12:25 +0100 (CET) Content-Disposition: inline In-Reply-To: <28B24655-C322-482B-8615-820CA6A99D09@gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-tubIT-Score: 0.0 () X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 20 Jan 2009 05:23:32 -0500 X-Mailman-Approved-At: Tue, 20 Jan 2009 06:12:35 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24307 Archived-At: I just tested this patch, and can confirm that it works and solves my problem. Thanks! Btw: I never associated shift-select with windows (which I have no experience with). Wasn't shift-select available with Motif since the mid 90's? Andreas On Mon, Jan 19, 2009 at 09:54:31PM +0100, Carsten Dominik wrote: > > I am aware of this conflict, but I had no idea that this mode is on by > default? > What ever happened with Emacs that we have become this much > Windows-biased???? > > Anyway, if the Emacs Gods decide that this has to change, the way to do it > would be this: > > > - Carsten > > > > --- org.el.orig 2009-01-19 21:52:10.000000000 +0100 > +++ org.el 2009-01-19 21:52:42.000000000 +0100 > @@ -246,7 +246,7 @@ > :group 'org-startup > :type 'boolean) > > -(defcustom org-replace-disputed-keys nil > +(defcustom org-replace-disputed-keys shift-select-mode > "Non-nil means use alternative key bindings for some keys. > Org-mode uses S- keys for changing timestamps and priorities. > These keys are also used by other packages like `CUA-mode' or > `windmove.el'. > > > > > On Jan 19, 2009, at 6:09 PM, Andreas Amann wrote: > >> start with "emacs -Q test.org" >> >> type "* bla" >> and then shift-left >> >> expected behaviour: since shift-select-mode is set to t by default >> (see src/callint.c), I would expect that shift-movements select >> a region, and that major modes should not override this behaviour, >> without being asked of doing so. >> >> actual behaviour: upon shift-left the binding org-shiftleft is called >> which marks the current item as "DONE". This is very confusing for >> people accostumed to shift-selection, which works very well in all >> other emacs modes I know. >> >> Possible solution: in lisp/org/org.el >> only include the bindings >> >> '([(shift up)] org-shiftup) >> '([(shift down)] org-shiftdown) >> '([(shift left)] org-shiftleft) >> '([(shift right)] org-shiftright) >> >> if the variable shift-select-mode is nil. >> >> >> >> >> In GNU Emacs 23.0.60.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll >> bars) >> of 2009-01-14 on lnx0015f2465ec6 >> Windowing system distributor `The X.Org Foundation', version 11.0.10300000 >> configured using `configure '--prefix=/home/aamann/local/emacs-cvs' >> 'LDFLAGS=-L/home/aamann/local/lib64' >> 'CPPFLAGS=-I/home/aamann/local/include'' >> >> Important settings: >> value of $LC_ALL: nil >> value of $LC_COLLATE: nil >> value of $LC_CTYPE: nil >> value of $LC_MESSAGES: nil >> value of $LC_MONETARY: nil >> value of $LC_NUMERIC: nil >> value of $LC_TIME: nil >> value of $LANG: en_IE.utf8 >> value of $XMODIFIERS: @im=none >> locale-coding-system: utf-8-unix >> default-enable-multibyte-characters: t >> >> Major mode: Org >> >> Minor modes in effect: >> tooltip-mode: t >> tool-bar-mode: t >> mouse-wheel-mode: t >> menu-bar-mode: t >> file-name-shadow-mode: t >> global-font-lock-mode: t >> font-lock-mode: t >> blink-cursor-mode: t >> global-auto-composition-mode: t >> auto-composition-mode: t >> auto-encryption-mode: t >> auto-compression-mode: t >> line-number-mode: t >> transient-mark-mode: t >> >> Recent input: >> * S-SPC b l a >> >> >> >> Recent messages: >> For information about GNU Emacs and the GNU system, type C-h C-a. >> test.org has auto save data; consider M-x recover-this-file >> OVERVIEW