emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Matching programming language identifiers, not "words"


From: Stefan Monnier
Subject: Re: Matching programming language identifiers, not "words"
Date: 20 Aug 2004 18:31:34 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>     I think we should distinguish betwen the idea of a character that is
>     "symbol constituent" and a character that has "symbol syntax".

> A priori that sounds like a useful solution.
> Could you write proposed diffs to the manual to implement this
> distinction clearly?

I'm not sure what you're thinking of.  Within search.texi (the
scope of the original discussion), it could look like the text below.


        Stefan


--- search.texi 26 jui 2004 15:35:50 -0400      1.51
+++ search.texi 20 aoĆ» 2004 18:29:36 -0400      
@@ -1,5 +1,5 @@
 @c This is part of the Emacs manual.
address@hidden Copyright (C) 1985, 86, 87, 93, 94, 95, 97, 2000, 2001
address@hidden Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2000, 
2001, 2004
 @c   Free Software Foundation, Inc.
 @c See file emacs.texi for copying conditions.
 @node Search, Fixit, Display, Top
@@ -742,10 +742,11 @@
 matches any character that is not a word-constituent.
 
 @item \_<
-matches the empty string, but only at the beginning of a symbol.  A
-symbol is a sequence of one or more word or symbol constituent
-characters.  @samp{\_<} matches at the beginning of the buffer only if
-a symbol-constituent character follows.
+matches the empty string, but only at the beginning of a symbol.
+A symbol is a sequence of one or more symbol-constituent characters.
+A symbol-constituent character is a character whose syntax is either
address@hidden or @samp{_}.  @samp{\_<} matches at the beginning of the
+buffer only if a symbol-constituent character follows.
 
 @item \_>
 matches the empty string, but only at the end of a symbol.  @samp{\_>}




reply via email to

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