bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11191: C-x C-x does not activate the selection anymore with cua-sele


From: Kim Storm
Subject: bug#11191: C-x C-x does not activate the selection anymore with cua-selection-mode
Date: Mon, 09 Apr 2012 18:49:44 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16

On 04/09/2012 04:16 PM, Dan Nicolaescu wrote:
You might want to do something different for cua-mode vs
cua-selection-mode (where C-x C-x has no other problems).


You are right -- maybe this version suits all:

(defun cua-exchange-point-and-mark (arg)
  "Exchanges point and mark.

Don't activate the mark if `cua-enable-cua-keys` is non-nil.
Just activate the mark if a prefix argument is given.

See also `exchange-point-and-mark'."
  (interactive "P")
  (if cua-enable-cua-keys
      (if arg
      (setq mark-active t)
    (let (mark-active)
      (exchange-point-and-mark)
      (if cua--rectangle
          (cua--rectangle-corner 0))))
    (exchange-point-and-mark arg)))

Would someone pls. commit this change.
Here is a change log entry:

     * emulation/cua-base.el (cua-exchange-point-and-mark):
     Fallback to exchange-point-and-mark when cua-enable-cua-keys is nil.

Then you can also close bug #6199

Thanks
Kim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]