summaryrefslogtreecommitdiff
path: root/lisp/obsolete/patcomp.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-05-25 11:19:24 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-05-25 11:19:24 -0700
commit42b2a986d9d4b7040fb20c90ec0efeffb78e761a (patch)
treed38e7bf5307837f2f38982757f088100de18a64e /lisp/obsolete/patcomp.el
parente4d81efc58695c19154d5f6733d91172b4c3e5b7 (diff)
parenta8d3cbf75d219d7a249fc0623219511179e959da (diff)
downloademacs-42b2a986d9d4b7040fb20c90ec0efeffb78e761a.tar.gz
Merge from trunk.
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