This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
241240e
)
Hack to allow git-deltatool to spawn 'emacsclient -t'
author
Florian Ragwitz
<rafl@debian.org>
Sat, 26 Feb 2011 07:58:16 +0000
(08:58 +0100)
committer
Florian Ragwitz
<rafl@debian.org>
Sat, 26 Feb 2011 07:58:16 +0000
(08:58 +0100)
My $EDITOR is 'emacsclient -t'. system('emacsclient -t', 'more', 'args') won't
do the right thing.
Porting/git-deltatool
patch
|
blob
|
blame
|
history
diff --git
a/Porting/git-deltatool
b/Porting/git-deltatool
index
3c413ff
..
2216037
100644
(file)
--- a/
Porting/git-deltatool
+++ b/
Porting/git-deltatool
@@
-219,7
+219,7
@@
sub edit_text {
$args //= {};
my $tempfh = File::Temp->new;
$tempfh->printflush( $text );
- if ( my
(@editor) = $ENV{VISUAL} || $ENV{EDITOR}
) {
+ if ( my
@editor = split /\s+/, ($ENV{VISUAL} || $ENV{EDITOR})
) {
push @editor, "-f" if $editor[0] =~ /^gvim/;
system(@editor, "$tempfh");
}