Re: Saving the semanticdb in a project specific place

Eric Ludlam <[email protected]> Sat, 11 Apr 2015 17:14:03 -0400
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
On 04/08/2015 04:36 AM, Jean-Marc Bourguet wrote:
> On 08.04.2015 09:42, Jean-Marc Bourguet wrote:
>> On 08.04.2015 02:47, Eric Ludlam wrote:
>>> On 04/03/2015 05:02 PM, Jean-Marc Bourguet wrote:
>>>> Hi all,
>>>>
>>>> Is it possible to specify a per project directory where to save
>>>> semanticdb for the files in the project?
>>>>
>>>> I don't see any project setting for that, setting a
>>>> semanticdb-default-save-directory have a global effect.
>>>> When made buffer local, the global value still seeems to be be the one
>>>> used.
>>>
>>> That is a good feature request.  Feedback I had in the past was that
>>> most folks just DID NOT want them saved anywhere in their project.  Of
>>> course, it used to be in every directory so that was too annoying.
>>
>> That would be preferable for me
>
> That's ambiguous.  I prefer having one place per project, but putting the
> db along the source files would be acceptable, especially if I can hide
> them
> in a subdirectory or name the db with hidden names.  A global place is
> not really
> usable (I'm currently playing trick and changing the global value and
> using one
> emacs process per project, but that's a disaster in waiting)

Ok, in that case, you should use semanticdb-default-save-directory and 
set it to 'nil'.  That will then save the caches in 
semanticdb-default-file-name which you can change to .semantic.cache or 
whatever you like.  That will make the cache files travel with your 
projects.

Eric

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF