From c1102e9ad391faba44089604fc03887f83f5ddfd Mon Sep 17 00:00:00 2001 From: Taco Hoekwater Date: Mon, 6 Jun 2011 12:11:43 +0000 Subject: 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 --- Build/source/texk/web2c/mplibdir/ChangeLog | 4 ++++ Build/source/texk/web2c/mplibdir/mpost.w | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'Build/source/texk') 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 + + * mpost.w (mpost_run_editor): Do not attempt to use EDITOR. + 2011-06-04 Peter Breitenlohner * 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); -- cgit v1.2.3