|
From: | Vagn Johansen |
Subject: | Re: Working with different projects in Emacs |
Date: | Tue, 14 Apr 2009 19:23:59 +0200 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) |
rustom <rustompmody@gmail.com> 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...<stuff I cannot remember>... . -- Vagn Johansen
[Prev in Thread] | Current Thread | [Next in Thread] |