Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rphroy!caen!uwm.edu!src.honeywell.com!msi.umn.edu!noc.MR.NET!gacvx2.gac.edu!dan From: dan@gacvx2.gac.edu Newsgroups: comp.sys.next Subject: Re: neat feature in "more" Message-ID: <1991Feb27.172938.133@gacvx2.gac.edu> Date: 27 Feb 91 23:29:38 GMT References: <435@heaven.woodside.ca.us> <5376@media-lab.MEDIA.MIT.EDU> Organization: Gustavus Adolphus College, St. Peter, Minnesota Lines: 47 In article , scott@erick.gac.edu (Scott Hess) writes: > 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 . . ." I don't have "EL2" installed and I still get "openfile: Can't connect to Edit". Any ideas. -- Dan Boehlke Internet: dan@gac.edu Campus Network Manager BITNET: dan@gacvax1.bitnet Gustavus Adolphus College St. Peter, MN 56082 USA Phone: (507)933-7596