From: Teemu Likonen <tlikonen@iki.fi>
To: emacs-devel@gnu.org
Subject: Possible bug in cua-mode: deactivates region
Date: Mon, 24 Nov 2008 17:19:25 +0200 [thread overview]
Message-ID: <87prkl6tj6.fsf@iki.fi> (raw)
I noticed that in cua-mode the cursor-moving commands deactivate the
region when it is selected with M-h (mark-paragraph) in
transient-mark-mode.
I like to use cua-mode only for its rectangle support so I have set
cua-enable-cua-keys to nil. Still the normal region (selected with M-h)
is deactivated when I move the cursor. It has something to do with CUA
property since I managed to fix the issue with the following hook:
(add-hook 'cua-mode-hook
(lambda ()
(dolist (cmd '(forward-char
backward-char
previous-line
next-line
forward-paragraph
backward-paragraph
beginning-of-buffer
end-of-buffer))
(put cmd 'CUA nil))))
In other words, by setting the CUA property to nil for these commands
the region is not deactivated anymore. I'm quite a beginner with Emacs
so I don't know if this is a bug or just a result from something I don't
understand. I'd like to hear comments about this behavior.
(As a side note, I feel that it would be more logical if cua-mode's
rectangle support was a completely separate mode, like rectangle-mode,
and only Common User Access bindings were in the cua-mode.)
next reply other threads:[~2008-11-24 15:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-24 15:19 Teemu Likonen [this message]
2008-11-24 18:13 ` Possible bug in cua-mode: deactivates region Teemu Likonen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87prkl6tj6.fsf@iki.fi \
--to=tlikonen@iki.fi \
--cc=emacs-devel@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.