Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to make double click select a symbol instead of word in Emacs Lisp mode <EOM>

0 views
Skip to first unread message

Sandip Chitale

unread,
Feb 26, 2003, 11:55:25 AM2/26/03
to
I know it may have something to do with syntax table...
but I do not how to do it.

Or is there a custom setting which controls this?

-sandip

Kai Großjohann

unread,
Feb 27, 2003, 10:22:51 AM2/27/03
to
sandip...@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.

--
A preposition is not a good thing to end a sentence with.

Sandip Chitale

unread,
Feb 27, 2003, 9:05:11 PM2/27/03
to
kai.gro...@uni-duisburg.de (Kai Großjohann) wrote in message news:<84u1eph...@lucy.is.informatik.uni-duisburg.de>...

> sandip...@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.

Kai Großjohann

unread,
Feb 28, 2003, 9:49:37 AM2/28/03
to
sandip...@yahoo.com (Sandip Chitale) writes:

> 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.

Yeah, I guess redefining that function will do.

0 new messages