From: <jd...@us...> - 2007-11-28 18:28:33
|
Revision: 4490 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4490&view=rev Author: jdh2358 Date: 2007-11-28 10:28:19 -0800 (Wed, 28 Nov 2007) Log Message: ----------- fixed coding guide bug for trailing whitespace Modified Paths: -------------- trunk/matplotlib/CODING_GUIDE Modified: trunk/matplotlib/CODING_GUIDE =================================================================== --- trunk/matplotlib/CODING_GUIDE 2007-11-28 18:27:43 UTC (rev 4489) +++ trunk/matplotlib/CODING_GUIDE 2007-11-28 18:28:19 UTC (rev 4490) @@ -113,14 +113,15 @@ ; and similarly for c++-mode-hook and c-mode-hook (add-hook 'python-mode-hook (lambda () - (add-hook 'local-write-file-hooks 'delete-trailing-whitespace))) + (add-hook 'write-file-functions 'delete-trailing-whitespace))) -for older versions of emacs (emacs<23) you may need to do +for older versions of emacs (emacs<22) you may need to do + (add-hook 'python-mode-hook (lambda () - (add-hook 'write-file-functions 'delete-trailing-whitespace))) + (add-hook 'local-write-file-hooks 'delete-trailing-whitespace))) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |