[IPython-user] ipython SVN less friendly about EDITOR

Fernando Perez Fernando.Perez at colorado.edu
Thu Mar 16 01:16:36 CST 2006


Zachary Pincus wrote:

> It seems that in hooks.py, the editor is called via
> os.system('"%s" %s %s' % (editor,linemark,filename))
> so the 'editor' value is quoted explicitly. This is good if the user  
> has provided an editor with spaces in the path in the rc file; it's  
> less good if the user has provided an editor with arguments in the rc  
> file.
> 
> There are a couple solutions here:
> (1) Go back to the old way and tell people who want EDITOR values  
> with spaces in the paths (or whatever) to explicitly quote the EDITOR  
> value.
> (2) Provide an EDITOR_ARGUMENTS rc option.
> (3) Tell me to sod off and just write a wrapper that calls 'mate -w'  
> and set that wrapper to EDITOR.

My vote is on (1), I didn't know this had changed.  Certainly quoting editor 
names with spaces (common for win32) is a reasonable requirement.  Breaking 
existing functionality is not.

Ville, let me know if you can fix this or if you want me to do it.

Cheers,

f




More information about the IPython-user mailing list