🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

4 total messages Started by Lindsay Patten Mon, 18 Sep 1989 23:16
Setting EDITOR
#52
Author: Lindsay Patten
Date: Mon, 18 Sep 1989 23:16
11 lines
1044 bytes
How can one set up one's EDITOR variable to pick the right emacs version
even in the face of scripts which set their own paths?  Previously, I set
my path so that I got the right one but now some scripts set their own path
and I end up getting the wrong emacs.  What is the best way of setting this
variable?

Thanks,
Lindsay Patten            "People are package deals - No substitutions allowed"
Pattern Analysis & Machine Intelligence Group                   lindsay@watnext
Department of Systems Design Engineering           lindsay@watnext.waterloo.edu
University of Waterloo              {utai|decvax|uunet}!watmath!watnext!lindsay
Re: Setting EDITOR
#56
Author: John M. Sellens
Date: Thu, 21 Sep 1989 20:32
18 lines
1335 bytes
In article <11520@watcgl.waterloo.edu> lindsay@watnext.waterloo.edu (Lindsay Patten) writes:
>How can one set up one's EDITOR variable to pick the right emacs version
>even in the face of scripts which set their own paths?  Previously, I set
>my path so that I got the right one but now some scripts set their own path
>and I end up getting the wrong emacs.  What is the best way of setting this
>variable?
>
>Thanks,
>Lindsay Patten            "People are package deals - No substitutions allowed"
>Pattern Analysis & Machine Intelligence Group                   lindsay@watnext
>Department of Systems Design Engineering           lindsay@watnext.waterloo.edu
>University of Waterloo              {utai|decvax|uunet}!watmath!watnext!lindsay


How about something like this:
   set your PATH and then
   setenv EDITOR `showpath findfirst=emacs`
which will put an abolute path to your desired emacs in the variable.
Re: Setting EDITOR
#57
Author: Andy Wai
Date: Thu, 21 Sep 1989 20:33
15 lines
1011 bytes
In article <11520@watcgl.waterloo.edu> lindsay@watnext.waterloo.edu (Lindsay Patten) writes:
>How can one set up one's EDITOR variable to pick the right emacs version
>even in the face of scripts which set their own paths?

setenv EDITOR `showpath findfirst=emacs`

>Previously, I set
>my path so that I got the right one but now some scripts set their own path
>and I end up getting the wrong emacs.  What is the best way of setting this
>variable?

That's a bug.  The script in question (icr-hardware-request I would
assume) has been fixed to restore PATH just before the editor is invoked.

Andy
Re: Setting EDITOR
#61
Author: Andy Wai
Date: Fri, 22 Sep 1989 11:39
19 lines
1047 bytes
In article <511@maytag.waterloo.edu> accwai@maytag.waterloo.edu (Andy Wai) writes:
>In article <11520@watcgl.waterloo.edu> lindsay@watnext.waterloo.edu (Lindsay Patten) writes:
>>How can one set up one's EDITOR variable to pick the right emacs version
>>even in the face of scripts which set their own paths?
>
>setenv EDITOR `showpath findfirst=emacs`

Well, come to think of it, this is bad.  Starting up a new emacs on
every little thing is expensive.  How about:

setenv EDITOR /software/emacs/etc/emacsclient

and put

(server-start)

somewhere in your .emacs file.   Anyway, just a thought...

Andy
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads