Path: utzoo!attcan!uunet!husc6!uwvax!rutgers!rochester!pt.cs.cmu.edu!cadre!pitt!darth!investor!news From: news@investor.UUCP ( Bob Peirce) Newsgroups: comp.sources.d Subject: Re: less v97 edit +linenumber Message-ID: <1023@investor.UUCP> Date: 15 Oct 88 23:36:13 GMT References: <159@libove.UUCP> <31@lucifer.UUCP> Reply-To: rbp@invest.UUCP (Bob Peirce #74) Organization: Cookson, Peirce & Co., Pittsburgh, PA Lines: 29 In article <31@lucifer.UUCP> steve@lucifer.UUCP (Steve Goodwin) writes: >In article <159@libove.UUCP> root@libove.UUCP (Jay M. Libove) writes: >> >>The recently posted less version 97 differs from its predecessor (I have >>version 73) in the way it handles the "v" (edit file) command. >> >>Less v73 would only give to +linenumber argument to the editor if the >>editor was vi or ex, but v97 gives it anyway, and in the case of (the >>admittedly brain damaged) microemacs (v3.9e) the command "emacs +l f" >>edits two files, +l and f, and only starts the display screen with +l >>open. >> >>............... > >I had a similar problem, you need to patch command.c in the >vicinity of line 715. >Put in a bit of code to check whether EDITOR is vi or ex (or >whatever) and select the relevant editor-calling routine. Actually, the better thing to do is to modify uEmacs to use +line. I haven't installed 3.9e yet, but my older version of 3.9 has been modified to work with many programs that try to start up at a line number. I can't get to the source to check what I did right now, but it was in main where you are checking the command line. -- Bob Peirce, Pittsburgh, PA 412-471-5320 uucp: ...!{allegra, bellcore, cadre, idis, psuvax1}!pitt!investor!rbp NOTE: Mail must be < 30K bytes/message