Brand Huntsman
32431cddf8
files: block the resizing signal while reading from an external command
...
A SIGWINCH somehow causes the input stream to see EOT, with the result
that any remaining output of an external program would be lost.
This fixes https://savannah.gnu.org/bugs/?56038 ,
and fixes https://savannah.gnu.org/bugs/?56033 .
Signed-off-by: Brand Huntsman <alpha@qzx.com>
2019-04-03 15:14:33 +02:00
Benno Schulenberg
8e302738e8
bindings: recognize the ^W^Y and ^W^V legacy keystrokes again
...
The keystrokes are recognized and acted upon, but they are not visible
in the menu nor in the help text, and they cannot be rebound. They are
there just to avoid frustrating the muscle memory of long-time users.
This fixes https://savannah.gnu.org/bugs/?56002 .
Reported-by: Peter Zwegat <peterzwegat@yopmail.com>
2019-04-03 15:13:47 +02:00
Benno Schulenberg
aa2568858e
tweaks: remove a superfluous check for NULL plus the associated message
...
The message has been there for a year and no one ever reported seeing it.
2019-04-03 15:11:18 +02:00
Benno Schulenberg
5375403b9d
syntax: nanorc: colorize also strings preceded by 'start=' or 'end='
2019-04-02 12:01:56 +02:00
Benno Schulenberg
b0c9809a2e
speller: block the resizing signal also during an integrated spell check
...
Because somehow something goes wrong when SIGWINCHes are handled while
reading from a pipe.
This fixes https://savannah.gnu.org/bugs/?56011 .
Bug existed since version 2.4.2, commit 75d64e67
.
2019-04-01 20:21:23 +02:00
Benno Schulenberg
19c82e6a43
feedback: spare the user a superfluous scaring when trying to exit
...
Also, a simple question is easier to answer than an annotated one.
2019-04-01 19:56:10 +02:00
Benno Schulenberg
84d21b0972
tweaks: consistently use .sp instead of .PP to insert a blank line
...
And use plain .P to start a new paragraph.
2019-04-01 17:31:35 +02:00
Benno Schulenberg
f8e0320722
syntax: nanorc: require whitespace both before and after a quoted string
...
This ensures that the keyname M-" is not miscolored.
2019-04-01 17:24:19 +02:00
Benno Schulenberg
e5a8c35104
feedback: show a message while executing an external command
...
Some commands can take a little while to execute; showing just the prompt
during that time could give the impression that nothing is happening.
This addresses https://savannah.gnu.org/bugs/?56041 .
2019-03-31 18:04:52 +02:00
Devin Hussey
7ad232d714
files: initialize a variable before referencing it
...
The lack of initialization caused a nasty bug on some targets (such as
ARMv7) which would make it so that ^S would just say "Cancelled".
While x86 (both 64 and 32 bits) seems to initialize 'response' to zero or
a positive number, ARM does not, and there is usually a negative value in
its place, which triggers the 'if (response < 0)' check and, as a result,
the code says "Cancelled".
This fixes https://savannah.gnu.org/bugs/?56023 .
Reported-by: Devin Hussey <husseydevin@gmail.com>
Bug existed since version 4.0, commit 0f9d60a3
.
Signed-off-by: Devin Hussey <husseydevin@gmail.com>
2019-03-31 12:57:27 +02:00
Benno Schulenberg
85804ec70d
syntax: man: require the dot to be at start of line, not the comment
2019-03-31 12:42:53 +02:00
Benno Schulenberg
e473ba5e6c
syntax: man: anchor macros at start of line, as only then they are valid
2019-03-30 20:54:31 +01:00
Benno Schulenberg
9120a62cdd
syntax: man: add comments, and color all the safe lowercase macros
2019-03-30 20:47:45 +01:00
Benno Schulenberg
53ecb3225f
syntax: default: color in red also versions 4.x of nano
2019-03-30 19:54:58 +01:00
Benno Schulenberg
3f695b8fb7
speller: resizing can happen also when configured with --enable-tiny
...
When nano was configured with --enable-tiny --enable-speller, the
block_sigwinch() function should be available, to mask SIGWINCHes
during a spell check.
2019-03-30 19:23:15 +01:00
Benno Schulenberg
55699dc171
tweaks: rename some variables, to be less repititious
...
The repeated 'read_buff_' made everything look the same.
2019-03-30 19:10:44 +01:00
Benno Schulenberg
fa48d523b2
tweaks: stop doing tandem assignments (one passing through the other)
2019-03-30 18:52:45 +01:00
Benno Schulenberg
92cbc7c426
syntax: c: color as a type any lowercase word that ends with "_t"
2019-03-30 17:48:34 +01:00
Benno Schulenberg
6f07f2b444
tweaks: rename a function plus parameter, to stay closer to what it does
2019-03-27 19:46:37 +01:00
Benno Schulenberg
f58869d072
tweaks: put the unblocking of SIGWINCHes in a better place
...
The blocking is needed only during the wait(), so unblock SIGWINCH
again right after the wait() -- also to have the unblocking before
a possible error exit.
2019-03-27 19:10:24 +01:00
Benno Schulenberg
978c121de1
speller: block the resizing signal again during an external spell check
...
Somehow a SIGWINCH pushes nano past the wait() in do_alt_speller(),
even though the external spelling program hasn't finished.
This fixes https://savannah.gnu.org/bugs/?56010
by reverting commit 1f39f60b
.
Bug existed since version 3.2.
2019-03-27 17:43:43 +01:00
Benno Schulenberg
f6a7983a8a
docs: for two of the toggles, mention the new instead of the old option
2019-03-26 17:08:31 +01:00
Benno Schulenberg
a1375474d9
docs: remove the AUTHOR section, per advice from 'man man-pages'
...
Also because most of nano has meanwhile been written by other people
than Chris. And because authorship is meta-information, irrelevant
for knowing how to operate nano.
2019-03-25 15:55:34 +01:00
Benno Schulenberg
d0cc75f197
docs: put paths and filenames in italics, per 'man man-pages'
...
Plus a few other text and formatting tweaks.
2019-03-25 15:31:47 +01:00
Benno Schulenberg
0fccfc0373
docs: re-title the temporary section about the changed defaults
...
To avoid having both a NOTE and a NOTES section.
2019-03-25 15:22:30 +01:00
Benno Schulenberg
d0a7e6e6a6
docs: give the FILES section in the man page its canonical title
...
Suggested-by: Michael Siegel <msi@malbolge.net>
2019-03-25 14:59:28 +01:00
Benno Schulenberg
d7a5bacf15
po: update translations and regenerate POT file and PO files
2019-03-24 12:47:41 +01:00
Benno Schulenberg
20facb40c3
build: ensure that also new PO files are committed to git
2019-03-24 12:40:05 +01:00
Benno Schulenberg
a5498feea6
build: stop using the --disable-wrapping-as-root configure option
2019-03-24 12:21:22 +01:00
Benno Schulenberg
3e4edb2a5a
bump version numbers and add a news item for the 4.0 release
2019-03-24 12:14:12 +01:00
Benno Schulenberg
92ad431be4
tweaks: escape hyphens that must be hard hyphens in the man pages
2019-03-24 11:32:01 +01:00
Benno Schulenberg
123a102c52
docs: remove the mentioning of --disable-wrapping-as-root from the FAQ
...
This configure option is gone.
2019-03-24 11:02:33 +01:00
Benno Schulenberg
37477bfbb5
tweaks: slightly reword, for esthetics of the resulting Info document
2019-03-24 10:57:55 +01:00
Benno Schulenberg
bc40dd645a
docs: adjust and extend the Pico-compatibility section in the manual
2019-03-24 10:49:47 +01:00
Benno Schulenberg
e02c8aeb20
tweaks: adjust indentation after previous change, and rename a parameter
2019-03-24 09:42:57 +01:00
Benno Schulenberg
003ddc763e
tweaks: don't bother special-casing non-UTF8 when checking for a blank
...
This code is almost never used; conciseness is the only consideration.
2019-03-24 09:36:15 +01:00
Benno Schulenberg
1c3953705c
tweaks: avoid parsing the same character twice
...
Also, make the second loop similar in form to the first.
2019-03-24 09:34:21 +01:00
Benno Schulenberg
b58418b32f
tweaks: rename a variable, to be more distinct
2019-03-21 19:21:45 +01:00
Benno Schulenberg
23190aa60f
tweaks: make an assignment only when the option is valid, like elsewhere
2019-03-21 19:17:03 +01:00
Benno Schulenberg
01e6d435fe
tweaks: rename a function, to be simpler and more accurate
2019-03-21 17:42:34 +01:00
Benno Schulenberg
2b21d53857
tweaks: elide a function that is called just once
2019-03-21 17:36:46 +01:00
Benno Schulenberg
cddfcb1b9d
tweaks: rename a struct element, to make sense
2019-03-21 17:23:49 +01:00
Benno Schulenberg
6755b7c0a0
tweaks: rename four functions, to make more sense
2019-03-21 17:18:50 +01:00
Benno Schulenberg
aac4fc46e9
tweaks: rename a type, to make more sense
2019-03-21 17:08:52 +01:00
Benno Schulenberg
04cfe5a258
tweaks: rename a function for aptness, and two variables for shortness
2019-03-19 21:17:06 +01:00
Benno Schulenberg
954cab81b4
tweaks: improve and condense some comments, and remove an unneeded one
2019-03-19 21:13:34 +01:00
Benno Schulenberg
69601315c4
docs: add notes to draw attention to the changed defaults
2019-03-18 20:08:01 +01:00
Benno Schulenberg
43c6bc6619
tweaks: add a consistency check plus a corresponding warning
...
Since commit 4c6ec637
from about half a year ago, the 'action' parameter
of update_undo() is unused. Verify that this parameter matches the type
of the item at the top of the undo stack, so that in another half year
the parameter can be safely removed.
2019-03-17 20:51:43 +01:00
Benno Schulenberg
e0fab690cc
tweaks: don't pass a pointer when a boolean is expected
...
For some reason, when configured with --with-slang, some extra compiler
warnings are enabled that are not enabled by --extra-warnings. :|
2019-03-17 19:13:24 +01:00
Benno Schulenberg
513d2ae905
build: fix compilation when configured with --disable-utf8
2019-03-15 16:41:02 +01:00