]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-region-is-active-p): Use `mark-active' if it's defined.
authorRichard M. Stallman <rms@gnu.org>
Tue, 25 Dec 2007 22:44:28 +0000 (22:44 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 25 Dec 2007 22:44:28 +0000 (22:44 +0000)
lisp/progmodes/cc-defs.el

index f6adfb8cef9ebe49a1cf13e1e264667b998af064..e556576ca918b98dc959c41f93cdf5c7dec72035 100644 (file)
@@ -337,11 +337,11 @@ to it is returned.  This function does not modify the point or the mark."
 (defmacro c-region-is-active-p ()
   ;; Return t when the region is active.  The determination of region
   ;; activeness is different in both Emacs and XEmacs.
-  (if (cc-bytecomp-fboundp 'region-active-p)
-      ;; XEmacs.
-      '(region-active-p)
-    ;; Emacs.
-    'mark-active))
+  (if (cc-bytecomp-boundp 'mark-active)
+      ;; Emacs.
+      'mark-active
+    ;; XEmacs.
+    '(region-active-p)))
 
 (defmacro c-set-region-active (activate)
   ;; Activate the region if ACTIVE is non-nil, deactivate it