[comp.sources.d] Less with linenumbers

aw@doc.ic.ac.uk (Andrew Weeks) (10/05/88)

>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.
>
>Does anyone have a fix for this? (or know what file I should hack
>through?) Thanks-

Try putting this patch into `main.c' of the MicroEmacs 3.9e 
distribution. It recognises a `+90' option as if it were `-g90'.
This has the advantage of making microEmacs work the same as vi,
rather than stopping the linenumber effect.
---------------------------------------------------------------------
*** main.c	Wed Oct  5 11:24:16 1988
--- main.c.org	Tue Nov 17 11:32:29 1987
***************
*** 989,998 ****
  					break;
  			}
  
- 		} else if (argv[carg][0]== '+') {
- 			gotoflag = TRUE;
- 			gline = atoi(&argv[carg][1]);
- 			
  		} else if (argv[carg][0]== '@') {
  
  			/* Process Startup macroes */
--- 989,994 ----