all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pierre Lorenzon <devel@pollock-nageoire.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Using Cedet with Tramp and projects on NFS mounts
Date: Sat, 27 Jun 2009 09:08:58 +0200 (CEST)	[thread overview]
Message-ID: <20090627.090858.98887805.devel@pollock-nageoire.net> (raw)
In-Reply-To: <4A454174.7060301@gmail.com>


Hi,

From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Subject: Using Cedet with Tramp and projects on NFS mounts
Date: Fri, 26 Jun 2009 14:45:24 -0700

> Hi all,
> 
> I am a relatively new Emacs user on GNU/Linux and loving it. I
> learned about CEDET from this list and tried it out. I need to
> work within a few frameworks developed in C++ and for code on
> my local machine it works perfectly. I have this in my .emacs
> to make that work.

  First you'd better post such questions on a dedicated cedet
  list where you'll find people knowing cedet features and
  details. But anyway ! 



> 
>> ;; cedet customisations for ROOT Data Analysis Framework
>> (setq rootsys "~/root/include")

   Simply try to replace it with : 

   (setq rootsys "/ssh:user@remote.host:~/path/to/my/project/")



>> (semantic-add-system-include rootsys 'c++-mode)
>> (add-to-list 'auto-mode-alist (cons rootsys 'c++-mode))
>> (add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat
>> rootsys "/include"))
>> (add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat
>> rootsys "/ExRootAnalysis"))
>> (add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat
>> rootsys "/ExRootAnalysis/ExRootAnalysis"))

   Emacs is transparent to such operations. The goal of tramp
   is precisely to make it transparent. For instance I do
   things like that for mew or w3m. Directories are on remote
   machines in certain circumstances. When starting mew or w3m
   there are tramp operations in the background and I suspect
   that it will be similar with cedet.

   Anyway you'll perhaps want to switch from a situation to
   another, but it's not difficult to change the rootsys
   variable and reinitialize other variables from its value. 

> 
> But most of my work requires me to work on remote machines. So
> my question is, how do I setup semantic to search the
> directories in my project for tags when I am connected to the
> remote machine using Tramp like this,
> 
> /ssh:user@remote.host:~/path/to/my/project/
> 
> Thanks for any help on this.
> 
> PS: the remote machine is usually across the atlantic :P

  Humm !! In this case it might be slow ! But anyway not slower
  than your ssh connection ! Moreover, once all files would be
  loaded no more transactions will be performed. Anyway whith
  such a configuration I had to wait 10 or 15 minutes until
  everything is loaded. 


> 
> -- 
> Suvayu
> 
> Open source is the future. It sets us free.
> 
> 





  reply	other threads:[~2009-06-27  7:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26 21:45 Using Cedet with Tramp and projects on NFS mounts Suvayu Ali
2009-06-27  7:08 ` Pierre Lorenzon [this message]
2009-06-29  2:40   ` suvayu ali
     [not found] <mailman.1330.1246053081.2239.help-gnu-emacs@gnu.org>
2009-06-26 22:08 ` Richard Riley
2009-06-29  3:37   ` suvayu ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090627.090858.98887805.devel@pollock-nageoire.net \
    --to=devel@pollock-nageoire.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.