X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fsimple.el;h=b0666a1d7cc7bc58386c6866963be0a22972151d;hb=cc1e3c3c27a6f62ba789819c871b2d8101835286;hp=c20c4f872d26eeed77ededaaecef586cfc70a3cb;hpb=ee38d21b330f5001b47a577cefb5ba7b82a3b7d3;p=chise%2Fxemacs-chise.git.1 diff --git a/lisp/simple.el b/lisp/simple.el index c20c4f8..b0666a1 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3898,7 +3898,7 @@ This correctly caters to the user's setting of `zmacs-regions'." ;; 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. @@ -3908,7 +3908,8 @@ want grayed out when the region is not active. Instead, use this: [ ... ... :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;