summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-08-31 09:44:17 +0200
committerAlan Pearce2015-08-31 09:44:17 +0200
commit978b10831437e0217d2c770ac88272ba1a1c4dc4 (patch)
treef714bc8691001b935453b20e42558d3749bcf1bc
parent6d37b1638766cf1720194a0e7045ed1802b19b62 (diff)
downloadnixfiles-978b10831437e0217d2c770ac88272ba1a1c4dc4.tar.lz
nixfiles-978b10831437e0217d2c770ac88272ba1a1c4dc4.tar.zst
nixfiles-978b10831437e0217d2c770ac88272ba1a1c4dc4.zip
Emacs: Check for byte-compiliation errors
-rw-r--r--tag-emacs/emacs.d/init.org5
1 files changed, 3 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index f97f2680..023de0ac 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -2479,8 +2479,9 @@ the =org=-document after changes.
             (find-file ,(buffer-file-name))
             (require 'ob-tangle)
             (org-babel-tangle nil dest)
-            (byte-compile-file dest)
-            dest))
+            (if (byte-compile-file dest)
+                dest
+              "Errors occurred")))
        (lambda (result)
          (message "Init tangling completed: %s" result)))))
 #+END_SRC