From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pierre Lorenzon Newsgroups: gmane.emacs.help Subject: Re: Using Cedet with Tramp and projects on NFS mounts Date: Sat, 27 Jun 2009 09:08:58 +0200 (CEST) Message-ID: <20090627.090858.98887805.devel@pollock-nageoire.net> References: <4A454174.7060301@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246104297 13681 80.91.229.12 (27 Jun 2009 12:04:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Jun 2009 12:04:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 27 14:04:51 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MKWeI-0006ec-Ol for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2009 14:04:51 +0200 Original-Received: from localhost ([127.0.0.1]:43149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKWeI-000758-2o for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2009 08:04:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MKSxa-0002xO-Q6 for help-gnu-emacs@gnu.org; Sat, 27 Jun 2009 04:08:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MKSxW-0002uv-Pf for help-gnu-emacs@gnu.org; Sat, 27 Jun 2009 04:08:30 -0400 Original-Received: from [199.232.76.173] (port=47055 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKSxW-0002ug-Gu for help-gnu-emacs@gnu.org; Sat, 27 Jun 2009 04:08:26 -0400 Original-Received: from smtp2f.orange.fr ([80.12.242.151]:32173) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MKSxV-0000XU-GF for help-gnu-emacs@gnu.org; Sat, 27 Jun 2009 04:08:25 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2f13.orange.fr (SMTP Server) with ESMTP id 1281B80000BE for ; Sat, 27 Jun 2009 10:08:14 +0200 (CEST) Original-Received: from localhost (APuteaux-154-1-12-201.w83-199.abo.wanadoo.fr [83.199.69.201]) by mwinf2f13.orange.fr (SMTP Server) with ESMTP id CBC7E80000B3 for ; Sat, 27 Jun 2009 10:08:13 +0200 (CEST) X-ME-UUID: 20090627080813835.CBC7E80000B3@mwinf2f13.orange.fr In-Reply-To: <4A454174.7060301@gmail.com> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Sat, 27 Jun 2009 08:03:56 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65583 Archived-At: Hi, From: Suvayu Ali 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. > >