From: Teemu Likonen <tlikonen@iki.fi>
To: help-gnu-emacs@gnu.org
Subject: Re: Cua-mode makes active region disappear in transient-mark-mode
Date: Mon, 24 Nov 2008 14:54:01 GMT [thread overview]
Message-ID: <87tz9x6upi.fsf@iki.fi> (raw)
In-Reply-To: 871vx1o4sh.fsf@iki.fi
Teemu Likonen (2008-11-24 09:24 +0000) wrote:
> I like cua-selection-mode for its rectangle support. Still, there is a
> serious annoyance to which I haven't found a solution. This affects
> region behavior in transient-mark-mode which I also use.
>
> When I select a paragraph with M-h (mark-paragraph) and move the point
> the region disappears if cua-mode is switched on. Without cua-mode I
> can move the edges of the region and it stays visible. This is the
> only reason why I don't keep cua-(selection-)mode on by default. Can I
> make cua-mode to not make active region disappear?
It turned out that the CUA property of these cursor moving commands
caused the funny things I described above. I fixed it with this 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))))
I really think that the rectangle support should be separated from cua
bindings, to something like rectangle-mode or visual-rectangle-mode.
prev parent reply other threads:[~2008-11-24 14:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-24 9:24 Cua-mode makes active region disappear in transient-mark-mode Teemu Likonen
2008-11-24 13:16 ` Xah Lee
2008-11-24 16:25 ` Allan Gottlieb
2008-11-24 14:54 ` Teemu Likonen [this message]
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tz9x6upi.fsf@iki.fi \
--to=tlikonen@iki.fi \
--cc=help-gnu-emacs@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.
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).