diff options
| author | Jeff Clough | 2015-02-27 08:52:12 -0500 |
|---|---|---|
| committer | Noam Postavsky | 2017-04-06 22:23:27 -0400 |
| commit | cd0a7951fb762570c4b9c2cdbb43c94cb68910d4 (patch) | |
| tree | 6870503167bab052b76a22473119286859bdade1 /doc | |
| parent | 4b3db0daa658a9b834284be8c3131b6177a28f38 (diff) | |
| download | emacs-cd0a7951fb762570c4b9c2cdbb43c94cb68910d4.tar.gz emacs-cd0a7951fb762570c4b9c2cdbb43c94cb68910d4.zip | |
Output number of characters added to file (Bug#354)
* fileio.c (write_region):
* epa-file.el (epa-file-write-region):
* jka-compr.el (jka-compr-write-region):
* ange-ftp.el (ange-ftp-write-region):
* tramp-gvfs.el (tramp-gvfs-handle-write-region):
* tramp-sh.el (tramp-sh-handle-write-region):
* mm-util.el (mm-append-to-file): Functions now output
characters written in addition to file name.
* files.texi: Added documentation to write-region and
append-to-file describing their output.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/files.texi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 0b730e27d30..ed17f66ca2c 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi | |||
| @@ -1641,9 +1641,11 @@ similar to the @kbd{M-x find-file-literally} command | |||
| 1641 | @kbd{M-x write-region} is the inverse of @kbd{M-x insert-file}; it | 1641 | @kbd{M-x write-region} is the inverse of @kbd{M-x insert-file}; it |
| 1642 | copies the contents of the region into the specified file. @kbd{M-x | 1642 | copies the contents of the region into the specified file. @kbd{M-x |
| 1643 | append-to-file} adds the text of the region to the end of the | 1643 | append-to-file} adds the text of the region to the end of the |
| 1644 | specified file. @xref{Accumulating Text}. The variable | 1644 | specified file. @xref{Accumulating Text}. When called interactively, |
| 1645 | @code{write-region-inhibit-fsync} applies to these commands, as well | 1645 | these commands will print a message in the echo area giving the name |
| 1646 | as saving files; see @ref{Customize Save}. | 1646 | of the file affected as well as the number of characters which were |
| 1647 | added. The variable @code{write-region-inhibit-fsync} applies to | ||
| 1648 | these commands, as well as saving files; see @ref{Customize Save}. | ||
| 1647 | 1649 | ||
| 1648 | @findex set-file-modes | 1650 | @findex set-file-modes |
| 1649 | @cindex file modes | 1651 | @cindex file modes |