Re: [CEDET-devel] Re[1]: cedet-autogen
Brought to you by:
zappo
From: David P. <dav...@wa...> - 2003-08-25 22:40:25
|
Hi Eric, > That seems like a great idea. I'm not sure how that works out > individually though. Each tool may want to construct it's own > auto load file even though everything is grouped together. That way > when I run "make" in semantic, the semantic Makefile can update the > semantic autoloads w/out having to know about CEDET. [...] That's a good point. Here is a new version that should be more general. I split the function `cedet-hack-autoloads' into two new functions: - `cedet-update-autoloads', a command: "(cedet-update-autoloads LOADDEFS &optional DIRECTORY) Update autoloads in file LOADDEFS from sources. Optional argument DIRECTORY, specifies the directory to scan for autoloads. It defaults to the current directory. Also scan sub directories of DIRECTORY where exists a `cedet-autogen-tagfile' file." - `cedet-batch-update-autoloads', a batch function: "(cedet-batch-update-autoloads) Update autoloads in batch mode. Usage: emacs -batch -f cedet-batch-update-autoloads LOADDEFS [DIRECTORY] See the command `cedet-update-autoloads' for the meaning of the LOADDEFS and DIRECTORY arguments." Thus, it is now possible to update any autoloads file from any directory. For example, to update all CEDET's autoloads, one can use: emacs -batch -f cedet-batch-update-autoloads \ <cedet-install-dir>/common/cedet-al.el \ <cedet-install-dir> And to update only semantic autoloads, one can use: emacs -batch -f cedet-batch-update-autoloads \ <cedet-install-dir>/semantic/semantic-al.el \ <cedet-install-dir>/semantic What do you think? David |