Bug#111885: tetex-bin: texconfig depends on vi
On Mon, 10 Sep 2001, Julian Gilbey wrote:
> > texconfig seems to want vi to exist, but does not depend on vi.
> > Specifically, when I select FORMATS from the menu, it tries to start
> > vi and fails.
>
> You haven't set either your EDITOR or VISUAL environment variable,
> which would fix this. You also didn't choose the PREFERENCES option
> from the main menu, which would have allowed you to do this;
> unfortunately this option is not displayed. Here's a patch:
>
> --- texconfig.orig Mon Sep 10 20:25:49 2001
> +++ texconfig Mon Sep 10 20:27:30 2001
> @@ -1773,6 +1773,7 @@
> " 23 80 12 \
> "EXIT" 'exit' \
> "CONF" 'show configuration' \
> + "PREF" 'select preferred editor and pager' \
> "REHASH" 'rebuild ls-R database' \
> "FORMATS" 'formats' \
> "HYPHEN" 'hyphenation' \
sensible-pager and sensible-editor are intended to tae care of the PAGER
and EDITOR environment variables, so we should use them. The patch is
simple:
--- texconfig.old Mon Sep 10 22:36:12 2001
+++ texconfig Mon Sep 10 22:38:17 2001
@@ -37,9 +37,9 @@
tmpdir=${TMPDIR-/tmp}/texconf$$
tmpmenu="$tmpdir"/menu.out
tmpans="$tmpdir"/answer.out
-std_pager=more
+std_pager=sensible-pager
xdvi_shrink_scale=75
-std_editor=vi
+std_editor=sensible-editor
envvars="
AFMFONTS BIBINPUTS BSTINPUTS DVILJFONTS DVIPSFONTS DVIPSHEADERS GFFONTS
I'll make a new upload of tetex-bin the next days (I'll also look whether
I can fix some of the other bugs).
> Julian
cu
Adrian
--
Get my GPG key: finger bunk@debian.org | gpg --import
Fingerprint: B29C E71E FE19 6755 5C8A 84D4 99FC EA98 4F12 B400
Reply to: