Quote:> In GNU Emacs there is the variable mark-active to test if currently a
> region is defined. Exists this variable in XEmacs too or what is the way
> in XEmacs to test if a region is defined?
I believe that the function `region-exists-p' is what you want here. I ran
into this with sawfish.el:
| (defun sawfish-region-active-p ()
| "Is there an active region?"
| (if (boundp 'running-xemacs)
| (funcall (symbol-function 'region-exists-p))
| (symbol-value 'mark-active)))
Take a look in Hagbard's World: | boxquote.el - "Boxed" text quoting.
http://www.hagbard.demon.co.uk/ | sawfish.el - Sawfish mode.
http://www.acemake.com/hagbard/ | uptimes.el - Record emacs uptimes.
emacs software, including.......| quickurl.el - Recall lists of URLs.