[Top][All Lists]

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

Re: C++ name and add-log-current-defun

From: Kevin Rodgers
Subject: Re: C++ name and add-log-current-defun
Date: Wed, 27 Dec 2006 00:50:45 -0700
User-agent: Thunderbird (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

reply via email to

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