emacs-devel
[Top][All Lists]
Advanced

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

Bug in finding defuns


From: Richard Stallman
Subject: Bug in finding defuns
Date: Tue, 14 Nov 2006 07:27:26 -0500

I sent this message to bug-cc-mode several times but did not get a response.
So I am sending it to emacs-devel now.


Martin Rudalics <address@hidden> wrote:

     >     That motivation is strange since, if the c-state-cache does not 
contain
     >     anything useful, C mode has to use `beginning-of-defun'.
     >
     > Are you saying that this is the case where C mode fails to be
     > sophisticated about finding the start of the function?

    Yes.  There's also an appropriate comment in cc-engine.el:

           ;; The position is far back.  Try `c-beginning-of-defun-1'
           ;; (although we can't be entirely sure it will go to a position
           ;; outside a comment or string in current emacsen).  FIXME:
           ;; Consult `syntax-ppss' here.

     > Is that a bug in CC mode?

    It's been that way ever since.




reply via email to

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