aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJeff Clough2015-02-27 08:52:12 -0500
committerNoam Postavsky2017-04-06 22:23:27 -0400
commitcd0a7951fb762570c4b9c2cdbb43c94cb68910d4 (patch)
tree6870503167bab052b76a22473119286859bdade1 /doc
parent4b3db0daa658a9b834284be8c3131b6177a28f38 (diff)
downloademacs-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.texi8
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
1642copies the contents of the region into the specified file. @kbd{M-x 1642copies the contents of the region into the specified file. @kbd{M-x
1643append-to-file} adds the text of the region to the end of the 1643append-to-file} adds the text of the region to the end of the
1644specified file. @xref{Accumulating Text}. The variable 1644specified file. @xref{Accumulating Text}. When called interactively,
1645@code{write-region-inhibit-fsync} applies to these commands, as well 1645these commands will print a message in the echo area giving the name
1646as saving files; see @ref{Customize Save}. 1646of the file affected as well as the number of characters which were
1647added. The variable @code{write-region-inhibit-fsync} applies to
1648these 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