home *** CD-ROM | disk | FTP | other *** search
- Date: Sat, 15 Aug 1992 17:14:45 +0200
- From: Guido.Bosch%loria.fr@lucid.com (Guido Bosch)
- Message-ID: <9208151514.AA24797@moebius.loria.fr>
- Subject: Re: mode-motion package
- References: <25143.713890091@margaux.inria.fr>
- <BOSCH.92Aug5135209@moebius.loria.fr>
- Reply-To: bosch%loria.fr@lucid.com (Guido BOSCH)
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 47
-
- Chet.Murthy@inria.fr writes:
- >
- > Dear Guido,
- >
- > I just FTP'd your mode-motion package, and it works like a charm in
- > dired, but nothing happens in emacs-lisp mode (nor in lisp-mode, for
- > that matter).
- >
- > I verified that the local variable mode-motion-hook was indeed set to
- > mouse-track-highlight-thing.
- >
-
- I guess youre using a bold font as default in your Emacs. But
- `mouse-track-highlight-thing' just turns things into bold. Use the
- following motion handler to get the same highlighting effect as for
- the line motion handlers (this will be the default in the next
- version):
-
- (defun mouse-track-highlight-thing (event)
- "Track the mouse motion by highlighting the smallest syntactic structure
- mouse is over. This function can be used as value of the variable
- `mouse-motion-handler'. Takes One Argument: EVENT"
-
- (mouse-track-highlight-region
- event
- (function thing-boundaries)
- 't))
-
- And use this one for highlighting things in bold (You will see, it
- looks better if you do not use a bold font as default):
-
- (defun mouse-track-highlight-thing-bold (event)
- "Track the mouse motion by highlighting the smallest syntactic
- structure mouse is over. Highlighting is done by using a bold face.
- This function can be used as value of the variable
- `mouse-motion-handler'. Takes One Argument: EVENT"
-
- (mouse-track-highlight-region
- event
- (function thing-boundaries)))
-
-
- Try also the Meta Button2 copy facility on highlighted things.
-
- Enjoy,
-
- Guido
-