changeset 87397:6bf362c56364

(c-region-is-active-p): Use `mark-active' if it's defined.
author Richard M. Stallman <rms@gnu.org>
date Tue, 25 Dec 2007 22:44:28 +0000
parents 1073cad4beee
children 5aca203bab2c
files lisp/progmodes/cc-defs.el
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-defs.el	Tue Dec 25 22:43:44 2007 +0000
+++ b/lisp/progmodes/cc-defs.el	Tue Dec 25 22:44:28 2007 +0000
@@ -337,11 +337,11 @@
 (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