]> git.wh0rd.org Git - nano.git/log
nano.git
9 years agoEliding an unneeded variable.
Benno Schulenberg [Sun, 22 Nov 2015 16:09:15 +0000 (16:09 +0000)]
Eliding an unneeded variable.

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

9 years agoRewrapping, rewriting, renaming, and reordering some things.
Benno Schulenberg [Sun, 22 Nov 2015 16:08:28 +0000 (16:08 +0000)]
Rewrapping, rewriting, renaming, and reordering some things.

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

9 years agoDeleting a condition that will never occur.
Benno Schulenberg [Sun, 22 Nov 2015 16:07:23 +0000 (16:07 +0000)]
Deleting a condition that will never occur.

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

9 years agoAdding the release marker, and copying the news item from the 2.4 branch.
Benno Schulenberg [Sat, 21 Nov 2015 19:55:09 +0000 (19:55 +0000)]
Adding the release marker, and copying the news item from the 2.4 branch.

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

9 years agoLetting the value of a --fill option on the command line
Benno Schulenberg [Sat, 21 Nov 2015 19:44:27 +0000 (19:44 +0000)]
Letting the value of a --fill option on the command line
override the value of a "set fill" option in an rcfile.
This fixes Savannah bug #46492.

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

9 years agoFixing a typo and adjusting some spacing.
Benno Schulenberg [Sat, 21 Nov 2015 19:05:10 +0000 (19:05 +0000)]
Fixing a typo and adjusting some spacing.
Patch by David Lawrence Ramsey.

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

9 years agoDeleting an unneeded variable alias.
Benno Schulenberg [Thu, 12 Nov 2015 19:50:33 +0000 (19:50 +0000)]
Deleting an unneeded variable alias.

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

9 years agoStoring the correct end position of an inserted file,
Benno Schulenberg [Thu, 12 Nov 2015 19:01:57 +0000 (19:01 +0000)]
Storing the correct end position of an inserted file,
and using it for an undo and redo.

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

9 years agoDiscarding a now useless function.
Benno Schulenberg [Wed, 11 Nov 2015 19:56:35 +0000 (19:56 +0000)]
Discarding a now useless function.

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

9 years agoOops! Blackout!
Benno Schulenberg [Wed, 11 Nov 2015 19:15:36 +0000 (19:15 +0000)]
Oops!  Blackout!

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

9 years agoChopping the now unused parameter 'undoing'.
Benno Schulenberg [Wed, 11 Nov 2015 19:04:31 +0000 (19:04 +0000)]
Chopping the now unused parameter 'undoing'.

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

9 years agoRedoing an Enter from stored undo data, instead of running do_enter() again,
Benno Schulenberg [Wed, 11 Nov 2015 18:51:39 +0000 (18:51 +0000)]
Redoing an Enter from stored undo data, instead of running do_enter() again,
because the latter behaves differently depending on the setting of autoindent.

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

9 years agoPlugging four memory leaks.
Benno Schulenberg [Tue, 10 Nov 2015 15:09:36 +0000 (15:09 +0000)]
Plugging four memory leaks.

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

9 years agoSkipping a zero-length match only when there /is/ a match.
Benno Schulenberg [Tue, 10 Nov 2015 10:39:12 +0000 (10:39 +0000)]
Skipping a zero-length match only when there /is/ a match.
(Finally I understood what valgrind was complaining about.)

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

9 years agoAccepting longer bug and patch numbers.
Benno Schulenberg [Sun, 8 Nov 2015 19:44:57 +0000 (19:44 +0000)]
Accepting longer bug and patch numbers.

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

9 years agoAllowing to exit the file browser with the same key as it was entered: ^T.
Benno Schulenberg [Sun, 8 Nov 2015 19:40:13 +0000 (19:40 +0000)]
Allowing to exit the file browser with the same key as it was entered: ^T.

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

9 years agoCorrecting the logic for adjusting the x position of the mark,
Benno Schulenberg [Sat, 7 Nov 2015 09:49:34 +0000 (09:49 +0000)]
Correcting the logic for adjusting the x position of the mark,
and improving the comments.

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

9 years agoDeleting a redundant assignment.
Benno Schulenberg [Fri, 6 Nov 2015 21:02:50 +0000 (21:02 +0000)]
Deleting a redundant assignment.

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

9 years agoNot setting 'openfile->mark_begin' for no reason.
Benno Schulenberg [Fri, 6 Nov 2015 20:55:46 +0000 (20:55 +0000)]
Not setting 'openfile->mark_begin' for no reason.

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

9 years agoNot checking whether a function has a help line; it's irrelevant.
Benno Schulenberg [Fri, 6 Nov 2015 20:25:05 +0000 (20:25 +0000)]
Not checking whether a function has a help line; it's irrelevant.

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

9 years agoTruncating an overlong hostname properly instead of bailing out
Benno Schulenberg [Fri, 6 Nov 2015 20:14:37 +0000 (20:14 +0000)]
Truncating an overlong hostname properly instead of bailing out
when writing a lock file.

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

9 years agoChopping the 'undoing' parameter, so that the calls of do_cut_text() become
Benno Schulenberg [Mon, 2 Nov 2015 13:46:40 +0000 (13:46 +0000)]
Chopping the 'undoing' parameter, so that the calls of do_cut_text() become
more symmetrical: wrapped in add_undo() + update_undo() where needed.

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

9 years agoEliding two variables.
Benno Schulenberg [Mon, 2 Nov 2015 11:24:22 +0000 (11:24 +0000)]
Eliding two variables.

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

9 years agoImproving several comments.
Benno Schulenberg [Mon, 2 Nov 2015 10:40:06 +0000 (10:40 +0000)]
Improving several comments.

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

9 years agoDeleting an unused type definition.
Benno Schulenberg [Mon, 2 Nov 2015 10:27:02 +0000 (10:27 +0000)]
Deleting an unused type definition.

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

9 years agoCorrecting the changelog description of an old change.
Benno Schulenberg [Sat, 31 Oct 2015 20:32:11 +0000 (20:32 +0000)]
Correcting the changelog description of an old change.

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

9 years agoImproving comments and combining two conditions.
Benno Schulenberg [Sat, 31 Oct 2015 20:17:09 +0000 (20:17 +0000)]
Improving comments and combining two conditions.

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

9 years agoRefreshing the mark's pointer only when it is on the same line as the cursor,
Benno Schulenberg [Sat, 31 Oct 2015 19:03:53 +0000 (19:03 +0000)]
Refreshing the mark's pointer only when it is on the same line as the cursor,
and recalculating the mark's x coordinate only when the mark comes after it.
Also correcting the recalculation in one case.

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

9 years agoAdding a forgotton bug number to the Changelog.
Benno Schulenberg [Thu, 29 Oct 2015 21:10:26 +0000 (21:10 +0000)]
Adding a forgotton bug number to the Changelog.

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

9 years agoTweaking the Changelog.
Benno Schulenberg [Thu, 29 Oct 2015 17:31:34 +0000 (17:31 +0000)]
Tweaking the Changelog.

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

9 years agoRemoving an 'if' that will never be true, and removing some
Benno Schulenberg [Thu, 29 Oct 2015 17:27:33 +0000 (17:27 +0000)]
Removing an 'if' that will never be true, and removing some
assignments that have already been done.

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

9 years agoChecking for "nothing to redo" earlier, in order to restore the
Benno Schulenberg [Thu, 29 Oct 2015 17:02:13 +0000 (17:02 +0000)]
Checking for "nothing to redo" earlier, in order to restore the
possible warning about an internal error.

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

9 years agoSkipping the addition of an undo only when the current action equals the
Benno Schulenberg [Thu, 29 Oct 2015 16:52:42 +0000 (16:52 +0000)]
Skipping the addition of an undo only when the current action equals the
last action.  Necessary for when typing text is broken by an undo+redo.

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

9 years agoMaking ^O work the same way as under Pico when option -t is given:
Benno Schulenberg [Thu, 29 Oct 2015 10:36:07 +0000 (10:36 +0000)]
Making ^O work the same way as under Pico when option -t is given:
writing out the file immediately, without prompting.
Patch by David Lawrence Ramsey.

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

9 years agoOops! You can't swap those two conditions.
Benno Schulenberg [Thu, 29 Oct 2015 09:04:30 +0000 (09:04 +0000)]
Oops!  You can't swap those two conditions.

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

9 years agoRemoving a condition that can never occur.
Benno Schulenberg [Wed, 28 Oct 2015 20:49:16 +0000 (20:49 +0000)]
Removing a condition that can never occur.

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

9 years agoSpoofing a line number for the redoing of an INSERT, because
Benno Schulenberg [Wed, 28 Oct 2015 20:24:15 +0000 (20:24 +0000)]
Spoofing a line number for the redoing of an INSERT, because
'u->mark_begin_lineno' is being used as the length of the insertion.

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

9 years agoNot calculating the line length twice.
Benno Schulenberg [Tue, 27 Oct 2015 16:57:32 +0000 (16:57 +0000)]
Not calculating the line length twice.

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

9 years agoRewriting do_next_word() to use the same, simpler logic as do_prev_word().
Benno Schulenberg [Tue, 27 Oct 2015 16:48:24 +0000 (16:48 +0000)]
Rewriting do_next_word() to use the same, simpler logic as do_prev_word().

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

9 years agoJumping to the beginning of the current word when in its middle
Benno Schulenberg [Sat, 5 Sep 2015 09:40:09 +0000 (09:40 +0000)]
Jumping to the beginning of the current word when in its middle
instead of to the beginning of the preceding word, to match the
behaviour of Pico and of most other editors.  It also rewrites
the entire routine.

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

9 years agoDropping a return value that is never used.
Benno Schulenberg [Sat, 5 Sep 2015 09:22:50 +0000 (09:22 +0000)]
Dropping a return value that is never used.

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

9 years agoForcing a redraw of a line only when it contains a multicolumn character,
Benno Schulenberg [Sat, 5 Sep 2015 09:14:24 +0000 (09:14 +0000)]
Forcing a redraw of a line only when it contains a multicolumn character,
as that is the only known situation where things go wrong.  This spares
all regular text a significant slowdown.

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

9 years agoReverting my own patch that claimed that UTF8 is a stateless encoding.
Benno Schulenberg [Fri, 4 Sep 2015 19:34:55 +0000 (19:34 +0000)]
Reverting my own patch that claimed that UTF8 is a stateless encoding.
Apparently there is /some/ state somewhere after all.  Don't have time
now to figure out where exactly.

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

9 years agoRewrapping some lines and tweaking two comments.
Benno Schulenberg [Sat, 29 Aug 2015 20:14:57 +0000 (20:14 +0000)]
Rewrapping some lines and tweaking two comments.

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

9 years agoAdding a file: syntax colouring for Autoconf files.
Benno Schulenberg [Sat, 29 Aug 2015 19:52:03 +0000 (19:52 +0000)]
Adding a file: syntax colouring for Autoconf files.

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

9 years agoDiscarding an unneeded extra freeing of the help text.
Benno Schulenberg [Sun, 16 Aug 2015 17:53:28 +0000 (17:53 +0000)]
Discarding an unneeded extra freeing of the help text.

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

9 years agoNot bothering to set things to NULL when they will be initialized right away,
Benno Schulenberg [Sun, 16 Aug 2015 15:21:32 +0000 (15:21 +0000)]
Not bothering to set things to NULL when they will be initialized right away,
nor bothering with a separate initialization function when it's used only once.

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

9 years agoRemoving some duplication in the initialization of a new openfile node.
Benno Schulenberg [Sun, 16 Aug 2015 13:05:35 +0000 (13:05 +0000)]
Removing some duplication in the initialization of a new openfile node.

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

9 years agoRenaming and reordering most of 'help_line_len()'.
Benno Schulenberg [Sun, 16 Aug 2015 12:20:24 +0000 (12:20 +0000)]
Renaming and reordering most of 'help_line_len()'.

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

9 years agoDetermining the length of the current line by starting at the very
Benno Schulenberg [Sun, 16 Aug 2015 12:15:11 +0000 (12:15 +0000)]
Determining the length of the current line by starting at the very
beginning of it instead of at the wrap location.

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

9 years agoNot bothering to pass around a function when it's used only once.
Benno Schulenberg [Sun, 16 Aug 2015 09:28:33 +0000 (09:28 +0000)]
Not bothering to pass around a function when it's used only once.

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

9 years agoAdjusting some comments and whitespace.
Benno Schulenberg [Sun, 16 Aug 2015 09:14:42 +0000 (09:14 +0000)]
Adjusting some comments and whitespace.

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

9 years agoReducing the scope of a variable.
Benno Schulenberg [Sun, 16 Aug 2015 08:49:29 +0000 (08:49 +0000)]
Reducing the scope of a variable.

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

9 years agoAvoiding wide paragraphs of running text in the help screens,
Benno Schulenberg [Sun, 16 Aug 2015 08:43:56 +0000 (08:43 +0000)]
Avoiding wide paragraphs of running text in the help screens,
wrapping them at 74 columns if the screen is wider.

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

9 years agoAllowing to change the file format in restricted mode, but actually disabling
Benno Schulenberg [Thu, 13 Aug 2015 19:29:55 +0000 (19:29 +0000)]
Allowing to change the file format in restricted mode, but actually disabling
Appending, Prepending, making Backups, and opening the File Browser.

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

9 years agoSpeeding up the finding of the longest filename in the current folder.
Benno Schulenberg [Thu, 13 Aug 2015 18:22:29 +0000 (18:22 +0000)]
Speeding up the finding of the longest filename in the current folder.

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

9 years agoRemoving the mistaken comparison between a pointer and a literal character.
Benno Schulenberg [Thu, 13 Aug 2015 17:46:19 +0000 (17:46 +0000)]
Removing the mistaken comparison between a pointer and a literal character.
(It will always be false, so it is apparently unneeded.)

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

9 years agoNot bothering to reset any state, because UTF-8 is a stateless encoding.
Benno Schulenberg [Wed, 12 Aug 2015 19:27:13 +0000 (19:27 +0000)]
Not bothering to reset any state, because UTF-8 is a stateless encoding.

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

9 years agoAvoiding a possibly erroneous message, because failing to delete
Benno Schulenberg [Tue, 11 Aug 2015 17:43:08 +0000 (17:43 +0000)]
Avoiding a possibly erroneous message, because failing to delete
the temporary file does not mean that copying failed.

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

9 years agoAvoiding a call of copy_file() with a null pointer.
Benno Schulenberg [Tue, 11 Aug 2015 17:27:30 +0000 (17:27 +0000)]
Avoiding a call of copy_file() with a null pointer.

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

9 years agoMaking a message sound more definitive instead of temporary.
Benno Schulenberg [Sun, 9 Aug 2015 18:12:32 +0000 (18:12 +0000)]
Making a message sound more definitive instead of temporary.

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

9 years agoRemoving an unneeded and mistaken condition:
Benno Schulenberg [Sun, 9 Aug 2015 18:10:13 +0000 (18:10 +0000)]
Removing an unneeded and mistaken condition:
if something should be blanked, then both.

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

9 years agoFixing compilation with --enable-tiny: file formats don't exist then.
Benno Schulenberg [Sun, 9 Aug 2015 16:31:01 +0000 (16:31 +0000)]
Fixing compilation with --enable-tiny: file formats don't exist then.

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

9 years agoAllowing to toggle whitespace display also when support for nanorc files
Benno Schulenberg [Sun, 9 Aug 2015 16:05:50 +0000 (16:05 +0000)]
Allowing to toggle whitespace display also when support for nanorc files
has not been built in, since the default values are quite usable.

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

9 years agoPutting in the null byte "manually", and only when using UTF-8.
Benno Schulenberg [Sat, 8 Aug 2015 08:10:57 +0000 (08:10 +0000)]
Putting in the null byte "manually", and only when using UTF-8.

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

9 years agoImproving the formatting of the texi file, to get better HTML
Benno Schulenberg [Thu, 6 Aug 2015 19:42:08 +0000 (19:42 +0000)]
Improving the formatting of the texi file, to get better HTML
without adding confusing single quotes to the Info document.

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

9 years agoLetting malloc() help to find initialization failures and uses-after-free.
Benno Schulenberg [Thu, 6 Aug 2015 09:01:33 +0000 (09:01 +0000)]
Letting malloc() help to find initialization failures and uses-after-free.
Change was suggested by Mike Frysinger.

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

9 years agoTweaking the documentation. Mainly putting prevword and nextword in
Benno Schulenberg [Tue, 4 Aug 2015 19:51:02 +0000 (19:51 +0000)]
Tweaking the documentation.  Mainly putting prevword and nextword in
the standard order, and giving the Savannah URL for bug reporting.

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

9 years agoAdvertising the five new bindable functions.
Benno Schulenberg [Tue, 4 Aug 2015 19:20:51 +0000 (19:20 +0000)]
Advertising the five new bindable functions.

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

9 years agoAdding the option --unix (and 'set unix'),
Benno Schulenberg [Tue, 4 Aug 2015 18:49:57 +0000 (18:49 +0000)]
Adding the option --unix (and 'set unix'),
to save a file by default in Unix format.

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

9 years agoPlugging a tiny leak.
Benno Schulenberg [Mon, 3 Aug 2015 19:52:48 +0000 (19:52 +0000)]
Plugging a tiny leak.

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

9 years agoPlugging a memory leak.
Benno Schulenberg [Mon, 3 Aug 2015 08:32:52 +0000 (08:32 +0000)]
Plugging a memory leak.

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

9 years agoChecking the value of shortcut->toggle only if it actually is a toggle.
Benno Schulenberg [Mon, 3 Aug 2015 08:03:22 +0000 (08:03 +0000)]
Checking the value of shortcut->toggle only if it actually is a toggle.

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

9 years agoInitializing also openfile->syntax.
Benno Schulenberg [Sun, 2 Aug 2015 20:27:45 +0000 (20:27 +0000)]
Initializing also openfile->syntax.

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

9 years agoAdding "and exit" to the description of --help, for veracity, to match
Benno Schulenberg [Sat, 1 Aug 2015 08:47:38 +0000 (08:47 +0000)]
Adding "and exit" to the description of --help, for veracity, to match
--version, and to distinguish it more from the description of ^G.

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

9 years agoShowing also the dedicated keys in the ^G help text,
Benno Schulenberg [Sat, 1 Aug 2015 08:41:36 +0000 (08:41 +0000)]
Showing also the dedicated keys in the ^G help text,
to clarify some keys and to see which ones can be rebound.

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

9 years agoSetting each multiline-color value instead of OR-ing it.
Benno Schulenberg [Sat, 1 Aug 2015 08:35:14 +0000 (08:35 +0000)]
Setting each multiline-color value instead of OR-ing it.

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

9 years agoAdding two new bindable functions which delete all characters
Benno Schulenberg [Fri, 31 Jul 2015 11:52:26 +0000 (11:52 +0000)]
Adding two new bindable functions which delete all characters
from the cursor to the preceding or succeeding word start.

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

9 years agoProviding feedback for ^Z when suspension is not enabled.
Benno Schulenberg [Thu, 30 Jul 2015 20:15:01 +0000 (20:15 +0000)]
Providing feedback for ^Z when suspension is not enabled.

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

9 years agoChanging "Justify" to a tag and regrouping a couple.
Benno Schulenberg [Thu, 30 Jul 2015 19:51:08 +0000 (19:51 +0000)]
Changing "Justify" to a tag and regrouping a couple.

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

9 years agoDifferentiating between something being disabled/restricted and
Benno Schulenberg [Thu, 30 Jul 2015 18:10:16 +0000 (18:10 +0000)]
Differentiating between something being disabled/restricted and
help texts being unavailable.

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

9 years agoNormalizing whitespace after the preceding changes.
Benno Schulenberg [Thu, 30 Jul 2015 11:29:45 +0000 (11:29 +0000)]
Normalizing whitespace after the preceding changes.

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

9 years agoNot showing ^R and ^T in the help lines in restricted mode (if possible),
Benno Schulenberg [Thu, 30 Jul 2015 10:37:28 +0000 (10:37 +0000)]
Not showing ^R and ^T in the help lines in restricted mode (if possible),
to give visual feedback.

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

9 years agoMaking the four toggles that don't have any effect in restricted mode
Benno Schulenberg [Wed, 29 Jul 2015 20:21:45 +0000 (20:21 +0000)]
Making the four toggles that don't have any  effect in restricted mode
say that they're disabled.

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

9 years agoNot showing options that don't have any effect when asking for --help in
Benno Schulenberg [Wed, 29 Jul 2015 19:31:50 +0000 (19:31 +0000)]
Not showing options that don't have any effect when asking for --help in
restricted mode.

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

9 years agoIt is better to say that this function is disabled
Benno Schulenberg [Wed, 29 Jul 2015 17:36:39 +0000 (17:36 +0000)]
It is better to say that this function is disabled
than that no linter has been defined.

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

9 years agoDropping two superfluous checks for restricted mode, and
Benno Schulenberg [Tue, 28 Jul 2015 20:04:18 +0000 (20:04 +0000)]
Dropping two superfluous checks for restricted mode, and
two superfluous checks for the definition of a formatter.

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

9 years agoReenabling SIGWINCH-es also when invocation of the formatter fails,
Benno Schulenberg [Tue, 28 Jul 2015 19:39:34 +0000 (19:39 +0000)]
Reenabling SIGWINCH-es also when invocation of the formatter fails,
and correcting some comments.

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

9 years agoMaking the calculation of the new line size more efficient and symmetrical,
Benno Schulenberg [Sun, 26 Jul 2015 17:29:34 +0000 (17:29 +0000)]
Making the calculation of the new line size more efficient and symmetrical,
and renaming two variables in the process.

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

9 years agoImproving a few comments.
Benno Schulenberg [Sun, 26 Jul 2015 17:04:29 +0000 (17:04 +0000)]
Improving a few comments.

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

9 years agoTweaking a string, to match the --help text.
Benno Schulenberg [Sun, 26 Jul 2015 09:29:42 +0000 (09:29 +0000)]
Tweaking a string, to match the --help text.

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

9 years agoAdding two new bindable functions that repeat the last search command
Benno Schulenberg [Sun, 26 Jul 2015 09:23:24 +0000 (09:23 +0000)]
Adding two new bindable functions that repeat the last search command
in a fixed direction without prompting.

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

9 years agoFinding each zero-length match only once, when doing regex replacements.
Benno Schulenberg [Sun, 26 Jul 2015 08:20:28 +0000 (08:20 +0000)]
Finding each zero-length match only once, when doing regex replacements.

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

9 years agoAdding a new bindable function that writes a file to disk without
Benno Schulenberg [Sat, 25 Jul 2015 19:25:50 +0000 (19:25 +0000)]
Adding a new bindable function that writes a file to disk without
first asking for its name.  Patch was suggested by Seiya Nuta.

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

9 years agoMentioning the configure options --disable-histories and --disable-libmagic.
Benno Schulenberg [Thu, 23 Jul 2015 19:31:36 +0000 (19:31 +0000)]
Mentioning the configure options --disable-histories and --disable-libmagic.

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

9 years agoFinding only valid UTF-8 byte sequences when searching.
Benno Schulenberg [Thu, 23 Jul 2015 19:18:25 +0000 (19:18 +0000)]
Finding only valid UTF-8 byte sequences when searching.

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

9 years agoAdding deprecation notices for the options 'const' and 'poslog'.
Benno Schulenberg [Thu, 23 Jul 2015 17:56:54 +0000 (17:56 +0000)]
Adding deprecation notices for the options 'const' and 'poslog'.

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

9 years agoPlugging a few memory leaks.
Benno Schulenberg [Wed, 22 Jul 2015 18:02:36 +0000 (18:02 +0000)]
Plugging a few memory leaks.
Patch by Mike Frysinger.

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

9 years agoCorrecting a name in the Changelog; otherwise googling for it is difficult.
Benno Schulenberg [Sun, 19 Jul 2015 16:01:15 +0000 (16:01 +0000)]
Correcting a name in the Changelog; otherwise googling for it is difficult.

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

9 years agoAdjusting some comments for clarity and accuracy, and rewrapping some lines.
Benno Schulenberg [Sun, 19 Jul 2015 09:25:25 +0000 (09:25 +0000)]
Adjusting some comments for clarity and accuracy, and rewrapping some lines.

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