From mboxrd@z Thu Jan 1 00:00:00 1970 From: nljlistbox2@gmail.com (N. Jackson) Subject: bug#5753: something, something, org-mode, shift-select, something Date: Mon, 10 Feb 2014 22:22:28 -0400 Message-ID: <877g92crrv.fsf@moondust.localdomain> References: <87d2j5avwl.fsf@building.gnus.org> <878utkgz36.fsf@bzg.ath.cx> <87wqh4fjfu.fsf@bzg.ath.cx> <87ppmwx8mp.fsf@moondust.localdomain> <877g938loa.fsf@bzg.ath.cx> <87mwhy4pws.fsf@moondust.localdomain> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WD308-0003sv-Eb for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 21:23:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WD303-0000Bk-2p for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 21:23:08 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:34311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WD302-0000Bf-WD for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 21:23:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WD302-0006n3-JG for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 21:23:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87mwhy4pws.fsf@moondust.localdomain> (N. Jackson's message of "Mon, 10 Feb 2014 17:29:55 -0400") 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 To: 5753@debbugs.gnu.org This post is for the sake of completeness, and to summarise / add to my previous posts on this bug, namely: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5753#17 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5753#35 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5753#41 In GNU Emacs 23.3.1 [1] and 24.3 [2], either of the settings (setq org-support-shift-select t) or (setq org-support-shift-select (quote always)) will enable shift selection in org-mode, as described in C-h v org-support-shift-select RET _only if_ cua-mode is turned off. But if cua-made is turned on, shift selection fails everywhere in org mode -- no selection gets made. Adding the following workaround fixes the problem: ;; This snippet 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 snippet In GNU Emacs GNU Emacs 24.3.50.1 [3] org-support-shift-select works essentially as documented, and the workaround is not required. :) --- [1] GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on Windows XP (5.1.2600) with Org-mode version 7.9.2 (7.9.2-48-gb7c5cf-elpa) of 2012-10-15. [2] GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2) of 2013-08-14 on Fedora 19 with Org-mode version 8.2.5h (8.2.5h-6-g8e1386-elpa) of 2014-02-03. [3] GNU Emacs 24.3.50.1 (Repository revision: 116400) of 2014-02-10 on Fedora 19 and Org-mode version 8.2.5c (release_8.2.5c) of unknown date.