Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!purdue!decwrl!labrea!polya!nejdl From: nejdl@polya.Stanford.EDU (wolfgang) Newsgroups: comp.emacs Subject: Re: GNU Emacs and TeX Message-ID: <3468@polya.Stanford.EDU> Date: 1 Aug 88 08:09:04 GMT References: <3450@polya.Stanford.EDU> Organization: Stanford University Lines: 58 In-reply-to: nejdl@polya.Stanford.EDU's message of 30 Jul 88 06:05:49 GMT By accident, I got the answer as mail instead of as posting. So this is the (partial) answer: ---------------------------------------------------------------------- Return-Path: Date: Mon, 1 Aug 88 02:04:14 EDT From: gaynor@aramis.rutgers.edu (Silver) To: nejdl@polya.stanford.edu Subject: Re: GNU Emacs and TeX In-Reply-To: USENET article <3450@polya.Stanford.EDU> nejdl@polya.Stanford.EDU (wolfgang) writes: > [I do all my work in a subshell within [GNU?] Emacs. I want to > be able to use the edit feature of TeX in a subshell. How?] This is my original reply: Oh, I don't expect that you should have any problems with this. Simply do the following: 1. `setenv TEXEDIT /src/emacsclient' somewhere in your initialization stuff. 2. Give the command `server-start' in your emacs (maybe start up your emacs like so: emacs -f server-start). 3. This should bring you up in a buffer within your emacs, which you should finish off with a C-x # (don't bother writing this down - it's advertised). Regards, [Ag] gaynor@rutgers.edu I thought that I should take a whack at it before I sent everything off, expecting it to work easily and gracefully. However, I got this error in the subshell: ? e No pages of output. Transcript written on foo.log. Usage: /usr/local/gnuemacs/etc/emacsclient [filename] ! Trouble executing command /usr/local/gnuemacs/etc/emacsclient Anybody recognize this? Regards, [Ag] gaynor@rutgers.edu -------------------------------------------------------------------- Thank you for your answer. I tried it with 1. `setenv TEXEDIT /etc/emacsclient %s' and it worked, so only the argument was missing. However, I found no possibility of setting the cursor to the right line (where the error is found). Using emacs I can use 'setenv TEXEDIT emacs +%d %s' but I found no way to pass an argument to emacsclient. Any ideas? Wolfgang