emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "N. Jackson" <gentleundercurrent@gmail.com>
Cc: 5753@debbugs.gnu.org, Lennart Borgman <lennart.borgman@gmail.com>
Subject: bug#5753: something, something, org-mode, shift-select, something
Date: Sat, 08 Feb 2014 21:25:31 -0400	[thread overview]
Message-ID: <87bnyhm60k.fsf@moondust.localdomain> (raw)
In-Reply-To: <mailman.13581.1391387010.10748.bug-gnu-emacs@gnu.org> (Lars Ingebrigtsen's message of "Sun, 02 Feb 2014 16:21:14 -0800")

The following message is a courtesy copy of an article
that has been posted to gnu.emacs.bug as well.

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> Shift-select in cua-mode does not work in org-mode although
>> org-replace-disputed-keys is t, org-disputed-keys are set for shift
>> arrow keys and org-support-shift-select is always
>
> Is this problem still present in Emacs 24.3?

Naturally I can't answer for the OP (and I don't know about disputed
keys) but I can report that in general this problem persists in Emacs
24.3.

On GNU Emacs 24.3.1 [1], shift select does not work in org mode. I'm not
certain this is a bug, as my understanding is that the org authors did
not design it to work with shift select?

In any case, I use a very simple workaround which makes shift select
work just fine in org mode; I've never had any problems with it. It
looks like this (Note: It is of unknown provenance, aside from the
attribution in the comment.):

;; This snippit 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 snippit

With this in my org settings, I have no problems with shift select
except that you cannot start a selection on a timestamp (because shift
with cursor keys adjusts timestamps), but I've learnt to automatically
start my selection from the end of the line above the timestamp so I
don't have any problems.

I hope this information is of some use.

[1] GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2) of
2013-08-14 on buildvm-15.phx2.fedoraproject.org

  parent reply	other threads:[~2014-02-09  1:35 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
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 [this message]
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=87bnyhm60k.fsf@moondust.localdomain \
    --to=gentleundercurrent@gmail.com \
    --cc=5753@debbugs.gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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).