* Using Cedet with Tramp and projects on NFS mounts
@ 2009-06-26 21:45 Suvayu Ali
2009-06-27 7:08 ` Pierre Lorenzon
0 siblings, 1 reply; 5+ messages in thread
From: Suvayu Ali @ 2009-06-26 21:45 UTC (permalink / raw)
To: help-gnu-emacs
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.
> ;; cedet customisations for ROOT Data Analysis Framework
> (setq rootsys "~/root/include")
> (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"))
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
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using Cedet with Tramp and projects on NFS mounts
2009-06-26 21:45 Using Cedet with Tramp and projects on NFS mounts Suvayu Ali
@ 2009-06-27 7:08 ` Pierre Lorenzon
2009-06-29 2:40 ` suvayu ali
0 siblings, 1 reply; 5+ messages in thread
From: Pierre Lorenzon @ 2009-06-27 7:08 UTC (permalink / raw)
To: help-gnu-emacs
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.
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using Cedet with Tramp and projects on NFS mounts
2009-06-27 7:08 ` Pierre Lorenzon
@ 2009-06-29 2:40 ` suvayu ali
0 siblings, 0 replies; 5+ messages in thread
From: suvayu ali @ 2009-06-29 2:40 UTC (permalink / raw)
To: help-gnu-emacs
2009/6/27 Pierre Lorenzon <devel@pollock-nageoire.net>:
> From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
>>> ;; 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/")
>
Thanks Pierre, that did it. However I have some other issues because
of how the framework I work with does things. I will have to find ways
to work around it.
>>> (semantic-add-system-include rootsys 'c++-mode)
<..snip..>
> 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.
>
Thats very true. I will need different values for the rootsys variable
from time to time.
>> 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.
>
It is indeed very slow to start. But after it loads up its workable :)
Thanks again for the pointer Pierre.
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.1330.1246053081.2239.help-gnu-emacs@gnu.org>]
* Re: Using Cedet with Tramp and projects on NFS mounts
[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
0 siblings, 1 reply; 5+ messages in thread
From: Richard Riley @ 2009-06-26 22:08 UTC (permalink / raw)
To: help-gnu-emacs
Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> 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.
>
>> ;; cedet customisations for ROOT Data Analysis Framework
>> (setq rootsys "~/root/include")
>> (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"))
>
> 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
You might consider using sshfs if possible?
http://fuse.sourceforge.net/sshfs.html
That way the "remoteness" of the remote file system would be totally
transparent to cedet.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using Cedet with Tramp and projects on NFS mounts
2009-06-26 22:08 ` Richard Riley
@ 2009-06-29 3:37 ` suvayu ali
0 siblings, 0 replies; 5+ messages in thread
From: suvayu ali @ 2009-06-29 3:37 UTC (permalink / raw)
To: help-gnu-emacs
2009/6/26 Richard Riley <rileyrgdev@gmail.com>:
>
> You might consider using sshfs if possible?
>
> http://fuse.sourceforge.net/sshfs.html
>
> That way the "remoteness" of the remote file system would be totally
> transparent to cedet.
>
I could try that, but I have had problems having semantic parse
network mounted folders before. Maybe I'll give that a shot if I
figure out what I was doing wrong earlier. Thanks for the suggestion
Richard.
PS: your web page helped me quite a bit in figuring out cedet ;)
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-06-29 3:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-26 21:45 Using Cedet with Tramp and projects on NFS mounts Suvayu Ali
2009-06-27 7:08 ` Pierre Lorenzon
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
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.