help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: symbols verses words


From: Stefan Monnier
Subject: Re: symbols verses words
Date: Fri, 04 Mar 2011 23:36:53 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> So, I started looking at isearch-yank-word-or-char and I was going to
> concoct isearch-yank-symbol-or-char and got stuck-- at least briefly.
> Because not only is _ marked as symbol, -, +, /, *, etc are marked as symbol
> characters too.  So now, I'm confused...

Which syntax is assigned to which char depends on the major mode.
What you describe, for example, is not true of C-mode buffers.

> If I have:  this  this_that  this-that

> and search for \_<this\_> I hit the first and third this -- which is exactly
> what I want.

I suspect this test was not performed in the same buffer as the one
in which you checked the syntax of those chars.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]