diff options
| author | Eli Zaretskii | 2006-12-09 12:38:32 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-12-09 12:38:32 +0000 |
| commit | d1dcf3e7793308b744671d1c69dc41c824bc610a (patch) | |
| tree | 8aee33aada3bc0f5ba0cbb76530db4600baef367 | |
| parent | 5641e7a93a85a73fd571f2e1f9158c3eac95ecca (diff) | |
| download | emacs-d1dcf3e7793308b744671d1c69dc41c824bc610a.tar.gz emacs-d1dcf3e7793308b744671d1c69dc41c824bc610a.zip | |
(w32-append-code-lines): New function.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/w32-fns.el | 14 |
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 @@ | |||
| 1 | 2006-12-09 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32-fns.el (w32-append-code-lines): New function. | ||
| 4 | |||
| 1 | 2006-12-09 Romain Francoise <romain@orebokech.com> | 5 | 2006-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 | |||
| 475 | This function saves all buffers and kills the Emacs session, without asking | ||
| 476 | for any permissions. | ||
| 477 | |||
| 478 | This is required because the Windows build environment is not required | ||
| 479 | to 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 |