home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.lucid-emacs.bug
- Sender: bug-lucid-emacs-request@lucid.com
- Date: Wed, 22 Jul 92 13:36:07 PDT
- Message-ID: <9207222036.AA12133@thalidomide.lucid>
- X-Windows: The joke that kills.
- From: Jamie Zawinski <jwz@lucid.com>
- Subject: Re: Zmacs Regions.
- References: <weOzycW__5g84=gZ1K@cs.city.ac.uk>
- Path: sparky!uunet!wendy-fate.uu.net!bug-lucid-emacs
- Lines: 20
-
- In message <weOzycW__5g84=gZ1K@cs.city.ac.uk> Andy Whitcroft wrote:
- >
- > In some popup-menu code I wish to know if the zmacs region is active in
- > order to allow or disallow a memu entry. There seems to be no sensible
- > variable/function to provide this information. The info.el menu uses
- > the x-selection-owner-p function, which seesm incorrect. Looking at the
- > code for marker etc they use zmacs_active_region_p, should this not be
- > bound up as zmacs-regions is, or perhaps made available as a function
- > zmacs-active-region-p?
-
- You're probably right that there should be a cleaner way of determining this.
-
- x-selection-owner-p is correct when running under X, since when the Zmacs
- region is active, it is also the X selection. x-selection-owner-p will also
- be true if zmacs-regions is nil, but the user has highlighted some text with
- the mouse.
-
- (and zmacs-regions (mark)) should also do what you want.
-
- -- Jamie
-