aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman2007-12-25 22:44:28 +0000
committerRichard M. Stallman2007-12-25 22:44:28 +0000
commit22760342bfc73638d8367733ed89791747768ca9 (patch)
treed02b92b7743d52337f2984b15ac7e9749f03432a /lisp
parent02d525196007cc3f59407a3167238fa86589ca23 (diff)
downloademacs-22760342bfc73638d8367733ed89791747768ca9.tar.gz
emacs-22760342bfc73638d8367733ed89791747768ca9.zip
(c-region-is-active-p): Use `mark-active' if it's defined.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/cc-defs.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el
index f6adfb8cef9..e556576ca91 100644
--- a/lisp/progmodes/cc-defs.el
+++ b/lisp/progmodes/cc-defs.el
@@ -337,11 +337,11 @@ to it is returned. This function does not modify the point or the mark."
337(defmacro c-region-is-active-p () 337(defmacro c-region-is-active-p ()
338 ;; Return t when the region is active. The determination of region 338 ;; Return t when the region is active. The determination of region
339 ;; activeness is different in both Emacs and XEmacs. 339 ;; activeness is different in both Emacs and XEmacs.
340 (if (cc-bytecomp-fboundp 'region-active-p) 340 (if (cc-bytecomp-boundp 'mark-active)
341 ;; XEmacs. 341 ;; Emacs.
342 '(region-active-p) 342 'mark-active
343 ;; Emacs. 343 ;; XEmacs.
344 'mark-active)) 344 '(region-active-p)))
345 345
346(defmacro c-set-region-active (activate) 346(defmacro c-set-region-active (activate)
347 ;; Activate the region if ACTIVE is non-nil, deactivate it 347 ;; Activate the region if ACTIVE is non-nil, deactivate it