]>
git.wh0rd.org Git - nano.git/log
Benno Schulenberg [Wed, 30 Mar 2016 12:18:22 +0000 (12:18 +0000)]
Renaming a variable for clarity.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5778
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Wed, 30 Mar 2016 12:09:39 +0000 (12:09 +0000)]
Renaming 'do_replace_highlight()' to 'spotlight()', for clarity,
for aptness, for contrast.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5777
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Wed, 30 Mar 2016 12:00:48 +0000 (12:00 +0000)]
Reporting "Cancelled" instead of "Not found" when the user aborts a replace
that is taking too long. This fixes Savannah bug #47439.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5776
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Tue, 29 Mar 2016 15:05:47 +0000 (15:05 +0000)]
Chopping a parameter that is now unused, or rather: always NULL.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5775
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Tue, 29 Mar 2016 14:56:32 +0000 (14:56 +0000)]
Allowing the user to stop replacing a word without aborting also the
whole spell-fixing session.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5774
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Tue, 29 Mar 2016 14:46:53 +0000 (14:46 +0000)]
Speeding up Unicode validation.
(The measurable effect (during long searches, for example) is zero, though.)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5773
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Tue, 29 Mar 2016 14:16:55 +0000 (14:16 +0000)]
Improving the wording of an error message: the confinement of
an operating directory is not the same as restricted mode.
(In restricted mode, the file browser is not available at all.)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5772
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Tue, 29 Mar 2016 14:09:17 +0000 (14:09 +0000)]
Placing the cursor in the edit window again also after a Justify, after an
invalid escape sequence, and when entering a verbatim keystroke.
But leaving the cursor off during Unicode input, for extra feedback.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5771
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Tue, 29 Mar 2016 12:14:00 +0000 (12:14 +0000)]
Placing the cursor in the edit window also when --constantshow is in effect.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5770
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 28 Mar 2016 19:30:27 +0000 (19:30 +0000)]
Deleting a no-op.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5769
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 28 Mar 2016 19:14:33 +0000 (19:14 +0000)]
Removing the 'last_replace' variable that is never used.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5768
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 28 Mar 2016 19:00:19 +0000 (19:00 +0000)]
Providing feedback when searching takes longer than roughly half a second.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5767
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 28 Mar 2016 18:53:49 +0000 (18:53 +0000)]
Not bothering to put back the cursor in the edit window, as it is off
anyway, and it will be placed back when it's needed: in the main loop.
This prevents a segfault laid bare by r5763: when trying, at startup,
to open a directory, there really is no open buffer yet.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5766
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Wed, 23 Mar 2016 20:21:36 +0000 (20:21 +0000)]
Eliding an unneeded 'if' and unneeded variable.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5765
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Wed, 23 Mar 2016 20:04:33 +0000 (20:04 +0000)]
Tidying up and renaming a variable.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5764
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Wed, 23 Mar 2016 19:48:44 +0000 (19:48 +0000)]
Removing a pointless condition, and making use of an existing intermediary
variable for a little optimization.
Openfile can never be NULL -- it should have been called openbuffer, and
before we start fiddling with the cursor, we will always have an open buffer.
Edittop might be NULL, but that's okay.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5763
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Wed, 23 Mar 2016 10:27:54 +0000 (10:27 +0000)]
Polling the keyboard once per second instead of once per two seconds.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5762
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Wed, 23 Mar 2016 10:19:01 +0000 (10:19 +0000)]
Cleaning up, improving comments, and renaming a variable.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5761
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Wed, 23 Mar 2016 09:52:34 +0000 (09:52 +0000)]
Preventing the internal spell checker from finding the first occurrence of
a misspelled word twice. And deleting the piece of dead code that was meant
to do this. This fixes Savannah bug #47188.
When we've reached again the same line where we started and we find an
instance there, then this can only be /before or at/ the position from
where we started, otherwise we would have found it when we commenced
searching. And so... that little piece of dead code does absolutely
nothing -- it will never fire.
It's so nice... nano is full of Easter Eggs! :)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5760
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Tue, 22 Mar 2016 10:42:28 +0000 (10:42 +0000)]
Checking for the existence of the REG_ENHANCED regex flag, and
using it when it's available (which it is on OS X systems).
This completes the fix for Savannah bug #47325.
Patch by Thomas Rosenau.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5759
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 21 Mar 2016 20:49:29 +0000 (20:49 +0000)]
Renaming four variables.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5758
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 21 Mar 2016 20:38:08 +0000 (20:38 +0000)]
Trimming a duplicate variable.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5757
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 20 Mar 2016 16:57:15 +0000 (16:57 +0000)]
Factoring out the common part of do_search() and do_research()
into the new function go_looking().
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5756
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 20 Mar 2016 16:19:30 +0000 (16:19 +0000)]
Not bothering to set 'answer'; just using 'last_search', which has already
been set to 'answer' in search_init() when 'answer' isn't empty, and when
'answer' /is/ empty we use 'last_search' anyway.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5755
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 20 Mar 2016 16:03:20 +0000 (16:03 +0000)]
Using a 'return' instead of an 'else'.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5754
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 20 Mar 2016 14:34:46 +0000 (14:34 +0000)]
Always asking whether it's okay when the name of the file was changed.
This fixes Savannah bug #46894.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5753
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 20 Mar 2016 13:38:09 +0000 (13:38 +0000)]
Cycling through the tab-completion items from newest to oldest.
This fixes Savannah bug #47205.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5752
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 20 Mar 2016 11:10:31 +0000 (11:10 +0000)]
Not putting cut words into the cutbuffer -- which means: treating the
deletion of words like the pressing of Backspace/Delete, so they don't
overwrite the lines you cut elsewhere and want to paste into the place
of the cut words.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5751
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 20 Mar 2016 10:57:14 +0000 (10:57 +0000)]
Normalizing the punctuation in some prompts: no space before a question mark,
and a semicolon instead of a comma between phrases.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5750
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 19 Mar 2016 20:19:49 +0000 (20:19 +0000)]
Snipping a useless setting of answer -- the Replace is being /cancelled/,
and the next time a Search or Replace is run, this answer is overwritten
with an empty string.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5749
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 19 Mar 2016 18:51:46 +0000 (18:51 +0000)]
Reshuffling some stuff to reduce indentation.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5748
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 19 Mar 2016 18:23:37 +0000 (18:23 +0000)]
Snipping an always-FALSE condition -- do_prompt() will always
return with -2 when answer is empty, so when answer is empty
i cannot be zero.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5747
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 19 Mar 2016 17:19:30 +0000 (17:19 +0000)]
Deleting another unneeded variable. Fully redundant.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5746
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 19 Mar 2016 17:13:33 +0000 (17:13 +0000)]
Deleting a now unneeded variable.
We will need this again when one day we make a toggle between
jumping to a directory and searching for a filename fragment,
just like the ^T toggle that exists in the Search / Go-to-line
menus. But for now, we don't need this.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5745
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 19 Mar 2016 17:01:40 +0000 (17:01 +0000)]
Deleting a snippet of dead code -- the MGOTODIR menu doesn't have any
functions that could be executed -- other than the line-edition ones,
which are executed under do_prompt(). So the latter won't return
unless either it was cancelled or an answer was given. Also, if it
/had/ returned with a value bigger than zero, it tried to put back
the key sequence for do_gotolinecolumn_void(), which does not exist
in the MBROWSER menu, so this would not have done anything.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5744
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 19 Mar 2016 16:41:45 +0000 (16:41 +0000)]
Not bothering to set the current answer to the empty string,
as do_prompt() can handle a NULL.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5743
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 19 Mar 2016 16:19:44 +0000 (16:19 +0000)]
Storing always the last-typed string, also when it's an invalid regex.
This fixes Savannah bug #47440.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5742
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Thu, 17 Mar 2016 19:30:29 +0000 (19:30 +0000)]
Adjusting some indentation.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5741
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Thu, 17 Mar 2016 18:51:46 +0000 (18:51 +0000)]
Pruning two #ifdefs, like elsewhere, to reduce the clutter.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5740
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Thu, 17 Mar 2016 10:06:15 +0000 (10:06 +0000)]
Removing two redundant returns, and condensing six comments.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5739
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Thu, 17 Mar 2016 09:12:30 +0000 (09:12 +0000)]
Using the Search key bindings also during a Re-search, to enable cancelling.
This fixes Savannah bug #47159.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5738
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 14 Mar 2016 17:14:35 +0000 (17:14 +0000)]
Rearranging some things to reduce the indentation level by four steps,
so we can unwrap a dozen lines.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5737
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 14 Mar 2016 16:09:52 +0000 (16:09 +0000)]
Making an error message equal to others, to reduce the msgid count.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5736
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 14 Mar 2016 16:01:44 +0000 (16:01 +0000)]
Avoiding to dereference a possible NULL.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5735
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 13 Mar 2016 20:13:16 +0000 (20:13 +0000)]
Giving a central variable a ringing name --
tmp* is something for 5 lines, not for 300.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5734
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 13 Mar 2016 20:05:36 +0000 (20:05 +0000)]
Renaming a variable, from 'endcolor' to 'lastcolor', to fully avoid
the idea that it might have something to do with 'end_regex'.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5733
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 13 Mar 2016 19:37:21 +0000 (19:37 +0000)]
Combining the regular-expression flags at compile time instead of at run time.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5732
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 13 Mar 2016 19:19:12 +0000 (19:19 +0000)]
Allowing the use of word boundary markers \< and \> in search strings on
non-GNU systems. This is a partial fix for Savannah bug #47325.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5731
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 13 Mar 2016 19:09:28 +0000 (19:09 +0000)]
Mentioning SVN instead of CVS, in the docs and in a comment.
Patch by Thomas Rosenau.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5730
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 12 Mar 2016 11:15:12 +0000 (11:15 +0000)]
Refinding the tail of the colors list only when extending,
not for every added color, thus saving some 15 microseconds.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5729
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 12 Mar 2016 10:21:02 +0000 (10:21 +0000)]
Renaming a variable.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5728
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 12 Mar 2016 09:52:16 +0000 (09:52 +0000)]
Reducing the indentation by short-circuiting a loop.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5727
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 12 Mar 2016 09:43:10 +0000 (09:43 +0000)]
Renaming two functions, to be more distinguishable --
a leading underscore as the only difference is not enough.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5726
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 12 Mar 2016 09:37:48 +0000 (09:37 +0000)]
Tweaking the Changelog a bit, and the NEWS file (double spacing version jumps).
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5725
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 12 Mar 2016 09:18:50 +0000 (09:18 +0000)]
Unnesting two ifs -- to put filenames, headerlines, and magic strings
on equal footing.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5724
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sat, 12 Mar 2016 08:46:18 +0000 (08:46 +0000)]
Setting the syntax and regex pointers just once, in a single place.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5723
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 11 Mar 2016 17:14:30 +0000 (17:14 +0000)]
Fixing compilation when configured with --enable-tiny plus --enable-nanorc.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5722
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 11 Mar 2016 16:51:15 +0000 (16:51 +0000)]
Checking for an open syntax first, before checking it is named "default".
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5721
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 11 Mar 2016 16:45:00 +0000 (16:45 +0000)]
Eliding a variable.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5720
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 11 Mar 2016 16:39:27 +0000 (16:39 +0000)]
Tweaking some comments and reshuffling/reindenting some lines.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5719
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 11 Mar 2016 16:30:29 +0000 (16:30 +0000)]
Fixing compilation when configured with --enable-tiny plus --enable-browser.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5718
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Thu, 10 Mar 2016 20:36:12 +0000 (20:36 +0000)]
Renaming a variable to better fit its new role.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5717
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Thu, 10 Mar 2016 20:06:01 +0000 (20:06 +0000)]
Turning the linked list of syntaxes upside-down, so that the last-defined one
comes first, so that a search can stop at the first match instead of always
having to run through the entire list.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5716
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Thu, 10 Mar 2016 11:00:59 +0000 (11:00 +0000)]
Eliding the functions parse_header_exp() and parse_magic_exp(),
and reshuffling the parameters in grab_and_store().
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5715
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Thu, 10 Mar 2016 10:36:49 +0000 (10:36 +0000)]
Folding the parsing of a linter and formatter command into a single routine.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5714
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Thu, 10 Mar 2016 09:46:21 +0000 (09:46 +0000)]
Not accepting 'header" and 'magic' commands for the default syntax.
This fixes Savannah bug #47323.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5713
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Wed, 9 Mar 2016 21:00:42 +0000 (21:00 +0000)]
Using the grab_and_store() function also for gathering up extension regexes.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5712
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Wed, 9 Mar 2016 20:28:50 +0000 (20:28 +0000)]
Producing an adequate error message when the syntax name is improperly quoted.
This fixes Savannah bug #47324.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5711
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 4 Mar 2016 20:50:38 +0000 (20:50 +0000)]
Tweaking a few things and renaming a variable.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5710
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 4 Mar 2016 20:22:27 +0000 (20:22 +0000)]
Renaming three variables.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5709
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 4 Mar 2016 18:28:03 +0000 (18:28 +0000)]
Eliding the now too tiny function free_list_item().
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5708
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 4 Mar 2016 17:04:56 +0000 (17:04 +0000)]
Deleting a now-unused struct member.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5707
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 4 Mar 2016 14:53:45 +0000 (14:53 +0000)]
Not bothering to keep the compiled regular expression when it matched.
Stopping instead to call malloc() pointlessly.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5706
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Tue, 1 Mar 2016 11:21:05 +0000 (11:21 +0000)]
Allowing to select an empty syntax. And selecting the last
instead of the first syntax that matches a certain magic string
(forgotten in the previous commit).
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5705
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Tue, 1 Mar 2016 11:06:00 +0000 (11:06 +0000)]
Not bothering to discard a duplicate syntax -- selecting simply the
last-defined one. This addresses Savannah bug #47303.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5704
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 29 Feb 2016 16:56:54 +0000 (16:56 +0000)]
Not dereferencing symlinks, so that the syntax will be derived from the
name given on the command line, not from the name of the target file.
This fixes Savannah bug #47307.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5703
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 29 Feb 2016 15:40:13 +0000 (15:40 +0000)]
Fixing breakage of r5695 -- I confused nregcomp() with regcomp(). :(
Hhrr... Names that don't seem to differ...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5702
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 29 Feb 2016 12:17:53 +0000 (12:17 +0000)]
Renaming a variable and reshuffling a few lines.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5701
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 29 Feb 2016 12:04:22 +0000 (12:04 +0000)]
"Closing" an extended syntax again, to prevent sneakily extending
the last-defined syntax.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5700
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 29 Feb 2016 10:54:48 +0000 (10:54 +0000)]
Arranging some things more orderly.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5699
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 29 Feb 2016 10:29:52 +0000 (10:29 +0000)]
Not allocating a struct for the "none" syntax -- it doesn't need any.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5698
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Mon, 29 Feb 2016 09:17:03 +0000 (09:17 +0000)]
Renaming a struct member.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5697
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 28 Feb 2016 20:38:14 +0000 (20:38 +0000)]
Disallowing the addition of further things to a syntax when
an rcfile ends or when an invalid syntax command is found.
This fixes Savannah bug #47207
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5696
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 28 Feb 2016 17:16:39 +0000 (17:16 +0000)]
Rearranging a few things in my style.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5695
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 28 Feb 2016 16:36:23 +0000 (16:36 +0000)]
Not dropping regexes that were gathered earlier.
This fixes Savannah bug #47285.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5694
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 28 Feb 2016 15:47:37 +0000 (15:47 +0000)]
Renaming a variable and fusing an increment.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5693
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 28 Feb 2016 15:16:27 +0000 (15:16 +0000)]
Using the now correct parsing of header regexes also for parsing magic regexes.
This fixes Savannah bug #47292.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5692
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Sun, 28 Feb 2016 11:04:36 +0000 (11:04 +0000)]
Not continuing when something is wrong, but instead skipping the rest of
the line. This fixes Savannah bug #47289.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5691
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 26 Feb 2016 20:19:13 +0000 (20:19 +0000)]
Renaming another struct element, because it refers not just
to file extensions, but also to header lines and magic strings.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5690
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 26 Feb 2016 20:09:29 +0000 (20:09 +0000)]
Renaming a struct element for aptness and contrast.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5689
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 26 Feb 2016 17:25:48 +0000 (17:25 +0000)]
Eliding the function nfreeregex(), now used just once.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5688
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 26 Feb 2016 17:11:35 +0000 (17:11 +0000)]
Renaming a variable for conciseness.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5687
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 26 Feb 2016 16:37:23 +0000 (16:37 +0000)]
Factoring out a triple repetition into found_in_list().
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5686
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 26 Feb 2016 16:18:18 +0000 (16:18 +0000)]
Stripping things bare to see the sameness.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5685
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 26 Feb 2016 16:08:21 +0000 (16:08 +0000)]
Looking for the default syntax only when all else failed --
foregoing a small, complicating optimization.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5684
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 26 Feb 2016 09:20:59 +0000 (09:20 +0000)]
Back to SVN, and tweaking whitespace in NEWS and Changelog.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5683
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Fri, 26 Feb 2016 09:04:54 +0000 (09:04 +0000)]
Correcting the description of 'justifytrim', adding it to the Info document,
sorting it, and tweaking a wording.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5682
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Chris Allegretta [Thu, 25 Feb 2016 21:46:09 +0000 (21:46 +0000)]
GNU nano 2.5.3 release
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5680
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Chris Allegretta [Thu, 25 Feb 2016 21:04:45 +0000 (21:04 +0000)]
Call kill_spaces_on_justify justifytrim, to match the rest of rcfile naming conventions.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5679
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Benno Schulenberg [Thu, 25 Feb 2016 18:58:17 +0000 (18:58 +0000)]
Eliding splice_opennode() by handling the two cases (the creation of
the first element, and the insertion of a new element) directly.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5678
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8