From: nljlistbox2@gmail.com (N. Jackson)
To: 5753@debbugs.gnu.org
Subject: bug#5753: something, something, org-mode, shift-select, something
Date: Mon, 10 Feb 2014 22:22:28 -0400 [thread overview]
Message-ID: <877g92crrv.fsf@moondust.localdomain> (raw)
In-Reply-To: <87mwhy4pws.fsf@moondust.localdomain> (N. Jackson's message of "Mon, 10 Feb 2014 17:29:55 -0400")
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.
next prev parent reply other threads:[~2014-02-11 2:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <e01d8a51003221746i42766220y6936e98a85f78234@mail.gmail.com>
2014-02-03 0:21 ` bug#5753: something, something, org-mode, shift-select, something Lars Ingebrigtsen
2014-02-09 14:06 ` Bastien
2014-02-09 14:12 ` Lennart Borgman
2014-02-09 14:29 ` Bastien
2014-02-09 21:45 ` N. Jackson
2014-02-10 7:35 ` Bastien
2014-02-10 21:29 ` N. Jackson
2014-02-11 2:22 ` N. Jackson [this message]
2014-02-11 16:29 ` Bastien
2014-02-11 17:12 ` N. Jackson
2014-02-11 17:20 ` Bastien
2014-02-11 21:01 ` Lennart Borgman
[not found] ` <mailman.13581.1391387010.10748.bug-gnu-emacs@gnu.org>
2014-02-09 1:25 ` N. Jackson
2014-02-09 11:05 ` Lennart Borgman
2014-02-09 11:08 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877g92crrv.fsf@moondust.localdomain \
--to=nljlistbox2@gmail.com \
--cc=5753@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).