[CEDET-devel] Re[1]: Suggestion for semantic-texi and semantic-load
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2003-06-19 01:08:04
|
Hi, It makes sense to support all the modes that might include texinfo support. If you are happy with it, please check it in. Thanks! Eric >>> "Berndl, Klaus" <kla...@sd...> seems to think that: >Hi Eric, >=20 >after playing a little bit around with textinfo files i have found that = >if AucTeX is installed, then texinfo files will not being parsed by = >semantic but by imenu - IMHO not really good, because the semantic = >parser is better. >=20 >I have found the reason: >=20 >In semantic-texi.el and semantic-load.el you do: >=20 >(add-hook 'texinfo-mode-hook 'semantic-default-texi-setup) > >But this adds the semantic-default-texi-setup only for modes run in = >texinfo-mode which is the mode shipped with Emacs, not the AucTeX = >tex-info-mode! >AucTeX has an own hook named TeXinfo-mode-hook, so i would vote for the = >following additional code in semantic-texi.el and semantic-load.el: >=20 >(add-hook 'texinfo-mode-hook 'semantic-default-texi-setup) >(when (locate-library "tex-info") ;; signalize that AucTeX is installed = >and therefore the tex-info-mode of AucTex is used. > (defvar TeXinfo-mode-hook nil) > (add-hook 'TeXinfo-mode-hook 'semantic-default-texi-setup)) >=20 >With this additional code also the tex-info-mode of AucTeX (which is = >really better than the standard one) uses the semantic-parser which is = >really better then the imenu-parser! >=20 >What do you think? >=20 >BTW: All of this is tested with semantic-v1p4!! >=20 >Ciao, >Klaus > >=20 >Klaus Berndl mailto: <mailto:kla...@sd...> = >kla...@sd... >sd&m AG <http://www.sdm.de/> http://www.sdm.de >software design & management >Thomas-Dehler-Str. 27, 81737 M=FCnchen, Germany >Tel +49 89 63812-392, Fax -220 > >=20 > -- Eric Ludlam: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |