mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-11 16:08:15 +00:00
babel: make `org-babel-load-in-session' work for remote sessions
2010-08-05 Dan Davison <davison@stats.ox.ac.uk> * ob.el (org-babel-load-in-session): set directory in case :dir arg is in effect
This commit is contained in:
parent
a4b86a8eac
commit
2935464811
@ -413,6 +413,9 @@ session."
|
||||
(body (nth 1 info))
|
||||
(params (nth 2 info))
|
||||
(session (cdr (assoc :session params)))
|
||||
(dir (cdr (assoc :dir params)))
|
||||
(default-directory
|
||||
(or (and dir (file-name-as-directory dir)) default-directory))
|
||||
(cmd (intern (concat "org-babel-load-session:" lang))))
|
||||
(unless (fboundp cmd)
|
||||
(error "No org-babel-load-session function for %s!" lang))
|
||||
|
Loading…
Reference in New Issue
Block a user