nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 3a0a6b5db8dde88480345565debaaffba034ead4
parent c039aaad9d83cb9e1849ed3d3dbe5a8725a3ecec
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 14 Apr 2019 14:38:06 +0200

bump version numbers and add a news item for the 4.1 release

Diffstat:
MChangeLog | 100+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
MNEWS | 14++++++++++++++
Mconfigure.ac | 2+-
Mdoc/faq.html | 2+-
Mdoc/nano.1 | 2+-
Mdoc/nano.texi | 8++++----
Mdoc/nanorc.5 | 2+-
Mdoc/rnano.1 | 2+-
Mroll-a-release.sh | 2+-
9 files changed, 124 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,103 @@ +Changes between v4.0 and v4.1: +------------------------------ + +Benno Schulenberg (85): + bindings: add easier keystrokes for the linenumber and softwrap toggles + bindings: disallow executing an external command when in view mode + bindings: recognize the ^W^Y and ^W^V legacy keystrokes again + bindings: remove the jumpy-scrolling toggle entirely + build: add gnulib modules to the list of files with translatable strings + build: add src/cut.c to the list of files with translatable strings + build: don't do fuzzy matching when merging PO files against the POT file + build: remove obsolete translations from the PO files after merging + bump version numbers and add a news item for the 4.1 release + display: report and catch a bad state, to prevent a possible hang + docs: for two of the toggles, mention the new instead of the old option + docs: give the FILES section in the man page its canonical title + docs: mention that -b is the opposite of -w also in the latter's item + docs: mention that M-S now toggles softwrap and M-N line numbers + docs: put paths and filenames in italics, per 'man man-pages' + docs: remove all mention of --finalnewline, and undefault --nonewlines + docs: remove the AUTHOR section, per advice from 'man man-pages' + docs: re-title the temporary section about the changed defaults + feedback: replace an assert with a check plus error message at startup + feedback: show a message while executing an external command + feedback: spare the user a superfluous scaring when trying to exit + gnulib: update to its current upstream state + help: don't doubly list toggles that have two keys assigned to them + indenting, commenting: ensure a partial line stays displayed properly + justify: correctly compute the number of lines to take, to avoid a crash + options: make --nowrap override again a contrary nanorc setting + options: remove -f (--finalnewline); go back to auto-adding this newline + rcfile: don't break a chain of 'else if' [scan-build] + rcfile: read the syntax files in alphabetical order when globbing + speller: block the resizing signal again during an external spell check + speller: block the resizing signal also during an integrated spell check + speller: resizing can happen also when configured with --enable-tiny + syntax: c: color as a type any lowercase word that ends with "_t" + syntax: default: color in red also versions 4.x of nano + syntax: man: add comments, and color all the safe lowercase macros + syntax: man: anchor macros at start of line, as only then they are valid + syntax: man: require the dot to be at start of line, not the comment + syntax: nanorc: colorize also strings preceded by 'start=' or 'end=' + syntax: nanorc: require whitespace both before and after a quoted string + tweaks: adjust the indentation after the previous change + tweaks: condense a bit of copying code + tweaks: consistently use .sp instead of .PP to insert a blank line + tweaks: do a check up front instead of every time round the loop + tweaks: don't bother copying the NUL byte -- it is set nine lines down + tweaks: don't bother reallocating the data when a line gets hard-wrapped + tweaks: don't bother reallocating the squeezed string, just terminate it + tweaks: don't bother special-casing non-UTF8 when seeking a character + tweaks: drop an assignment whose value is never used [scan-build] + tweaks: drop two 'const' qualifiers, to silence the compiler + tweaks: free some memory before a possible error exit [coverity] + tweaks: free the copy of a linter message in all cases [valgrind] + tweaks: free the result string from an invocation error [coverity] + tweaks: initialize a boolean before it is referenced [valgrind] + tweaks: put the unblocking of SIGWINCHes in a better place + tweaks: remove a function that is now unused + tweaks: remove an unneeded check for NULL and its associated message + tweaks: remove an unneeded check for NULL [coverity] + tweaks: remove an unpaired closing parenthesis from the NEWS file + tweaks: remove a superfluous check for NULL plus the associated message + tweaks: remove several unneeded bad-state checks and their messages + tweaks: rename a cryptic type to something that makes a little sense + tweaks: rename a function plus parameter, to stay closer to what it does + tweaks: rename another variable, to be more descriptive + tweaks: rename another variable, to be more fitting + tweaks: rename an overshort type to something that makes some sense + tweaks: rename a variable, to be more distinct and more apt + tweaks: rename a variable, to be more distinct and more descriptive + tweaks: rename a variable, to get out of the way for another rename + tweaks: rename some variables, for more contrast and to match others + tweaks: rename some variables, to be less repititious + tweaks: rename two variables, for more contrast + tweaks: rename two variables, to be more distinct and more fitting + tweaks: rename two variables, to make more sense + tweaks: rename two variables, to match others + tweaks: reshuffle some lines, condense a comment and drop another + tweaks: reshuffle some lines, to elide an 'if' + tweaks: reshuffle two lines, and reword a comment + tweaks: reword a comment, and drop an unneeded assert + tweaks: shorten a comment to its essence + tweaks: shorten and improve some comments, and reshuffle a few lines + tweaks: simplify a message, and normalize the spelling of another one + tweaks: stop doing tandem assignments (one passing through the other) + tweaks: switch back from checking FINAL_NEWLINE to checking NO_NEWLINES + tweaks: use a signed type for a result that could be negative [coverity] + unindent: ensure that a partial line gets displayed properly afterwards + +Brand Huntsman (1): + files: block the resizing signal while reading from an external command + +Devin Hussey (1): + files: initialize a variable before referencing it + +Liu Hao (1): + syntax: c: change the highlighting of preprocessor directives + + Changes between v3.2 and v4.0: ------------------------------ diff --git a/NEWS b/NEWS @@ -1,3 +1,17 @@ +2019.04.15 - GNU nano 4.1 "Qué corchos será eso?" +• By default, a newline character is again automatically added at the + end of a buffer, to produce valid POSIX text files by default, but + also to get back the easy adding of text at the bottom. +• The now unneeded option --finalnewline (-f) has been removed. +• Syntax files are read in alphabetical order when globbing, so that + the precedence of syntaxes becomes predictable. +• In the C syntax, preprocessor directives are highlighted differently. +• M-S now toggles soft wrapping, and M-N toggles line numbers. +• The jumpy-scrolling toggle has been removed. +• The legacy keystrokes ^W^Y and ^W^V are recognized again. +• Executing an external command is disallowed when in view mode. +• Problems with resizing during external or speller commands were fixed. + 2019.03.24 - GNU nano 4.0 "Thy Rope of Sands" • An overlong line is no longer automatically hard-wrapped. • Smooth scrolling (one line at a time) has become the default. diff --git a/configure.ac b/configure.ac @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see https://www.gnu.org/licenses/. -AC_INIT([GNU nano], [4.0], [nano-devel@gnu.org], [nano]) +AC_INIT([GNU nano], [4.1], [nano-devel@gnu.org], [nano]) AC_CONFIG_SRCDIR([src/nano.c]) AC_CANONICAL_HOST AM_INIT_AUTOMAKE([1.14]) diff --git a/doc/faq.html b/doc/faq.html @@ -85,7 +85,7 @@ <h3><a name="1.3"></a>1.3. Why the name change from TIP?</h3> <blockquote><p>On January 10, 2000, TIP was officially renamed to nano because of a namespace conflict with another program called 'tip'. The original 'tip' program &quot;establishes a full duplex terminal connection to a remote host&quot;, and was included with many older Unix systems (and newer ones like Solaris). The conflict was not noticed at first because there is no 'tip' utility included with most GNU/Linux distributions (where nano was developed).</p></blockquote> <h3><a name="1.4"></a>1.4. What is the current version of nano?</h3> -<blockquote><p>The current version of nano <i>should</i> be <b>4.0</b>. Of course, you should always check the <a href="https://nano-editor.org/">nano homepage</a> to see what the latest and greatest version is.</p></blockquote> +<blockquote><p>The current version of nano <i>should</i> be <b>4.1</b>. Of course, you should always check the <a href="https://nano-editor.org/">nano homepage</a> to see what the latest and greatest version is.</p></blockquote> <h3><a name="1.5"></a>1.5. I want to read the man page without having to download the program!</h3> <blockquote><p>Jeez, demanding, aren't we? Okay, look <a href="https://nano-editor.org/dist/latest/nano.1.html">here</a>.</p></blockquote> <hr width="100%"> diff --git a/doc/nano.1 b/doc/nano.1 @@ -16,7 +16,7 @@ .\" Documentation License along with this program. If not, see .\" <https://www.gnu.org/licenses/>. .\" -.TH NANO 1 "version 4.0" "March 2019" +.TH NANO 1 "version 4.1" "April 2019" .SH NAME nano \- Nano's ANOther editor, inspired by Pico diff --git a/doc/nano.texi b/doc/nano.texi @@ -8,8 +8,8 @@ @smallbook @set EDITION 0.5 -@set VERSION 4.0 -@set UPDATED March 2019 +@set VERSION 4.1 +@set UPDATED April 2019 @dircategory Editors @direntry @@ -23,7 +23,7 @@ @titlepage @title GNU @command{nano} @subtitle a small and friendly text editor -@subtitle version 4.0 +@subtitle version 4.1 @author Chris Allegretta @page @@ -63,7 +63,7 @@ e-mail: @email{chrisa@@asty.org}@* @node Top @top -This manual documents the GNU @command{nano} editor, version 4.0. +This manual documents the GNU @command{nano} editor, version 4.1. @menu * Introduction:: diff --git a/doc/nanorc.5 b/doc/nanorc.5 @@ -16,7 +16,7 @@ .\" Documentation License along with this program. If not, see .\" <https://www.gnu.org/licenses/>. .\" -.TH NANORC 5 "version 4.0" "March 2019" +.TH NANORC 5 "version 4.1" "April 2019" .SH NAME nanorc \- GNU nano's configuration file diff --git a/doc/rnano.1 b/doc/rnano.1 @@ -16,7 +16,7 @@ .\" Documentation License along with this program. If not, see .\" <https://www.gnu.org/licenses/>. .\" -.TH RNANO 1 "version 4.0" "March 2019" +.TH RNANO 1 "version 4.1" "April 2019" .SH NAME rnano \- a restricted nano diff --git a/roll-a-release.sh b/roll-a-release.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION="4.0" +VERSION="4.1" ./configure -C --enable-tiny && make && ./configure -C &&