From: Ivan Vanyushkin <vanav@vanav.com.ua>
To: emacs-orgmode@gnu.org
Subject: Bug with cua-mode & org-support-shift-select
Date: Mon, 01 Feb 2010 00:36:31 +0200 [thread overview]
Message-ID: <4B6605EF.3020305@vanav.com.ua> (raw)
Hello.
I want to use C-x/C-c/C-v and Shift-arrows selection with org-mode.
GNU Emacs 23.1.50.1, org-mode 6.34, .emacs:
(cua-mode 1)
(setq org-support-shift-select t)
If this two options are on, then Shift key selection with arrow keys
doesn't work: no selection, just cursor movements. According to
http://orgmode.org/manual/Conflicts.html I think that org-mode should
support CUA. If not, what can you suggest for correct support of
C-x/C-c/C-v + org-support-shift-select?
As far as I can say, the reason of problem is there:
In org.el:
(defun org-call-for-shift-select (cmd)
(let ((this-command-keys-shift-translated t))
(call-interactively cmd)))
Called like this: (org-call-for-shift-select 'forward-char)
In cua-base.el Shift key is detected like this:
(memq 'shift (event-modifiers
(aref (this-single-command-raw-keys) 0)))
binded as pre-command-hook.
So, I think, Shift key is just not detected by CUA, and need a way to
set it's flag. Sorry, I don't know emacs lisp.
Thank you for your suggestions.
--
Ivan Vanyushkin - Vanav.
http://vanav.com.ua
mailto:Vanav@vanav.com.ua
Jabber/GTalk: Vanav@vanav.com.ua
ICQ: 190644448
Yahoo: Vanav_I
MSN: Vanav@vanav.com.ua
next reply other threads:[~2010-01-31 22:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-31 22:36 Ivan Vanyushkin [this message]
2010-02-01 1:49 ` Bug with cua-mode & org-support-shift-select Ryan Thompson
2010-02-01 9:01 ` Ivan
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=4B6605EF.3020305@vanav.com.ua \
--to=vanav@vanav.com.ua \
--cc=emacs-orgmode@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).