From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Problem loading a symlink'ed file in Emacs batch Date: Thu, 08 Mar 2012 15:12:05 +0100 Message-ID: <80y5rb41xm.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, I have a `org-init.el' file in my home directory, with common settings used when in batch mode. That works well when that file is a regular file: --8<---------------cut here---------------start------------->8--- sva@MEDIACENTER$ make html Exporting file /cygdrive/c/home/sva/file.txt to HTML... emacs --batch -Q --eval "(setq debug-on-error t) (add-to-list 'load-path \"= "~/src/org-mode/lisp"\") (add-to-list 'load-path \""~/src/org-mode/contrib/= lisp"\")" -l "~/org-init.el" file.txt -f org-export-as-html Emacs 24.0.93.1 Org-mode version 7.8.03 OVERVIEW Loading vc-svn... Loading vc-git... Exporting... Exporting... Saving file c:/home/sva/file.html... Wrote c:/home/sva/file.html HTML export done, pushed to kill ring and clipboard --8<---------------cut here---------------end--------------->8--- However, if I put it somewhere, and make a symlink from my home directory to its real place, Emacs fails loading it: --8<---------------cut here---------------start------------->8--- sva@MEDIACENTER$ make html Exporting file /cygdrive/c/home/sva/file.txt to HTML... emacs --batch -Q --eval "(setq debug-on-error t) (add-to-list 'load-path \"= "~/src/org-mode/lisp"\") (add-to-list 'load-path \""~/src/org-mode/contrib/= lisp"\")" -l "~/org-init.el" file.txt -f org-export-as-html Debugger entered--Lisp error: (void-variable !=C3=BF=C3=BE/) eval-buffer(# nil "c:/home/sva/org-init.el" nil t) ; Rea= ding at buffer position 14 load-with-code-conversion("c:/home/sva/org-init.el" "c:/home/sva/org-init= .el" nil t) load("c:/home/sva/org-init.el" nil t) command-line-1(("--eval" "(setq debug-on-error t) (add-to-list 'load-path= \"~/src/org-mode/lisp\") (add-to-list 'load-path \"~/src/org-mode/contrib/= lisp\")" "-l" "~/org-init.el" "file.txt" "-f" "org-export-as-html")) command-line() normal-top-level() Makefile:33: recipe for target `file.html' failed make: *** [file.html] Error 127 --8<---------------cut here---------------end--------------->8--- I find this very strange, as I thought the symlink feature would be transparent for upper applications. This does not seem to be the case, thou= gh. Any idea on how to circumvent this, if possible? Best regards, Seb --=20 Sebastien Vauban