diff options
author | Glenn Morris <rgm@gnu.org> | 2012-11-08 00:14:23 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2012-11-08 00:14:23 -0800 |
commit | 26f596760dcbedc775d69ce829426b9d8dbd1870 (patch) | |
tree | e0e8acef4058cbe18f626c1efb3fe46d99a59edf /lisp/vc/diff-mode.el | |
parent | 7858872b755fd48d82f26a488351ac7ef8512f71 (diff) | |
download | emacs-26f596760dcbedc775d69ce829426b9d8dbd1870.tar.gz |
Document diff-remove-trailing-whitespace
* doc/emacs/files.texi (Diff Mode): Trailing whitespace updates.
* lisp/vc/diff-mode.el (diff-remove-trailing-whitespace): Doc fix.
* etc/NEWS: Related markup.
Diffstat (limited to 'lisp/vc/diff-mode.el')
-rw-r--r-- | lisp/vc/diff-mode.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 49b76a8e3bc..daf43c5c167 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -2049,12 +2049,12 @@ I.e. like `add-change-log-entry-other-window' but applied to all hunks." (error nil)))) (defun diff-remove-trailing-whitespace () - "When on a buffer that contains a diff, inspects the -differences and removes trailing whitespace (spaces, tabs) from -the lines modified or introduced by this diff. Shows a message -with the name of the altered buffers, which are unsaved. If a -file referenced on the diff has no buffer and needs to be fixed, -a buffer visiting that file is created." + "Remove trailing whitespace from the lines modified/added by a diff. +Called from a buffer containing a diff, this searches for trailing +whitespace (spaces, tabs) in the modified/added lines. If the +file that such a line refers to can be found, it visits it and +removes the associated whitespace, if it is present. It does not +save any changed buffers, it just gives a message naming them." (interactive) ;; We assume that the diff header has no trailing whitespace. (let ((modified-buffers nil)) |