summaryrefslogtreecommitdiff
path: root/lisp/w32-fns.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2005-12-24 12:49:52 +0000
committerEli Zaretskii <eliz@gnu.org>2005-12-24 12:49:52 +0000
commit3712a0b33f603735a62a8ce0fe25fd8281d8c9a8 (patch)
tree5bbb431ca576a535d8d218aa7a7f28953ac94389 /lisp/w32-fns.el
parent34321842d2df6333194aa2f9156b857f59dff744 (diff)
downloademacs-3712a0b33f603735a62a8ce0fe25fd8281d8c9a8.tar.gz
(w32-batch-update-autoloads): New function.
Diffstat (limited to 'lisp/w32-fns.el')
-rw-r--r--lisp/w32-fns.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el
index e87cf288674..004a4662f5e 100644
--- a/lisp/w32-fns.el
+++ b/lisp/w32-fns.el
@@ -456,6 +456,18 @@ they were unset."
(setq interprogram-cut-function 'x-select-text)
(setq interprogram-paste-function 'x-get-selection-value)
+
+;;;; Support for build process
+(defun w32-batch-update-autoloads ()
+ "Like `batch-update-autoloads', but takes the name of the autoloads file
+from the command line.
+
+This is required because some Windows build environments, such as MSYS,
+munge command-line arguments that include file names to a horrible mess
+that Emacs is unable to cope with."
+ (let ((generated-autoload-file
+ (expand-file-name (pop command-line-args-left))))
+ (batch-update-autoloads)))
;;; arch-tag: c49b48cc-0f4f-454f-a274-c2dc34815e14
;;; w32-fns.el ends here