aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-06-26 18:05:40 +1000
committerYuchen Pei <id@ypei.org>2023-06-26 18:05:40 +1000
commit8c515e3b6efdcfecc213b56c860fccac2d9138cf (patch)
treedc6abec009b0b2c552c69ca9cee86836e1d01eb5
parent6c3fb77a11f3cf76f66de4e760de5430dad83439 (diff)
Adding clean-elc-compile
- also updating buildbot submodule commit
-rw-r--r--emacs/.emacs.d/init/ycp-complete.el2
m---------emacs/.emacs.d/lisp/buildbot.el0
-rwxr-xr-xmisc/bin/clean-elc-compile10
3 files changed, 11 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init/ycp-complete.el b/emacs/.emacs.d/init/ycp-complete.el
index c29b4d2..4243311 100644
--- a/emacs/.emacs.d/init/ycp-complete.el
+++ b/emacs/.emacs.d/init/ycp-complete.el
@@ -298,7 +298,7 @@
("ftp" "http" "https" "mms" "rtmp" "rtsp" "sftp" "smb" "srt")
:handling :url)
(:name clean-elc-compile
- :external-command "clean-elc-compile %f"
+ :external-command "~/bin/clean-elc-compile %f"
:description "Clean compile a directory of elisp files"
:display-buffer t
:mimetypes ("inode/directory")
diff --git a/emacs/.emacs.d/lisp/buildbot.el b/emacs/.emacs.d/lisp/buildbot.el
-Subproject 07c135a7ce5769dd2cf3076eab790d2514fef97
+Subproject d3c7fcb511d1697f27e84229172152cdab81235
diff --git a/misc/bin/clean-elc-compile b/misc/bin/clean-elc-compile
new file mode 100755
index 0000000..7abccf8
--- /dev/null
+++ b/misc/bin/clean-elc-compile
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Byte compile an elisp dir with a "clean" emacs
+for f in "$1"/*.el; do
+ emacs --batch \
+ --eval "(setq load-prefer-newer t)" \
+ -f package-initialize \
+ -L "$1" \
+ -f batch-byte-compile "$f"
+done