home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / lucidem / bug / 52 next >
Encoding:
Text File  |  1992-07-22  |  1.3 KB  |  32 lines

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