# HG changeset patch # User Eli Zaretskii # Date 1165667857 0 # Node ID de08a74adc2a9b63172ec48b8a226b2589667642 # Parent 3fd6ffd8464fc6b77fee3d2b88d8c7c713b31e7c (w32-append-code-lines): New function. diff -r 3fd6ffd8464f -r de08a74adc2a lisp/w32-fns.el --- a/lisp/w32-fns.el Sat Dec 09 11:14:35 2006 +0000 +++ b/lisp/w32-fns.el Sat Dec 09 12:37:37 2006 +0000 @@ -469,5 +469,19 @@ (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