David Ponce | 1 Nov 2003 20:58
Picon

Re: feedback to first beta of cedet 2.01

Hi Eric,

 >   I also agree with David's assessment on defvaralias.  If someone has
 > a patch, it can go into the cedet-1p0beta1 branch and I'll get it in
 > the final tar ball.  At a minimum, upon declaring the alias we should
 > make the old name have the same value as the new variable.

I committed these changes to the cedet-1p0beta1 branch:

2003-11-01  David Ponce  <david <at> dponce.com>

	* semantic/semantic-format.el

	(semantic-token-≥text-functions)
	(semantic-token-≥text-custom-list)
	(semantic-face-alist):  Use `semantic-varalias-obsolete'.

	* semantic/semantic-fw.el

	(semantic-varalias-obsolete): New function.
	(semantic-fw-font-lock-keywords): Highlight it.

	* semantic/semantic-imenu.el
	
	(semantic-imenu-bucketize-type-parts)
	(semantic-imenu-expandable-token)
	(semantic-imenu-expand-type-parts): Use
	`semantic-varalias-obsolete'.

	* semantic/semantic-tag.el
(Continue reading)

Berndl, Klaus | 2 Nov 2003 15:11
Picon

FW: [Ecb-list] How can i find the define of some token?


 Hi have forwarded your  questíon to the right lists ;-) 
 
-----Original Message-----
From: highfly22 <at> 163.com [mailto:highfly22 <at> 163.com]
Sent: Sunday, November 02, 2003 3:01 PM
To: ecb-list <at> lists.sourceforge.net
Subject: [Ecb-list] How can i find the define of some token?

hi,
  I like using source insight, and how can i use ecb like source insight?
  When I see a function, I want to know how the function is implemented and then
I want to goto the definition of the function.
  Thanks.
                                                   highfly

=============================================================
免费邮箱健康杀毒大行动!
飞舞你的精灵 留住你的精彩 精灵全面收费!
拍卖站热推新生入学大拍卖!

Eric M. Ludlam | 4 Nov 2003 16:44
Gravatar

Re[2]: feedback to first beta of cedet 2.01

>>> David Ponce <david.ponce <at> wanadoo.fr> seems to think that:
>Hi Eric,
>
> >   I also agree with David's assessment on defvaralias.  If someone has
> > a patch, it can go into the cedet-1p0beta1 branch and I'll get it in
> > the final tar ball.  At a minimum, upon declaring the alias we should
> > make the old name have the same value as the new variable.
>
>I committed these changes to the cedet-1p0beta1 branch:
>
>2003-11-01  David Ponce  <david <at> dponce.com>
  [ ... ]

Thanks, I will include these as soon as I can.

Eric

--

-- 
          Eric Ludlam:                 zappo <at> gnu.org, eric <at> siege-engine.com
   Home: http://www.ludlam.net            Siege: www.siege-engine.com
Emacs: http://cedet.sourceforge.net               GNU: www.gnu.org

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
David PONCE | 5 Nov 2003 09:32
Picon

Re: Patch for a bugfix for semantic-adopt-external-members

Hi Klaus,

> With semantic 2.0 and its `semantic-adopt-external-members' this
> doesn't work because the code (partcdr (nthcdr 3 <type-tag>))
> returns obviously not what is needed to add additional members to
> <type-tag>.
> 
> I have debugged this function and have found and applied a patch
> which works (i have attached this patch to this email). But i'm not
> sure if my solution is the prefered one in the semantic 2.0. If not
> please explain me why not!

Thanks!  Very good find!

> Anyway: I suggest to add an API-function to semantic-tag like
> 
> (defsubst semantic-tag-add-type-members (tag add-member-list)
>   "Add the members ADD-MEMBER-LIST as additional members to TAG.
> TAG must be a type-tag."
>   (semantic-tag-put-attribute tag :members
>                               (append (semantic-tag-type-members tag)
>                                       add-member-list))

I am not sure we need a new specialized function for that.  There are already a
bunch of new API entries to learn, and I doubt that
`semantic-tag-add-type-members' will be an function used very often.

However, if Eric want to add it, I will not oppose.  For naming
consistency, I would prefer to call that function
`semantic-tag-type-add-members'.

David

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
David PONCE | 5 Nov 2003 10:15
Picon

Re: Re: Patch for a bugfix for semantic-adopt-external-members

Just to say that I committed the patch in the cedet-1p0beta1 branch:

2003-11-05  David Ponce  <david <at> dponce.com>

	* semantic/semantic-sort.el

	(semantic-adopt-external-members): Use the tag API to add external
	members.  Thanks to Klaus Berndl <klaus.berndl <at> sdm.de>.

David

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Berndl, Klaus | 5 Nov 2003 11:17
Picon

RE: Re: Patch for a bugfix for semantic-adopt-exter nal-members

Thanks a lot!

Ciao,
Klaus

-----Original Message-----
From: David PONCE
To: Eric M Ludlam; Berndl, Klaus
Cc: cedet-devel
Sent: 05.11.03 10:15
Subject: Re: [CEDET-devel] Re: Patch for a bugfix for semantic-adopt-external-members

Just to say that I committed the patch in the cedet-1p0beta1 branch:

2003-11-05  David Ponce  <david <at> dponce.com>

	* semantic/semantic-sort.el

	(semantic-adopt-external-members): Use the tag API to add
external
	members.  Thanks to Klaus Berndl <klaus.berndl <at> sdm.de>.

David

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Berndl, Klaus | 5 Nov 2003 14:40
Picon

Further bug in semantic 2.0

Hi,

i a Makefile contains:

include path/to/another/Makefile

then i get the following error:

Wrong type argument: (intergerp, "path/to/another/Makefile")

With semantic 1.4 this is correct parsed as dependency.

Ciao,
Klaus 

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Berndl, Klaus | 5 Nov 2003 14:42
Picon

Question about new semanticdb in cedet 1.0

Hi David, Eric,

some functions in semanticdb are marked as obsolete but there is not mentioned what to use instead.

Example: ECB uses semanticdb-find-nonterminal-by-name. What is the way to get this functionality with
semantic 2.0?

Thanks for your help,
Klaus

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
David PONCE | 5 Nov 2003 15:08
Picon

Re: Suggestion for senator

Hi Klaus,

> You add senator-try-expand-semantic at beginning of
> hippie-expand-try-functions-list. This is annoying me a very long
> time.  For me the try-dabbrev-... functions and some others are much
> more important in the try-list then the senator-expansion but i
> admit this can be a matter of taste ;-)
> 
> Therefore i suggest an option where i can specify if i want
> senator-try-expand-semantic being added to
> hippie-expand-try-functions-list and if yes where (at front or at
> end). Best would be if i could specify a also a function-member of
> hippie-expand-try-functions-list which should be the place where
> senator-try-expand-semantic is added (this would be the best for me,
> somewhere in the middle after the dabbrevs but not at the end)

There is a simple way to do that: just customize your
`hippie-expand-try-functions-list' value, and insert
`senator-try-expand-semantic' where it is the most useful for you.

Senator will preserve and use your customized value ;-)

FYI, I use this setting:

'(try-expand-dabbrev
  try-expand-dabbrev-all-buffers
  try-complete-lisp-symbol-partially
  try-complete-lisp-symbol
  try-complete-file-name-partially
  try-complete-file-name try-expand-dabbrev-from-kill
  senator-try-expand-semantic)

David

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Eric M. Ludlam | 5 Nov 2003 16:06
Gravatar

Re[1]: Question about new semanticdb in cedet 1.0

>>> "Berndl, Klaus" <klaus.berndl <at> sdm.de> seems to think that:
>Hi David, Eric,
>
>some functions in semanticdb are marked as obsolete but there is not mentioned what to use instead.
>
>Example: ECB uses semanticdb-find-nonterminal-by-name. What is the way to get this functionality with
semantic 2.0?
  [ ... ]

Hi,

  Many of the emails you've sent will take me some time to account
for, but this I can answer simply.

  The `semanticdb-find-nonterminal-*' functions all take 8 arguments
or so, and this bothered me.  The new functions remove several
arguments that weren't used much, and in some cases there will be two
functions to account for a Boolean argument.  The new functions are
`semanticdb-find-tags-*'

  Another important difference is that the original functions scanned
all nearby files associated with a 'project'.  Many of the new
functions use the include statements to expand the search, and will
seek out and find sources to search, not just the files you've
already loaded.  The old behavior is found with the routines that say
"brute" in the name.  I found these routines were restricted in use,
so there are fewer of them than the other types of searches.

  There are still holes in the coverage of old routines to new
routines, many of which are on purpose as I tried to guess which ones
were never used.  If I was wrong, I will put them back in.

Eric

--

-- 
          Eric Ludlam:                 zappo <at> gnu.org, eric <at> siege-engine.com
   Home: http://www.ludlam.net            Siege: www.siege-engine.com
Emacs: http://cedet.sourceforge.net               GNU: www.gnu.org

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

Gmane