Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uwm.edu!src.honeywell.com!msi.umn.edu!noc.MR.NET!gacvx2.gac.edu!gacvx2.gac.edu!scott From: scott@erick.gac.edu (Scott Hess) Newsgroups: comp.sys.next Subject: Re: neat feature in "more" Message-ID: Date: 27 Feb 91 14:20:23 GMT References: <435@heaven.woodside.ca.us> <5376@media-lab.MEDIA.MIT.EDU> Organization: Gustavus Adolphus College Lines: 37 Nntp-Posting-Host: erick.gac.edu In-reply-to: lacsap@plethora.media.mit.edu's message of 26 Feb 91 18:55:49 GMTLines: 37 In article <5376@media-lab.MEDIA.MIT.EDU> lacsap@plethora.media.mit.edu (Pascal Chesnais) writes: In article <435@heaven.woodside.ca.us> glenn@heaven.woodside.ca.us (Glenn Reid) writes: > > After a little experimentation and hitting "?" for documentation, > I found out that if you hit 'o' while you're in more(1), the file > that you're currently viewing will be opened in Edit. Pretty neat. Note this does not work if you have used simsong's EL2 stuff to open docs... I won't ask_next to figure out why, and I don't have sources to find out for myself. error generated: openfile: Can't connect to Edit This is for the same reason you probably can't do it by dbl-clicking on a source file in InterfaceBuilder (well, at least you couldn't in 1.0). For some reason or another, NeXT chose to code it as an openfile(1) call rather than an open(1) call. Why? I don't know. But, this means that any non-Edit editor you come up with won't interact all that well with InterfaceBuilder, more, and presumably other programs (though I've not run across any, yet). One fix you _might_ attempt would be to replace openfile with some other program (like an emacs-client). I'm not sure if it is good enough to place an openfile command in your path before /usr/bin, or if you'd have to physically replace openfile (probably wouldn't be the the best idea unless you are the only user :-). Later, -- scott hess scott@gac.edu Independent NeXT Developer GAC Undergrad "Tried anarchy, once. Found it had too many constraints . . ." "Buy `Sweat 'n wit '2 Live Crew'`, a new weight loss program by Richard Simmons . . ."