Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a13563

Browse files
committed
fixed coding guide bug for trailing whitespace
svn path=/trunk/matplotlib/; revision=4490
1 parent 2b65b73 commit 8a13563

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

CODING_GUIDE

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,15 @@ python, C and C++
113113
; and similarly for c++-mode-hook and c-mode-hook
114114
(add-hook 'python-mode-hook
115115
(lambda ()
116-
(add-hook 'local-write-file-hooks 'delete-trailing-whitespace)))
116+
(add-hook 'write-file-functions 'delete-trailing-whitespace)))
117+
117118

118119

119-
for older versions of emacs (emacs<23) you may need to do
120+
for older versions of emacs (emacs<22) you may need to do
120121

121122
(add-hook 'python-mode-hook
122123
(lambda ()
123-
(add-hook 'write-file-functions 'delete-trailing-whitespace)))
124+
(add-hook 'local-write-file-hooks 'delete-trailing-whitespace)))
124125

125126

126127

0 commit comments

Comments
 (0)