summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-06-06 12:11:43 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-06-06 12:11:43 +0000
commitc1102e9ad391faba44089604fc03887f83f5ddfd (patch)
tree2ff2392baf8240278dfcfe2133ee5285606b4c95 /Build/source
parenteeb1c18455a42ef929933c981ea6bbd8b21875e4 (diff)
Do not attempt to use EDITOR for mpost: it is MPEDIT, or nothing
git-svn-id: svn://tug.org/texlive/trunk@22823 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/web2c/mplibdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/mplibdir/mpost.w6
2 files changed, 6 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/mplibdir/ChangeLog b/Build/source/texk/web2c/mplibdir/ChangeLog
index a2f7136570e..5a3a2585e46 100644
--- a/Build/source/texk/web2c/mplibdir/ChangeLog
+++ b/Build/source/texk/web2c/mplibdir/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-06 Taco Hoekwater <taco@luatex.org>
+
+ * mpost.w (mpost_run_editor): Do not attempt to use EDITOR.
+
2011-06-04 Peter Breitenlohner <peb@mppmu.mpg.de>
* am/mplib.am (bin_links): Remove no longer existing 'metafun'.
diff --git a/Build/source/texk/web2c/mplibdir/mpost.w b/Build/source/texk/web2c/mplibdir/mpost.w
index 1bb28721f0a..371677f47f9 100644
--- a/Build/source/texk/web2c/mplibdir/mpost.w
+++ b/Build/source/texk/web2c/mplibdir/mpost.w
@@ -1,4 +1,4 @@
-% $Id: mpost.w 1681 2011-05-30 07:15:22Z taco $
+% $Id: mpost.w 1687 2011-06-06 11:53:20Z taco $
%
% This file is part of MetaPost;
% the MetaPost program is in the public domain.
@@ -107,10 +107,8 @@ static void mpost_run_editor (MP mp, char *fname, int fline) {
boolean sdone, ddone;
sdone = ddone = false;
edit_value = kpse_var_value ("MPEDIT");
- if (edit_value == NULL)
- edit_value = getenv("EDITOR");
if (edit_value == NULL) {
- fprintf (stderr,"call_edit: can't find a suitable MPEDIT or EDITOR variable\n");
+ fprintf (stderr,"call_edit: can't find a suitable MPEDIT variable\n");
exit(mp_status(mp));
}
command = (string) mpost_xmalloc (strlen (edit_value) + strlen(fname) + 11 + 3);