summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJeff Clough <kb1vqh@gmail.com>2015-02-27 08:52:12 -0500
committerNoam Postavsky <npostavs@gmail.com>2017-04-06 22:23:27 -0400
commitcd0a7951fb762570c4b9c2cdbb43c94cb68910d4 (patch)
tree6870503167bab052b76a22473119286859bdade1 /doc
parent4b3db0daa658a9b834284be8c3131b6177a28f38 (diff)
downloademacs-cd0a7951fb762570c4b9c2cdbb43c94cb68910d4.tar.gz
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
@kbd{M-x write-region} is the inverse of @kbd{M-x insert-file}; it
copies the contents of the region into the specified file. @kbd{M-x
append-to-file} adds the text of the region to the end of the
-specified file. @xref{Accumulating Text}. The variable
-@code{write-region-inhibit-fsync} applies to these commands, as well
-as saving files; see @ref{Customize Save}.
+specified file. @xref{Accumulating Text}. When called interactively,
+these commands will print a message in the echo area giving the name
+of the file affected as well as the number of characters which were
+added. The variable @code{write-region-inhibit-fsync} applies to
+these commands, as well as saving files; see @ref{Customize Save}.
@findex set-file-modes
@cindex file modes