Function: w32-append-code-lines

w32-append-code-lines is a byte-compiled function defined in w32-fns.el.gz.

Signature

(w32-append-code-lines ORIG EXTRA)

Documentation

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.

Source Code

;; Defined in /usr/src/emacs/lisp/w32-fns.el.gz
;;;; Support for build process

(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."
  (with-current-buffer (find-file-noselect orig)
    (goto-char (point-max))
    (insert-file-contents extra)
    (delete-matching-lines "^$\\|^;")
    (save-buffers-kill-emacs t)))