home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / alt / lucidem / help / 849 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.6 KB  |  53 lines

  1. x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Thu, 7 Jan 1993 02:35:13 EST
  2. From: dror@FibHaifa.com (Dror Caspi)
  3. Message-ID: <9301070609.AA24292@FibHaifa.com>
  4. Subject: Left mouse button deselects before popup
  5. Reply-To: dror@FibHaifa.com
  6. Date: Thu, 7 Jan 1993 07:35:13 GMT
  7. Newsgroups: alt.lucid-emacs.help
  8. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  9. Sender: help-lucid-emacs-request@lucid.com
  10. Lines: 41
  11.  
  12. >> From: bobhays@spss.com (Bob Hays)
  13. >> Newsgroups: alt.lucid-emacs.help
  14. >> Date: 6 Jan 93 13:48:14 GMT
  15. >> Organization: SPSS, Inc.
  16. >> Lines: 12
  17. >> Xref: uunet alt.lucid-emacs.help:848
  18. >> Sender: help-lucid-emacs-request@lucid.com
  19. >> 
  20. >> I'd like to have some popup menu items that act on the current region.
  21. >> However, when the right mouse button goes down the current selection
  22. >> turns off.  Is there an easy (and easy to apply in the future) way to
  23. >> turn this "feature" off?
  24. >> 
  25. >> Thanks and have fun! - Bob
  26. >> 
  27.  
  28. Yes there is, use (set 'zmacs-region-stays 't) in the popup function,
  29. as in the example below :
  30.  
  31.    (defun popup-basic-editing-menu ()
  32.      "Popup the basic-editing-menu"
  33.      (interactive)
  34.      (set 'zmacs-region-stays 't)            ;; <--------
  35.      (popup-menu basic-editing-menu)
  36.      )
  37.  
  38.  
  39. Dror
  40.  
  41. #### ## #### ####  | Dror Caspi  
  42.    #  #    #   #   | Fibronics Ltd, MATAM Industrial Park, Haifa 31905, Israel 
  43.    #  #    #   #   | phone : +972-4-313655    fax: +972-4-313342/550550
  44.                    | e-mail: dror@FibHaifa.com   or  dror@fibronics.UUCP
  45. ## #### ##### #### |----------------------------------------------------------
  46.  # #  # #   #    # |
  47.       # #   #    # |
  48.    ###   ###  ###  |
  49.  
  50.  
  51.  
  52.  
  53.