]> code.delx.au - gnu-emacs/blobdiff - lisp/emulation/cua-gmrk.el
Improve the custom type of some user options.
[gnu-emacs] / lisp / emulation / cua-gmrk.el
index b77b2105f640745cb5239607b604884019d66f0d..8e023783f3180e108213627d49e0701bfd8c1efd 100644 (file)
@@ -1,6 +1,6 @@
 ;;; cua-gmrk.el --- CUA unified global mark support
 
-;; Copyright (C) 1997-2014 Free Software Foundation, Inc.
+;; Copyright (C) 1997-2016 Free Software Foundation, Inc.
 
 ;; Author: Kim F. Storm <storm@cua.dk>
 ;; Keywords: keyboard emulations convenience cua mark
@@ -321,7 +321,7 @@ With prefix argument, don't jump to global mark when canceling it."
 (defun cua-cancel-global-mark ()
   "Cancel the global mark."
   (interactive)
-  (if mark-active
+  (if (region-active-p)
       (cua-cancel)
     (if (cua--global-mark-active)
        (cua--deactivate-global-mark t)))