Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
355b422f
Commit
355b422f
authored
Jul 25, 2008
by
Vinicius Jose Latorre
Browse files
New function diff-show-trailing-blanks in diff-mode.el.
parent
1ada3dab
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
etc/ChangeLog
etc/ChangeLog
+4
-0
etc/NEWS
etc/NEWS
+3
-0
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/diff-mode.el
lisp/diff-mode.el
+7
-0
No files found.
etc/ChangeLog
View file @
355b422f
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>
* NEWS: Add xesam.el.
...
...
etc/NEWS
View file @
355b422f
...
...
@@ -516,6 +516,9 @@ which have installed this software.
* 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.
*** New functions: abbrev-get, abbrev-put, abbrev-table-get, abbrev-table-put,
abbrev-table-p, abbrev-insert, abbrev-table-menu.
...
...
lisp/ChangeLog
View file @
355b422f
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>
* Makefile.in (ELCFILES): Add net/xesam.el.
...
...
lisp/diff-mode.el
View file @
355b422f
...
...
@@ -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.
(
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
'diff-mode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment