* ipso(1) $editor
@ 2020-03-11 15:22 Stanley Lieber
2020-03-11 22:16 ` [9front] " Steve Simon
0 siblings, 1 reply; 3+ messages in thread
From: Stanley Lieber @ 2020-03-11 15:22 UTC (permalink / raw)
To: 9front
is there a reason why ipso(1) doesn't just honor $editor, instead of convoluted tricks to prise it out of the plumber rules, or waving flags(!)? sometimes i'd like to run it with no graphics enabled. i could modify my plumber rules every time, but just defaulting to $editor seems more sensible.
sl
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] ipso(1) $editor
2020-03-11 15:22 ipso(1) $editor Stanley Lieber
@ 2020-03-11 22:16 ` Steve Simon
2020-03-12 1:49 ` sl
0 siblings, 1 reply; 3+ messages in thread
From: Steve Simon @ 2020-03-11 22:16 UTC (permalink / raw)
To: 9front
i added the code to ipso to look at the plumbing rules. at that time there was no $editor. if 9front has a $editor i would suggest you use it and modify the plumber to respect it too (it it doesn't already).
-Steve
> On 11 Mar 2020, at 3:23 pm, Stanley Lieber <sl@stanleylieber.com> wrote:
>
> is there a reason why ipso(1) doesn't just honor $editor, instead of convoluted tricks to prise it out of the plumber rules, or waving flags(!)? sometimes i'd like to run it with no graphics enabled. i could modify my plumber rules every time, but just defaulting to $editor seems more sensible.
>
> sl
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] ipso(1) $editor
2020-03-11 22:16 ` [9front] " Steve Simon
@ 2020-03-12 1:49 ` sl
0 siblings, 0 replies; 3+ messages in thread
From: sl @ 2020-03-12 1:49 UTC (permalink / raw)
To: 9front
> i added the code to ipso to look at the plumbing rules. at that time
> there was no $editor. if 9front has a $editor i would suggest you use
> it and modify the plumber to respect it too (it it doesn't already).
maybe i brought this notion with me from unix, but i was pretty sure at
least some plan 9 programs check for $editor in the environment.
haha:
mars2; cd /sys/src/cmd
mars2; grep editor */*
abaco/plumbing:editor = acme
acme/dat.h: Buffer *elogbuf; /* log of pending editor changes */
dict/movie.c: ED, /* editor */
dict/oed.c: Ed, /* editor's comments (in [...]) */
hg/hgeditor:# If you want to pass your favourite editor some other parameters
hg/hgeditor:HGTMP="${TMPDIR-/tmp}/hgeditor.$RANDOM.$RANDOM.$RANDOM.$$"
postscript/README: LDFLGS common link editor options - used to build LDFLAGS in the
postscript/postscript.mk:# LDFLGS common link editor options - used to build LDFLAGS in the
spell/list:coeditor n
spell/list:creditor n
spell/list:editor n
spell/list:editorial n,a,na
spell/list:expeditor n
mars2; cd /rc/bin
mars2; grep editor *
ipso:editor = (acme -c1)
ipso:edexp=`{grep '^editor=' /mnt/plumb/rules >[2]/dev/null}
ipso: editor = sam
ipso: Warning: The editor will display the secret contents of
ipso:if(~ $edit yes) $editor `{for(i in $files) basename $i}
newt:if(~ $#editor 0)
newt: editor=hold
newt: eval $editor /tmp/post
newt: echo editor: $editor
mars2;
sl
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-12 1:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 15:22 ipso(1) $editor Stanley Lieber
2020-03-11 22:16 ` [9front] " Steve Simon
2020-03-12 1:49 ` sl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).