GNU bug report logs - #18952
24.4; delete weirdness in cua mode

Previous Next

Package: emacs;

Reported by: Andy Grover <andy <at> groveronline.com>

Date: Wed, 5 Nov 2014 07:13:02 UTC

Severity: normal

Found in version 24.4

Fixed in version 24.5

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #31 received at 18952-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Andy Grover <andy <at> groveronline.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 18952-done <at> debbugs.gnu.org
Subject: Re: bug#18952: 24.4; delete weirdness in cua mode
Date: Fri, 07 Nov 2014 14:56:07 -0500
Version:24.5

> Ah! ok, I also have cua-highlight-region-shift-only t in my Customize
> section, so I hit this without trying? But here's a way to repro,
> starting from emacs -Q:

Ah, I see it now.  I installed the patch below, which seems to fix it.
Thanks,


        Stefan


=== modified file 'lisp/emulation/cua-base.el'
--- lisp/emulation/cua-base.el	2014-10-31 15:31:27 +0000
+++ lisp/emulation/cua-base.el	2014-11-07 19:51:19 +0000
@@ -1199,7 +1199,7 @@
 (defun cua--select-keymaps ()
   ;; Setup conditions for selecting the proper keymaps in cua--keymap-alist.
   (setq cua--ena-region-keymap
-	(and mark-active (not deactivate-mark)))
+	(and (region-active-p) (not deactivate-mark)))
   (setq cua--ena-prefix-override-keymap
 	(and cua--ena-region-keymap
 	     cua-enable-cua-keys





This bug report was last modified 10 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.