##// END OF EJS Templates
Add quotes in the editor hook so that editor commands with spaces in them...
fperez -
Show More
@@ -32,7 +32,7 b" ip.set_hook('editor', calljed)"
32 You can then enable the functionality by doing 'import myiphooks'
32 You can then enable the functionality by doing 'import myiphooks'
33 somewhere in your configuration files or ipython command line.
33 somewhere in your configuration files or ipython command line.
34
34
35 $Id: hooks.py 1107 2006-01-30 19:02:20Z vivainio $"""
35 $Id: hooks.py 1156 2006-02-12 02:30:36Z fperez $"""
36
36
37 #*****************************************************************************
37 #*****************************************************************************
38 # Copyright (C) 2005 Fernando Perez. <fperez@colorado.edu>
38 # Copyright (C) 2005 Fernando Perez. <fperez@colorado.edu>
@@ -73,7 +73,7 b' def editor(self,filename, linenum=None):'
73 else:
73 else:
74 linemark = '+%d' % linenum
74 linemark = '+%d' % linenum
75 # Call the actual editor
75 # Call the actual editor
76 os.system('%s %s %s' % (editor,linemark,filename))
76 os.system('"%s" %s %s' % (editor,linemark,filename))
77
77
78 import tempfile
78 import tempfile
79 def fix_error_editor(self,filename,linenum,column,msg):
79 def fix_error_editor(self,filename,linenum,column,msg):
@@ -181,4 +181,4 b' def late_startup_hook(self):'
181 """ Executed after ipython has been constructed and configured
181 """ Executed after ipython has been constructed and configured
182
182
183 """
183 """
184 #print "default startup hook ok" # dbg No newline at end of file
184 #print "default startup hook ok" # dbg
@@ -1,5 +1,10 b''
1 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
2
2
3 * IPython/hooks.py (editor): quote the call to the editor command,
4 to allow commands with spaces in them. Problem noted by watching
5 Ian Oswald's video about textpad under win32 at
6 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
7
3 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
8 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
4 describing magics (we haven't used @ for a loong time).
9 describing magics (we haven't used @ for a loong time).
5
10
General Comments 0
You need to be logged in to leave comments. Login now