# HG changeset patch # User Richard M. Stallman # Date 1198622697 0 # Node ID 5aca203bab2ce23436b1fcdd0cd81431d2274324 # Parent 6bf362c563641b295fb388f77df2c8b692f81927 (reftex-region-active-p): Use `use-region-p'. diff -r 6bf362c56364 -r 5aca203bab2c lisp/textmodes/reftex.el --- a/lisp/textmodes/reftex.el Tue Dec 25 22:44:28 2007 +0000 +++ b/lisp/textmodes/reftex.el Tue Dec 25 22:44:57 2007 +0000 @@ -1805,11 +1805,11 @@ (buffer-substring-no-properties (match-beginning n) (match-end n)))) (defun reftex-region-active-p () - "Is transient-mark-mode on and the region active? -Works on both Emacs and XEmacs." - (if (featurep 'xemacs) - (and zmacs-regions (region-active-p)) - (and transient-mark-mode mark-active))) + "Should we operate on an active region?" + (if (fboundp 'use-region-p) + (use-region-p) + ;; For XEmacs. + (region-active-p))) (defun reftex-kill-buffer (buffer) ;; Kill buffer if it exists.