Revision: 4486
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4486&view=rev
Author: jdh2358
Date: 2007-11-28 10:11:27 -0800 (Wed, 28 Nov 2007)
Log Message:
-----------
updated coding guide with trailing whitespace config suggestion
Modified Paths:
--------------
trunk/matplotlib/CODING_GUIDE
Modified: trunk/matplotlib/CODING_GUIDE
===================================================================
--- trunk/matplotlib/CODING_GUIDE 2007-11-28 17:19:16 UTC (rev 4485)
+++ trunk/matplotlib/CODING_GUIDE 2007-11-28 18:11:27 UTC (rev 4486)
@@ -39,6 +39,8 @@
* If you have altered extension code, do you pass
unit/memleak_hawaii.py?
+
+
== Importing and name spaces ==
For numpy, use:
@@ -103,7 +105,26 @@
to replace a single long line with two shorter and more
readable lines.
+Please do not commit lines with trailing white space, as it causes
+noise in svn diffs. If you are an emacs user, the following in your
+.emacs will cause emacs to strip trailing white space on save for
+python, C and C++
+; 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)))
+
+
+for older versions of emacs (emacs<23) you may need to do
+
+(add-hook 'python-mode-hook
+ (lambda ()
+ (add-hook 'write-file-functions 'delete-trailing-whitespace)))
+
+
+
+
== Licenses ==
matplotlib only uses BSD compatible code. If you bring in code from
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|