From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vagn Johansen Newsgroups: gmane.emacs.help Subject: Re: Working with different projects in Emacs Date: Tue, 14 Apr 2009 19:23:59 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: References: <4a1275dc-885c-479f-9b3a-fd5b8c881de4@r15g2000vbi.googlegroups.com> <65a6e1e7-3196-4293-9528-048d73d15e3d@n7g2000prc.googlegroups.com> <2c02fdb3-af4c-441a-aaa1-7518d9ca955b@v1g2000prd.googlegroups.com> <4558f167-0e4f-4df6-8dd4-5cdeda7a6d93@v23g2000pro.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239731490 25486 80.91.229.12 (14 Apr 2009 17:51:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Apr 2009 17:51:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 14 19:52:49 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 1LtmoT-0005q4-6h for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Apr 2009 19:52:49 +0200 Original-Received: from localhost ([127.0.0.1]:60389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ltmn4-0001tS-EL for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Apr 2009 13:51:22 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) Cancel-Lock: sha1:yn3nx2NYblmVr+ulN5pqNabhnmk= Original-Lines: 30 Original-NNTP-Posting-Host: 89.239.230.209 Original-X-Trace: news.sunsite.dk DXC=cdi5?cIPQ36kVm3Q1RnDK5YSB=nbEKnk; 5l7JOAVQ`j21]Odi5o\aC3gNbeFAXTM>54X23ZgHoIA3LIbBQDMe\E?CPc; SM[hBm1 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:168461 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:63737 Archived-At: rustom writes: > You need to quote the file name in > (format "%s --members --output=\"%s\" -" "etags" (vps-tags- > filename))))) > in function vps-make-tags > > [I am on windows and every single path is 'spaced-out' c:Documents and > Settings/... gets chopped to C:/Documents] Yes. I need to call shell-quote-argument when constructing the command line ... (shell-command-on-region (point-min) (point-max) (format "%s --members --output=%s -" "etags" (shell-quote-argument (vps-tags-filename)))) I have uploaded a new version with better support for spaces file and directory names. I have not run into this before because on windows I always set the HOME environment variable to something like c:/vj. Emacs then looks after .emacs in HOME (~/.emacs -> c:/vj/.emacs). I don't want my home directory and ~ in Emacs to be c:/Document And Settings...... . -- Vagn Johansen