Benno Schulenberg
0f2b0ffbd3
tweaks: reshuffle a condition, and adjust a comment and some indentation
2018-05-31 16:27:13 +02:00
Benno Schulenberg
f2f901c895
files: give feedback during writeout also when prepending or appending
...
The only time that feedback about the number of lines written is *not*
wanted is when writing a temporary file.
This fixes https://savannah.gnu.org/bugs/?54025 .
2018-05-31 16:08:16 +02:00
Benno Schulenberg
a4e353799b
docs: make quotes around regexes bold, as they are part of the command
2018-05-31 12:07:12 +02:00
Benno Schulenberg
64f28515fd
docs: remove quotes around the name of a syntax -- they are not needed
2018-05-31 11:25:21 +02:00
Benno Schulenberg
b84dea9898
docs: improve description of 'speller' and related bindable functions
2018-05-30 20:38:27 +02:00
Benno Schulenberg
8492de53f7
syntax: makefile: color all keywords that GNU make recognizes
...
Plus one that automake recognizes: if. Color them only at the start
of a line. Also color all possible assignment sequences (surrounded
by spaces to not color the ones in shell fragments), and add some
comments.
2018-05-30 11:29:08 +02:00
Benno Schulenberg
a1dc1376be
docs: describe what constitutes a paragraph
...
Also fix a typo.
2018-05-30 10:32:26 +02:00
Benno Schulenberg
6fe132194c
docs: improve the description of the --autoindent option
2018-05-30 10:29:31 +02:00
Benno Schulenberg
0ea434b006
tweaks: reduce the abundance of the word 'toggle' in the Info manual
2018-05-30 10:01:45 +02:00
Benno Schulenberg
d430934f09
gnulib: update to its current upstream state
2018-05-29 11:08:55 +02:00
Benno Schulenberg
dc3261b685
tweaks: avoid a warning with --enable-{tiny,help,multibuffer}
...
This also places the Pipe toggle among the other, similar togglles,
which makes more sense.
2018-05-29 09:07:39 +02:00
David Lawrence Ramsey
dc4146f077
tweaks: avoid an unused variable warning with --enable-tiny
...
This fixes https://savannah.gnu.org/bugs/?53998 .
2018-05-29 09:00:08 +02:00
Benno Schulenberg
59eb01b403
build: fix compilation with --enable-{tiny,help,multibuffer}
2018-05-28 11:31:30 +02:00
Benno Schulenberg
738487f13d
tweaks: make better use of an existing variable
2018-05-28 10:39:47 +02:00
Benno Schulenberg
c8a9a96578
build: fix compilation when configured with --disable-justify
2018-05-28 09:57:24 +02:00
Benno Schulenberg
cd8e932c65
main: add "/" to the quoting regex, to allow justifying //-comments
...
And adjust the documentation accordingly.
2018-05-27 20:29:52 +02:00
David Lawrence Ramsey
fce54a724d
tweaks: fix some grammar plus a typo in the comments
2018-05-27 20:19:46 +02:00
Benno Schulenberg
4ae1b99c92
docs: mark the filtering of text through an external command as done
2018-05-27 19:33:04 +02:00
Benno Schulenberg
ebdb647450
tweaks: adjust a translator hint
2018-05-27 17:53:36 +02:00
Benno Schulenberg
0c2aac5ff8
tweaks: reshuffle a couple of assignments
2018-05-27 17:45:51 +02:00
Benno Schulenberg
7952d68830
tweaks: frob a couple of comments
2018-05-27 17:27:07 +02:00
Benno Schulenberg
5cb4485fa5
tweaks: remove a superfluous assignment -- the lead length never changes
2018-05-27 17:16:04 +02:00
Benno Schulenberg
d7c1ab8e80
tweaks: rename two variables, to better fit their tasks
2018-05-27 17:11:18 +02:00
Benno Schulenberg
1881db099d
tweaks: make better use of an intermediate variable
2018-05-27 16:41:55 +02:00
Benno Schulenberg
36c83d92dd
tweaks: stop decreasing both the iterator and the limit of a loop
2018-05-27 16:34:20 +02:00
Benno Schulenberg
9021725d53
justification: limit the amount of recursion to prevent a stack overflow
2018-05-27 16:09:53 +02:00
Benno Schulenberg
d00ab406bc
wrapping: when autoindenting, use indentation of next line as example
...
When doing autoindentation, and the next line is not the start of
a new paragraph, then use the indentation of that line for the new
line, as it is more likely to have the desired indentation -- the
current line might be the start of the paragraph and thus could
have a deviant indentation.
2018-05-27 16:09:53 +02:00
Benno Schulenberg
d63d79b067
tweaks: elide another function that is called just once
2018-05-27 16:09:53 +02:00
Benno Schulenberg
446c7d5fff
tweaks: elide a function that is called just once
2018-05-27 16:09:53 +02:00
Benno Schulenberg
52efac535b
tweaks: rename a variable, to give it some meaning
2018-05-27 16:09:53 +02:00
Benno Schulenberg
45c36f93e5
tweaks: simplify the determining of the prefix for justified lines
2018-05-27 16:09:53 +02:00
Benno Schulenberg
432a7d7729
justification: find the beginning of a paragraph in a better way
...
Any line whose indentation differs from that of a pair of adjacent lines
is the beginning of a paragraph, also when its indentation is smaller.
This fulfills https://savannah.gnu.org/bugs/?53932 ,
and fixes point 2) of https://savannah.gnu.org/bugs/?53933 .
2018-05-27 16:09:53 +02:00
Benno Schulenberg
d7fe5a7db3
justification: recognize indented paragraphs also without --autoindent
...
Pico does not require any option to do this, so nano should neither.
This fixes point 1) of https://savannah.gnu.org/bugs/?53933 .
2018-05-27 16:09:53 +02:00
David Lawrence Ramsey
a6c0212158
bindings: add the "flippipe" bindable function
...
So the toggle for piping to an external command can be rebound.
This fixes https://savannah.gnu.org/bugs/?53987 .
2018-05-27 10:36:33 +02:00
Benno Schulenberg
a832f33291
justification: when leading whitespace exceeds fill width, wrap anyway
...
Pico wraps at the last blank character before or on the target column;
if there is no such blank, then it will wrap at the first blank *after*
the target column -- when it can wrap, it will wrap. Nano should do
the same (and judging from the comments, it intended to do the same),
instead of turning the paragraph into a single unwrapped line.
This fixes https://savannah.gnu.org/bugs/?53986 .
2018-05-27 10:24:02 +02:00
Benno Schulenberg
b9f533a69e
tweaks: rename a function, for more aptness and extra contrast
2018-05-25 20:09:24 +02:00
Benno Schulenberg
ac31669ec3
linter: don't try to access absent stat info, as that gives a crash
...
This fixes https://savannah.gnu.org/bugs/?53981 .
2018-05-25 19:25:11 +02:00
Benno Schulenberg
86c08560ad
linter: make sure that the margin is updated before displaying a buffer
...
This fixes https://savannah.gnu.org/bugs/?53977 .
Reported-by: Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
2018-05-25 17:58:25 +02:00
Benno Schulenberg
119a6f0de3
rcfile: don't crash when a bind to a string lacks the closing quote
...
This fixes https://savannah.gnu.org/bugs/?53972 .
Reported-by: Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
2018-05-25 13:15:52 +02:00
Benno Schulenberg
3757683e3f
build: fix compilation when configured with --disable-multibuffer
2018-05-24 21:09:14 +02:00
Benno Schulenberg
c07586d9f3
tweaks: condense some repetitious comments, and check before assigning
...
Check that the option argument is okay (contains no blank characters),
before assigning it to the relevant variable.
2018-05-24 20:49:29 +02:00
Benno Schulenberg
3e9ef3032f
tweaks: use a more meaningful variable name, and avoid a distant 'else'
...
Also, indent a continuation line better.
2018-05-24 19:40:52 +02:00
Benno Schulenberg
6fb1509817
tweaks: condense two statements into one, and elide a 'break'
2018-05-24 18:17:58 +02:00
Benno Schulenberg
07ddf25cc0
tweaks: exclude an unneeded 'if' from the single-buffer version
2018-05-24 18:14:35 +02:00
Marco Diego Aurélio Mesquita
73d397c64b
linter: check all open buffers, instead of just the next one
...
First step to the next buffer, and then iterate until we either
find a match or are back at the buffer where we started.
This fixes https://savannah.gnu.org/bugs/?53970 .
Signed-off-by: Marco Diego Aurélio Mesquita <address@hidden>
2018-05-24 18:10:52 +02:00
Benno Schulenberg
e0c7ff2a7e
linter: make sure the shortcuts bar will redrawn when exiting early
...
The two help lines will be redrawn in main() only when the current
menu is not MMAIN. So, set it to MLINTER as soon as the help lines
are cleared, just before preparing to invoke the linter.
This fixes https://savannah.gnu.org/bugs/?53967 .
Reported-by: Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
2018-05-24 11:37:14 +02:00
Benno Schulenberg
84f8df2df8
tweaks: avoid an unused-variable warning with --enable-tiny
2018-05-23 12:00:43 +02:00
Benno Schulenberg
408d9b8708
build: fix compilation failure when configured with --enable-tiny
2018-05-23 11:57:55 +02:00
Brand Huntsman
b5427ebb98
tweaks: avoid two unused variable warnings when NLS is disabled
...
Signed-off-by: Brand Huntsman <alpha@qzx.com>
2018-05-23 11:54:45 +02:00
Cristian Caloghera
22663f8a2e
syntax: makefile: recognize also an all-lowercase makefile name
...
Recognize not just "Makefile" but also "makefile" and "GNUmakefile".
And recognize these only when they are the full filenames, not when
they are the tail part of a longer name.
Signed-off-by: Cristian Caloghera <cristi.caloghera@gmail.com>
2018-05-22 20:41:43 +02:00