# HG changeset patch # User Richard M. Stallman # Date 1198622668 0 # Node ID 6bf362c563641b295fb388f77df2c8b692f81927 # Parent 1073cad4beee51dd1b96a65f2297a5b566024df1 (c-region-is-active-p): Use `mark-active' if it's defined. diff -r 1073cad4beee -r 6bf362c56364 lisp/progmodes/cc-defs.el --- 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