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

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

0 ნახვა
გამოტოვება და პირველ წაუკითხავ შეტყობინებაზე გადასვლა

Sandip Chitale

წაუკითხავი,
26 თებ. 2003, 11:55:2526.02.03
მიმღები:
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

წაუკითხავი,
27 თებ. 2003, 10:22:5127.02.03
მიმღები:
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

წაუკითხავი,
27 თებ. 2003, 21:05:1127.02.03
მიმღები:
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

წაუკითხავი,
28 თებ. 2003, 09:49:3728.02.03
მიმღები:
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 ახალი შეტყობინება