changeset 87402:733157417ec4

(winner-active-region): Use `mark-active' if it's defined.
author Richard M. Stallman <rms@gnu.org>
date Tue, 25 Dec 2007 22:47:35 +0000
parents 5c852af4e53c
children f6740b43efae
files lisp/winner.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/winner.el	Tue Dec 25 22:47:03 2007 +0000
+++ b/lisp/winner.el	Tue Dec 25 22:47:35 2007 +0000
@@ -46,9 +46,9 @@
 
 
 (defmacro winner-active-region ()
-  (if (fboundp 'region-active-p)
-      '(region-active-p)
-    'mark-active))
+  (if (boundp 'mark-active)
+      'mark-active
+    '(region-active-p)))
 
 (defsetf winner-active-region () (store)
   (if (fboundp 'zmacs-activate-region)