Permalink
Browse files

Import version 458 of "less". Changes since version 444:

* 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...
1 parent 2ef89a3 commit 913567a0c759cf791bf6fd2defe46f0fe96ef756 tron committed Sep 4, 2013
Showing with 1,160 additions and 712 deletions.
  1. +1 −1 external/bsd/less/dist/LICENSE
  2. +2 −3 external/bsd/less/dist/Makefile.aut
  3. +47 −2 external/bsd/less/dist/NEWS
  4. +7 −6 external/bsd/less/dist/README
  5. +3 −4 external/bsd/less/dist/brac.c
  6. +16 −4 external/bsd/less/dist/ch.c
  7. +3 −4 external/bsd/less/dist/charset.c
  8. +3 −4 external/bsd/less/dist/charset.h
  9. +6 −6 external/bsd/less/dist/cmd.h
  10. +56 −21 external/bsd/less/dist/cmdbuf.c
  11. +53 −24 external/bsd/less/dist/command.c
  12. +236 −229 external/bsd/less/dist/configure
  13. +49 −17 external/bsd/less/dist/configure.ac
  14. +13 −19 external/bsd/less/dist/cvt.c
  15. +4 −4 external/bsd/less/dist/decode.c
  16. +17 −3 external/bsd/less/dist/defines.ds
  17. +16 −10 external/bsd/less/dist/defines.h
  18. +15 −9 external/bsd/less/dist/defines.h.in
  19. +14 −3 external/bsd/less/dist/defines.o2
  20. +14 −3 external/bsd/less/dist/defines.o9
  21. +14 −3 external/bsd/less/dist/defines.wn
  22. +7 −4 external/bsd/less/dist/edit.c
  23. +47 −8 external/bsd/less/dist/filename.c
  24. +3 −4 external/bsd/less/dist/forwback.c
  25. +2 −1 external/bsd/less/dist/funcs.h
  26. +14 −15 external/bsd/less/dist/help.c
  27. +3 −4 external/bsd/less/dist/ifile.c
  28. +4 −5 external/bsd/less/dist/input.c
  29. +3 −4 external/bsd/less/dist/jump.c
  30. +62 −18 external/bsd/less/dist/less.1
  31. +6 −4 external/bsd/less/dist/less.h
  32. +13 −14 external/bsd/less/dist/less.hlp
  33. +12 −7 external/bsd/less/dist/lessecho.1
  34. +4 −5 external/bsd/less/dist/lessecho.c
  35. +5 −5 external/bsd/less/dist/lesskey.1
  36. +5 −5 external/bsd/less/dist/lesskey.c
  37. +3 −4 external/bsd/less/dist/lesskey.h
  38. +3 −4 external/bsd/less/dist/lglob.h
  39. +9 −4 external/bsd/less/dist/line.c
  40. +3 −4 external/bsd/less/dist/linenum.c
  41. +3 −4 external/bsd/less/dist/lsystem.c
  42. +4 −4 external/bsd/less/dist/main.c
  43. +3 −4 external/bsd/less/dist/mark.c
  44. +3 −4 external/bsd/less/dist/mkhelp.c
  45. +27 −5 external/bsd/less/dist/optfunc.c
  46. +30 −27 external/bsd/less/dist/option.c
  47. +3 −4 external/bsd/less/dist/option.h
  48. +13 −4 external/bsd/less/dist/opttbl.c
  49. +3 −4 external/bsd/less/dist/os.c
  50. +23 −10 external/bsd/less/dist/output.c
  51. +110 −68 external/bsd/less/dist/pattern.c
  52. +14 −4 external/bsd/less/dist/pattern.h
  53. +3 −4 external/bsd/less/dist/pckeys.h
  54. +4 −5 external/bsd/less/dist/position.c
  55. +3 −4 external/bsd/less/dist/position.h
  56. +9 −10 external/bsd/less/dist/prompt.c
  57. +1 −1 external/bsd/less/dist/regexp.c
  58. +1 −1 external/bsd/less/dist/regexp.h
  59. +5 −6 external/bsd/less/dist/screen.c
  60. +3 −4 external/bsd/less/dist/scrsize.c
  61. +64 −19 external/bsd/less/dist/search.c
  62. +3 −4 external/bsd/less/dist/signal.c
  63. +3 −4 external/bsd/less/dist/tags.c
  64. +3 −4 external/bsd/less/dist/ttyin.c
  65. +25 −6 external/bsd/less/dist/version.c
@@ -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
@@ -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
@@ -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"; \
@@ -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.
======================================================================
@@ -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
@@ -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.
=========================================================================
@@ -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
@@ -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 }}.
@@ -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.
*/
@@ -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.
*/
@@ -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);
}
@@ -808,6 +809,17 @@ seekable(f)
}
/*
+ * 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.
*/
public void
@@ -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.
*/
@@ -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)
@@ -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
@@ -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
@@ -80,7 +80,7 @@
#define A_EXTRA 0200
-/* Line editting characters */
+/* Line editing characters */
#define EC_BACKSPACE 1
#define EC_LINEKILL 2
Oops, something went wrong.

0 comments on commit 913567a

Please sign in to comment.