Commit 355b422f authored by Vinicius Jose Latorre's avatar Vinicius Jose Latorre

New function diff-show-trailing-blanks in diff-mode.el.

parent 1ada3dab
2008-07-24 Vinicius Jose Latorre <viniciusjl@ig.com.br>
* NEWS: New function `diff-show-trailing-blanks' in diff-mode.el.
2008-07-24 Michael Albinus <michael.albinus@gmx.de> 2008-07-24 Michael Albinus <michael.albinus@gmx.de>
* NEWS: Add xesam.el. * NEWS: Add xesam.el.
......
...@@ -516,6 +516,9 @@ which have installed this software. ...@@ -516,6 +516,9 @@ which have installed this software.
* Changes in Specialized Modes and Packages in Emacs 23.1 * Changes in Specialized Modes and Packages in Emacs 23.1
** Diff mode
*** New function `diff-show-trailing-blanks'.
** Abbrev has been rewritten in Elisp and extended with more flexibility. ** Abbrev has been rewritten in Elisp and extended with more flexibility.
*** New functions: abbrev-get, abbrev-put, abbrev-table-get, abbrev-table-put, *** New functions: abbrev-get, abbrev-put, abbrev-table-get, abbrev-table-put,
abbrev-table-p, abbrev-insert, abbrev-table-menu. abbrev-table-p, abbrev-insert, abbrev-table-menu.
......
2008-07-24 Vinicius Jose Latorre <viniciusjl@ig.com.br>
* diff-mode.el (diff-show-trailing-blanks): New fun. Show trailing
blanks in modified lines for diff-mode.
2008-07-24 Michael Albinus <michael.albinus@gmx.de> 2008-07-24 Michael Albinus <michael.albinus@gmx.de>
* Makefile.in (ELCFILES): Add net/xesam.el. * Makefile.in (ELCFILES): Add net/xesam.el.
......
...@@ -1881,6 +1881,13 @@ I.e. like `add-change-log-entry-other-window' but applied to all hunks." ...@@ -1881,6 +1881,13 @@ I.e. like `add-change-log-entry-other-window' but applied to all hunks."
;; When there's no more hunks, diff-hunk-next signals an error. ;; When there's no more hunks, diff-hunk-next signals an error.
(error nil))))) (error nil)))))
(defun diff-show-trailing-blanks ()
"Show trailing blanks in modified lines for diff-mode."
(interactive)
(let ((whitespace-style '(trailing))
(whitespace-trailing-regexp "^[-\+!<>].*?\\([\t ]+\\)$"))
(whitespace-mode 1))) ; display trailing blanks in diff buffer
;; provide the package ;; provide the package
(provide 'diff-mode) (provide 'diff-mode)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment