Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/less less 358



details:   https://anonhg.NetBSD.org/src/rev/ec9618c4ba41
branches:  trunk
changeset: 513211:ec9618c4ba41
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jul 26 12:00:22 2001 +0000

description:
less 358

diffstat:

 usr.bin/less/less/NEWS         |  121 ++++++++++++++++++++++++++++++++++++++++-
 usr.bin/less/less/README       |   52 +++++++++++++++--
 usr.bin/less/less/acconfig.h   |   42 ++++++-------
 usr.bin/less/less/cmd.h        |   54 ++++++++++-------
 usr.bin/less/less/input.c      |   50 ++++++----------
 usr.bin/less/less/jump.c       |   41 ++++++-------
 usr.bin/less/less/lglob.h      |   29 ++-------
 usr.bin/less/less/mkhelp.c     |   71 ++++++++++++++++++++++++
 usr.bin/less/less/optfunc.c    |   50 +++++++---------
 usr.bin/less/less/pckeys.h     |   36 ++++++++++++
 usr.bin/less/less/position.c   |   30 ++-------
 usr.bin/less/less/position.h   |   30 ++-------
 usr.bin/less/less/tags.c       |   30 ++-------
 usr.bin/less/less/ttyin.c      |   30 ++-------
 usr.bin/less/lesskey/lesskey.h |   29 ++-------
 15 files changed, 424 insertions(+), 271 deletions(-)

diffs (truncated from 1013 to 300 lines):

diff -r 0604f9985348 -r ec9618c4ba41 usr.bin/less/less/NEWS
--- a/usr.bin/less/less/NEWS    Thu Jul 26 11:46:44 2001 +0000
+++ b/usr.bin/less/less/NEWS    Thu Jul 26 12:00:22 2001 +0000
@@ -7,8 +7,125 @@
       http://www.flash.net/~marknu/less
   You can also download the latest version of less from there.
 
-  The email address for questions about less 
-  has been changed to marknu%flash.net@localhost.
+  To report bugs, suggestions or comments, send email to 
+  bug-less%gnu.org@localhost or marknu%flash.net@localhost.
+
+======================================================================
+
+
+       Major changes between "less" versions 354 and 358
+
+* Add -J (--status-column) option to display a status column.
+
+* Add -# (--shift) option to set default horizontal shift distance.
+  Default horizontal shift distance is now one-half screen width.
+
+* Horizontal shifting does not shift line numbers if -N is in effect.
+
+* Horizontal shifting acts as though -S were set, to avoid confusion.
+
+======================================================================
+
+
+       Major changes between "less" versions 352 and 354
+
+* Allow space after numeric-valued command line options.
+
+* Fix problem with configuring terminal libraries on some systems.
+
+* Add support for PCRE regular expression library.
+
+* Add --with-regex option to configure to allow manually selecting
+  a regular expression library.
+
+* Fix bug compiling with SECURE = 1.
+
+======================================================================
+
+
+       Major changes between "less" versions 346 and 352
+
+* Enable UTF-8 if "UTF-8" appears in locale-related environment variables.
+
+* Add --with-editor option to configure script.
+
+* The -M prompt and = message now show the top and bottom line number.
+
+* Fix bug in running the editor on a file whose name contains quotes, etc.
+
+* Fix bug in horizontal scrolling of long lines.
+
+* Fix bug in doing :d on a file which contains marks.
+
+* Fix bug causing cleared lines to sometimes be filled with standout, 
+  bold, underline, etc. on certain terminals.
+
+* Fixes for MS-DOS (DJGPP) version.
+
+======================================================================
+
+
+       Major changes between "less" versions 340 and 346
+
+* The UTF-8 character set is now supported.
+
+* The default character set is now latin1 rather than ascii.
+
+* New option -R (--RAW-CONTROL-CHARS) is like -r but handles 
+  long (wrapped) lines correctly, as long as the input contains only 
+  normal text and ANSI color escape sequences.
+
+* New option -F (--quit-if-one-screen) quits if the text fits on
+  the first screen.
+
+* The -w option now highlights the target line of a g or p command.
+
+* A system-wide lesskey file is supported (LESSKEY_SYSTEM).
+
+* New escape for prompt strings: %c is replaced by column number.
+
+* New escape for prompt strings: %P is replaced by percentage into
+  file, based on line number rather than byte offset.
+
+* HOME and END keys now jump to beginning of file or end of file.
+
+======================================================================
+
+
+       Major changes between "less" versions 337 and 340
+
+* Command line options for less may now be given in either the old 
+  single-letter form, or a new long name form (--option-name).
+  See the less man page or "less --help" for the list of long option names.
+
+* Command line options for lesskey may now be given in a new long name
+  form.  See the lesskey man page for the list of long option names.
+
+* New command -- toggles an option using the long option name.
+
+* New command __ queries an option using the long option name.
+
+* The old -- command is renamed as -!.
+
+* If a ^P is entered between the dash and the option letter of the -
+  command, the message describing the new setting is suppressed.
+
+* Lesskey files may now contain \k escape sequences to represent the
+  "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE).
+
+* New command :d removes the current file from the list of files.
+
+* New option -~ (like -w before version 335)
+  suppresses tildes after end-of-file.
+
+* Less is now released under the GNU General Public License.
+
+======================================================================
+
+
+       Major changes between "less" versions 335 and 337
+
+* Fixed bugs in "make install".
 
 ======================================================================
 
diff -r 0604f9985348 -r ec9618c4ba41 usr.bin/less/less/README
--- a/usr.bin/less/less/README  Thu Jul 26 11:46:44 2001 +0000
+++ b/usr.bin/less/less/README  Thu Jul 26 12:00:22 2001 +0000
@@ -1,8 +1,27 @@
-=========================================================================
-    This is the distribution of less, version 335, released 03 Apr 1999
-    Please report any problems to the author at marknu%flash.net@localhost.
-        (Please note change of email address.)
+
+                            Less, version 358
+
+    This is the distribution of less, version 358, released 08 Jul 2000.
+    This program is part of the GNU project (http://www.gnu.org).
+
+    This program is free software.  You may redistribute it and/or
+    modify it under the terms of either:
+
+    1. The GNU General Public License, as published by the Free
+       Software Foundation; either version 2, or (at your option) any
+       later version.  A copy of this license is in the file COPYING.
+    or
+    2. The Less License, in the file LICENSE.
+
+    Please report any problems to bug-less%gnu.org@localhost or marknu%flash.net@localhost.
     See http://www.flash.net/~marknu/less for the latest info.
+    You may also contact the author at:
+          Mark Nudelman
+          Greenwood Software
+          PO Box 2402
+          El Granada, CA  94018
+          USA
+
 =========================================================================
 
 This is the distribution of "less", a paginator similar to "more" or "pg".
@@ -21,10 +40,31 @@
    This will generate a Makefile and a defines.h.
    Warning: if you have a GNU sed, make sure it is version 2.05 or later.
 
+   The file INSTALL describes the usage of the configure program in
+   general.  In addition, these options to configure are supported:
+
+   --with-editor=program
+     Specifies the default editor program used by the "v" command.
+     The default is "vi".
+   --with-regex=lib
+     Specifies the regular expression library used by less for pattern
+     matching.  The default is "auto", which means the configure program 
+     finds a regular expression library automatically.  Other values are:
+        posix          Use the POSIX-compatible regcomp.
+        pcre           Use the PCRE library.
+        regcmp         Use the regcmp library.
+        re_comp        Use the re_comp library.
+        regcomp        Use the V8-compatible regcomp.
+        regcomp-local  Use Henry Spencer's V8-compatible regcomp
+                       (source is supplied with less).
+
 3. It is a good idea to look over the generated Makefile and defines.h
    and make sure they look ok.  If you know of any peculiarities of
    your system that configure might not have detected, you may fix the
-   Makefile now.  
+   Makefile now.  Take particular notice of the list of "terminal" 
+   libraries in the LIBS definition in the Makefile; these may need 
+   to be edited.  The terminal libraries will be some subset of
+       -lncurses  -lcurses  -ltermcap  -ltermlib
 
    If you wish, you may edit defines.h to remove some optional features.
    If you wish to build a "secure" version of less (which disables all
@@ -66,7 +106,7 @@
    Depending on your compiler, you may need to convert the source 
    to have CR-LF rather than LF as line terminators.
 
-2. If you are using Microsoft C, rename MAKEFILE.DSM to MAKEFILE.
+2. If you are using Microsoft C, rename MAKEFILE.DSU to MAKEFILE.
    If you are using Borland C, rename MAKEFILE.DSB to MAKEFILE.
    If you are using DJGPP, rename MAKEFILE.DSG to MAKEFILE.
 
diff -r 0604f9985348 -r ec9618c4ba41 usr.bin/less/less/acconfig.h
--- a/usr.bin/less/less/acconfig.h      Thu Jul 26 11:46:44 2001 +0000
+++ b/usr.bin/less/less/acconfig.h      Thu Jul 26 12:00:22 2001 +0000
@@ -1,29 +1,13 @@
-/*     $NetBSD: acconfig.h,v 1.1.1.4 1999/04/06 05:30:35 mrg Exp $     */
+/*     $NetBSD: acconfig.h,v 1.1.1.5 2001/07/26 12:00:23 mrg Exp $     */
 
 /*
- * Copyright (c) 1984,1985,1989,1994,1995,1996,1999  Mark Nudelman
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice in the documentation and/or other materials provided with 
- *    the distribution.
+ * Copyright (C) 1984-2000  Mark Nudelman
  *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 
- * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * 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 
+ * contact the author, see the README file.
  */
 
 
@@ -31,16 +15,19 @@
  * Regular expression library.
  * Define exactly one of the following to be 1:
  * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
+ * HAVE_PCRE: PCRE (Perl-compatible regular expression) library
  * HAVE_RE_COMP: BSD re_comp()
  * HAVE_REGCMP: System V regcmp()
  * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
  * NO_REGEX: pattern matching is supported, but without metacharacters.
  */
 #undef HAVE_POSIX_REGCOMP
+#undef HAVE_PCRE
 #undef HAVE_RE_COMP
 #undef HAVE_REGCMP
 #undef HAVE_V8_REGCOMP
 #undef NO_REGEX
+#undef HAVE_REGEXEC2
 
 /* Define HAVE_VOID if your compiler supports the "void" type. */
 #undef HAVE_VOID
@@ -80,3 +67,12 @@
 
 /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
 #undef HAVE_UPPER_LOWER
+
+/* Define HAVE_SIGSET_T you have the sigset_t type */
+#undef HAVE_SIGSET_T
+
+/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro */
+#undef HAVE_SIGEMPTYSET
+
+/* Define EDIT_PGM to your editor. */
+#define EDIT_PGM       "vi"
diff -r 0604f9985348 -r ec9618c4ba41 usr.bin/less/less/cmd.h
--- a/usr.bin/less/less/cmd.h   Thu Jul 26 11:46:44 2001 +0000
+++ b/usr.bin/less/less/cmd.h   Thu Jul 26 12:00:22 2001 +0000
@@ -1,29 +1,13 @@
-/*     $NetBSD: cmd.h,v 1.1.1.4 1999/04/06 05:30:37 mrg Exp $  */
+/*     $NetBSD: cmd.h,v 1.1.1.5 2001/07/26 12:00:24 mrg Exp $  */
 
 /*
- * Copyright (c) 1984,1985,1989,1994,1995,1996,1999  Mark Nudelman
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice in the documentation and/or other materials provided with 
- *    the distribution.



Home | Main Index | Thread Index | Old Index