Re: How to pass a list to semantic-add-system-include?

Eric Ludlam <[email protected]> Tue, 9 May 2017 10:29:57 -0400
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
On 05/05/2017 11:33 AM, Daniele Giglio wrote:
> Hi to everybody
>
> Is it possible to pass a list of directories to
> semantic-add-system-include in a way like this?
>
> (semantic-add-system-include (expand 'mylist))

No, it takes only one input, plus a mode (ie - c-mode, etc)

To do what you want, you can use mapc like this:

(mapc 'semantic-add-system-include mylist)

as long as the current major-mode is the mode you want to add things 
too.  Otherwise you need to add a lambda expression to specify which 
mode to add the include path too.

Eric

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot