From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: Conditionalized font-locking?
Date: Mon, 07 May 2012 11:05:27 -0400 [thread overview]
Message-ID: <jwvehqwuj4p.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <871umw74yr.fsf@escher.home> (Stephen Berman's message of "Mon, 07 May 2012 10:47:24 +0200")
> (defun srb-number-matcher (lim)
> "Search for odd numbers within LIM for font-locking."
> (re-search-forward "\\<\\([0-9]+\\)\\>" lim t)
> (let ((num (match-string-no-properties 1)))
> (when (eq (logand (string-to-number num) 1) 1) num)))
If the re-search-forward fails, this function will mis-behave.
Stefan
next prev parent reply other threads:[~2012-05-07 15:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 8:47 Conditionalized font-locking? Stephen Berman
2012-05-07 15:05 ` Stefan Monnier [this message]
2012-05-07 15:15 ` Stephen Berman
2012-05-10 15:22 ` Stephen Berman
2012-05-10 15:30 ` Davis Herring
2012-05-10 18:18 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvehqwuj4p.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=stephen.berman@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.