From: Richard M. Stallman Date: Tue, 25 Dec 2007 22:44:28 +0000 (+0000) Subject: (c-region-is-active-p): Use `mark-active' if it's defined. X-Git-Tag: emacs-pretest-23.0.90~8842 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=22760342bfc73638d8367733ed89791747768ca9;p=emacs.git (c-region-is-active-p): Use `mark-active' if it's defined. --- 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." (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