Show More
@@ -32,7 +32,7 b" ip.set_hook('editor', calljed)" | |||
|
32 | 32 | You can then enable the functionality by doing 'import myiphooks' |
|
33 | 33 | somewhere in your configuration files or ipython command line. |
|
34 | 34 | |
|
35 |
$Id: hooks.py 11 |
|
|
35 | $Id: hooks.py 1156 2006-02-12 02:30:36Z fperez $""" | |
|
36 | 36 | |
|
37 | 37 | #***************************************************************************** |
|
38 | 38 | # Copyright (C) 2005 Fernando Perez. <fperez@colorado.edu> |
@@ -73,7 +73,7 b' def editor(self,filename, linenum=None):' | |||
|
73 | 73 | else: |
|
74 | 74 | linemark = '+%d' % linenum |
|
75 | 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 | 78 | import tempfile |
|
79 | 79 | def fix_error_editor(self,filename,linenum,column,msg): |
@@ -181,4 +181,4 b' def late_startup_hook(self):' | |||
|
181 | 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 | 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 | 8 | * IPython/UserConfig/ipythonrc: Replace @ signs with % when |
|
4 | 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