From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jon Dufresne Newsgroups: gmane.emacs.devel Subject: Re: c-mode syntax strings and regexp word boundaries Date: Fri, 6 Sep 2013 15:38:08 -0700 Message-ID: References: <20130906201913.GA3521@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc812053ab1a04e5beb1ba X-Trace: ger.gmane.org 1378507091 21800 80.91.229.3 (6 Sep 2013 22:38:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2013 22:38:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 07 00:38:14 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VI4fN-0002L0-GZ for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2013 00:38:13 +0200 Original-Received: from localhost ([::1]:40027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VI4fN-0000Ou-4K for ged-emacs-devel@m.gmane.org; Fri, 06 Sep 2013 18:38:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VI4fK-0000Oc-19 for emacs-devel@gnu.org; Fri, 06 Sep 2013 18:38:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VI4fJ-00060i-1L for emacs-devel@gnu.org; Fri, 06 Sep 2013 18:38:09 -0400 Original-Received: from mail-qe0-x22f.google.com ([2607:f8b0:400d:c02::22f]:37963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VI4fI-00060d-Tg for emacs-devel@gnu.org; Fri, 06 Sep 2013 18:38:08 -0400 Original-Received: by mail-qe0-f47.google.com with SMTP id b4so2019899qen.20 for ; Fri, 06 Sep 2013 15:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ptU0o7O7Ep3xP9wEueQMpMwVdjRo7N/UYeVUPUYKk3E=; b=HrP5Yzu2x/lOTFX9m0yhP+hDMkat+AaWilho2KNNNJhQlgCNJ8BGD5HzgR7NdZWP+a 4pui/pWunhfOATdWzxxkNeScONRDKkxQnA5ohZKSVcAQVHhNUFXoFCEtcjqqBGI2d5Sw VuJzH1IWmBjC+uuzdZ1ihfNH18yGTGoqw4LMT9UQN9GqT6f03kgkOMnyuJwmubf0ehrC EWb83iyoRujs3A3P3vhLREz6gk9T3sgtODFaYVRq6Yd7StJDWAXdbnZI7siRhXCGKn7O /CW7qU7iQSnvN5xve0FTqBbrVe2BByNMCbAYWTZLVTw06A1di/NlcaAzBXPZ3YW4a9vC QHUQ== X-Received: by 10.224.43.136 with SMTP id w8mr1610547qae.92.1378507088437; Fri, 06 Sep 2013 15:38:08 -0700 (PDT) Original-Received: by 10.229.67.68 with HTTP; Fri, 6 Sep 2013 15:38:08 -0700 (PDT) In-Reply-To: <20130906201913.GA3521@acm.acm> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c02::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163239 Archived-At: --047d7bdc812053ab1a04e5beb1ba Content-Type: text/plain; charset=UTF-8 On Fri, Sep 6, 2013 at 1:19 PM, Alan Mackenzie 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. --047d7bdc812053ab1a04e5beb1ba Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On F= ri, Sep 6, 2013 at 1:19 PM, Alan Mackenzie <acm@muc.de> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex"> 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. =C2=A0For=
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

=C2=A0 =C2=A0 Macros/functions to handle so-called "char properties&qu= ot;,

and read the definitions in that page.

Thanks for the tip. I will check that out.
= --047d7bdc812053ab1a04e5beb1ba--