diff --git a/less-429-mouse.patch b/less-429-mouse.patch index a38e182..7d84f3a 100644 --- a/less-429-mouse.patch +++ b/less-429-mouse.patch @@ -1,11 +1,28 @@ +--- + Makefile.in | 3 + cmd.h | 8 + + command.c | 237 +++++++++++++++++++++++++++++++++++++++++++++++++++ + decode.c | 33 +++++++ + defines.h.in | 6 - + funcs.h | 10 ++ + less.hlp | 2 + less.nro | 18 +++ + main.c | 1 + optfunc.c | 24 +++++ + opttbl.c | 11 ++ + output.c | 22 ++++ + screen.c | 42 +++++++++ + selection.c | 271 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 14 files changed, 680 insertions(+), 8 deletions(-) + Index: Makefile.in =================================================================== ---- Makefile.in.orig 2009-02-24 03:39:21.000000000 +0100 -+++ Makefile.in 2009-06-03 15:17:47.000000000 +0200 -@@ -48,7 +48,8 @@ OBJ = main.${O} screen.${O} brac.${O} ch +--- Makefile.in.orig 2009-06-30 21:27:08.000000000 +0200 ++++ Makefile.in 2009-07-07 15:46:59.000000000 +0200 +@@ -49,7 +49,8 @@ OBJ = \ help.${O} ifile.${O} input.${O} jump.${O} line.${O} linenum.${O} \ lsystem.${O} mark.${O} optfunc.${O} option.${O} opttbl.${O} os.${O} \ - output.${O} position.${O} prompt.${O} search.${O} signal.${O} \ + output.${O} pattern.${O} position.${O} prompt.${O} search.${O} signal.${O} \ - tags.${O} ttyin.${O} version.${O} @REGEX_O@ + tags.${O} ttyin.${O} version.${O} @REGEX_O@ \ + selection.${O} @@ -14,8 +31,8 @@ Index: Makefile.in Index: cmd.h =================================================================== ---- cmd.h.orig 2008-05-29 18:46:47.000000000 +0200 -+++ cmd.h 2009-06-03 15:17:47.000000000 +0200 +--- cmd.h.orig 2009-06-30 21:27:09.000000000 +0200 ++++ cmd.h 2009-07-07 15:46:59.000000000 +0200 @@ -67,6 +67,10 @@ #define A_PREV_TAG 54 #define A_FILTER 55 @@ -37,17 +54,8 @@ Index: cmd.h +#define M_MULTICHAR_COMMAND 2 Index: command.c =================================================================== ---- command.c.orig 2009-03-30 21:45:51.000000000 +0200 -+++ command.c 2009-06-03 15:19:41.000000000 +0200 -@@ -4,7 +4,7 @@ - * You may distribute under the terms of either the GNU General Public - * License or the Less License, as specified in the README file. - * -- * For more information about less, or for information on how to -+ * For more information about less, or for information on how to - * contact the author, see the README file. - */ - +--- command.c.orig 2009-06-30 21:27:09.000000000 +0200 ++++ command.c 2009-07-07 15:46:59.000000000 +0200 @@ -56,7 +56,7 @@ extern int oldbot; extern int forw_prompt; @@ -68,132 +76,6 @@ Index: command.c static void multi_search(); -@@ -122,7 +126,7 @@ mca_search() - #if HILITE_SEARCH - if (search_type & SRCH_FILTER) - mca = A_FILTER; -- else -+ else - #endif - if (search_type & SRCH_FORW) - mca = A_F_SEARCH; -@@ -146,7 +150,7 @@ mca_search() - #if HILITE_SEARCH - if (search_type & SRCH_FILTER) - cmd_putstr("&/"); -- else -+ else - #endif - if (search_type & SRCH_FORW) - cmd_putstr("/"); -@@ -164,7 +168,7 @@ mca_opt_toggle() - int no_prompt; - int flag; - char *dash; -- -+ - no_prompt = (optflag & OPT_NO_PROMPT); - flag = (optflag & ~OPT_NO_PROMPT); - dash = (flag == OPT_NO_TOGGLE) ? "_" : "-"; -@@ -313,7 +317,7 @@ mca_char(c) - * Entering digits of a number. - * Terminated by a non-digit. - */ -- if (!((c >= '0' && c <= '9') || c == '.') && -+ if (!((c >= '0' && c <= '9') || c == '.') && - editchar(c, EC_PEEK|EC_NOHISTORY|EC_NOCOMPLETE|EC_NORIGHTLEFT) == A_INVALID) - { - /* -@@ -383,7 +387,7 @@ mca_char(c) - /* - * We're getting a long option name. - * See if we've matched an option name yet. -- * If so, display the complete name and stop -+ * If so, display the complete name and stop - * accepting chars until user hits RETURN. - */ - struct loption *o; -@@ -487,7 +491,7 @@ mca_char(c) - case A_FILTER: - /* - * Special case for search commands. -- * Certain characters as the first char of -+ * Certain characters as the first char of - * the pattern have special meaning: - * ! Toggle the NO_MATCH flag - * * Toggle the PAST_EOF flag -@@ -602,7 +606,7 @@ make_display() - /* - * {{ Maybe this should be: - * jump_loc(ch_zero(), jump_sline); -- * but this behavior seems rather unexpected -+ * but this behavior seems rather unexpected - * on the first screen. }} - */ - jump_loc(ch_zero(), 1); -@@ -638,7 +642,7 @@ prompt() - if (ungotp != NULL && ungotp > ungot) - { - /* -- * No prompt necessary if commands are from -+ * No prompt necessary if commands are from - * ungotten chars rather than from the user. - */ - return; -@@ -654,7 +658,7 @@ prompt() - * If we've hit EOF on the last file and the -E flag is set, quit. - */ - if (get_quit_at_eof() == OPT_ONPLUS && -- eof_displayed() && !(ch_getflags() & CH_HELPFILE) && -+ eof_displayed() && !(ch_getflags() & CH_HELPFILE) && - next_ifile(curr_ifile) == NULL_IFILE) - quit(QUIT_OK); - -@@ -662,12 +666,12 @@ prompt() - * If the entire file is displayed and the -F flag is set, quit. - */ - if (quit_if_one_screen && -- entire_file_displayed() && !(ch_getflags() & CH_HELPFILE) && -+ entire_file_displayed() && !(ch_getflags() & CH_HELPFILE) && - next_ifile(curr_ifile) == NULL_IFILE) - quit(QUIT_OK); - - #if MSDOS_COMPILER==WIN32C -- /* -+ /* - * In Win32, display the file name in the window title. - */ - if (!(ch_getflags() & CH_HELPFILE)) -@@ -677,9 +681,9 @@ prompt() - * Select the proper prompt and display it. - */ - /* -- * If the previous action was a forward movement, -+ * If the previous action was a forward movement, - * don't clear the bottom line of the display; -- * just print the prompt since the forward movement guarantees -+ * just print the prompt since the forward movement guarantees - * that we're in the right position to display the prompt. - * Clearing the line could cause a problem: for example, if the last - * line displayed ended at the right screen edge without a newline, -@@ -759,7 +763,7 @@ getcc() - /* - * We have "/string" but no newline. Add the \n. - */ -- return ('\n'); -+ return ('\n'); - - default: - /* -@@ -821,7 +825,7 @@ multi_search(pattern, n) - if (search_type & SRCH_FIRST_FILE) - { - /* -- * Start at the first (or last) file -+ * Start at the first (or last) file - * in the command line list. - */ - if (search_type & SRCH_FORW) @@ -900,13 +904,218 @@ multi_search(pattern, n) } @@ -422,15 +304,6 @@ Index: command.c switch (mca_char(c)) { case MCA_MORE: -@@ -1002,7 +1212,7 @@ commands() - * We're in a multichar command. - * Add the character to the command buffer - * and display it on the screen. -- * If the user backspaces past the start -+ * If the user backspaces past the start - * of the line, abort the command. - */ - if (cmd_char(c) == CC_QUIT || len_cmdbuf() == 0) @@ -1041,6 +1251,29 @@ commands() switch (action) @@ -461,95 +334,10 @@ Index: command.c case A_DIGIT: /* * First digit of a number. -@@ -1127,7 +1360,7 @@ commands() - cmd_exec(); - backward((int) number, 1, 0); - break; -- -+ - case A_FF_SCREEN: - /* - * Force forward one screen. -@@ -1156,8 +1389,8 @@ commands() - } - ignore_eoi = 0; - /* -- * This gets us back in "F mode" after processing -- * a non-abort signal (e.g. window-change). -+ * This gets us back in "F mode" after processing -+ * a non-abort signal (e.g. window-change). - */ - if (sigs && !ABORT_SIGS()) - newaction = A_F_FOREVER; -@@ -1165,7 +1398,7 @@ commands() - - case A_F_SCROLL: - /* -- * Forward N lines -+ * Forward N lines - * (default same as last 'd' or 'u' command). - */ - if (number > 0) -@@ -1178,7 +1411,7 @@ commands() - - case A_B_SCROLL: - /* -- * Forward N lines -+ * Forward N lines - * (default same as last 'd' or 'u' command). - */ - if (number > 0) -@@ -1274,7 +1507,7 @@ commands() - /* - * Exit. - */ -- if (curr_ifile != NULL_IFILE && -+ if (curr_ifile != NULL_IFILE && - ch_getflags() & CH_HELPFILE) - { - /* -@@ -1342,7 +1575,7 @@ commands() - */ - DO_SEARCH(); - break; -- -+ - case A_T_AGAIN_SEARCH: - /* - * Repeat previous search, multiple files. -@@ -1362,8 +1595,8 @@ commands() - break; - - case A_T_REVERSE_SEARCH: -- /* -- * Repeat previous search, -+ /* -+ * Repeat previous search, - * multiple files in reverse direction. - */ - save_search_type = search_type; -@@ -1406,7 +1639,7 @@ commands() - error("Command not available", NULL_PARG); - break; - #endif -- -+ - case A_VISUAL: - /* - * Invoke an editor on the input file. -@@ -1460,7 +1693,7 @@ commands() - number = 1; - if (edit_next((int) number)) - { -- if (get_quit_at_eof() && eof_displayed() && -+ if (get_quit_at_eof() && eof_displayed() && - !(ch_getflags() & CH_HELPFILE)) - quit(QUIT_OK); - parg.p_string = (number > 1) ? "(N-th) " : ""; Index: decode.c =================================================================== ---- decode.c.orig 2009-03-30 21:45:51.000000000 +0200 -+++ decode.c 2009-06-03 15:17:47.000000000 +0200 +--- decode.c.orig 2009-06-30 21:27:09.000000000 +0200 ++++ decode.c 2009-07-07 15:46:59.000000000 +0200 @@ -166,6 +166,13 @@ static unsigned char cmdtable[] = 'Z','Z',0, A_QUIT }; @@ -622,22 +410,33 @@ Index: decode.c */ Index: defines.h.in =================================================================== ---- defines.h.in.orig 2009-06-03 15:16:21.000000000 +0200 -+++ defines.h.in 2009-06-03 15:17:47.000000000 +0200 -@@ -183,7 +183,7 @@ - * Sizes of various buffers. - */ - #define CMDBUF_SIZE 512 /* Buffer for multichar commands */ --#define UNGOT_SIZE 100 /* Max chars to unget() */ -+#define UNGOT_SIZE 10000 /* Max chars to unget() */ - #define LINEBUF_SIZE 1024 /* Max size of line in input file */ - #define OUTBUF_SIZE 1024 /* Output buffer */ - #define PROMPT_SIZE 200 /* Max size of prompt string */ +--- defines.h.in.orig 2009-07-07 15:46:58.000000000 +0200 ++++ defines.h.in 2009-07-07 15:47:17.000000000 +0200 +@@ -219,9 +219,6 @@ + /* Define HAVE_FILENO if you have the fileno() macro. */ + #undef HAVE_FILENO + +-/* Define to 1 if you have the `tcdrain' function. */ +-#undef HAVE_TCDRAIN +- + /* Define to 1 if you have the header file. */ + #undef HAVE_INTTYPES_H + +@@ -321,6 +318,9 @@ + /* Define to 1 if you have the header file. */ + #undef HAVE_SYS_TYPES_H + ++/* Define to 1 if you have the `tcdrain' function. */ ++#undef HAVE_TCDRAIN ++ + /* Define to 1 if you have the header file. */ + #undef HAVE_TERMCAP_H + Index: funcs.h =================================================================== ---- funcs.h.orig 2008-06-09 19:11:24.000000000 +0200 -+++ funcs.h 2009-06-03 15:17:47.000000000 +0200 -@@ -86,8 +86,10 @@ +--- funcs.h.orig 2009-06-30 21:27:31.000000000 +0200 ++++ funcs.h 2009-07-07 15:58:03.000000000 +0200 +@@ -89,8 +89,10 @@ public void init_cmds (); public void add_fcmd_table (); public void add_ecmd_table (); @@ -648,7 +447,7 @@ Index: funcs.h public char * lgetenv (); public int lesskey (); public void add_hometable (); -@@ -188,6 +190,7 @@ +@@ -191,6 +193,7 @@ public void gomark (); public POSITION markpos (); public void unmark (); @@ -656,7 +455,7 @@ Index: funcs.h public void opt_o (); public void opt__O (); public void opt_l (); -@@ -278,3 +281,10 @@ +@@ -288,3 +291,10 @@ public void open_getchr (); public void close_getchr (); public int getchr (); @@ -669,8 +468,8 @@ Index: funcs.h + public void deinit_mouse_support(); Index: less.hlp =================================================================== ---- less.hlp.orig 2009-04-11 02:01:43.000000000 +0200 -+++ less.hlp 2009-06-03 15:17:47.000000000 +0200 +--- less.hlp.orig 2009-06-30 21:27:30.000000000 +0200 ++++ less.hlp 2009-07-07 15:58:01.000000000 +0200 @@ -112,6 +112,8 @@ Display help (from command line). -a ........ --search-skip-screen @@ -682,8 +481,8 @@ Index: less.hlp -B ........ --auto-buffers Index: less.nro =================================================================== ---- less.nro.orig 2009-04-11 19:52:18.000000000 +0200 -+++ less.nro 2009-06-03 15:19:41.000000000 +0200 +--- less.nro.orig 2009-06-30 21:29:16.000000000 +0200 ++++ less.nro 2009-07-07 15:58:01.000000000 +0200 @@ -10,7 +10,7 @@ less \- opposite of more .br .B "less \-\-version" @@ -693,201 +492,7 @@ Index: less.nro .br .B " [\-b \fIspace\fP] [\-h \fIlines\fP] [\-j \fIline\fP] [\-k \fIkeyfile\fP]" .br -@@ -24,7 +24,7 @@ less \- opposite of more - - .SH DESCRIPTION - .I Less --is a program similar to -+is a program similar to - .I more - (1), but which allows backward movement - in the file as well as forward movement. -@@ -45,7 +45,7 @@ Commands are based on both - .I more - and - .I vi. --Commands may be preceded by a decimal number, -+Commands may be preceded by a decimal number, - called N in the descriptions below. - The number is used by some commands, as indicated. - -@@ -70,7 +70,7 @@ Scroll forward N lines, default 1. - The entire N lines are displayed, even if N is more than the screen size. - .IP "d or ^D" - Scroll forward N lines, default one half of the screen size. --If N is specified, it becomes the new default for -+If N is specified, it becomes the new default for - subsequent d and u commands. - .IP "b or ^B or ESC-v" - Scroll backward N lines, default one window (see option \-z below). -@@ -83,7 +83,7 @@ The entire N lines are displayed, even i - Warning: some systems use ^Y as a special job control character. - .IP "u or ^U" - Scroll backward N lines, default one half of the screen size. --If N is specified, it becomes the new default for -+If N is specified, it becomes the new default for - subsequent d and u commands. - .IP "ESC-) or RIGHTARROW" - Scroll horizontally right N characters, default half the screen width -@@ -150,16 +150,16 @@ Like }, but applies to square brackets r - Followed by two characters, - acts like {, but uses the two characters as open and close brackets, - respectively. --For example, "ESC ^F < >" could be used to -+For example, "ESC ^F < >" could be used to - go forward to the > which matches the < in the top displayed line. - .IP "ESC-^B" - Followed by two characters, - acts like }, but uses the two characters as open and close brackets, - respectively. --For example, "ESC ^B < >" could be used to -+For example, "ESC ^B < >" could be used to - go backward to the < which matches the > in the bottom displayed line. - .IP m --Followed by any lowercase letter, -+Followed by any lowercase letter, - marks the current position with that letter. - .IP "'" - (Single quote.) -@@ -189,7 +189,7 @@ they modify the type of search rather th - Search for lines which do NOT match the pattern. - .IP "^E or *" - Search multiple files. --That is, if the search reaches the END of the current file -+That is, if the search reaches the END of the current file - without finding a match, - the search continues in the next file in the command line list. - .IP "^F or @" -@@ -198,7 +198,7 @@ in the command line list, - regardless of what is currently displayed on the screen - or the settings of the \-a or \-j options. - .IP "^K" --Highlight any text which matches the pattern on the current screen, -+Highlight any text which matches the pattern on the current screen, - but don't move to the first match (KEEP current position). - .IP "^R" - Don't interpret regular expression metacharacters; -@@ -214,7 +214,7 @@ Certain characters are special as in the - Search for lines which do NOT match the pattern. - .IP "^E or *" - Search multiple files. --That is, if the search reaches the beginning of the current file -+That is, if the search reaches the beginning of the current file - without finding a match, - the search continues in the previous file in the command line list. - .IP "^F or @" -@@ -250,7 +250,7 @@ Repeat previous search, but in the rever - and crossing file boundaries. - .IP "ESC-u" - Undo search highlighting. --Turn off highlighting of strings matching the current search pattern. -+Turn off highlighting of strings matching the current search pattern. - If highlighting is already off because of a previous ESC-u command, - turn highlighting back on. - Any search command will also turn highlighting back on. -@@ -278,10 +278,10 @@ Examine a new file. - If the filename is missing, the "current" file (see the :n and :p commands - below) from the list of files in the command line is re-examined. - A percent sign (%) in the filename is replaced by the name of the --current file. -+current file. - A pound sign (#) is replaced by the name of the previously examined file. --However, two consecutive percent signs are simply --replaced with a single percent sign. -+However, two consecutive percent signs are simply -+replaced with a single percent sign. - This allows you to enter a filename that contains a percent sign - in the name. - Similarly, two consecutive pound signs are replaced with a single pound sign. -@@ -334,7 +334,7 @@ the current setting is printed and nothi - Like the \- command, but takes a long option name (see OPTIONS below) - rather than a single option letter. - You must press RETURN after typing the option name. --A ^P immediately after the second dash suppresses printing of a -+A ^P immediately after the second dash suppresses printing of a - message describing the new setting, as in the \- command. - .IP \-+ - Followed by one of the command line option letters -@@ -366,19 +366,19 @@ rather than a single option letter. - You must press RETURN after typing the option name. - .IP +cmd - Causes the specified cmd to be executed each time a new file is examined. --For example, +G causes -+For example, +G causes - .I less --to initially display each file starting at the end -+to initially display each file starting at the end - rather than the beginning. - .IP V --Prints the version number of --.I less -+Prints the version number of -+.I less - being run. - .IP "q or Q or :q or :Q or ZZ" - Exits - .I less. - .PP --The following -+The following - four - commands may or may not be valid, depending on your particular installation. - .PP -@@ -391,7 +391,7 @@ See also the discussion of LESSEDIT unde - .IP "! shell-command" - Invokes a shell to run the shell-command given. - A percent sign (%) in the command is replaced by the name of the --current file. -+current file. - A pound sign (#) is replaced by the name of the previously examined file. - "!!" repeats the last shell command. - "!" with no shell command simply invokes a shell. -@@ -412,10 +412,10 @@ This only works if the input is a pipe, - .SH OPTIONS - Command line options are described below. - Most options may be changed while --.I less -+.I less - is running, via the "\-" command. - .PP --Most options may be given in one of two forms: -+Most options may be given in one of two forms: - either a dash followed by a single letter, - or two dashes followed by a long option name. - A long option name may be abbreviated as long as -@@ -429,20 +429,20 @@ the remainder of the name may be in eith - For example, \-\-Quit-at-eof is equivalent to \-\-QUIT-AT-EOF. - .PP - Options are also taken from the environment variable "LESS". --For example, --to avoid typing "less \-options ..." each time --.I less --is invoked, you might tell -+For example, -+to avoid typing "less \-options ..." each time -+.I less -+is invoked, you might tell - .I csh: - .sp - setenv LESS "-options" - .sp --or if you use -+or if you use - .I sh: - .sp - LESS="-options"; export LESS - .sp --On MS-DOS, you don't need the quotes, but you should replace any -+On MS-DOS, you don't need the quotes, but you should replace any - percent signs in the options string by double percent signs. - .sp - The environment variable is parsed before the command line, -@@ -466,17 +466,33 @@ This option displays a summary of the co - it may be necessary to quote the question mark, thus: "\-\e?".) - .IP "\-a or \-\-search-skip-screen" - Causes searches to start after the last line --displayed on the screen, -+displayed on the screen, +@@ -470,6 +470,22 @@ displayed on the screen, thus skipping all lines displayed on the screen. By default, searches start at the second line on the screen (or after the last found line; see the \-j option). @@ -910,663 +515,10 @@ Index: less.nro .IP "\-b\fIn\fP or \-\-buffers=\fIn\fP" Specifies the amount of buffer space .I less - will use for each file, in units of kilobytes (1024 bytes). - By default 64K of buffer space is used for each file - (unless the file is a pipe; see the \-B option). --The \-b option specifies instead that \fIn\fP kilobytes of -+The \-b option specifies instead that \fIn\fP kilobytes of - buffer space should be used for each file. - If \fIn\fP is \-1, buffer space is unlimited; that is, - the entire file can be read into memory. -@@ -486,18 +502,18 @@ buffers are allocated automatically as n - If a large amount of data is read from the pipe, this can cause - a large amount of memory to be allocated. - The \-B option disables this automatic allocation of buffers for pipes, --so that only 64K -+so that only 64K - (or the amount of space specified by the \-b option) - is used for the pipe. - Warning: use of \-B can result in erroneous display, since only the --most recently viewed part of the piped data is kept in memory; -+most recently viewed part of the piped data is kept in memory; - any earlier data is lost. - .IP "\-c or \-\-clear-screen" - Causes full screen repaints to be painted from the top line down. - By default, - full screen repaints are done by scrolling from the bottom of the screen. - .IP "\-C or \-\-CLEAR-SCREEN" --Same as \-c, for compatibility with older versions of -+Same as \-c, for compatibility with older versions of - .I less. - .IP "\-d or \-\-dumb" - The \-d option suppresses the error message -@@ -510,24 +526,24 @@ on a dumb terminal. - .IP "\-D\fBx\fP\fIcolor\fP or \-\-color=\fBx\fP\fIcolor\fP" - [MS-DOS only] - Sets the color of the text displayed. --\fBx\fP is a single character which selects the type of text whose color is -+\fBx\fP is a single character which selects the type of text whose color is - being set: n=normal, s=standout, d=bold, u=underlined, k=blink. --\fIcolor\fP is a pair of numbers separated by a period. --The first number selects the foreground color and the second selects -+\fIcolor\fP is a pair of numbers separated by a period. -+The first number selects the foreground color and the second selects - the background color of the text. - A single number \fIN\fP is the same as \fIN.M\fP, - where \fIM\fP is the normal background color. - - .IP "\-e or \-\-quit-at-eof" --Causes --.I less -+Causes -+.I less - to automatically exit - the second time it reaches end-of-file. --By default, the only way to exit -+By default, the only way to exit - .I less - is via the "q" command. - .IP "\-E or \-\-QUIT-AT-EOF" --Causes -+Causes - .I less - to automatically exit the first time it reaches end-of-file. - .IP "\-f or \-\-force" -@@ -545,13 +561,13 @@ Causes - to automatically exit - if the entire file can be displayed on the first screen. - .IP "\-g or \-\-hilite-search" --Normally, --.I less -+Normally, -+.I less - will highlight ALL strings which match the last search command. --The \-g option changes this behavior to highlight only the particular string -+The \-g option changes this behavior to highlight only the particular string - which was found by the last search command. --This can cause --.I less -+This can cause -+.I less - to run somewhat faster than the default. - .IP "\-G or \-\-HILITE-SEARCH" - The \-G option suppresses all highlighting of strings found by search commands. -@@ -565,11 +581,11 @@ backward, \-h0 is implied.) - Causes searches to ignore case; that is, - uppercase and lowercase are considered identical. - This option is ignored if any uppercase letters --appear in the search pattern; -+appear in the search pattern; - in other words, - if a pattern contains uppercase letters, then that search does not ignore case. - .IP "\-I or \-\-IGNORE-CASE" --Like \-i, but searches ignore case even if -+Like \-i, but searches ignore case even if - the pattern contains uppercase letters. - .IP "\-j\fIn\fP or \-\-jump-target=\fIn\fP" - Specifies a line on the screen where the "target" line -@@ -588,7 +604,7 @@ screen, .3 is three tenths down from the - If the line is specified as a fraction, the actual line number - is recalculated if the terminal window is resized, so that the - target line remains at the specified fraction of the screen height. --If any form of the \-j option is used, -+If any form of the \-j option is used, - forward searches begin at the line immediately after the target line, - and backward searches begin at the target line. - For example, if "\-j4" is used, the target line is the -@@ -607,7 +623,7 @@ to open and interpret the named file as - Multiple \-k options may be specified. - If the LESSKEY or LESSKEY_SYSTEM environment variable is set, or - if a lesskey file is found in a standard place (see KEY BINDINGS), --it is also used as a -+it is also used as a - .I lesskey - file. - .IP "\-K or \-\-quit-on-intr" -@@ -617,16 +633,16 @@ to exit immediately when an interrupt ch - Normally, an interrupt character causes - .I less - to stop whatever it is doing and return to its command prompt. --Note that use of this option makes it impossible to return to the -+Note that use of this option makes it impossible to return to the - command prompt from the "F" command. - .IP "\-L or \-\-no-lessopen" - Ignore the LESSOPEN environment variable - (see the INPUT PREPROCESSOR section below). --This option can be set from within \fIless\fP, --but it will apply only to files opened subsequently, not to the -+This option can be set from within \fIless\fP, -+but it will apply only to files opened subsequently, not to the - file which is currently open. - .IP "\-m or \-\-long-prompt" --Causes -+Causes - .I less - to prompt verbosely (like \fImore\fP), - with the percent into the file. -@@ -634,9 +650,9 @@ By default, - .I less - prompts with a colon. - .IP "\-M or \-\-LONG-PROMPT" --Causes -+Causes - .I less --to prompt even more verbosely than -+to prompt even more verbosely than - .I more. - .IP "\-n or \-\-line-numbers" - Suppresses line numbers. -@@ -657,7 +673,7 @@ Causes - to copy its input to the named file as it is being viewed. - This applies only when the input file is a pipe, - not an ordinary file. --If the file already exists, -+If the file already exists, - .I less - will ask for confirmation before overwriting it. - .IP "\-O\fIfilename\fP or \-\-LOG-FILE=\fIfilename\fP" -@@ -665,14 +681,14 @@ The \-O option is like \-o, but it will - file without asking for confirmation. - .sp - If no log file has been specified, --the \-o and \-O options can be used from within -+the \-o and \-O options can be used from within - .I less - to specify a log file. - Without a file name, they will simply report the name of the log file. - The "s" command is equivalent to specifying \-o from within - .I less. - .IP "\-p\fIpattern\fP or \-\-pattern=\fIpattern\fP" --The \-p option on the command line is equivalent to -+The \-p option on the command line is equivalent to - specifying +/\fIpattern\fP; - that is, it tells - .I less -@@ -681,24 +697,24 @@ to start at the first occurrence of \fIp - Provides a way to tailor the three prompt - styles to your own preference. - This option would normally be put in the LESS environment --variable, rather than being typed in with each -+variable, rather than being typed in with each - .I less - command. - Such an option must either be the last option in the LESS variable, - or be terminated by a dollar sign. ---Ps followed by a string changes the default (short) prompt -+-Ps followed by a string changes the default (short) prompt - to that string. - -Pm changes the medium (\-m) prompt. - -PM changes the long (\-M) prompt. - -Ph changes the prompt for the help screen. - -P= changes the message printed by the = command. - -Pw changes the message printed while waiting for data (in the F command). --All prompt strings consist of a sequence of -+All prompt strings consist of a sequence of - letters and special escape sequences. - See the section on PROMPTS for more details. - .IP "\-q or \-\-quiet or \-\-silent" - Causes moderately "quiet" operation: --the terminal bell is not rung -+the terminal bell is not rung - if an attempt is made to scroll past the end of the file - or before the beginning of the file. - If the terminal has a "visual bell", it is used instead. -@@ -726,7 +742,7 @@ ANSI "color" escape sequences are sequen - .sp - ESC [ ... m - .sp --where the "..." is zero or more color specification characters -+where the "..." is zero or more color specification characters - For the purpose of keeping track of screen appearance, - ANSI color escape sequences are assumed to not move the cursor. - You can make -@@ -734,9 +750,9 @@ You can make - think that characters other than "m" can end ANSI color escape sequences - by setting the environment variable LESSANSIENDCHARS to the list of - characters which can end a color escape sequence. --And you can make --.I less --think that characters other than the standard ones may appear between -+And you can make -+.I less -+think that characters other than the standard ones may appear between - the ESC and the m by setting the environment variable LESSANSIMIDCHARS - to the list of characters which can appear. - .IP "\-s or \-\-squeeze-blank-lines" -@@ -756,16 +772,16 @@ The \-t option, followed immediately by - will edit the file containing that tag. - For this to work, tag information must be available; - for example, there may be a file in the current directory called "tags", --which was previously built by -+which was previously built by - .I ctags - (1) or an equivalent command. - If the environment variable LESSGLOBALTAGS is set, it is taken to be --the name of a command compatible with -+the name of a command compatible with - .I global - (1), and that command is executed to find the tag. - (See http://www.gnu.org/software/global/global.html). --The \-t option may also be specified from within --.I less -+The \-t option may also be specified from within -+.I less - (using the \- command) as a way of examining a new file. - The command ":t" is equivalent to specifying \-t from within - .I less. -@@ -775,18 +791,18 @@ Specifies a tags file to be used instead - Causes backspaces and carriage returns to be treated as printable characters; - that is, they are sent to the terminal when they appear in the input. - .IP "\-U or \-\-UNDERLINE-SPECIAL" --Causes backspaces, tabs and carriage returns to be -+Causes backspaces, tabs and carriage returns to be - treated as control characters; - that is, they are handled as specified by the \-r option. - .sp - By default, if neither \-u nor \-U is given, - backspaces which appear adjacent to an underscore character - are treated specially: --the underlined text is displayed -+the underlined text is displayed - using the terminal's hardware underlining capability. - Also, backspaces which appear between two identical characters --are treated specially: --the overstruck text is printed -+are treated specially: -+the overstruck text is printed - using the terminal's hardware boldface capability. - Other backspaces are deleted, along with the preceding character. - Carriage returns immediately followed by a newline are deleted. -@@ -794,7 +810,7 @@ other carriage returns are handled as sp - Text which is overstruck or underlined can be searched for - if neither \-u nor \-U is in effect. - .IP "\-V or \-\-version" --Displays the version number of -+Displays the version number of - .I less. - .IP "\-w or \-\-hilite-unread" - Temporarily highlights the first "new" line after a forward movement -@@ -806,7 +822,7 @@ The highlight is removed at the next com - The entire line is highlighted, unless the \-J option is in effect, - in which case only the status column is highlighted. - .IP "\-W or \-\-HILITE-UNREAD" --Like \-w, but temporarily highlights the first new line after any -+Like \-w, but temporarily highlights the first new line after any - forward movement command larger than one line. - .IP "\-x\fIn\fP,... or \-\-tabs=\fIn\fP,..." - Sets tab stops. -@@ -832,14 +848,14 @@ By default, any forward movement causes - Changes the default scrolling window size to \fIn\fP lines. - The default is one screenful. - The z and w commands can also be used to change the window size. --The "z" may be omitted for compatibility with some versions of -+The "z" may be omitted for compatibility with some versions of - .I more. - If the number - .I n --is negative, it indicates -+is negative, it indicates - .I n - lines less than the current screen size. --For example, if the screen is 24 lines, \fI\-z-4\fP sets the -+For example, if the screen is 24 lines, \fI\-z-4\fP sets the - scrolling window to 20 lines. If the screen is resized to 40 lines, - the scrolling window automatically changes to 36 lines. - .IP "\-\fI\(dqcc\fP\ or\ \-\-quotes=\fIcc\fP" -@@ -870,7 +886,7 @@ to the terminal. - This is sometimes useful if the keypad strings make the numeric - keypad behave in an undesirable manner. - .IP "\-\-follow-name" --Normally, if the input file is renamed while an F command is executing, -+Normally, if the input file is renamed while an F command is executing, - .I less - will continue to display the contents of the original file despite - its name change. -@@ -878,7 +894,7 @@ If \-\-follow-name is specified, during - .I less - will periodically attempt to reopen the file by name. - If the reopen succeeds and the file is a different file from the original --(which means that a new file has been created -+(which means that a new file has been created - with the same name as the original (now renamed) file), - .I less - will display the contents of that new file. -@@ -894,7 +910,7 @@ For example, +G tells - .I less - to start at the end of the file rather than the beginning, - and +/xyz tells it to start at the first occurrence of "xyz" in the file. --As a special case, + acts like +g; -+As a special case, + acts like +g; - that is, it starts the display at the specified line number - (however, see the caveat under the "g" command above). - If the option starts with ++, the initial command applies to -@@ -908,8 +924,8 @@ When entering command line at the bottom - or the pattern for a search command), - certain keys can be used to manipulate the command line. - Most commands have an alternate form in [ brackets ] which can be used if --a key does not exist on a particular keyboard. --(Note that the forms beginning with ESC do not work -+a key does not exist on a particular keyboard. -+(Note that the forms beginning with ESC do not work - in some MS-DOS and Windows systems because ESC is the line erase character.) - Any of these special keys may be entered literally by preceding - it with the "literal" character, either ^V or ^A. -@@ -950,7 +966,7 @@ is entered into the command line. - Repeated TABs will cycle thru the other matching filenames. - If the completed filename is a directory, a "/" is appended to the filename. - (On MS-DOS systems, a "\e" is appended.) --The environment variable LESSSEPARATOR can be used to specify a -+The environment variable LESSSEPARATOR can be used to specify a - different character to append to a directory name. - .IP "BACKTAB [ ESC-TAB ]" - Like, TAB, but cycles in the reverse direction thru the matching filenames. -@@ -965,9 +981,9 @@ If you have changed your line-kill chara - other than ^U, that character is used instead of ^U. - - .SH "KEY BINDINGS" --You may define your own -+You may define your own - .I less --commands by using the program -+commands by using the program - .I lesskey - (1) - to create a lesskey file. -@@ -980,7 +996,7 @@ and to set environment variables. - If the environment variable LESSKEY is set, - .I less - uses that as the name of the lesskey file. --Otherwise, -+Otherwise, - .I less - looks in a standard place for the lesskey file: - On Unix systems, -@@ -1004,24 +1020,24 @@ manual page for more details. - .P - A system-wide lesskey file may also be set up to provide key bindings. - If a key is defined in both a local lesskey file and in the --system-wide file, key bindings in the local file take precedence over -+system-wide file, key bindings in the local file take precedence over - those in the system-wide file. - If the environment variable LESSKEY_SYSTEM is set, - .I less - uses that as the name of the system-wide lesskey file. - Otherwise, --.I less -+.I less - looks in a standard place for the system-wide lesskey file: - On Unix systems, the system-wide lesskey file is /usr/local/etc/sysless. --(However, if --.I less -+(However, if -+.I less - was built with a different sysconf directory than /usr/local/etc, - that directory is where the sysless file is found.) - On MS-DOS and Windows systems, the system-wide lesskey file is c:\e_sysless. - On OS/2 systems, the system-wide lesskey file is c:\esysless.ini. - - .SH "INPUT PREPROCESSOR" --You may define an "input preprocessor" for -+You may define an "input preprocessor" for - .I less. - Before - .I less -@@ -1030,10 +1046,10 @@ way the contents of the file are display - An input preprocessor is simply an executable program (or shell script), - which writes the contents of the file to a different file, - called the replacement file. --The contents of the replacement file are then displayed -+The contents of the replacement file are then displayed - in place of the contents of the original file. - However, it will appear to the user as if the original file is opened; --that is, -+that is, - .I less - will display the original filename as the name of the current file. - .PP -@@ -1041,17 +1057,17 @@ An input preprocessor receives one comma - as entered by the user. - It should create the replacement file, and when finished, - print the name of the replacement file to its standard output. --If the input preprocessor does not output a replacement filename, -+If the input preprocessor does not output a replacement filename, - .I less - uses the original file, as normal. - The input preprocessor is not called when viewing standard input. - To set up an input preprocessor, set the LESSOPEN environment variable - to a command line which will invoke your input preprocessor. --This command line should include one occurrence of the string "%s", -+This command line should include one occurrence of the string "%s", - which will be replaced by the filename - when the input preprocessor command is invoked. - .PP --When -+When - .I less - closes a file opened in such a way, it will call another program, - called the input postprocessor, -@@ -1059,11 +1075,11 @@ which may perform any desired clean-up a - replacement file created by LESSOPEN). - This program receives two command line arguments, the original filename - as entered by the user, and the name of the replacement file. --To set up an input postprocessor, set the LESSCLOSE environment variable -+To set up an input postprocessor, set the LESSCLOSE environment variable - to a command line which will invoke your input postprocessor. --It may include two occurrences of the string "%s"; --the first is replaced with the original name of the file and --the second with the name of the replacement file, -+It may include two occurrences of the string "%s"; -+the first is replaced with the original name of the file and -+the second with the name of the replacement file, - which was output by LESSOPEN. - .PP - For example, on many Unix systems, these two scripts will allow you -@@ -1079,7 +1095,7 @@ lessopen.sh: - .br - *.Z) uncompress -\c $1 >/tmp/less.$$ 2>/dev/null - .br -- if [ \-s /tmp/less.$$ ]; then -+ if [ \-s /tmp/less.$$ ]; then - .br - echo /tmp/less.$$ - .br -@@ -1106,21 +1122,21 @@ More complex LESSOPEN and LESSCLOSE scri - to accept other types of compressed files, and so on. - .PP - It is also possible to set up an input preprocessor to --pipe the file data directly to -+pipe the file data directly to - .I less, - rather than putting the data into a replacement file. --This avoids the need to decompress the entire file before -+This avoids the need to decompress the entire file before - starting to view it. - An input preprocessor that works this way is called an input pipe. - An input pipe, instead of writing the name of a replacement file on - its standard output, - writes the entire contents of the replacement file on its standard output. - If the input pipe does not write any characters on its standard output, --then there is no replacement file and -+then there is no replacement file and - .I less - uses the original file, as normal. - To use an input pipe, --make the first character in the LESSOPEN environment variable a -+make the first character in the LESSOPEN environment variable a - vertical bar (|) to signify that the input preprocessor is an input pipe. - .PP - For example, on many Unix systems, this script will work like the -@@ -1151,7 +1167,7 @@ For compatibility with previous versions - .I less, - the input pipe is not used if - .I less --is viewing standard input. -+is viewing standard input. - However, if the character after the vertical bar is a dash (\-), - the input pipe is used on standard input as well as other files. - -@@ -1216,7 +1232,7 @@ For example, "bccc4b." would mean charac - 1, 2 and 3 are control, 4, 5, 6 and 7 are binary, and 8 is normal. - All characters after the last are taken to be the same as the last, - so characters 9 through 255 would be normal. --(This is an example, and does not necessarily -+(This is an example, and does not necessarily - represent any real character set.) - .PP - This table shows the value of LESSCHARDEF which is equivalent -@@ -1243,7 +1259,7 @@ to each of the possible values for LESSC - next\ \ 8bcccbcc18b95.bb125.bb - .PP - If neither LESSCHARSET nor LESSCHARDEF is set, --but any of the strings "UTF-8", "UTF8", "utf-8" or "utf8" -+but any of the strings "UTF-8", "UTF8", "utf-8" or "utf8" - is found in the LC_ALL, LC_TYPE or LANG - environment variables, then the default character set is utf-8. - .PP -@@ -1261,12 +1277,12 @@ interface is also not available, the def - .PP - Control and binary characters are displayed in standout (reverse video). - Each such character is displayed in caret notation if possible --(e.g. ^A for control-A). Caret notation is used only if -+(e.g. ^A for control-A). Caret notation is used only if - inverting the 0100 bit results in a normal printable character. - Otherwise, the character is displayed as a hex number in angle brackets. --This format can be changed by -+This format can be changed by - setting the LESSBINFMT environment variable. --LESSBINFMT may begin with a "*" and one character to select -+LESSBINFMT may begin with a "*" and one character to select - the display attribute: - "*k" is blinking, "*d" is bold, "*u" is underlined, "*s" is standout, - and "*n" is normal. -@@ -1285,12 +1301,12 @@ acts similarly to LESSBINFMT but it appl - that were successfully decoded but are unsuitable for display (e.g., - unassigned code points). - Its default value is "". --Note that LESSUTFBINFMT and LESSBINFMT share their display attribute --setting ("*x") so specifying one will affect both; -+Note that LESSUTFBINFMT and LESSBINFMT share their display attribute -+setting ("*x") so specifying one will affect both; - LESSUTFBINFMT is read after LESSBINFMT so its setting, if any, --will have priority. -+will have priority. - Problematic octets in a UTF-8 file (octets of a truncated sequence, --octets of a complete but non-shortest form sequence, illegal octets, -+octets of a complete but non-shortest form sequence, illegal octets, - and stray trailing octets) - are displayed individually using LESSBINFMT so as to facilitate diagnostic - of how the UTF-8 file is ill-formed. -@@ -1470,7 +1486,7 @@ The default value for LESSEDIT is: - Note that this expands to the editor name, followed by a + and the - line number, followed by the file name. - If your editor does not accept the "+linenumber" syntax, or has other --differences in invocation syntax, the LESSEDIT variable can be -+differences in invocation syntax, the LESSEDIT variable can be - changed to modify this default. - - .SH SECURITY -@@ -1509,10 +1525,10 @@ behaves (mostly) in conformance with the - In this mode, less behaves differently in these ways: - .PP - The \-e option works differently. --If the \-e option is not set, -+If the \-e option is not set, - .I less - behaves as if the \-E option were set. --If the \-e option is set, -+If the \-e option is set, - .I less - behaves as if the \-e and \-F options were set. - .PP -@@ -1524,7 +1540,7 @@ If the \-m option is set, the short prom - The \-n option acts like the \-z option. - The normal behavior of the \-n option is unavailable in this mode. - .PP --The parameter to the \-p option is taken to be a -+The parameter to the \-p option is taken to be a - .I less - command rather than a search pattern. - .PP -@@ -1533,10 +1549,10 @@ and the MORE environment variable is use - - .SH "ENVIRONMENT VARIABLES" - Environment variables may be specified either in the system environment --as usual, or in a -+as usual, or in a - .I lesskey - (1) file. --If environment variables are defined in more than one place, -+If environment variables are defined in more than one place, - variables defined in a local lesskey file take precedence over - variables defined in the system environment, which take precedence - over variables defined in the system-wide lesskey file. -@@ -1562,7 +1578,7 @@ Language for determining the character s - .IP LC_CTYPE - Language for determining the character set. - .IP LESS --Options which are passed to -+Options which are passed to - .I less - automatically. - .IP LESSANSIENDCHARS -@@ -1594,11 +1610,11 @@ Normally should be set to "global" if yo - (1) command. If not set, global tags are not used. - .IP LESSHISTFILE - Name of the history file used to remember search commands and --shell commands between invocations of -+shell commands between invocations of - .I less. - If set to "\-" or "/dev/null", a history file is not used. - The default is "$HOME/.lesshst" on Unix systems, "$HOME/_lesshst" on --DOS and Windows systems, or "$HOME/lesshst.ini" or "$INIT/lesshst.ini" -+DOS and Windows systems, or "$HOME/lesshst.ini" or "$INIT/lesshst.ini" - on OS/2 systems. - .IP LESSHISTSIZE - The maximum number of commands to save in the history file. -@@ -1624,7 +1640,7 @@ String to be appended to a directory nam - .IP LESSUTFBINFMT - Format for displaying non-printable Unicode code points. - .IP LESS_IS_MORE --Emulate the -+Emulate the - .I more - (1) command. - .IP LINES -@@ -1634,7 +1650,7 @@ Takes precedence over the number of line - the window system's idea of the screen size takes precedence over the - LINES and COLUMNS environment variables.) - .IP PATH --User's search path (used to find a lesskey file -+User's search path (used to find a lesskey file - on MS-DOS and OS/2 systems). - .IP SHELL - The shell used to execute the ! command, as well as to expand filenames. -@@ -1658,7 +1674,7 @@ under the terms of either - the Free Software Foundation; or (2) the Less License. - See the file README in the less distribution for more details - regarding redistribution. --You should have received a copy of the GNU General Public License -+You should have received a copy of the GNU General Public License - along with the source for less; see the file COPYING. - If not, write to the Free Software Foundation, 59 Temple Place, - Suite 330, Boston, MA 02111-1307, USA. -@@ -1676,10 +1692,10 @@ Mark Nudelman 0) - { - for (i = 0; i < msec_loops; i++) -@@ -911,7 +914,7 @@ special_key_str(key) - { - #if OS2 - /* -- * If windowid is not NULL, assume less is executed in -+ * If windowid is not NULL, assume less is executed in - * the XFree86 environment. - */ - case SK_RIGHT_ARROW: -@@ -1089,7 +1092,7 @@ get_term() - */ - SET_BINARY(0); - GetConsoleScreenBufferInfo(con_out, &scr); -- ReadConsoleOutputAttribute(con_out, &curr_attr, -+ ReadConsoleOutputAttribute(con_out, &curr_attr, - 1, scr.dwCursorPosition, &nread); - sy_bg_color = (curr_attr & BG_COLORS) >> 4; /* normalize */ - sy_fg_color = curr_attr & FG_COLORS; -@@ -1184,7 +1187,7 @@ get_term() - * Disable highlighting by default on magic cookie terminals. - * Turning on highlighting might change the displayed width - * of a line, causing the display to get messed up. -- * The user can turn it back on with -g, -+ * The user can turn it back on with -g, - * but she won't like the results. - */ - hilite_search = 0; -@@ -1207,7 +1210,7 @@ get_term() - sc_e_keypad = ltgetstr("ke", &sp); - if (sc_e_keypad == NULL) - sc_e_keypad = ""; -- -+ - sc_init = ltgetstr("ti", &sp); - if (sc_init == NULL) - sc_init = ""; -@@ -1241,7 +1244,7 @@ get_term() - if (sc_move == NULL || *sc_move == '\0') - { - /* -- * This is not an error here, because we don't -+ * This is not an error here, because we don't - * always need sc_move. - * We need it only if we don't have home or lower-left. - */ -@@ -1368,7 +1371,7 @@ cost(t) - - /* - * Return the "best" of the two given termcap strings. -- * The best, if both exist, is the one with the lower -+ * The best, if both exist, is the one with the lower - * cost (see cost() function). - */ - static char * -@@ -1422,7 +1425,7 @@ tmodes(incap, outcap, instr, outstr, def - - - /* -- * Below are the functions which perform all the -+ * Below are the functions which perform all the - * terminal-specific screen manipulation. - */ - -@@ -1458,7 +1461,7 @@ initcolor() - char *blanks; - int row; - int col; -- -+ - /* - * Create a complete, blank screen using "normal" colors. - */ @@ -1527,6 +1530,42 @@ win32_deinit_term() #endif @@ -1933,17 +697,15 @@ Index: screen.c /* * Initialize terminal */ -@@ -1538,7 +1577,9 @@ init() +@@ -1538,6 +1577,8 @@ init() tputs(sc_init, sc_height, putchr); if (!no_keypad) tputs(sc_s_keypad, sc_height, putchr); -- if (top_scroll) + if (opt_mouse_support) + init_mouse_support(); -+ if (top_scroll) + if (top_scroll) { int i; - @@ -1576,6 +1617,7 @@ deinit() tputs(sc_e_keypad, sc_height, putchr); if (!no_init) @@ -1952,145 +714,10 @@ Index: screen.c #else /* Restore system colors. */ SETCOLORS(sy_fg_color, sy_bg_color); -@@ -1662,8 +1704,8 @@ add_line() - - #if 0 - /* -- * Remove the n topmost lines and scroll everything below it in the -- * window upward. This is needed to stop leaking the topmost line -+ * Remove the n topmost lines and scroll everything below it in the -+ * window upward. This is needed to stop leaking the topmost line - * into the scrollback buffer when we go down-one-line (in WIN32). - */ - public void -@@ -1748,7 +1790,7 @@ win32_clear() - } - - /* -- * Remove the n topmost lines and scroll everything below it in the -+ * Remove the n topmost lines and scroll everything below it in the - * window upward. - */ - public void -@@ -1860,7 +1902,7 @@ line_left() - } - - /* -- * Check if the console size has changed and reset internals -+ * Check if the console size has changed and reset internals - * (in lieu of SIGWINCH for WIN32). - */ - public void -@@ -1872,7 +1914,7 @@ check_winch() - - if (con_out == INVALID_HANDLE_VALUE) - return; -- -+ - flush(); - GetConsoleScreenBufferInfo(con_out, &scr); - size.Y = scr.srWindow.Bottom - scr.srWindow.Top + 1; -@@ -1919,7 +1961,7 @@ create_flash() - struct videoconfig w; - char *blanks; - int row, col; -- -+ - _getvideoconfig(&w); - videopages = w.numvideopages; - if (videopages < 2) -@@ -1944,7 +1986,7 @@ create_flash() - #if MSDOS_COMPILER==BORLANDC - register int n; - -- whitescreen = (unsigned short *) -+ whitescreen = (unsigned short *) - malloc(sc_width * sc_height * sizeof(short)); - if (whitescreen == NULL) - return; -@@ -2007,7 +2049,7 @@ vbell() - create_flash(); - if (whitescreen == NULL) - return; -- currscreen = (unsigned short *) -+ currscreen = (unsigned short *) - malloc(sc_width * sc_height * sizeof(short)); - if (currscreen == NULL) return; - gettext(1, 1, sc_width, sc_height, currscreen); -@@ -2093,7 +2135,7 @@ clear_eol() - short top, left; - short bot, right; - struct rccoord tpos; -- -+ - flush(); - /* - * Save current state. -@@ -2284,14 +2326,14 @@ apply_at_specials(attr) - - #if 0 /* No longer used */ - /* -- * Erase the character to the left of the cursor -+ * Erase the character to the left of the cursor - * and move the cursor left. - */ - public void - backspace() - { - #if !MSDOS_COMPILER -- /* -+ /* - * Erase the previous character by overstriking with a space. - */ - tputs(sc_backspace, 1, putchr); -@@ -2300,7 +2342,7 @@ backspace() - #else - #if MSDOS_COMPILER==MSOFTC - struct rccoord tpos; -- -+ - flush(); - tpos = _gettextposition(); - if (tpos.col <= 1) -@@ -2404,12 +2446,12 @@ win32_kbhit(tty) - ip.Event.KeyEvent.wVirtualKeyCode == VK_SHIFT || - ip.Event.KeyEvent.wVirtualKeyCode == VK_CONTROL || - ip.Event.KeyEvent.wVirtualKeyCode == VK_MENU); -- -+ - currentKey.ascii = ip.Event.KeyEvent.uChar.AsciiChar; - currentKey.scan = ip.Event.KeyEvent.wVirtualScanCode; - keyCount = ip.Event.KeyEvent.wRepeatCount; - -- if (ip.Event.KeyEvent.dwControlKeyState & -+ if (ip.Event.KeyEvent.dwControlKeyState & - (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED)) - { - switch (currentKey.scan) -@@ -2418,7 +2460,7 @@ win32_kbhit(tty) - currentKey.ascii = 0; - break; - } -- } else if (ip.Event.KeyEvent.dwControlKeyState & -+ } else if (ip.Event.KeyEvent.dwControlKeyState & - (LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED)) - { - switch (currentKey.scan) -@@ -2462,8 +2504,8 @@ WIN32getch(tty) - keyCount --; - ascii = currentKey.ascii; - /* -- * On PC's, the extended keys return a 2 byte sequence beginning -- * with '00', so if the ascii code is 00, the next byte will be -+ * On PC's, the extended keys return a 2 byte sequence beginning -+ * with '00', so if the ascii code is 00, the next byte will be - * the lsb of the scan code. - */ - pending_scancode = (ascii == 0x00); Index: selection.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ selection.c 2009-06-03 15:18:53.000000000 +0200 ++++ selection.c 2009-07-07 15:46:59.000000000 +0200 @@ -0,0 +1,271 @@ +/* + * Copyright (C) 1984-2000 Mark Nudelman diff --git a/less-429-save_line_position.patch b/less-429-save_line_position.patch index e7226ea..d36b1e1 100644 --- a/less-429-save_line_position.patch +++ b/less-429-save_line_position.patch @@ -1,16 +1,11 @@ +--- + line.c | 31 +++++++++++++++++++++++++++++-- + 1 file changed, 29 insertions(+), 2 deletions(-) + Index: line.c =================================================================== ---- line.c.orig 2009-03-30 21:45:51.000000000 +0200 -+++ line.c 2009-06-03 15:37:46.000000000 +0200 -@@ -4,7 +4,7 @@ - * You may distribute under the terms of either the GNU General Public - * License or the Less License, as specified in the README file. - * -- * For more information about less, or for information on how to -+ * For more information about less, or for information on how to - * contact the author, see the README file. - */ - +--- line.c.orig 2009-06-30 21:27:09.000000000 +0200 ++++ line.c 2009-07-07 15:39:00.000000000 +0200 @@ -66,6 +66,25 @@ static int mbc_buf_len = 0; static int mbc_buf_index = 0; static POSITION mbc_pos; @@ -37,33 +32,6 @@ Index: line.c /* * Initialize from environment variables. */ -@@ -177,7 +196,7 @@ plinenum(pos) - /* - * Get the line number and put it in the current line. - * {{ Note: since find_linenum calls forw_raw_line, -- * it may seek in the input file, requiring the caller -+ * it may seek in the input file, requiring the caller - * of plinenum to re-seek if necessary. }} - * {{ Since forw_raw_line modifies linebuf, we must - * do this first, before storing anything in linebuf. }} -@@ -274,7 +293,7 @@ pshift(shift) - attr[to++] = attr[from]; - if (!is_ansi_middle(linebuf[from++])) - break; -- } -+ } - continue; - } - -@@ -320,7 +339,7 @@ pshift(shift) - /* Adjust width for magic cookies. */ - prev_attr = (to > 0) ? attr[to-1] : AT_NORMAL; - next_attr = (from + len < curr) ? attr[from + len] : prev_attr; -- if (!is_at_equiv(attr[from], prev_attr) && -+ if (!is_at_equiv(attr[from], prev_attr) && - !is_at_equiv(attr[from], next_attr)) - { - width += attr_swidth(attr[from]); @@ -617,7 +636,11 @@ store_char(ch, a, rep, pos) w = pwidth(ch, a, prev_ch); } @@ -77,41 +45,7 @@ Index: line.c /* * Won't fit on screen. */ -@@ -765,7 +788,7 @@ pappend(c, pos) - } - - /* -- * Don't put the CR into the buffer until we see -+ * Don't put the CR into the buffer until we see - * the next char. If the next char is a newline, - * discard the CR. - */ -@@ -874,8 +897,8 @@ do_append(ch, rep, pos) - { - /* - * Overstrike the character at the current position -- * in the line buffer. This will cause either -- * underline (if a "_" is overstruck), -+ * in the line buffer. This will cause either -+ * underline (if a "_" is overstruck), - * bold (if an identical character is overstruck), - * or just deletion of the character in the buffer. - */ -@@ -922,7 +945,7 @@ do_append(ch, rep, pos) - overstrike = 0; - } - -- if (ch == '\t') -+ if (ch == '\t') - { - /* - * Expand a tab into spaces. -@@ -945,11 +968,15 @@ do_append(ch, rep, pos) - * Output as a normal character. - */ - STORE_CHAR(ch, AT_NORMAL, rep, pos); -- } else -+ } else +@@ -949,7 +972,11 @@ do_append(ch, rep, pos) { STORE_PRCHAR((char) ch, pos); } @@ -124,43 +58,3 @@ Index: line.c { char *s; -@@ -1029,18 +1056,22 @@ pdone(endline, nextc) - * or if the terminal doesn't auto wrap, - * or if this is really the end of the line AND the terminal ignores - * a newline at the right edge. -- * (In the last case we don't want to output a newline if the terminal -+ * (In the last case we don't want to output a newline if the terminal - * doesn't ignore it since that would produce an extra blank line. - * But we do want to output a newline if the terminal ignores it in case - * the next line is blank. In that case the single newline output for - * that blank line would be ignored!) - */ -+#if THROW_AWAY_LOCATION - if (column < sc_width || !auto_wrap || (endline && ignaw) || ctldisp == OPT_ON) -+#else -+ if (column < sc_width || !auto_wrap || (endline && ignaw)) -+#endif - { - linebuf[curr] = '\n'; - attr[curr] = AT_NORMAL; - curr++; -- } -+ } - else if (ignaw && column >= sc_width) - { - /* -@@ -1052,12 +1083,12 @@ pdone(endline, nextc) - * instead of at the start of the next line. - * So we nudge them into wrapping by outputting the next - * character plus a backspace. (This wouldn't be right for -- * "!auto_wrap" terminals, but they always end up in the -+ * "!auto_wrap" terminals, but they always end up in the - * branch above.) - */ - linebuf[curr] = nextc; - attr[curr++] = AT_NORMAL; -- linebuf[curr] = '\b'; -+ linebuf[curr] = '\b'; - attr[curr++] = AT_NORMAL; - } - linebuf[curr] = '\0'; diff --git a/less-429-shell.patch b/less-429-shell.patch index 483e5ab..322fbbb 100644 --- a/less-429-shell.patch +++ b/less-429-shell.patch @@ -1,7 +1,7 @@ Index: filename.c =================================================================== ---- filename.c.orig 2009-03-30 22:34:47.000000000 +0200 -+++ filename.c 2009-06-03 15:21:50.000000000 +0200 +--- filename.c.orig 2009-07-06 22:52:23.000000000 +0200 ++++ filename.c 2009-07-10 10:23:12.000000000 +0200 @@ -577,7 +577,7 @@ shellcmd(cmd) #if HAVE_SHELL char *shell; @@ -13,8 +13,8 @@ Index: filename.c char *scmd; Index: less.hlp =================================================================== ---- less.hlp.orig 2009-06-03 15:17:47.000000000 +0200 -+++ less.hlp 2009-06-03 15:21:50.000000000 +0200 +--- less.hlp.orig 2009-07-10 10:23:07.000000000 +0200 ++++ less.hlp 2009-07-10 10:23:12.000000000 +0200 @@ -95,7 +95,7 @@ ___<_n_a_m_e_> Display the setting of an option, by name. +_c_m_d Execute the less cmd each time a new file is examined. @@ -26,8 +26,8 @@ Index: less.hlp V Print version number of "less". Index: less.nro =================================================================== ---- less.nro.orig 2009-06-03 15:19:41.000000000 +0200 -+++ less.nro 2009-06-03 15:21:50.000000000 +0200 +--- less.nro.orig 2009-07-10 10:23:07.000000000 +0200 ++++ less.nro 2009-07-10 10:23:12.000000000 +0200 @@ -395,7 +395,7 @@ current file. A pound sign (#) is replaced by the name of the previously examined file. "!!" repeats the last shell command. @@ -37,9 +37,9 @@ Index: less.nro or defaults to "sh". On MS-DOS and OS/2 systems, the shell is the normal command processor. .IP "| shell-command" -@@ -1652,7 +1652,7 @@ LINES and COLUMNS environment variables. +@@ -1667,7 +1667,7 @@ LINES and COLUMNS environment variables. .IP PATH - User's search path (used to find a lesskey file + User's search path (used to find a lesskey file on MS-DOS and OS/2 systems). -.IP SHELL +.IP LESSSHELL @@ -48,8 +48,8 @@ Index: less.nro The type of terminal on which Index: lsystem.c =================================================================== ---- lsystem.c.orig 2009-03-30 21:45:52.000000000 +0200 -+++ lsystem.c 2009-06-03 15:21:50.000000000 +0200 +--- lsystem.c.orig 2009-07-06 22:52:23.000000000 +0200 ++++ lsystem.c 2009-07-10 10:23:12.000000000 +0200 @@ -129,7 +129,7 @@ lsystem(cmd, donemsg) */ #if HAVE_SHELL diff --git a/less-429.tar.bz2 b/less-429.tar.bz2 deleted file mode 100644 index 1b163b7..0000000 --- a/less-429.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c8505b7fc6757c2aebbb8930b1936738dbbc1a9d89b0a5bfb39af332148f22e -size 244854 diff --git a/less-436.tar.bz2 b/less-436.tar.bz2 new file mode 100644 index 0000000..04a3490 --- /dev/null +++ b/less-436.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b890ddf16c97cea3c4c209329f201cbc93c00a745b07f33b1cae0d3fb629145b +size 246126 diff --git a/less.changes b/less.changes index 6bba438..2402b37 100644 --- a/less.changes +++ b/less.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Jul 10 10:24:54 CEST 2009 - puzel@novell.com + +- update to less-436beta + * Fixes a few search and filter bugs. + +------------------------------------------------------------------- +Tue Jul 7 16:01:30 CEST 2009 - puzel@novell.com + +- update to less-434beta + * Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". + * Allow a fraction as the argument to the -# (--shift) option. + * Fix highlight bug when underlined/overstruck text matches at end of line. + * Fix non-regex searches with ctrl-R. + ------------------------------------------------------------------- Wed Jun 3 15:46:47 CEST 2009 - puzel@suse.cz diff --git a/less.spec b/less.spec index f5d9b37..044e1d1 100644 --- a/less.spec +++ b/less.spec @@ -1,5 +1,5 @@ # -# spec file for package less (Version 429) +# spec file for package less (Version 435.9) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -17,6 +17,7 @@ # norootforbuild +%define tar_version 436 Name: less BuildRequires: ncurses-devel @@ -26,24 +27,24 @@ Obsoletes: jless Provides: normal-less jless Requires: file AutoReqProv: on -Version: 429 +Version: 435.9 Release: 1 Summary: Text File Browser and Pager Similar to more Url: http://www.greenwoodsoftware.com/less/ -Source: %{name}-%{version}.tar.bz2 +Source: %{name}-%{tar_version}.tar.bz2 Source1: README.SuSE Source2: lessopen.sh Source3: lessclose.sh Source4: lesskey.src -Patch2: %{name}-%{version}-lessecho-man.patch -Patch3: %{name}-%{version}-speed.patch -Patch22: %{name}-%{version}-strict_aliasing.patch -Patch23: %{name}-%{version}-mouse.patch -Patch24: %{name}-%{version}-terminate.patch -Patch25: %{name}-%{version}-widechars.patch -Patch26: %{name}-%{version}-shell.patch -Patch27: %{name}-%{version}-save_line_position.patch -Patch28: %{name}-%{version}-more.patch +Patch2: %{name}-429-lessecho-man.patch +Patch3: %{name}-429-speed.patch +Patch22: %{name}-429-strict_aliasing.patch +Patch23: %{name}-429-mouse.patch +Patch24: %{name}-429-terminate.patch +Patch25: %{name}-429-widechars.patch +Patch26: %{name}-429-shell.patch +Patch27: %{name}-429-save_line_position.patch +Patch28: %{name}-429-more.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -59,7 +60,7 @@ Authors: Mark Nudelman %prep -%setup -q +%setup -q -n %{name}-%{tar_version} %patch2 %patch3 %patch22 @@ -110,343 +111,3 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/* %changelog -* Wed Jun 03 2009 puzel@suse.cz -- update to less-429 - * LESSOPEN pipe will now be used on standard input, if the LESSOPEN - environment variable begins with "|-". - * The -D option with one number now means use the normal background color. - * Fix non-ANSI-compliant code that caused problems with some compilers. - * Fix binary file detection in UTF-8 mode. - * Fix display problems with long lines on "ignaw" terminals. - * Fix problem interrupting the line number calculation for initial prompt. - * Fix SGR emulation when dealing with multiple attributes (eg. bold+underline). - * Fix highlight bug when searching for underlined/overstruck text. -- drop fix-binfile-detection.patch (fixed upstream) -- drop less-424b.patch (fixed upstream) -* Wed Dec 17 2008 puzel@suse.cz -- add fix-binfile-detection.patch (bnc#446732) -* Thu Aug 28 2008 anosek@suse.cz -- updated to version 424b - * New "&" command allows filtering of lines based on a pattern. - * Status column now displays a search match, even if the matched - string is scrolled off screen because -S is in effect. - * Improve behavior of -F option. - * Allow CSI character (0x9B) to work in UTF-8 mode. - * Output carriage return at startup in case terminal doesn't default - to column 1. - * Fix bug in '' (quote, quote) command after G command. -* Sun Jul 20 2008 crrodriguez@suse.de -- fix build -* Tue Jan 29 2008 anosek@suse.cz -- updated to version 418 - * Fix search bug when using -R and text contains ANSI color escape sequences. - * Fix crash when using -r with UTF-8 text containing 0x9B bytes. - * Fix display bug when using ' command to move less than one page forward. - * Update GPL to version 3. -* Thu Dec 20 2007 anosek@suse.cz -- udpated to version 416 - * New --follow-name option makes F command follow the name of a file - rather than the file descriptor if an open file is renamed. - * Make searching with -i/-I work correctly with non-ASCII text. - * Support CSI escape sequences, like SGR escape sequences. - * Fix bug which caused screen to fail to repaint when window is resized. - * Fix bug in using -i and -I flags with non-ASCII text. - * Fix crash when searching text containing certain invalid UTF-8 sequences. -* Thu Nov 15 2007 werner@suse.de -- Avoid memory leaks in case of an error during saving history -* Wed Nov 14 2007 werner@suse.de -- Speed up the history save by using a temorary file and make the - stream of that file a full buffered one. -* Wed Oct 31 2007 anosek@suse.cz -- udpated to version 409 - * fixed crash when searching text containing certain - invalid UTF-8 sequences. -* Wed Sep 12 2007 anosek@suse.cz -- fixed Less -l option conflicts with more -l [#307796] (more.patch) -* Fri Aug 17 2007 anosek@suse.cz -- fixed Incorrect behaviour of -r parameter [#244791] - (save_line_position.patch) -* Fri Jul 27 2007 anosek@suse.cz -- updated to version 406 - * Allow decimal point in number for %% (percent) command. - * Allow decimal point in number for -j option (fraction of screen height). - * Make n command fetch previous pattern from history file on first search. - * Don't rewrite history file if it has not changed. - * Don't move to bottom of screen on first page. - * Don't output extraneous newlines, so copy & pasting lines from the - output works better. - * The -c option has been made identical with the -C option. - * Allow "/dev/null" as synomym for "-" in LESSHISTFILE to indicate - that no history file should be used. - * Search can now find text which follows a null byte, if the PCRE - library is used, or if no-regex searching (ctrl-R) is used. - * Better compatibility with POSIX more specification. - * Make -f work for directories. - * Make "t" cmd traverse tags in the correct order. - * Allow a few binary characters in the input file before warning - that the file is binary. - * Don't warn that file is binary if it merely contains ANSI color sequences - and -R is in effect. - * Update Unicode character tables. - * Support DESTDIR in Makefile. - * Fix bug when filename contains certain shell metacharacters such as "$". - * Fix bug when resizing the window while waiting for input from a pipe. - * Fix configure bugs. -* Mon Mar 26 2007 rguenther@suse.de -- add ncurses-devel BuildRequires -* Fri Apr 07 2006 mmarek@suse.cz -- don't use $SHELL for running external commands to avoid - side-effects caused by $SHELL's startup scripts - [#158044, #164041] (shell.patch) -* Mon Feb 06 2006 mmarek@suse.cz -- fix editing of wide characters in search prompt (regression - caused by dropping iso patch) - (widechars.patch) -* Wed Jan 25 2006 mls@suse.de -- converted neededforbuild to BuildRequires -* Tue Jan 10 2006 mmarek@suse.cz -- upated to version 394 -- removed iso patch, because vanilla less-394 is capable enough -- removed patches 2-7 -- lessecho.1 included in upstream tarball -- unpacked less-SuSE.tar.bz2 -* Mon Jan 02 2006 mmarek@suse.cz -- fix typo in previous fix -* Mon Dec 19 2005 mmarek@suse.cz -- fixed lessopen man page - [#105865] -- applied lessopen patches to less-SuSE.tar.bz2 -* Fri Oct 07 2005 dmueller@suse.de -- add head of changelog to rpm listing -* Wed Oct 05 2005 mmarek@suse.cz -- updated Japanese patch to less-382-iso258, fixing #64531 - * renumbered patches in specfile - * fixed implicit function declaration warning -* Thu Sep 15 2005 mmarek@suse.cz -- make expand_linebuf() faster [#39724] -* Tue Sep 13 2005 mmarek@suse.cz -- recognize .cab archives with new file(1) [#116779] -* Wed Sep 08 2004 pmladek@suse.cz -- fixed searching if the ANSI escape sequences are used in the text; - it still does not work for Japanese coding (see search_ansi_esc_seq.patch - for comments) [#44115] -* Fri May 14 2004 pmladek@suse.cz -- fixed UTF-8 support to do not consider all non-ASCII characters as wide - characters; they are detected correctly by the function internalize_utf8 - if _XOPEN_SOURCE is enabled (fix added to the utf8.patch) [#29455] -* Thu May 13 2004 pmladek@suse.cz -- improved handling of SIGTERM to remove temporary files and clean up terminal - [#39273] (terminate.patch) -- improved lessopen.sh [#39272] : - * removed potential tmp file race - * added w3m to preprocess HTML pages as an alternative for lynx; - w3m is preferred over lynx -* Wed Apr 14 2004 pmladek@suse.cz -- fixed search line to display correctly UTF-8 characters; solution based - on the Japanese patch [#19587] -* Tue Feb 24 2004 pmladek@suse.cz -- updated to version 382: - * removed some old copyrighted code -- fixed to work with Turkish locales, problems with functions like - isupper, many thanks to Björn Jacke for hint and patch [#29827] -- added some missing braces in opttbl.c to mouse.patch and iso254.patch -- fixed code violating strict aliasing rules -- used norootforbuild -* Fri Nov 14 2003 pmladek@suse.cz -- fixed lessopen.sh: - * added some missing quotes [#33058] - * the script adds ./ before a relative file name to enable preprocess - a file whose name begins with a "-" or "+" (inspiration got from RedHat) - [#33058] - * fixed detection of Debian's packages -- merged mouse_test_for_xselection.patch into mouse.patch -* Wed Sep 10 2003 pmladek@suse.cz -- test the utility xselection only if the mouse support is enabled [#29612] -* Mon Aug 04 2003 pmladek@suse.cz -- updated to version 381 [#17201]: - * new -L option to disable LESSOPEN processing - * further support for large (64 bit) file addressing - * use only 7 spaces for line numbers in -N mode, if possible - * fix some nroff issues in the man page -- removed obsolete patch for support for large file addressing (lfs.patch) -- used autoreconf to rebuild autoconf stuff -* Mon Dec 30 2002 pmladek@suse.cz -- updated to version 378: - * default buffer space is now 64K as documented - * search highlighting works properly when used with -R - * windows version works properly when input file contains carriage returns - * clean up some compiler warnings -- merged less-378-iso254-bug.patch into the less-378-iso254.patch -- removed unused CXXFLAGS setting from the spec file -- fixed the patch for the mouse support (prefixes to a less commands were not - printed immediately in the searched string as yet) [#21320] -* Tue Aug 27 2002 pmladek@suse.cz -- removed code which is obsoleted by Japanese patch and make - problems with UTF-8 [#17592, #17593] -* Fri Aug 09 2002 pmladek@suse.cz -- updated to new stable version 376 - * -x option can now specify multiple variable-width tab stops - * -X option no longer disables keypad initialization - * new option --no-keypad disables keypad initialization - * new commands t and T step through multiple tag matches - * new prompt style set by option -Pw - * system-wide lesskey file now defaults to sysless in etc directory - instead of .sysless in bin directory - * pressing RightArrow or LeftArrow while entering a number now shifts - the display N columns rather than editing the number itself - * searching works better with ANSI (SGR) escape sequences - * improved performance in reading very large pipes - * eliminated some dependencies on file offets being 32 bits - * fixed problems when viewing files with very long lines - * fixed overstriking in UTF-8 mode, and overstriking tabs - * improved horizontal shifting of text using -R option with ANSI color - * improved handling of filenames containing shell metacharacters -- fixed Japanese patch for this less version -- iso247-bugs patch merged with Japanese patch -- fixed bug in detection of xselection utillity -* Fri May 17 2002 pmladek@suse.cz -- added mouse support (inspired by vim-6.0): - * it is enabled by -A option - * works only in xterm - * contains support for mouse wheel [#9385] - * direct access to X selection by xselection utility -- applied patches less preprocessor patches -* Thu Mar 21 2002 pmladek@suse.cz -- improved detection for input conding from keyboard, proper input - coding is detected by locales now [#15155] -- changed default input coding from "japanese-iso7" to "iso8859" -- user can still define his input conding by the environment - variable JLESSKEYCHARSET -* Tue Mar 12 2002 pmladek@suse.cz -- changed meaning of the variable LESS_ADVANCED_PREPROCESSOR, - many binary formats are preprocessed always, the text - formats (ps, troff, html) are preprocessed only when - the variable LESS_ADVANCED_PREPROCESSOR=yes -* Thu Feb 21 2002 pmladek@suse.cz -- added support for cab files into less preprocessor -* Mon Feb 18 2002 pmladek@suse.cz -- fixed to do not install .orig files -* Fri Feb 15 2002 pmladek@suse.cz -- error messages in lessopen.sh must be redirected to the standard - error output -- fixed Copyright in lessopen.sh and lessclose.sh -* Thu Feb 14 2002 pmladek@suse.cz -- added man page for lessecho from the Debian GNU/Linux distribution - [#13275] -- fixed usage of macro %%suse_update_config -* Mon Nov 05 2001 mfabian@suse.de -- add init_def_codesets.diff (fixes the problem that less - outputs ESC-A to set 'G1' to 'Right-hand Part of Latin - Alphabet No.1 ISO 8859/1, ECMA-94'. This works only with - xterm but fails with konsole, rxvt ...) - Thanks to Michael Schroeder -- add arabic.diff to fix typo in possible values of JLESSPLANESET - (alabic -> arabic). -- remove %%attr(644, -, -) in front of %%doc, this gives - wrong permissions to the directory /usr/share/doc/packages/less - use 'chmod 644 LICENSE COPYING NEWS' instead. -* Fri Sep 21 2001 vinil@suse.cz -- README.SuSE about LESS_ADVANCED_PREPROCESSOR added -* Tue Sep 11 2001 mfabian@suse.de -- include Japanese patch -- rewrote utf8.diff. Together with the Japanese patch it almost - works now. German, Italian and Spanish man pages display fine - in an UTF-8 xterm. Czech is still broken, but that seems to - be the fault of groff rather than less. -- add less-SuSE.patch to display Japanese roff files correctly -* Wed Sep 05 2001 vinil@suse.cz -- .zip handled by "unzip -v" (#10211) -* Tue Aug 28 2001 vinil@suse.cz -- LESS_ADVANCED_PREPROCESSOR used for handling more than compressed - files (#9287) -* Tue Aug 14 2001 vinil@suse.cz -- typo fixed (#9730) -* Tue Jul 17 2001 vinil@suse.cz -- can handle symlinks \ -- can handle x and pm man pages -- bug #9393 -* Mon May 14 2001 vinil@suse.cz -- utf8.diff added: less can handle bold and underlined utf-8 chars - (needed especially for man) -* Sat May 05 2001 schwab@suse.de -- lessopen.sh: Create tempfiles securely; add quotes as necessary; make - sure we don't match the file type against the file name; don't leave - temporary files around. -* Fri May 04 2001 schwab@suse.de -- lessopen.sh: echo nothing if we have no alternate file (#7679). -* Fri May 04 2001 schwab@suse.de -- lessopen.sh: Use the first stage contents if the second stage has - nothing special. Tighten the patterns that recognize compressed - data. Just echo the original file name if the file is not readable. -* Tue May 01 2001 schwab@suse.de -- lessclose.sh: Only remove file if different from original file. -* Mon Apr 30 2001 schwab@suse.de -- lessopen.sh: Use original file name if no conversions were done (#7421). -* Fri Apr 27 2001 vinil@suse.cz -- lessing non-existing files now produce error message [bug #7320] -* Thu Apr 19 2001 mfabian@suse.de -- removed "LESSCHARSET=latin1" from /etc/lesskey - If LESSCHARSET is not set, latin1 is the default, unless - "UTF-8" is found in LC_ALL, LC_CTYPE or LANG, the the default - is utf-8. So setting "LESSCHARSET=latin1" is useless in - case of a iso-8859-x locale and bad in case of a UTF-8 locale. - If LESSCHARSET is set in /etc/lesskey, one cannot even override - it by setting the environment variable anymore. -* Fri Mar 16 2001 vinil@suse.cz -- less piping completely rewritten (using 'file', now) - (bug #6256 fixed) -* Wed Jan 10 2001 smid@suse.cz -- lesspipe.sh fixed -* Tue Jan 09 2001 smid@suse.cz -- lesspipe.sh fixed [#5003] -* Wed Dec 13 2000 mfabian@suse.de -- added "Provides: normal-less". This enables the japanized - jless to use "Provides: less" and "Conflicts: normal-less". - (Suggestion by bjacke@suse.de) -* Mon Dec 11 2000 smid@suse.cz -- added conflict with jless -* Fri Dec 01 2000 aj@suse.de -- Compile with LFS support, fix CFLAGS/CXXFLAGS. -* Tue Nov 21 2000 werner@suse.de -- Remove swapping of kp-separator/kp-decimal because it's - done in xkbd map for german keyboards -* Tue Nov 21 2000 werner@suse.de -- Add some newer xterm escape sequences (oldFunctionsKeys) -* Tue Sep 26 2000 ro@suse.de -- make lesspipe executable again -* Mon Sep 25 2000 smid@suse.cz -- upgrade to 358 -* Mon May 22 2000 smid@suse.cz -- upgrade to 354 -- Copyright field fix -- documentation added -* Thu Apr 13 2000 smid@suse.cz -- buildroot added -- upgrade to 3.46 -* Thu Feb 10 2000 kukuk@suse.de -- Fill out Copyright and Group field -* Mon Jan 24 2000 kukuk@suse.de -- Move /usr/man -> /usr/share/man -* Mon Sep 13 1999 bs@suse.de -- ran old prepare_spec on spec file to switch to new prepare_spec. -* Fri Jun 18 1999 ro@suse.de -- update to less-340 using jurix-dif -- added [rs]pm to lesspipe-switch -- added werners lesskey -* Thu Sep 04 1997 bs@suse.de -- added *.as to lesspipe.sh -* Wed May 28 1997 werner@suse.de -- added new etc/lesskey and etc/lesskey.bin -* Sat Apr 26 1997 florian@suse.de -- update to new version 332 -* Sun Apr 13 1997 florian@suse.de -- update to new version 330 -* Thu Jan 02 1997 bs@suse.de - added new etc/lesskey* -* Thu Jan 02 1997 bs@suse.de - lesskey from aaa_base inserted. -* Thu Jan 02 1997 florian@suse.de -- Neue Version 321. -- Bug mit falschen Aufruf von free() behoben. -- In /etc/profile wird global fuer alle Benutzer eine 'lesskey'-Datei - eingetragen. Braucht also nicht mehr im Home-Verzeichnis aller Benutzer - erstellt werden.