|
From: | Kevin Rodgers |
Subject: | Re: C++ name and add-log-current-defun |
Date: | Wed, 27 Dec 2006 00:50:45 -0700 |
User-agent: | Thunderbird 1.5.0.9 (Macintosh/20061207) |
Herbert Euler wrote:
Hmmm, I think the choice of ``skip-syntax-backward'' or ``forward-sexp'' is not more important than adding a ``while'' form; both the two functions work, but without a ``while'' form, there is a bug.
Yes, you're right. Somehow I forgot to actually check that in a C++ buffer (vs. Emacs Lisp).
But I think your while condition (not (looking-back "\\(^\\| \\|\t\\)")) could be improved by specifying a LIMIT arg to looking-back (1- (point)) and/or by anchoring the regexp with \=. -- Kevin Rodgers Denver, Colorado, USA
[Prev in Thread] | Current Thread | [Next in Thread] |