emacs-devel
[Top][All Lists]
Advanced

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

Re: c-mode syntax strings and regexp word boundaries


From: Jon Dufresne
Subject: Re: c-mode syntax strings and regexp word boundaries
Date: Fri, 6 Sep 2013 15:38:08 -0700

On Fri, Sep 6, 2013 at 1:19 PM, Alan Mackenzie <address@hidden> wrote:
Not what you asked, but as a suggestion, you might want to use the CC
Mode macros which deal with text properties on single characters.  For
example, you could have used `c-put-char-property' instead of
`put-text-property'.

This has the following pros/cons: (i) these macros are slightly less
cumbersome to use, since they take only a single position parameter; (ii)
They also work in XEmacs; (iii) there is some effort involved in learning
about them and how they work.

If you're interested, search cc-defs.el for

    Macros/functions to handle so-called "char properties",

and read the definitions in that page.

Thanks for the tip. I will check that out.

reply via email to

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