From mboxrd@z Thu Jan 1 00:00:00 1970 From: "N. Jackson" Subject: bug#5753: something, something, org-mode, shift-select, something Date: Sat, 08 Feb 2014 21:25:31 -0400 Message-ID: <87bnyhm60k.fsf@moondust.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCJIa-0008Bl-8S for emacs-orgmode@gnu.org; Sat, 08 Feb 2014 20:35:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCJIU-0003fp-ET for emacs-orgmode@gnu.org; Sat, 08 Feb 2014 20:35:08 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:44431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCJIU-0003ec-BU for emacs-orgmode@gnu.org; Sat, 08 Feb 2014 20:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WCJIU-00041r-04 for emacs-orgmode@gnu.org; Sat, 08 Feb 2014 20:35:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Lars Ingebrigtsen's message of "Sun, 02 Feb 2014 16:21:14 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: 5753@debbugs.gnu.org, Lennart Borgman The following message is a courtesy copy of an article that has been posted to gnu.emacs.bug as well. Lars Ingebrigtsen writes: > Lennart Borgman writes: > >> Shift-select in cua-mode does not work in org-mode although >> org-replace-disputed-keys is t, org-disputed-keys are set for shift >> arrow keys and org-support-shift-select is always > > Is this problem still present in Emacs 24.3? Naturally I can't answer for the OP (and I don't know about disputed keys) but I can report that in general this problem persists in Emacs 24.3. On GNU Emacs 24.3.1 [1], shift select does not work in org mode. I'm not certain this is a bug, as my understanding is that the org authors did not design it to work with shift select? In any case, I use a very simple workaround which makes shift select work just fine in org mode; I've never had any problems with it. It looks like this (Note: It is of unknown provenance, aside from the attribution in the comment.): ;; This snippit from jisang-yoo on reddit to enable shift select in org ;; mode when cua-mode is on. (eval-after-load "org" '(progn (eval-after-load "cua-base" '(progn (defadvice org-call-for-shift-select (before org-call-for-shift-select-cua activate) (if (and cua-mode org-support-shift-select (not (use-region-p))) (cua-set-mark))))))) ;; End jisang-yoo snippit With this in my org settings, I have no problems with shift select except that you cannot start a selection on a timestamp (because shift with cursor keys adjusts timestamps), but I've learnt to automatically start my selection from the end of the line above the timestamp so I don't have any problems. I hope this information is of some use. [1] GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2) of 2013-08-14 on buildvm-15.phx2.fedoraproject.org