Mercurial > hg > xemacs-beta
diff lisp/simple.el @ 2611:139afe9fb2ee
[xemacs-hg @ 2005-02-23 22:25:15 by adrian]
[PATCH] xemacs-21.5-clean: `region-active-p' to only return t when <zmxwtboa.fsf@smtprelay.t-online.de>
author | adrian |
---|---|
date | Wed, 23 Feb 2005 22:25:16 +0000 |
parents | 3e1c7efd5cde |
children | feeb145e30f4 |
line wrap: on
line diff
--- a/lisp/simple.el Wed Feb 23 22:09:15 2005 +0000 +++ b/lisp/simple.el Wed Feb 23 22:25:16 2005 +0000 @@ -3795,7 +3795,7 @@ ;; XEmacs (defun region-active-p () - "Return non-nil if the region is active. + "Return non-nil if the region is active in the current buffer. If `zmacs-regions' is true, this is equivalent to `region-exists-p'. Otherwise, this function always returns false. @@ -3805,7 +3805,8 @@ [ ... ... :active (region-exists-p)] Which correctly caters to the user's setting of `zmacs-regions'." - (and zmacs-regions zmacs-region-extent)) + (and zmacs-regions zmacs-region-extent + (eq (current-buffer) (zmacs-region-buffer)))) (defvar zmacs-activate-region-hook nil "Function or functions called when the region becomes active;