Path: utzoo!attcan!uunet!mcvax!ukc!pyrltd!lucifer!steve From: steve@lucifer.UUCP (Steve Goodwin) Newsgroups: comp.sources.d Subject: Re: less v97 edit +linenumber Message-ID: <31@lucifer.UUCP> Date: 5 Oct 88 08:53:04 GMT References: <159@libove.UUCP> Reply-To: steve@lucifer.UUCP (Steve Goodwin) Organization: Lucas Diesel Systems, Phoenix Way, Cirencester, Glos, UK (0285 67981) Lines: 29 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. ----------------------------------------------------------------------------- | Steve Goodwin | | Electronic Control Group, | | Lucas Diesel Systems, Phoenix Way, Cirencester, Glos. GL7 1QG U.K. | | Tel: (44) 285 67981 Fax: (44) 285 68258 Twx: 43561 | | | | steve@lucifer.UUCP or ..!ukc!lucifer!steve (depending on the | | peculiarities of you or your mailer). | | | -----------------------------------------------------------------------------