From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: DiTAA graph not in local directory
Date: Tue, 10 Nov 2009 10:01:34 +0100 [thread overview]
Message-ID: <87639ikb2p.fsf@mundaneum.com> (raw)
In-Reply-To: 87eio7ojb1.fsf@gollum.intra.norang.ca
Hi Bernt,
Bernt Hansen wrote:
> Sébastien Vauban writes:
>> Carsten wrote:
>>> Bernt Hansen wrote:
>>>> Sébastien Vauban writes:
>>>>
>>>>> I try to generate the following DiTAA graph for LaTeX inclusion.
>>>>>
>>>>> It's in my Org file `~/dir1/dir2/ecm.org'.
>>>>>
>>>>> When exporting to LaTeX, the image is well generated, but in my `~/'
>>>>> directory. Not in `~/dir1/dir2/', hence not found by LaTeX.
>>>>
>>>> Now if I change the working directory with M-x cd and enter ~
>>>> then export it does what you see. Maybe your default directory is not
>>>> the location of your org file?
>>
>> I have, since long, the following chunk in my `.emacs', for setting the
>> `default-directory':
>>
>> --8<---------------cut here---------------start------------->8---
>> ;; change the default directory (if it exists)
>> ;; (it is also the default directory when attaching files to mails)
>> (let ((my-default-directory "~/"))
>> (setq default-directory
>> (if (file-directory-p my-default-directory)
>> my-default-directory
>> (getenv "HOME"))))
>> --8<---------------cut here---------------end--------------->8---
>
> I think this function is the cause of your problems. I think you are
> changing the default directory for whatever buffer is active when you
> execute that. If that buffer happens to be the org file you want to
> export you are changing where the resulting export files go.
I commented the above in my `.emacs' file and restarted Emacs.
>> Anyway, I don't remember exactly why I did set that, but I think it's for easy
>> opening of files (right prefix when `C-x C-f').
>
> I just use C-x C-f ~/
>
> and whatever current directory was active is dropped. I don't think you
> need your setq default-directory at all - you just need to teach your
> fingers to add ~/ after C-x C-f
Yes, I'll do that now... In fact, I implemented this, years ago, for "easily"
attaching documents to emails.
>> When looking for the current value of that variable
I now have:
--8<---------------cut here---------------start------------->8---
default-directory is a variable defined in `C source code'.
Its value is
"/home/sva/Projects/Insurance/Acme/docs/operations-manual/"
Local in buffer Upload_documentation.tex; global value is nil
Automatically becomes buffer-local when set in any fashion.
This variable is safe as a file local variable if its value
satisfies the predicate `stringp'.
Documentation:
Name of default directory of current buffer. Should end with slash.
To interactively change the default directory, use command `cd'.
--8<---------------cut here---------------end--------------->8---
from both the Org file and the TeX file. Correct, thus.
Though, I have exactly the same problem as yesterday: only the TeX file is
produced locally when `C-c C-e d', and all the other files (.aux, .log and the
.png from Ditaa) are stored in `~/'.
Ununderstandable...
Best regards,
Seb
--
Sébastien Vauban
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-11-10 9:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 14:31 DiTAA graph not in local directory Sébastien Vauban
2009-11-06 15:06 ` Bernt Hansen
2009-11-09 9:34 ` Sébastien Vauban
2009-11-09 14:37 ` Bernt Hansen
2009-11-10 9:01 ` Sébastien Vauban [this message]
2009-11-10 12:41 ` Bernt Hansen
[not found] ` <87iqdiys4s.fsf@gmx.de>
2009-11-10 21:55 ` Bernt Hansen
2009-11-06 17:06 ` Carsten Dominik
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87639ikb2p.fsf@mundaneum.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.