home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Thu, 7 Jan 1993 02:35:13 EST
- From: dror@FibHaifa.com (Dror Caspi)
- Message-ID: <9301070609.AA24292@FibHaifa.com>
- Subject: Left mouse button deselects before popup
- Reply-To: dror@FibHaifa.com
- Date: Thu, 7 Jan 1993 07:35:13 GMT
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 41
-
- >> From: bobhays@spss.com (Bob Hays)
- >> Newsgroups: alt.lucid-emacs.help
- >> Date: 6 Jan 93 13:48:14 GMT
- >> Organization: SPSS, Inc.
- >> Lines: 12
- >> Xref: uunet alt.lucid-emacs.help:848
- >> Sender: help-lucid-emacs-request@lucid.com
- >>
- >> I'd like to have some popup menu items that act on the current region.
- >> However, when the right mouse button goes down the current selection
- >> turns off. Is there an easy (and easy to apply in the future) way to
- >> turn this "feature" off?
- >>
- >> Thanks and have fun! - Bob
- >>
-
- Yes there is, use (set 'zmacs-region-stays 't) in the popup function,
- as in the example below :
-
- (defun popup-basic-editing-menu ()
- "Popup the basic-editing-menu"
- (interactive)
- (set 'zmacs-region-stays 't) ;; <--------
- (popup-menu basic-editing-menu)
- )
-
-
- Dror
-
- #### ## #### #### | Dror Caspi
- # # # # | Fibronics Ltd, MATAM Industrial Park, Haifa 31905, Israel
- # # # # | phone : +972-4-313655 fax: +972-4-313342/550550
- | e-mail: dror@FibHaifa.com or dror@fibronics.UUCP
- ## #### ##### #### |----------------------------------------------------------
- # # # # # # |
- # # # # |
- ### ### ### |
-
-
-
-
-