From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Thompson Subject: Re: Bug with cua-mode & org-support-shift-select Date: Sun, 31 Jan 2010 17:49:03 -0800 Message-ID: <2a4ba2fd1001311749y4f242ad0t6af34d358d171305@mail.gmail.com> References: <4B6605EF.3020305@vanav.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NblPr-000355-Rb for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 20:49:27 -0500 Received: from [199.232.76.173] (port=58670 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NblPq-00034x-8P for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 20:49:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NblPo-0003tg-Gh for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 20:49:26 -0500 Received: from mail-iw0-f185.google.com ([209.85.223.185]:39412) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NblPo-0003tW-6N for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 20:49:24 -0500 Received: by iwn15 with SMTP id 15so2729050iwn.10 for ; Sun, 31 Jan 2010 17:49:23 -0800 (PST) In-Reply-To: <4B6605EF.3020305@vanav.com.ua> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ivan Vanyushkin Cc: emacs-orgmode@gnu.org Vanilla emacs now has shift selection (as of version 23?), so try disabling shift select in CUA and enabling the standard shift select. M-x customize-variable shift-select-mode On Sun, Jan 31, 2010 at 2:36 PM, Ivan Vanyushkin wrote= : > 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 does= n'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) > =A0(let ((this-command-keys-shift-translated t)) > =A0 =A0(call-interactively cmd))) > > Called like this: (org-call-for-shift-select 'forward-char) > > In cua-base.el Shift key is detected like this: > =A0 =A0(memq 'shift (event-modifiers > =A0 =A0 =A0 =A0 =A0 =A0 =A0(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 > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >