Re: [O] Problem loading a symlink'ed file in Emacs batch

2012-03-09 Thread Sebastien Vauban
Hi Achim,

Achim Gratz wrote:
 If you are using NTemacs rather than the one supplied by Cygwin it simply
 doesn't know about symlinks.

I was using an official GNU Emacs binary for Windows (found on
http://alpha.gnu.org/gnu/emacs/windows/).

Anyway, switching to Cygwin Emacs does resolve the symlink problem. Thanks a
lot for your answer!

Best regards,
  Seb

-- 
Sebastien Vauban




[O] Problem loading a symlink'ed file in Emacs batch

2012-03-08 Thread Sebastien Vauban
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 !symlinkÿþ/)
  eval-buffer(#buffer  *load* nil c:/home/sva/org-init.el nil t)  ; Reading 
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, though.

Any idea on how to circumvent this, if possible?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Problem loading a symlink'ed file in Emacs batch

2012-03-08 Thread Achim Gratz

If you are using NTemacs rather than the one supplied by Cygwin it
simply doesn't know about symlinks.

 
Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada