emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: nljlistbox2@gmail.com (N. Jackson)
To: Bastien <bzg@gnu.org>
Cc: "N. Jackson" <gentleundercurrent@gmail.com>,
	Lars Ingebrigtsen <larsi@gnus.org>,
	Lennart Borgman <lennart.borgman@gmail.com>,
	5753@debbugs.gnu.org
Subject: bug#5753: something, something, org-mode, shift-select, something
Date: Sun, 09 Feb 2014 17:45:50 -0400	[thread overview]
Message-ID: <87ppmwx8mp.fsf@moondust.localdomain> (raw)
In-Reply-To: <87wqh4fjfu.fsf@bzg.ath.cx> (Bastien's message of "Sun, 09 Feb 2014 15:29:41 +0100")

Bastien <bzg@gnu.org> writes:

> can you tell me what exactly the bug is wrt cua-mode and org-mode?

Hi Bastien,

Well, I can tell you the symptoms; I'm sorry to report that I know
nothing of the internals.

I have this snippet of code in my configuration files and with it
everything works fine and has been working fine for a few years:

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

If I comment out that snippet and restart Emacs, then shift selection no
longer works in org-mode unless I turn off cua-mode.

When I say shift selection doesn't work, I mean that when I hold down
the shift key and move the cursor with the arrow keys I don't get any
highlighting of the text I'm trying to select. And it's not just a
failure to highlight the selection, there seems to be no selection
happening because a cut or copy of the imaginary selection doesn't do
anything.

If I toggle off cua-mode (from the menu for example), then shift
selection immediately starts working in org-mode. If I leave cua-mode
tuned on and M-x fundamental-mode, then shift selection immediately
starts working in the buffer with org file. That is to say, the symptoms
are simple and 100% reproducible.

> If the bug is here for Emacs 24.3, can you try downloading and
> installing the latest Org stable version (http://orgmode.org) and see
> if the bug is still there?

I am currently using Org-mode version 8.2.5h-6-g8e1386-elpa of
2014-02-03 on GNU Emacs 24.3.1. If you need me to try a newer version of
Org, I can do so, although I do prefer to use the version from Elpa as
it seems it would be easier to uninstall it if it breaks my Emacs.

> Thanks in advance for your help,

You're welcome. Please let me know if you need me to install the latest
Org stable version or do any specific testing.

N.

  reply	other threads:[~2014-02-09 21:46 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 [this message]
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
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=87ppmwx8mp.fsf@moondust.localdomain \
    --to=nljlistbox2@gmail.com \
    --cc=5753@debbugs.gnu.org \
    --cc=bzg@gnu.org \
    --cc=gentleundercurrent@gmail.com \
    --cc=larsi@gnus.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).