emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Problem loading a symlink'ed file in Emacs batch
Date: Thu, 08 Mar 2012 15:12:05 +0100	[thread overview]
Message-ID: <80y5rb41xm.fsf@somewhere.org> (raw)

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

             reply	other threads:[~2012-03-08 14:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08 14:12 Sebastien Vauban [this message]
2012-03-08 17:54 ` Problem loading a symlink'ed file in Emacs batch Achim Gratz
2012-03-09 12:12   ` Sebastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80y5rb41xm.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).