Eric M. Ludlam | 16 Oct 2008 02:44
Gravatar

Re: Experimental exuberant ctags parsing backend

>>> Bruce Stephens <bruce+cedet <at> cenderis.demon.co.uk> seems to think that:
>"Eric M. Ludlam" <eric <at> siege-engine.com> writes:
>
>>   Now in CEDET/CVS is an experimental ctags parsing database backend.
>> I have only gotten support for C/C++ so far.
>
>You've got:
>
>(defcustom semantic-ectag-program "~/src/ctags-5.7/ctags" ; "ctags"
>  "The Exuberent CTags program to use."
>  :group 'semantic
>  :type 'file)
>
>Probably "ctags" is the better default!

Heh, thanks for pointing that out.

>Also
>
>> (semantic-enable-exuberent-ctags 'c-mode)
>> (semantic-enable-exuberent-ctags 'c++-mode)
>
>doesn't work for me.  The function only takes strings.  (Presumably
>that's a bug.  Not a significant problem, anyway.)

Thanks for pointing that out too.  I had also discovered that late
this afternoon, and have checked in a fix.

>I get a background error with flymake-mode.  I have flymake-mode
>configured so it doesn't operate on filenames with "flymake" in them,
(Continue reading)

Bruce Stephens | 22 Oct 2008 14:33
Picon
Picon

Re: Experimental exuberant ctags parsing backend

"Eric M. Ludlam" <eric <at> siege-engine.com> writes:

[...]

> According to the ctags, you can add --exclude="*flymake*", but I don't
> know if that works when a file is explicitly listed, as this tool is
> doing.  In any case, you can put that into a ~/.ctags to try it.

Something like this seems to work:

Index: semantic/semantic-idle.el
===================================================================
RCS file: /cvsroot/cedet/cedet/semantic/semantic-idle.el,v
retrieving revision 1.51
diff -u -r1.51 semantic-idle.el
--- semantic/semantic-idle.el	7 Sep 2008 14:16:02 -0000	1.51
+++ semantic/semantic-idle.el	22 Oct 2008 12:30:47 -0000
 <at>  <at>  -463,9 +463,12  <at>  <at> 
       (when (eq (cdr a) major-mode)
 	(dolist (file (directory-files default-directory t (car a) t))
 	  (semantic-throw-on-input 'parsing-mode-buffers)
-	  (save-excursion
-	    (semanticdb-file-table-object file)
-	    ))))
+	  (if (not
+	       (run-hook-with-args-until-success 'semantic-idle-inhibit-functions
+						 file))
+	      (save-excursion
+		(semanticdb-file-table-object file)
+		)))))
(Continue reading)


Gmane