diff options
author | Eli Zaretskii <eliz@gnu.org> | 2006-12-09 12:38:32 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2006-12-09 12:38:32 +0000 |
commit | d1dcf3e7793308b744671d1c69dc41c824bc610a (patch) | |
tree | 8aee33aada3bc0f5ba0cbb76530db4600baef367 /lisp/w32-fns.el | |
parent | 5641e7a93a85a73fd571f2e1f9158c3eac95ecca (diff) | |
download | emacs-d1dcf3e7793308b744671d1c69dc41c824bc610a.tar.gz |
(w32-append-code-lines): New function.
Diffstat (limited to 'lisp/w32-fns.el')
-rw-r--r-- | lisp/w32-fns.el | 14 |
1 files changed, 14 insertions, 0 deletions
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." (expand-file-name (pop command-line-args-left)))) (batch-update-autoloads))) +(defun w32-append-code-lines (orig extra) + "Append non-empty non-comment lines in the file EXTRA to the file ORIG. + +This function saves all buffers and kills the Emacs session, without asking +for any permissions. + +This is required because the Windows build environment is not required +to include Sed, which is used by leim/Makefile.in to do the job." + (find-file orig) + (goto-char (point-max)) + (insert-file-contents extra) + (delete-matching-lines "^$\\|^;") + (save-buffers-kill-emacs t)) + ;;; arch-tag: c49b48cc-0f4f-454f-a274-c2dc34815e14 ;;; w32-fns.el ends here |