lp://staging/~smoser/editmoin/bug610154
- Get this branch:
- bzr branch lp://staging/~smoser/editmoin/bug610154
Branch merges
- Gustavo Niemeyer: Approve
-
Diff: 14 lines (+3/-1)1 file modifiededitmoin (+3/-1)
Related bugs
Bug #610154: cannot pass arguments to EDITOR command | Undecided | Fix Released |
Related blueprints
Branch information
Recent revisions
- 30. By Scott Moser
-
allow arguments to be present in EDITOR variable (ie 'gvim -f') LP: #610154
call the editor through a shell, this allows for shell interpretation of
the contents of "EDITOR", and thus supports:
EDITOR="gvim -f"
or
EDITOR="vim"The fallout of doing this is that a binary named:
"/usr/bin/my editor"would now have to be called as:
EDITOR="/usr/bin/ my\ editor" An alternative solution might look like this:
- subprocess.call([editor, filename])
+ cmd=editor.split(' ')
+ cmd.append(filename)
+ subprocess.call(cmd) That would just split the EDITOR command on white space rather than
letting the shell handle that split. I personally prefer letting shell
handle the split as it is a extremely well defined handling.Ie, I knew that one level of shell interpretation would be escaped with
the above '\' in "my\ editor". With a simple split in python of the
above, it would be difficult or impossible to invoke an executable with
a space in the path. - 27. By Gustavo Niemeyer
-
- Introduced support for direct authentication with newer moins,
inspired by Reimar Bauer.
- Introduced support for the ~/.moin_users file, to configure usernames
on multiple sites.
- Shortcutting also checks ~/.moin_users now.
- Added support for textcha questions and answers.
- Updated manual page. - 22. By Gustavo Niemeyer
-
- Implemented Moin 1.6+ syntax file.
- editmoin will now present a Syntax header at the top to enable
editors to pick the right syntax.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)