Skip to content

Commit

Permalink
Import version 458 of "less". Changes since version 444:
Browse files Browse the repository at this point in the history
* Allow backslash escaping of metacharacters in LESS environment variable
  after the --use-backslash option.
* Don't quit if syntax errors are found in command line options.
* Increase sizes of some internal buffers.
* Fix configure bug with --with-regex=none.
* Fix crash with "stty rows 0".
* Fix display bug when using up/down arrow on the command line.
* Add ESC-F command to keep reading data until a pattern is found.
* Use exit code of LESSOPEN script if LESSOPEN starts with "||".
* When up/down arrow is used on the command line immediately after
  typing text, the next command starting with that text is found.
* Add support for GNU regex.
* Add configure option --with-regex=none and fix compile errors
  when compiling with no regex library.
* Fix possible crashes caused by malformed LESSOPEN or
  LESSCLOSE variables.
* Fix bug highlighting text which is discontiguous in the file
  due to backspace processing.
* Fix bug in displaying status column when scrolling backwards
  with -J and -S in effect.
  • Loading branch information
tron committed Sep 4, 2013
1 parent 2ef89a3 commit 913567a
Show file tree
Hide file tree
Showing 65 changed files with 1,160 additions and 712 deletions.
2 changes: 1 addition & 1 deletion external/bsd/less/dist/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
------------

Less
Copyright (C) 1984-2011 Mark Nudelman
Copyright (C) 1984-2012 Mark Nudelman

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions external/bsd/less/dist/Makefile.aut
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Makefile for authoring less.

EMAIL = markn@greenwoodsoftware.com
EMAIL = bug-less@gnu.org
HOMEPAGE = http://www.greenwoodsoftware.com/less
SHELL = /bin/sh
RCS = rcs
Expand Down Expand Up @@ -112,8 +112,7 @@ dist: ${DISTFILES}
echo "Preparing $$REL"; \
rm -rf $$REL; mkdir $$REL; \
for file in ${DISTFILES}; do \
cp -p $$file $$REL; \
chmod -w $$REL/$$file; \
./add_copyright $$file $$REL; \
done; \
cd $$REL; chmod +w ${DISTFILES_W}; cd ..; \
echo "Creating release/$$REL/$$REL.tar.gz"; \
Expand Down
49 changes: 47 additions & 2 deletions external/bsd/less/dist/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,53 @@
http://www.greenwoodsoftware.com/less
You can also download the latest version of less from there.

To report bugs, suggestions or comments, send email to
bug-less@gnu.org or markn@greenwoodsoftware.com.
To report bugs, suggestions or comments, send email to bug-less@gnu.org.

======================================================================

Major changes between "less" versions 451 and 458

* Allow backslash escaping of metacharacters in LESS environment variable
after the --use-backslash option.

* Don't quit if syntax errors are found in command line options.

* Increase sizes of some internal buffers.

* Fix configure bug with --with-regex=none.

* Fix crash with "stty rows 0".

* Fix Win32 attribute display bug.

* Fix display bug when using up/down arrow on the command line.

======================================================================

Major changes between "less" versions 444 and 451

* Add ESC-F command to keep reading data until a pattern is found.

* Use exit code of LESSOPEN script if LESSOPEN starts with "||".

* When up/down arrow is used on the command line immediately after
typing text, the next command starting with that text is found.

* Add support for GNU regex.

* Add configure option --with-regex=none and fix compile errors
when compiling with no regex library.

* Fix bugs handling SGR sequences in Win32.

* Fix possible crashes caused by malformed LESSOPEN or
LESSCLOSE variables.

* Fix bug highlighting text which is discontiguous in the file
due to backspace processing.

* Fix bug in displaying status column when scrolling backwards
with -J and -S in effect.

======================================================================

Expand Down
13 changes: 7 additions & 6 deletions external/bsd/less/dist/README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Less, version 444
Less, version 458

This is the distribution of less, version 444, released 09 Jun 2011.
This is the distribution of less, version 458, released 04 Apr 2013.
This program is part of the GNU project (http://www.gnu.org).

This program is free software. You may redistribute it and/or
Expand All @@ -13,7 +13,7 @@
or
2. The Less License, in the file LICENSE.

Please report any problems to bug-less@gnu.org or markn@greenwoodsoftware.com.
Please report any problems to bug-less@gnu.org.
See http://www.greenwoodsoftware.com/less for the latest info.

=========================================================================
Expand Down Expand Up @@ -52,10 +52,11 @@ INSTALLATION (Unix systems only):
regcomp Use the V8-compatible regcomp.
regcomp-local Use Henry Spencer's V8-compatible regcomp
(source is supplied with less).
none No regular expressions, only simple string matching.
--with-secure
Builds a "secure" version of less, with some features disabled
to prevent users from viewing other files, accessing shell
commands, etc.
to prevent users from viewing other files, accessing shell
commands, etc.


3. It is a good idea to look over the generated Makefile and defines.h
Expand Down Expand Up @@ -88,7 +89,7 @@ INSTALLATION (Unix systems only):
bindir and/or mandir to the appropriate directories.

If you have any problems building or running "less", suggestions,
complaints, etc., you may mail to the author at markn@greenwoodsoftware.com.
complaints, etc., you may mail to bug-less@gnu.org.

Note to hackers: comments noting possible improvements are enclosed
in double curly brackets {{ like this }}.
Expand Down
7 changes: 3 additions & 4 deletions external/bsd/less/dist/brac.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/* $NetBSD */
/* $NetBSD: brac.c,v 1.1.1.2 2013/09/04 19:35:03 tron Exp $ */

/*
* Copyright (C) 1984-2011 Mark Nudelman
* Copyright (C) 1984-2012 Mark Nudelman
*
* 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.
* For more information, see the README file.
*/


Expand Down
20 changes: 16 additions & 4 deletions external/bsd/less/dist/ch.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/* $NetBSD */
/* $NetBSD: ch.c,v 1.1.1.2 2013/09/04 19:35:03 tron Exp $ */

/*
* Copyright (C) 1984-2011 Mark Nudelman
* Copyright (C) 1984-2012 Mark Nudelman
*
* 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.
* For more information, see the README file.
*/


Expand Down Expand Up @@ -584,6 +583,8 @@ ch_length()
return (NULL_POSITION);
if (ch_flags & CH_HELPFILE)
return (size_helpdata);
if (ch_flags & CH_NODATA)
return (0);
return (ch_fsize);
}

Expand Down Expand Up @@ -807,6 +808,17 @@ seekable(f)
return (lseek(f, (off_t)1, SEEK_SET) != BAD_LSEEK);
}

/*
* Force EOF to be at the current read position.
* This is used after an ignore_eof read, during which the EOF may change.
*/
public void
ch_set_eof()
{
ch_fsize = ch_fpos;
}


/*
* Initialize file state for a new file.
*/
Expand Down
7 changes: 3 additions & 4 deletions external/bsd/less/dist/charset.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/* $NetBSD */
/* $NetBSD: charset.c,v 1.1.1.2 2013/09/04 19:35:03 tron Exp $ */

/*
* Copyright (C) 1984-2011 Mark Nudelman
* Copyright (C) 1984-2012 Mark Nudelman
*
* 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.
* For more information, see the README file.
*/


Expand Down
7 changes: 3 additions & 4 deletions external/bsd/less/dist/charset.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/* $NetBSD */
/* $NetBSD: charset.h,v 1.1.1.2 2013/09/04 19:35:03 tron Exp $ */

/*
* Copyright (C) 2005-2011 Mark Nudelman
* Copyright (C) 1984-2012 Mark Nudelman
*
* 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.
* For more information, see the README file.
*/

#define IS_ASCII_OCTET(c) (((c) & 0x80) == 0)
Expand Down
12 changes: 6 additions & 6 deletions external/bsd/less/dist/cmd.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
/* $NetBSD */
/* $NetBSD: cmd.h,v 1.1.1.2 2013/09/04 19:35:03 tron Exp $ */

/*
* Copyright (C) 1984-2011 Mark Nudelman
* Copyright (C) 1984-2012 Mark Nudelman
*
* 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.
* For more information, see the README file.
*/


#define MAX_USERCMD 500
#define MAX_USERCMD 1000
#define MAX_CMDLEN 16

#define A_B_LINE 2
Expand Down Expand Up @@ -68,6 +67,7 @@
#define A_NEXT_TAG 53
#define A_PREV_TAG 54
#define A_FILTER 55
#define A_F_UNTIL_HILITE 56

#define A_INVALID 100
#define A_NOACTION 101
Expand All @@ -80,7 +80,7 @@
#define A_EXTRA 0200


/* Line editting characters */
/* Line editing characters */

#define EC_BACKSPACE 1
#define EC_LINEKILL 2
Expand Down
Loading

0 comments on commit 913567a

Please sign in to comment.