summaryrefslogtreecommitdiff
path: root/lisp/obsolete/patcomp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/obsolete/patcomp.el')
-rw-r--r--lisp/obsolete/patcomp.el24
1 files changed, 24 insertions, 0 deletions
diff --git a/lisp/obsolete/patcomp.el b/lisp/obsolete/patcomp.el
new file mode 100644
index 00000000000..b8304143e9f
--- /dev/null
+++ b/lisp/obsolete/patcomp.el
@@ -0,0 +1,24 @@
+;;; patcomp.el --- used by patch files to update Emacs releases -*- no-byte-compile: t -*-
+
+;; This file is part of GNU Emacs.
+
+;; Obsolete-since: 24.2
+
+;;; Commentary:
+
+;;; Code:
+
+(defun batch-byte-recompile-emacs ()
+ "Recompile the Emacs `lisp' directory.
+This is used after installing the patches for a new version."
+ (let ((load-path (list (expand-file-name "lisp"))))
+ (byte-recompile-directory "lisp")))
+
+(defun batch-byte-compile-emacs ()
+ "Compile new files installed in the Emacs `lisp' directory.
+This is used after installing the patches for a new version.
+It uses the command line arguments to specify the files to compile."
+ (let ((load-path (list (expand-file-name "lisp"))))
+ (batch-byte-compile)))
+
+;;; patcomp.el ends here