aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2006-12-09 12:38:32 +0000
committerEli Zaretskii2006-12-09 12:38:32 +0000
commitd1dcf3e7793308b744671d1c69dc41c824bc610a (patch)
tree8aee33aada3bc0f5ba0cbb76530db4600baef367
parent5641e7a93a85a73fd571f2e1f9158c3eac95ecca (diff)
downloademacs-d1dcf3e7793308b744671d1c69dc41c824bc610a.tar.gz
emacs-d1dcf3e7793308b744671d1c69dc41c824bc610a.zip
(w32-append-code-lines): New function.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/w32-fns.el14
2 files changed, 18 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 09e3736df70..86d773f52f4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12006-12-09 Eli Zaretskii <eliz@gnu.org>
2
3 * w32-fns.el (w32-append-code-lines): New function.
4
12006-12-09 Romain Francoise <romain@orebokech.com> 52006-12-09 Romain Francoise <romain@orebokech.com>
2 6
3 * comint.el (comint-insert-input): Delete obsolete comment. 7 * comint.el (comint-insert-input): Delete obsolete comment.
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el
index 072606d97da..21b75223060 100644
--- a/lisp/w32-fns.el
+++ b/lisp/w32-fns.el
@@ -469,5 +469,19 @@ that Emacs is unable to cope with."
469 (expand-file-name (pop command-line-args-left)))) 469 (expand-file-name (pop command-line-args-left))))
470 (batch-update-autoloads))) 470 (batch-update-autoloads)))
471 471
472(defun w32-append-code-lines (orig extra)
473 "Append non-empty non-comment lines in the file EXTRA to the file ORIG.
474
475This function saves all buffers and kills the Emacs session, without asking
476for any permissions.
477
478This is required because the Windows build environment is not required
479to include Sed, which is used by leim/Makefile.in to do the job."
480 (find-file orig)
481 (goto-char (point-max))
482 (insert-file-contents extra)
483 (delete-matching-lines "^$\\|^;")
484 (save-buffers-kill-emacs t))
485
472;;; arch-tag: c49b48cc-0f4f-454f-a274-c2dc34815e14 486;;; arch-tag: c49b48cc-0f4f-454f-a274-c2dc34815e14
473;;; w32-fns.el ends here 487;;; w32-fns.el ends here