Am 28.08.19 um 01:33 schrieb Matt Price:
> huh.  that was kinda cool... but the value of default-directory seems to
> be correct.  However, this helped a bit:
>
> #+BEGIN_SRC emacs-lisp
> (shell-command-to-string "echo $PWD")
>
> #+END_SRC
>  
>
> #+RESULTS:
> : /home/matt/src/org-mode
>
> Not sure what's going on here, but this value is the same in a regular
> emacs and  "emacs -Q".  is this normal?

For me, with "emacs -Q", this reliably returns the path from which I
started emacs.

HTH,
Julius

Reply via email to