[comp.emacs] TeX/GNU interface question

laubsch@HPLJL.HPL.HP.COM (Joachim Laubsch) (01/22/91)

The Unix manual entry for TeX says: 

	 The e response to TeX's error prompt causes the vi editor to
	  start up at the current line of the current file.  There is
	  an environment variable, TEXEDIT, that can be used to change
	  the editor used.  It should contain a string with "%s"
	  indicating where the filename goes and "%d" indicating where
	  the decimal linenumber (if any) goes.  For example, a
	  TEXEDIT string for (Gosling's) emacs can be set by:
	    setenv TEXEDIT "/usr/local/bin/emacs -l/usr/lib/tex/tex-
	  start -estartline %d %s"

What would the corresponing setting of TEXEDIT be, if you wanted to
continue GNU Emacs, editing in the appropriate TeX-buffer (assuming
that you are using latex.el)?

; -*- Joachim (email: laubsch@hplabs.hp.com tel: 415-857-7695).

darrylo@HPNMXX.HP.COM (01/24/91)

> What would the corresponing setting of TEXEDIT be, if you wanted to
> continue GNU Emacs, editing in the appropriate TeX-buffer (assuming
> that you are using latex.el)?

     TEXEDIT="/usr/local/bin/emacs +%d %s"

Ideally, though, you should be using gnuserv (although you'll probably
have to write a shell script with a little elisp to get this to work).

     -- Darryl Okahata
	UUCP: {hplabs!, hpcea!, hpfcla!} hpnmd!darrylo
	Internet: darrylo%hpnmd@hpcea.hp.com

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion or policy of Hewlett-Packard or of the
little green men that have been following him all day.