Re[3]: [CEDET-devel] semantic-token creation
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2003-03-15 16:53:38
|
>>> ry...@ds... seems to think that: >>>>>> "EL" == Eric M Ludlam <er...@si...> writes: > ... > EL> Speaking of which, I was thinking of renaming > EL> `semantic-token-new-blah' to `semantic-tag-new-blah' after our > EL> brief discussion on naming conventions, so we will have to > EL> synchronize on that. > EL> > EL> Renaming references to semantic tags that are currently referred to > EL> as `token' or `nonterminal' will be a long and arduous process with > EL> lots of aliases. :( > >Hi Eric, > >Do you mean the change shown below along with >replacing all other references to semantic-token-docstring >with semantic-tag-docstring? > >If so, I can do this and update the documentation at the >same time. If you want me to do this, then I'll first >inventory a list of names to change before actually going >ahead with the change. > > >*** semantic-token.el.~1.6.~ Fri Mar 14 21:36:47 2003 >--- semantic-token.el Fri Mar 14 21:41:40 2003 >*************** >*** 81,91 **** > "Retrieve the name of TOKEN." > (car token)) > >! (defun semantic-token-docstring (token &optional buffer) >! "Retrieve the documentation of TOKEN. > Optional argument BUFFER indicates where to get the text from. > If not provided, then only the POSITION can be provided." >! (let ((p (nth (- (length token) semantic-tfe-docstring) token))) > (if (and p buffer) > (save-excursion > (set-buffer buffer) [ ... ] Yes indeed, this is the types of changes that need to occur. With the obsolete mechanism, we can make the functional changes, and clean up the calls at our convenience. Thanks! Eric -- 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 |