[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to make double click select a symbol instead of word in Emacs Li
From: |
Sandip Chitale |
Subject: |
Re: How to make double click select a symbol instead of word in Emacs Lisp mode <EOM> |
Date: |
27 Feb 2003 18:05:11 -0800 |
kai.grossjohann@uni-duisburg.de (Kai Großjohann) wrote in message
news:<84u1ephho4.fsf@lucy.is.informatik.uni-duisburg.de>...
> sandipchitale@yahoo.com (Sandip Chitale) writes:
>
> > I know it may have something to do with syntax table...
> > but I do not how to do it.
>
> If you double-click on a non-word but symbol-constituent character,
> you'll select the symbol instead of the word. So in Emacs Lisp mode,
> double-clicking on the minus will select foo-bar, whereas
> double-clicking on the b will select bar only.
Thanks for the answer. Actually I noticed that behaviour recently.
It is kind of inconsistent though. I have to be precise with the
mouse which defeats the purpose of double-click to select word
principle. SO my question is is there some way to modify this
behaviour ? Using advise maybe ? I found out that the
defun mouse-skip-word in mouse.el is responsible for the behaviour.