config/literate: don't tangle file in this session
org-babel-tangle-file has reportedly killed config.org buffers, despite them being visited. Since we're not doing anything with the return value, may as well keep it in a separate process.
This commit is contained in:
parent
af37f9af58
commit
92e604d0dc
1 changed files with 7 additions and 9 deletions
|
@ -18,15 +18,13 @@ byte-compiled from.")
|
||||||
(when (or force-p (file-newer-than-file-p org +literate-config-cache-file))
|
(when (or force-p (file-newer-than-file-p org +literate-config-cache-file))
|
||||||
(message "Compiling your literate config...")
|
(message "Compiling your literate config...")
|
||||||
|
|
||||||
(or (and (if (fboundp 'org-babel-tangle-file)
|
;; We tangle in a separate, blank process because loading it here would
|
||||||
(org-babel-tangle-file org nil "emacs-lisp")
|
;; load all of :lang org (very expensive!).
|
||||||
;; We tangle in a separate, blank process because loading it here
|
(or (and (zerop (call-process
|
||||||
;; would load all of :lang org (very expensive!).
|
|
||||||
(zerop (call-process
|
|
||||||
"emacs" nil nil nil
|
"emacs" nil nil nil
|
||||||
"-q" "--batch" "-l" "ob-tangle" "--eval"
|
"-q" "--batch" "-l" "ob-tangle" "--eval"
|
||||||
(format "(org-babel-tangle-file %S nil \"emacs-lisp\")"
|
(format "(org-babel-tangle-file %S nil \"emacs-lisp\")"
|
||||||
org))))
|
org)))
|
||||||
;; Write the cache file to serve as our mtime cache
|
;; Write the cache file to serve as our mtime cache
|
||||||
(with-temp-file +literate-config-cache-file t))
|
(with-temp-file +literate-config-cache-file t))
|
||||||
(warn "There was a problem tangling your literate config!"))
|
(warn "There was a problem tangling your literate config!"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue