diff options
| author | Glenn Morris | 2012-11-08 00:14:23 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-11-08 00:14:23 -0800 |
| commit | 26f596760dcbedc775d69ce829426b9d8dbd1870 (patch) | |
| tree | e0e8acef4058cbe18f626c1efb3fe46d99a59edf /lisp | |
| parent | 7858872b755fd48d82f26a488351ac7ef8512f71 (diff) | |
| download | emacs-26f596760dcbedc775d69ce829426b9d8dbd1870.tar.gz emacs-26f596760dcbedc775d69ce829426b9d8dbd1870.zip | |
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')
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/vc/diff-mode.el | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6a574f4b26d..b141afe67e6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-11-08 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * vc/diff-mode.el (diff-remove-trailing-whitespace): Doc fix. | ||
| 4 | |||
| 1 | 2012-11-08 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2012-11-08 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * emacs-lisp/gv.el (gv-define-simple-setter): Fix last change | 7 | * emacs-lisp/gv.el (gv-define-simple-setter): Fix last change |
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." | |||
| 2049 | (error nil)))) | 2049 | (error nil)))) |
| 2050 | 2050 | ||
| 2051 | (defun diff-remove-trailing-whitespace () | 2051 | (defun diff-remove-trailing-whitespace () |
| 2052 | "When on a buffer that contains a diff, inspects the | 2052 | "Remove trailing whitespace from the lines modified/added by a diff. |
| 2053 | differences and removes trailing whitespace (spaces, tabs) from | 2053 | Called from a buffer containing a diff, this searches for trailing |
| 2054 | the lines modified or introduced by this diff. Shows a message | 2054 | whitespace (spaces, tabs) in the modified/added lines. If the |
| 2055 | with the name of the altered buffers, which are unsaved. If a | 2055 | file that such a line refers to can be found, it visits it and |
| 2056 | file referenced on the diff has no buffer and needs to be fixed, | 2056 | removes the associated whitespace, if it is present. It does not |
| 2057 | a buffer visiting that file is created." | 2057 | save any changed buffers, it just gives a message naming them." |
| 2058 | (interactive) | 2058 | (interactive) |
| 2059 | ;; We assume that the diff header has no trailing whitespace. | 2059 | ;; We assume that the diff header has no trailing whitespace. |
| 2060 | (let ((modified-buffers nil)) | 2060 | (let ((modified-buffers nil)) |