Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!jr@bbn.com From: jr@bbn.com (John Robinson) Newsgroups: comp.emacs Subject: Re: Line numbers Summary: Maybe try emacsclient with TeX Message-ID: <39219@bbn.COM> Date: 28 Apr 89 03:00:40 GMT References: <39135@bbn.COM> <2201@pur-phy> <8716@csli.Stanford.EDU> Sender: news@bbn.COM Reply-To: jr@bbn.com (John Robinson) Organization: BBN Systems and Technologies Corporation, Cambridge MA Lines: 31 In-reply-to: rustcat@csli.Stanford.EDU (Vallury Prabhakar) In article <8716@csli.Stanford.ED U>, rustcat@csli (Vallury Prabhakar) writes: >Another option is to use the following environment variable, > >setenv TEXEDIT "gnuemacs -l tex-start -e startline %d %s" > >Having done this, typing 'e' at the TeX error message '?' will open up a >*new* emacs process and put you at the unpleasant line. > >It's not as useful as I would like it to be, since I'm not put back into >the TeX interactive session in exiting from emacs. There must be a way >around that, but I have no idea how. I don't believe TeX is prepared to do this. How is it supposed to find its place in the file (plus any superior files that may be open) assuming that you may go and modify them anywhere with the editor? I think you may prefer to start an emacs server and send it a command using emacsclient in your TEXEDIT envariable. Assuming you are running on a machine with job control or windows, that is. Also, isn't that syntax really for Gosling emacs? In GNU, TeX-mode should be entered automtically from auto-mode-alist (for any file *.tex), and startline can be called goto-line (here we close the circle to the beginning of this whole discussion ;-). Better yet, however, is to use emacs +%d switch. Thus, setenv TEXEDIT "gnuemacs %s +%d" -- /jr jr@bbn.com or bbn!jr C'mon big money!