diff options
| author | Paul Eggert | 2015-01-03 17:48:23 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-01-03 17:49:15 -0800 |
| commit | d20f82e6f1ab902469723ebd530ca21bea9cc41b (patch) | |
| tree | a927fe4309925c0b66e860dfe052baf68560aa8b | |
| parent | d94007484ab6b98054b043c1bedeaf7a58eb8606 (diff) | |
| download | emacs-d20f82e6f1ab902469723ebd530ca21bea9cc41b.tar.gz emacs-d20f82e6f1ab902469723ebd530ca21bea9cc41b.zip | |
batch write-region no longer says "Wrote FOO"
This cuts down on 'make' chatter a bit.
* doc/lispref/files.texi (Writing to Files):
* etc/NEWS: Document this.
* src/fileio.c (Fwrite_region):
Don't output "Wrote /whatever/foo.elc" if noninteractive.
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 5 | ||||
| -rw-r--r-- | etc/ChangeLog | 5 | ||||
| -rw-r--r-- | etc/NEWS | 3 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/fileio.c | 6 |
6 files changed, 26 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index de1a760496b..941be3cf582 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-01-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | batch write-region no longer says "Wrote FOO" | ||
| 4 | * files.texi (Writing to Files): Document this. | ||
| 5 | |||
| 1 | 2014-12-31 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2014-12-31 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Less 'make' chatter for Emacs doc | 8 | Less 'make' chatter for Emacs doc |
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 51d13692fe5..c8500d2f412 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -653,8 +653,9 @@ and also calls the functions in the list | |||
| 653 | @xref{Format Conversion}. | 653 | @xref{Format Conversion}. |
| 654 | 654 | ||
| 655 | Normally, @code{write-region} displays the message @samp{Wrote | 655 | Normally, @code{write-region} displays the message @samp{Wrote |
| 656 | @var{filename}} in the echo area. If @var{visit} is neither @code{t} | 656 | @var{filename}} in the echo area. This message is inhibited if |
| 657 | nor @code{nil} nor a string, then this message is inhibited. This | 657 | @var{visit} is neither @code{t} nor @code{nil} nor a string, or if |
| 658 | Emacs is operating in batch mode (@pxref{Batch mode}). This | ||
| 658 | feature is useful for programs that use files for internal purposes, | 659 | feature is useful for programs that use files for internal purposes, |
| 659 | files that the user does not need to know about. | 660 | files that the user does not need to know about. |
| 660 | @end deffn | 661 | @end deffn |
diff --git a/etc/ChangeLog b/etc/ChangeLog index 28160449ee6..c72c560ec9c 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-01-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | batch write-region no longer says "Wrote FOO" | ||
| 4 | * NEWS: Document this. | ||
| 5 | |||
| 1 | 2014-12-30 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2014-12-30 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * PROBLEMS: Omit obsolete mention of FQDNs. | 8 | * PROBLEMS: Omit obsolete mention of FQDNs. |
| @@ -551,6 +551,9 @@ system's name has changed or if the Emacs process has changed systems, | |||
| 551 | and to avoid long waits it no longer consults DNS to canonicalize the | 551 | and to avoid long waits it no longer consults DNS to canonicalize the |
| 552 | name. The variable `system-name' is now obsolete. | 552 | name. The variable `system-name' is now obsolete. |
| 553 | 553 | ||
| 554 | +++ | ||
| 555 | ** Function `write-region' no longer outputs "Wrote FILE" in batch mode. | ||
| 556 | |||
| 554 | --- | 557 | --- |
| 555 | ** New utilities in subr-x.el: | 558 | ** New utilities in subr-x.el: |
| 556 | *** New macros `if-let' and `when-let' allow defining bindings and to | 559 | *** New macros `if-let' and `when-let' allow defining bindings and to |
diff --git a/src/ChangeLog b/src/ChangeLog index 46ab94c7c89..1629aa0298c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2015-01-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | batch write-region no longer says "Wrote FOO" | ||
| 4 | This cuts down on 'make' chatter a bit. | ||
| 5 | * fileio.c (Fwrite_region): | ||
| 6 | Don't output "Wrote /whatever/foo.elc" if noninteractive. | ||
| 7 | |||
| 1 | 2015-01-03 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2015-01-03 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | Revert previous change to produce_composite_glyph | 10 | Revert previous change to produce_composite_glyph |
diff --git a/src/fileio.c b/src/fileio.c index b04d99809a6..0f0fd1a5c8d 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4741,8 +4741,8 @@ Optional fifth argument VISIT, if t or a string, means | |||
| 4741 | If VISIT is a string, it is a second file name; | 4741 | If VISIT is a string, it is a second file name; |
| 4742 | the output goes to FILENAME, but the buffer is marked as visiting VISIT. | 4742 | the output goes to FILENAME, but the buffer is marked as visiting VISIT. |
| 4743 | VISIT is also the file name to lock and unlock for clash detection. | 4743 | VISIT is also the file name to lock and unlock for clash detection. |
| 4744 | If VISIT is neither t nor nil nor a string, | 4744 | If VISIT is neither t nor nil nor a string, or if Emacs is in batch mode, |
| 4745 | that means do not display the \"Wrote file\" message. | 4745 | do not display the \"Wrote file\" message. |
| 4746 | The optional sixth arg LOCKNAME, if non-nil, specifies the name to | 4746 | The optional sixth arg LOCKNAME, if non-nil, specifies the name to |
| 4747 | use for locking and unlocking, overriding FILENAME and VISIT. | 4747 | use for locking and unlocking, overriding FILENAME and VISIT. |
| 4748 | The optional seventh arg MUSTBENEW, if non-nil, insists on a check | 4748 | The optional seventh arg MUSTBENEW, if non-nil, insists on a check |
| @@ -5109,7 +5109,7 @@ write_region (Lisp_Object start, Lisp_Object end, Lisp_Object filename, | |||
| 5109 | return Qnil; | 5109 | return Qnil; |
| 5110 | } | 5110 | } |
| 5111 | 5111 | ||
| 5112 | if (!auto_saving) | 5112 | if (!auto_saving && !noninteractive) |
| 5113 | message_with_string ((NUMBERP (append) | 5113 | message_with_string ((NUMBERP (append) |
| 5114 | ? "Updated %s" | 5114 | ? "Updated %s" |
| 5115 | : ! NILP (append) | 5115 | : ! NILP (append) |