]> git.wh0rd.org Git - nano.git/log
nano.git
8 years agoAdjusting dates and version number.
Benno Schulenberg [Sun, 10 Jan 2016 16:18:43 +0000 (16:18 +0000)]
Adjusting dates and version number.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5542 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdding a news item for the upcoming 2.5.1.
Benno Schulenberg [Sun, 10 Jan 2016 16:10:57 +0000 (16:10 +0000)]
Adding a news item for the upcoming 2.5.1.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5541 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoSnipping inconsistent blank lines in the Changelog.
Benno Schulenberg [Sat, 9 Jan 2016 21:10:39 +0000 (21:10 +0000)]
Snipping inconsistent blank lines in the Changelog.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5540 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNot going beyond the number of available rows in the edit window.
Benno Schulenberg [Sat, 9 Jan 2016 20:21:29 +0000 (20:21 +0000)]
Not going beyond the number of available rows in the edit window.
This fixes Savannah bug #42188.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5539 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMaking sure to keep advancing also when regex matches are zero-length.
Benno Schulenberg [Sat, 9 Jan 2016 18:41:56 +0000 (18:41 +0000)]
Making sure to keep advancing also when regex matches are zero-length.
This fixes Savannah bug #26977 -- a hang on start="^" end="$".

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5538 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdding a comment and using a symbolic value.
Benno Schulenberg [Thu, 7 Jan 2016 15:42:44 +0000 (15:42 +0000)]
Adding a comment and using a symbolic value.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5537 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDelete two unneeded #ifdefs -- better fail to compile than create a cripple.
Benno Schulenberg [Thu, 7 Jan 2016 15:21:59 +0000 (15:21 +0000)]
Delete two unneeded #ifdefs -- better fail to compile than create a cripple.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5536 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMaking "Tab" produce the appropriate keycode.
Benno Schulenberg [Mon, 4 Jan 2016 19:42:37 +0000 (19:42 +0000)]
Making "Tab" produce the appropriate keycode.
This fixes Savannah bug #46812.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5535 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoGettextizing a forgotten string.
Benno Schulenberg [Mon, 4 Jan 2016 11:10:07 +0000 (11:10 +0000)]
Gettextizing a forgotten string.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5534 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdding "Tab" as a key description, just like "Del" and "Enter" already are.
Benno Schulenberg [Mon, 4 Jan 2016 10:50:21 +0000 (10:50 +0000)]
Adding "Tab" as a key description, just like "Del" and "Enter" already are.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5533 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoImproving the name of allow_pending_sigwinch() to allow_sigwinch(),
Benno Schulenberg [Mon, 4 Jan 2016 10:37:11 +0000 (10:37 +0000)]
Improving the name of allow_pending_sigwinch() to allow_sigwinch(),
and improving its comments too.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5532 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoCondensing the exit code of do_linter().
Benno Schulenberg [Mon, 4 Jan 2016 10:05:52 +0000 (10:05 +0000)]
Condensing the exit code of do_linter().

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5531 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRewriting the loop, and constifying the input of sctofunc().
Benno Schulenberg [Mon, 4 Jan 2016 09:52:43 +0000 (09:52 +0000)]
Rewriting the loop, and constifying the input of sctofunc().

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5530 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNo longer freeing any existing functions -- they are defined only once.
Benno Schulenberg [Mon, 4 Jan 2016 09:44:35 +0000 (09:44 +0000)]
No longer freeing any existing functions -- they are defined only once.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5529 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoConstifying the input parameter of strtosc() and strtomenu().
Benno Schulenberg [Mon, 4 Jan 2016 09:12:21 +0000 (09:12 +0000)]
Constifying the input parameter of strtosc() and strtomenu().
Patch by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5528 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdjusting the indentation after the previous change.
Benno Schulenberg [Sun, 3 Jan 2016 17:37:05 +0000 (17:37 +0000)]
Adjusting the indentation after the previous change.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5527 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAlerting the user when a functionless shortcut is encountered.
Benno Schulenberg [Sun, 3 Jan 2016 17:07:29 +0000 (17:07 +0000)]
Alerting the user when a functionless shortcut is encountered.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5526 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAborting reset_multis() when there are zero multiline regexes.
Benno Schulenberg [Sun, 3 Jan 2016 16:57:17 +0000 (16:57 +0000)]
Aborting reset_multis() when there are zero multiline regexes.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5525 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoLetting reset_multis() figure out whether after an addition a full refresh is
Benno Schulenberg [Sun, 3 Jan 2016 16:21:04 +0000 (16:21 +0000)]
Letting reset_multis() figure out whether after an addition a full refresh is
needed (for the sake of multiline regexes), instead of doing it always.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5524 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoLetting reset_multis() figure out whether after a deletion a full refresh is
Benno Schulenberg [Sun, 3 Jan 2016 15:35:52 +0000 (15:35 +0000)]
Letting reset_multis() figure out whether after a deletion a full refresh is
needed, before doing a redraw of the current line.
This fixes Savannah bug #46794

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5523 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoCorrectly restoring the settings of NO_HELP and MORE_SPACE.
Benno Schulenberg [Sat, 2 Jan 2016 16:33:03 +0000 (16:33 +0000)]
Correctly restoring the settings of NO_HELP and MORE_SPACE.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5522 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoSkipping the unneeded reinitialization of the windows;
Benno Schulenberg [Sat, 2 Jan 2016 16:25:50 +0000 (16:25 +0000)]
Skipping the unneeded reinitialization of the windows;
it will be done when polling the keybuffer.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5521 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoPlugging three tiny memory leaks.
Benno Schulenberg [Sat, 2 Jan 2016 16:01:04 +0000 (16:01 +0000)]
Plugging three tiny memory leaks.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5520 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoChopping a duplicate parameter.
Benno Schulenberg [Thu, 31 Dec 2015 19:20:40 +0000 (19:20 +0000)]
Chopping a duplicate parameter.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5519 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoChopping an always FALSE parameter.
Benno Schulenberg [Thu, 31 Dec 2015 17:20:46 +0000 (17:20 +0000)]
Chopping an always FALSE parameter.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5518 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDeleting a now unused function.
Benno Schulenberg [Thu, 31 Dec 2015 16:49:07 +0000 (16:49 +0000)]
Deleting a now unused function.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5517 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRestoring the cursor position differently, using a more basic routine.
Benno Schulenberg [Thu, 31 Dec 2015 16:44:32 +0000 (16:44 +0000)]
Restoring the cursor position differently, using a more basic routine.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5516 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNormalizing the comments in the OCaml file.
Benno Schulenberg [Wed, 30 Dec 2015 20:57:31 +0000 (20:57 +0000)]
Normalizing the comments in the OCaml file.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5515 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNot trying to position the cursor when opening a buffer failed.
Benno Schulenberg [Wed, 30 Dec 2015 10:11:20 +0000 (10:11 +0000)]
Not trying to position the cursor when opening a buffer failed.
This fixes Savannah bug #46778.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5514 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDisabling the regex for multiline strings in C and Assembler,
Benno Schulenberg [Tue, 29 Dec 2015 16:48:25 +0000 (16:48 +0000)]
Disabling the regex for multiline strings in C and Assembler,
as it colours some things wrong and is a glutton on time.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5513 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoGoing back to the filename prompt when the user decides to save a
Benno Schulenberg [Wed, 23 Dec 2015 19:18:33 +0000 (19:18 +0000)]
Going back to the filename prompt when the user decides to save a
changed buffer after all, as the buffer may not have a name yet.
This fixes Savannah bug #46752.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5512 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNot opening an extra blank buffer when an empty file is read.
Benno Schulenberg [Wed, 23 Dec 2015 16:44:39 +0000 (16:44 +0000)]
Not opening an extra blank buffer when an empty file is read.
This bug was exposed by r5498 on December 18.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5511 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoImproving the ordering of two bindable functions.
Benno Schulenberg [Wed, 23 Dec 2015 16:37:04 +0000 (16:37 +0000)]
Improving the ordering of two bindable functions.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5510 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoOffering ^Q in the writeout menu to close and discard the current buffer
Benno Schulenberg [Wed, 23 Dec 2015 16:34:44 +0000 (16:34 +0000)]
Offering ^Q in the writeout menu to close and discard the current buffer
without saving it.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5509 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoPreventing valid pointers from getting truncated and rejected.
Benno Schulenberg [Wed, 23 Dec 2015 14:05:47 +0000 (14:05 +0000)]
Preventing valid pointers from getting truncated and rejected.
Patch by Mike Frysinger, tweaked by Benno.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5508 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoHistory: no prompting on exit errors, because making the user hit Enter when
Benno Schulenberg [Wed, 23 Dec 2015 13:37:55 +0000 (13:37 +0000)]
History: no prompting on exit errors, because making the user hit Enter when
there's an error saving history state at exit is pointless and annoying.
Just notify the user and move on.
Patch by Mike Frysinger, tweaked and extended by Benno.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5507 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoExpanding the autoconf syntax a little, by handling .m4 files too, adding the
Benno Schulenberg [Wed, 23 Dec 2015 10:54:40 +0000 (10:54 +0000)]
Expanding the autoconf syntax a little, by handling .m4 files too, adding the
"elif" keyword, handling dnl comments better, and marking trailing whitespace.
Patch by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5506 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAC_CHECK_HEADERS_ONCE() is very special cannot be conditionalized.
Benno Schulenberg [Wed, 23 Dec 2015 09:39:50 +0000 (09:39 +0000)]
AC_CHECK_HEADERS_ONCE() is very special cannot be conditionalized.
Use plain AC_CHECK_HEADERS() instead, so ./configure will not check
for magic.h and zlib.h when --disable-libmagic is given.
Patch by Christian Weisgerber.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5505 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoUsing 'return' instead of an intermediate variable.
Benno Schulenberg [Tue, 22 Dec 2015 20:24:50 +0000 (20:24 +0000)]
Using 'return' instead of an intermediate variable.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5504 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRenaming three keyboard functions -- 'get' is not a good name when the
Benno Schulenberg [Tue, 22 Dec 2015 19:00:25 +0000 (19:00 +0000)]
Renaming three keyboard functions -- 'get' is not a good name when the
routine isn't getting something from somewhere but just converting it.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5503 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoTweaking the Changelog.
Benno Schulenberg [Tue, 22 Dec 2015 16:52:09 +0000 (16:52 +0000)]
Tweaking the Changelog.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5502 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMoving two functions to the color.c file, where they belong.
Benno Schulenberg [Tue, 22 Dec 2015 16:51:00 +0000 (16:51 +0000)]
Moving two functions to the color.c file, where they belong.
And making the checking for an impatient user into a separate routine.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5501 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoPrecalculating the multiline-regex cache data for each buffer,
Benno Schulenberg [Sun, 20 Dec 2015 21:10:41 +0000 (21:10 +0000)]
Precalculating the multiline-regex cache data for each buffer,
not just for the first.  This fixes Savannah bug #46511.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5500 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoTweaking some comments and improving a variable name.
Benno Schulenberg [Fri, 18 Dec 2015 20:44:01 +0000 (20:44 +0000)]
Tweaking some comments and improving a variable name.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5499 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoChopping a superfluous boolean parameter -- 'prevnode' being NULL is
Benno Schulenberg [Fri, 18 Dec 2015 19:18:23 +0000 (19:18 +0000)]
Chopping a superfluous boolean parameter -- 'prevnode' being NULL is
enough indication that the first line is being read.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5498 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoImproving some comments and renaming three variables.
Benno Schulenberg [Fri, 18 Dec 2015 18:44:40 +0000 (18:44 +0000)]
Improving some comments and renaming three variables.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5497 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdjusting the whitespace after the previous change, and adding a comment.
Benno Schulenberg [Fri, 18 Dec 2015 10:45:35 +0000 (10:45 +0000)]
Adjusting the whitespace after the previous change, and adding a comment.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5496 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoUsing a couple less #ifdefs, to mimic how this is done in set_colorpairs().
Benno Schulenberg [Fri, 18 Dec 2015 10:41:09 +0000 (10:41 +0000)]
Using a couple less #ifdefs, to mimic how this is done in set_colorpairs().

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5495 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdding the missing autoconf and nftables syntaxes to the files to be
Benno Schulenberg [Fri, 11 Dec 2015 16:55:07 +0000 (16:55 +0000)]
Adding the missing autoconf and nftables syntaxes to the files to be
distributed.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5494 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRewrapping and reordering a few lines.
Benno Schulenberg [Tue, 8 Dec 2015 19:09:14 +0000 (19:09 +0000)]
Rewrapping and reordering a few lines.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5493 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoIt shouldn't be necessary to doubly check for being at the end of file.
Benno Schulenberg [Tue, 8 Dec 2015 18:54:13 +0000 (18:54 +0000)]
It shouldn't be necessary to doubly check for being at the end of file.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5492 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoLetting also unlink_node() update 'filebot', instead of doing it in
Benno Schulenberg [Tue, 8 Dec 2015 16:02:05 +0000 (16:02 +0000)]
Letting also unlink_node() update 'filebot', instead of doing it in
four different places.  It is not a problem that the history routines
also use these functions, as history nodes will never equal filebot.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5491 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMaking splice_node() update 'filebot', instead of doing it in
Benno Schulenberg [Tue, 8 Dec 2015 15:29:56 +0000 (15:29 +0000)]
Making splice_node() update 'filebot', instead of doing it in
four different places.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5490 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMaking ^O always prompt for a filename, also when --tempfile is given.
Benno Schulenberg [Mon, 7 Dec 2015 17:05:04 +0000 (17:05 +0000)]
Making ^O always prompt for a filename, also when --tempfile is given.
Users who want an immediate save, can bind the function 'savefile'.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5489 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoQuitting the loop when there is no end match.
Benno Schulenberg [Mon, 7 Dec 2015 15:40:07 +0000 (15:40 +0000)]
Quitting the loop when there is no end match.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5488 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoFixing whitespace, layout, wording, and typo.
Benno Schulenberg [Mon, 7 Dec 2015 13:31:38 +0000 (13:31 +0000)]
Fixing whitespace, layout, wording, and typo.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5487 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoBack to SVN
Chris Allegretta [Sun, 6 Dec 2015 05:40:56 +0000 (05:40 +0000)]
Back to SVN

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5486 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoTypo in release announcement
Chris Allegretta [Sun, 6 Dec 2015 05:27:40 +0000 (05:27 +0000)]
Typo in release announcement

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5485 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoGNU nano 2.5.0 release v2.5.0
Chris Allegretta [Sun, 6 Dec 2015 05:24:07 +0000 (05:24 +0000)]
GNU nano 2.5.0 release

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5483 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years ago2015-12-05 Chris Allegretta <chrisa@asty.org>
Chris Allegretta [Sun, 6 Dec 2015 05:21:43 +0000 (05:21 +0000)]
2015-12-05  Chris Allegretta <chrisa@asty.org>
* src/nano.c (main) : key_defined() is an ncurses-ism.  Add
better checks for this.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5482 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAvoiding two compilation warnings.
Benno Schulenberg [Sat, 5 Dec 2015 11:38:26 +0000 (11:38 +0000)]
Avoiding two compilation warnings.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5481 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoUpdating date and version number for the upcoming release.
Benno Schulenberg [Sat, 5 Dec 2015 11:04:24 +0000 (11:04 +0000)]
Updating date and version number for the upcoming release.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5480 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoFixing compilation with --enable-tiny --enable-justify.
Benno Schulenberg [Sat, 5 Dec 2015 10:16:26 +0000 (10:16 +0000)]
Fixing compilation with --enable-tiny --enable-justify.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5479 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRewrapping some lines and tweaking some comments.
Benno Schulenberg [Fri, 4 Dec 2015 21:11:10 +0000 (21:11 +0000)]
Rewrapping some lines and tweaking some comments.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5478 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoFusing three functions into a single one.
Benno Schulenberg [Fri, 4 Dec 2015 20:54:34 +0000 (20:54 +0000)]
Fusing three functions into a single one.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5477 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAvoiding a compilation warning.
Benno Schulenberg [Fri, 4 Dec 2015 11:01:48 +0000 (11:01 +0000)]
Avoiding a compilation warning.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5476 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdding a note to the documentation about undo not working after
Benno Schulenberg [Thu, 3 Dec 2015 09:34:10 +0000 (09:34 +0000)]
Adding a note to the documentation about undo not working after
a justification or reindentation.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5475 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDiscarding the entire undo stack, to prevent nano from making mistakes
Benno Schulenberg [Thu, 3 Dec 2015 09:17:06 +0000 (09:17 +0000)]
Discarding the entire undo stack, to prevent nano from making mistakes
when trying to undo edits after an indentation change.
This works around Savannah bug #46591.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5474 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDiscarding the entire undo stack, to prevent nano from dying (or
Benno Schulenberg [Thu, 3 Dec 2015 09:03:45 +0000 (09:03 +0000)]
Discarding the entire undo stack, to prevent nano from dying (or
making mistakes) when trying to undo edits after a justification.
This works around Savannah bug #45531.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5473 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMoving the trimming of the undo stack into a separate function.
Benno Schulenberg [Thu, 3 Dec 2015 08:50:34 +0000 (08:50 +0000)]
Moving the trimming of the undo stack into a separate function.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5472 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoA typo fix by David Lawrence Ramsey,
Benno Schulenberg [Thu, 3 Dec 2015 08:35:40 +0000 (08:35 +0000)]
A typo fix by David Lawrence Ramsey,
and an accent fix by myself.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5471 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoOh darn... doing too many things at once.
Benno Schulenberg [Wed, 2 Dec 2015 19:13:06 +0000 (19:13 +0000)]
Oh darn... doing too many things at once.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5470 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoEhm... that was a silly, superfluous condition.
Benno Schulenberg [Wed, 2 Dec 2015 19:11:03 +0000 (19:11 +0000)]
Ehm... that was a silly, superfluous condition.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5469 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAccepting not just 'Uncut' but also 'Undo' for undoing a justification.
Benno Schulenberg [Wed, 2 Dec 2015 19:03:34 +0000 (19:03 +0000)]
Accepting not just 'Uncut' but also 'Undo' for undoing a justification.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5468 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoTreating backslashed quotes properly, and
Benno Schulenberg [Wed, 2 Dec 2015 10:29:18 +0000 (10:29 +0000)]
Treating backslashed quotes properly, and
not colouring triple-quoted strings twice.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5467 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNot colouring triple quotes by themselves (in Python).
Benno Schulenberg [Wed, 2 Dec 2015 09:19:04 +0000 (09:19 +0000)]
Not colouring triple quotes by themselves (in Python).

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5466 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdding syntax colouring for nftables.
Benno Schulenberg [Wed, 2 Dec 2015 09:14:45 +0000 (09:14 +0000)]
Adding syntax colouring for nftables.
Original file by Arturo Borrero Gonzalez.
This addresses Debian bug #805288.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5465 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDeleting four superfluous checks.
Benno Schulenberg [Tue, 1 Dec 2015 13:44:52 +0000 (13:44 +0000)]
Deleting four superfluous checks.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5464 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoUnindenting the part that was the 'else'.
Benno Schulenberg [Tue, 1 Dec 2015 13:33:45 +0000 (13:33 +0000)]
Unindenting the part that was the 'else'.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5463 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRenaming a label and eliding an 'else'.
Benno Schulenberg [Tue, 1 Dec 2015 12:49:17 +0000 (12:49 +0000)]
Renaming a label and eliding an 'else'.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5462 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMoving a check to a better place.
Benno Schulenberg [Tue, 1 Dec 2015 12:35:48 +0000 (12:35 +0000)]
Moving a check to a better place.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5461 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDeleting two redundant assignments.
Benno Schulenberg [Tue, 1 Dec 2015 11:51:10 +0000 (11:51 +0000)]
Deleting two redundant assignments.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5460 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRenaming two variables for clarity.
Benno Schulenberg [Tue, 1 Dec 2015 11:43:13 +0000 (11:43 +0000)]
Renaming two variables for clarity.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5459 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMarking the current buffer as mofified only when actually something
Benno Schulenberg [Tue, 1 Dec 2015 11:39:04 +0000 (11:39 +0000)]
Marking the current buffer as mofified only when actually something
was inserted.  This fixes Savannah bug #45409.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5458 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAllowing an array parameter to be NULL.
Benno Schulenberg [Mon, 30 Nov 2015 16:44:44 +0000 (16:44 +0000)]
Allowing an array parameter to be NULL.
This fixes Savannah bug #46420.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5457 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoStoring and retrieving the correct file size before and after an action.
Benno Schulenberg [Mon, 30 Nov 2015 16:21:51 +0000 (16:21 +0000)]
Storing and retrieving the correct file size before and after an action.
This fixes Savannah bug #45523.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5456 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRedoing cuts at EOF properly.
Benno Schulenberg [Mon, 30 Nov 2015 15:49:37 +0000 (15:49 +0000)]
Redoing cuts at EOF properly.
This fixes Savannah bug #46541.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5455 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoEliding a variable, and tweaking some comments.
Benno Schulenberg [Sun, 29 Nov 2015 14:15:16 +0000 (14:15 +0000)]
Eliding a variable, and tweaking some comments.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5454 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDeleting two redundant conditions, and moving the least frequent case
Benno Schulenberg [Sun, 29 Nov 2015 13:52:48 +0000 (13:52 +0000)]
Deleting two redundant conditions, and moving the least frequent case
to the end.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5453 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoUsing the main multidata-cache-allocation routine.
Benno Schulenberg [Sun, 29 Nov 2015 13:20:08 +0000 (13:20 +0000)]
Using the main multidata-cache-allocation routine.
(Note that there can only be colorstrings when there /is/ a syntax,
so there is no need to check for the latter here.)

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5452 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAlways setting the multidata to CBEGINBEFORE when an end is found,
Benno Schulenberg [Sun, 29 Nov 2015 12:31:49 +0000 (12:31 +0000)]
Always setting the multidata to CBEGINBEFORE when an end is found,
also when the coloured part is horizontally scrolled off.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5451 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdjusting whitespace and comments.
Benno Schulenberg [Sun, 29 Nov 2015 10:43:10 +0000 (10:43 +0000)]
Adjusting whitespace and comments.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5450 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoResetting the multidata a bit less often.
Benno Schulenberg [Sun, 29 Nov 2015 10:14:25 +0000 (10:14 +0000)]
Resetting the multidata a bit less often.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5449 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoEvaluating correctly whether to reset the multidata cache.
Benno Schulenberg [Sun, 29 Nov 2015 10:07:49 +0000 (10:07 +0000)]
Evaluating correctly whether to reset the multidata cache.
This fixes Savannah bug #46543.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5448 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoInitializing a newly allocated multidata array.
Benno Schulenberg [Sat, 28 Nov 2015 19:03:33 +0000 (19:03 +0000)]
Initializing a newly allocated multidata array.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5447 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAllowing the user full control over the values of MALLOC_CHECK_ and
Benno Schulenberg [Sat, 28 Nov 2015 17:29:39 +0000 (17:29 +0000)]
Allowing the user full control over the values of MALLOC_CHECK_ and
MALLOC_PERTURB_; nano shouldn't override them.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5446 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

9 years agoWarning about an impossible condition, instead of blithely continuing.
Benno Schulenberg [Thu, 26 Nov 2015 09:31:33 +0000 (09:31 +0000)]
Warning about an impossible condition, instead of blithely continuing.
And eliding an unneeded variable.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5445 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

9 years agoAlso the /redoing/ of a Backspace at EOF is a special case.
Benno Schulenberg [Thu, 26 Nov 2015 08:45:22 +0000 (08:45 +0000)]
Also the /redoing/ of a Backspace at EOF is a special case.
This fixes Savannah bug #46532.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5444 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

9 years agoAdding Mark Majeres and myself to the AUTHORS file.
Benno Schulenberg [Wed, 25 Nov 2015 10:23:05 +0000 (10:23 +0000)]
Adding Mark Majeres and myself to the AUTHORS file.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5443 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

9 years agoHandling more internal errors, and doing it correctly: showing it
Benno Schulenberg [Wed, 25 Nov 2015 10:11:54 +0000 (10:11 +0000)]
Handling more internal errors, and doing it correctly: showing it
directly on the statusbar instead of as an undid or redid message.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5442 35c25a1d-7b9e-4130-9fde-d3aeb78583b8