From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Vanyushkin Subject: Bug with cua-mode & org-support-shift-select Date: Mon, 01 Feb 2010 00:36:31 +0200 Message-ID: <4B6605EF.3020305@vanav.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NbiO3-0001Dg-RT for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 17:35:23 -0500 Received: from [199.232.76.173] (port=51763 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbiO3-0001DY-DB for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 17:35:23 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbiNv-000164-Uq for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 17:35:22 -0500 Received: from it-team.org ([78.109.23.48]:58943) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NbiNr-00013x-PF for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 17:35:11 -0500 Received: from [192.168.1.2] (unknown [178.122.50.36]) by it-team.org (Postfix) with ESMTPSA id 424C84DFF3C for ; Mon, 1 Feb 2010 00:35:01 +0200 (EET) 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: emacs-orgmode@gnu.org 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