ChangeLog.2007-2015 201 KB
Newer Older
1
2
3
[Development moved to git on April 1.  The Changelog was discontinued.]


4
2016-03-31  Benno Schulenberg  <bensberg@justemail.net>
5
6
	* src/text.c (do_int_spell_fix): Replace a fake 'while', delete a
	redundant 'if', rename a variable, and adjust whitespace.
7

8
9
10
11
2016-03-30  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_replace_loop, go_looking, findnextstr): Report
	"Cancelled" instead of "Not found" when the user aborts a replace
	that is taking too long.  This fixes Savannah bug #47439.
12
13
	* src/winio.c (do_replace_highlight): Rename this to 'spotlight',
	for clarity, and for contrast with 'do_replace/do_replace_loop'.
14
	* src/winio.c (spotlight): Rename a variable for clarity.
15
16
	* src/files.c (input_tab), src/prompt.c (get_prompt_string):
	Rename a variable to better indicate booleanness.
17
	* src/text.c (do_int_speller): Unwrap a few lines.
18

19
2016-03-29  Benno Schulenberg  <bensberg@justemail.net>
20
21
22
23
24
	* src/nano.c (main), src/text.c (do_justify, do_verbatim_input),
	src/winio.c (parse_escape_sequence): Place the cursor in the edit
	window also when --constantshow is in effect, after a ^J Justify or
	an invalid escape sequence, and when entering a verbatim keystroke.
	Leave the cursor off during Unicode input, for extra feedback.
25
	* src/browser.c (do_browser): Improve the wording of a message.
26
	* src/chars.c (is_valid_unicode): Speed up Unicode validation.
27
28
	* src/text.c (do_int_spell_fix): Allow to stop replacing a word
	without aborting the entire spell-fixing session.
29
	* src/search.c (do_replace_loop): Chop a now-unused parameter.
30

31
32
33
34
2016-03-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (statusbar): Don't bother putting back the cursor in
	the edit window, as it is off anyway, and will be placed back in the
	main loop.  This prevents a segfault when trying to open a directory.
35
36
	* src/search.c (findnextstr): Provide feedback when searching takes
	longer than roughly half a second (on average).
37
	* src/*.c: Remove the 'last_replace' variable that is never used.
Benno Schulenberg's avatar
Benno Schulenberg committed
38
	* src/winio.c (parse_kbinput): Delete a no-op.
39

40
41
42
43
2016-03-23  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (findnextstr): Prevent the internal spell checker from
	finding the first occurrence twice.  And delete the piece of dead code
	that was meant to do this.  This fixes Savannah bug #47188.
44
	* src/search.c (findnextstr): Clean up and rename a variable.
45
	* src/search.c (findnextstr): Poll the keyboard once per second.
46
47
	* src/winio.c (reset_cursor): Remove a pointless condition, and make
	use of an existing intermediary variable.
48
	* src/winio.c (reset_cursor): Tidy up and rename a variable.
49
	* src/winio.c (onekey): Elide an unneeded 'if' and unneeded variable.
50

51
52
53
54
55
2016-03-22  Thomas Rosenau  <thomasr@fantasymail.de>
	* configure.ac, src/*.c: Check for the existence of the REG_ENHANCED
	regex flag, and use it when it's available (on OS X systems).  This
	completes the fix for Savannah bug #47325.

56
57
2016-03-21  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (findnextfile): Trim a duplicate variable.
Benno Schulenberg's avatar
Benno Schulenberg committed
58
	* src/browser.c (browser_refresh, findnextfile): Rename four vars.
59

60
61
62
63
2016-03-20  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (do_writeout), src/nano.c (do_exit): Normalize the
	punctuation in some prompts: no space before a question mark, and
	a semicolon instead of a comma between phrases.
64
65
	* src/text.c (do_cutword): Don't put cut words into the cutbuffer --
	that is: treat the deletion of words like pressing Backspace/Delete.
66
67
	* src/search.c (get_history_completion, find_history): Cycle through
	the items from newest to oldest.  This fixes Savannah bug #47205.
68
69
	* src/files.c (do_writeout): When the name of the file was changed,
	always ask whether this is okay.  This fixes Savannah bug #46894.
70
	* src/search.c (do_research): Use 'return' instead of 'else'.
71
72
	* src/search.c (do_search): Don't bother setting 'answer'; just	use
	'last_search', which has been set to 'answer' in search_init().
73
74
	* src/search.c (go_looking): Factor out the common part of
	do_search() and do_research() into this new function.
75

76
77
78
2016-03-19  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (search_init): Always remember the last typed string,
	also when it's an invalid regex.  This fixes Savannah bug #47440.
79
80
	* src/search.c (search_init, do_replace): Don't bother setting the
	current answer to the empty string, as do_prompt() can handle a NULL.
81
	* src/browser.c (do_browser): Delete a snippet of dead code.
82
	* src/browser.c (do_browser): Delete an unneeded variable.
83
	* src/search.c (do_gotolinecolumn): Delete another unneeded variable.
84
	* src/search.c (search_init): Snip an always-FALSE condition.
85
	* src/search.c (search_init): Reshuffle stuff to reduce indentation.
86
	* src/search.c (do_replace): Snip a useless setting of answer.
87

88
89
90
2016-03-17  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_research): Use the Search key bindings also during
	a Re-search, to enable cancelling.  This fixes Savannah bug #47159.
91
	* src/search.c (do_replace): Remove two redundant returns.
92
	* src/search.c (findnextstr): Prune two #ifdefs.
93
	* src/search.c: Adjust some indentation.
94

95
96
2016-03-14  Benno Schulenberg  <bensberg@justemail.net>
	* src/color.c (color_update): Don't dereference a possible NULL.
97
	* src/rcfile.c (parse_colors): Make error message equal to others.
98
99
	* src/rcfile.c (parse_rcfile): Rearrange some things to reduce the
	indentation level by four steps, so we can unwrap a dozen lines.
100

101
102
103
104
2016-03-13  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (regexp_init): Allow using the word boundary markers
	\< and \> in search strings on non-GNU systems.  This is a partial
	fix for Savannah bug #47325 reported by Thomas Rosenau.
105
106
	* src/rcfile.c (parse_rcfile, parse_colors, nregcomp): Combine the
	regular-expression flags at compile time instead of at run time.
107
	* src/rcfile.c (parse_syntax, parse_colors): Rename a variable.
108
	* src/winio.c (edit_draw): Give a central variable a ringing name.
109

110
111
112
2016-03-13  Thomas Rosenau  <thomasr@fantasymail.de>  (tiny change)
	* autogen.sh, README.SVN: Mention SVN instead of CVS.

113
114
2016-03-12  Benno Schulenberg  <bensberg@justemail.net>
	* src/color.c (color_update): Set the syntax and regex pointers
115
	just once, in a single place.  And unnest two 'if's.
116
117
	* src/rcfile.c (parse_one_include, parse_includes): New names for
	these functions, to be more distinguishable.
118
	* src/rcfile.c (parse_colors): Reduce the indentation.
Benno Schulenberg's avatar
Benno Schulenberg committed
119
	* src/rcfile.c (parse_colors): Rename a variable.
120
121
	* src/rcfile.c (parse_colors, parse_rcfile): Refind the tail of
	the colors list only when extending, not for every added color.
122

123
124
125
2016-03-11  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (do_browser): Fix compilation when configured with
	--enable-tiny plus --enable-browser.
126
	* src/rcfile.c: Tweak some comments and reshuffle some lines.
Benno Schulenberg's avatar
Benno Schulenberg committed
127
	* src/rcfile.c (color_to_short): Elide a variable.
128
129
	* src/rcfile.c (grab_and_store): First check that there is an
	open syntax before checking that it is named "default".
130
131
	* src/rcfile.c (parse_rcfile): Fix compilation when configured with
	--enable-tiny plus --enable-nanorc.
132

133
2016-03-10  Benno Schulenberg  <bensberg@justemail.net>
134
	* src/rcfile.c (grab_and_store): Do not accept 'header' and 'magic'
135
	commands for the default syntax.  This fixes Savannah bug #47323.
136
137
	* src/rcfile.c (pick_up_name): Fold the parsing of a linter and
	formatter command into a single routine.
138
139
	* src/rcfile.c (parse_header_exp, parse_magic_exp, grab_and_store):
	Elide the first two functions, and reshuffle parameters in the last.
140
141
142
143
	* src/rcfile.c (parse_syntax, parse_rcfile), src/color.c
	(color_update): Turn the linked list of syntaxes upside-down, so that
	the last-defined one comes first, so that searching can stop at the
	first match instead of always having to run through the entire list.
144
	* src/rcfile.c: Rename a variable to better fit its new role.
145

146
147
148
2016-03-09  Benno Schulenberg  <bensberg@justemail.net>
	* src/rcfile.c (parse_syntax): Produce an adequate error message
	when the syntax name is unquoted.  This fixes Savannah bug #47324.
149
150
	* src/rcfile.c (parse_syntax): Use the grab_and_store() function
	also for gathering up extension regexes.
151

152
153
154
155
2016-03-04  Benno Schulenberg  <bensberg@justemail.net>
	* src/color.c (found_in_list): Don't bother keeping the compiled
	regular expression when it matched -- drop this tiny optimization
	for when opening multiple files.  Instead stop calling malloc().
156
	* src/nano.h: Delete a now-unused struct member.
157
	* src/global.c (free_list_item): Elide this now too tiny function.
158
	* scr/global.c (thanks_for_all_the_fish): Rename three variables.
159
160
	* src/rcfile.c (parse_colors): Tweak a few things.
	* src/color.c (color_update): Rename a variable.
161

162
163
164
165
166
2016-03-01  Benno Schulenberg  <bensberg@justemail.net>
	* src/rcfile.c (parse_syntax), src/color.c (color_update): Don't
	bother discarding a duplicate syntax (it's too rare, saves little
	memory, and freeing it properly	would cost even more code), just
	select the last-defined one.  This addresses Savannah bug #47303.
167
	* src/color.c (color_update): Allow to select an empty syntax.
168

169
2016-02-29  Benno Schulenberg  <bensberg@justemail.net>
170
	* src/nano.h, src/rcfile.c, src/color.c: Rename a struct member.
171
172
	* src/rcfile.c (parse_rcfile): Don't allocate a struct for the
	"none" syntax (and thus prevent it from being extended).
173
	* src/nano.h, src/rcfile.c: Arrange some things more orderly.
174
	* src/rcfile.c (parse_rcfile): Close an extended syntax again.
175
	* src/rcfile.c (parse_rcfile): Rename a variable.
176
	* src/rcfile.c (grab_and_store): Fix breakage of r5695.
177
178
179
	* src/color.c (color_update): Do not dereference symlinks, so that
	the syntax will be derived from the name given on the command line,
	not from that of the target file.  This fixes Savannah bug #47307.
180

181
182
183
2016-02-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/rcfile.c (parse_header_exp): Don't continue when something is
	wrong -- skip the rest of the line.  This fixes Savannah bug #47289.
184
185
186
	* src/rcfile.c (parse_header_exp, parse_magic_exp, grab_and_store):
	Use the now correct parsing of header regexes also for parsing magic
	regexes.  This fixes Savannah bug #47292 and saves 50 lines of code.
187
	* src/rcfile.c (grab_and_store): Rename a variable and densify.
188
189
	* src/rcfile.c (grab_and_store): Do not drop regexes that were
	gathered earlier.  This fixes Savannah bug #47285.
190
	* src/rcfile.c (grab_and_store): Rearrange things in my style.
191
192
193
	* src/rcfile.c (parse_syntax, parse_rcfile): Disallow adding any
	further things to a syntax when an rcfile ends or when an invalid
	syntax command is found.  This fixes Savannah bug #47207.
194

195
196
197
198
2016-02-26  Benno Schulenberg  <bensberg@justemail.net>
	* doc/man/nanorc.5, doc/texinfo/nano.texi, doc/syntax/nanorc.nanorc,
	doc/nanorc.sample.in: Correct the description of 'justifytrim', add
	it to the Info document, sort it, and tweak a wording.
199
200
	* src/color.c (color_update): Look for a default syntax only when
	all else failed -- forego the small, complicating optimization.
201
	* src/color.c (color_update): Strip things bare to see the sameness.
202
	* src/color.c (found_in_list): Factor out this triple repetition.
203
	* src/color.c (color_update): Rename a variable for conciseness.
204
	* src/color.c (nfreeregex): Elide this function, now used just once.
205
	* src/nano.h: Rename a struct element for aptness and contrast.
206
207
	* src/nano.h: Rename another element, because it refers not just
	to file extensions, but also to header lines and magic strings.
208

Chris Allegretta's avatar
Chris Allegretta committed
209
210
GNU nano 2.5.3 - 2016.02.25

211
212
213
2016-02-25  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (do_browser): Plug a memory leak by not copying
	a string twice.  This fixes Savannah bug #47206.
214
	* src/browser.c (do_browser): Now put things in the proper order.
215
216
217
	* src/files.c (make_new_buffer), src/nano.c (splice_opennode): Elide
	the latter function, by handling the two cases (the creation of the
	first element, and the insertion of a new element) directly.
218

219
220
221
2016-02-23  Benno Schulenberg  <bensberg@justemail.net>
	* src/prompt.c (do_statusbar_output, do_statusbar_delete):
	Rename a variable, for contrast and correctness.
222
223
	* src/cut.c (do_copy_text): Don't move the cursor when copying a
	backwardly marked region.  This fixes Savannah bug #46980.
224
225
	* src/text.c (do_undo, do_redo): Center the cursor when the
	thing being undone or redone is currently off the screen.
226
	* src/{files,nano,winio}.c: Rewrap and reshuffle some lines.
227

Benno Schulenberg's avatar
Benno Schulenberg committed
228
229
2016-02-22  Chris Allegretta  <chrisa@asty.org>
	* Add the ability to kill the trailing spaces when justifying text,
230
231
	by adding a new nanorc option 'justifytrim' -- we'll see whether
	this warrants a command-line flag or not.  Now with slightly
232
	better logic for multi-spaced lines.
233

234
235
2016-02-22  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (free_openfilestruct): Elide this function.
236
	* scr/global.c (thanks_for_all_the_fish, free_list_item): Condense.
237
	* src/winio.c (edit_scroll): The amount to scroll is never zero.
238
239
	* src/prompt.c (do_statusbar_prev_word, do_statusbar_next_word),
	src/move.c (do_prev_word, do_next_word): Sort these in standard way.
240
241
	* src/prompt.c (do_statusbar_output): Don't move too many bytes.
	This fixes Savannah bug #47219 (uncovered by r5655).
242
	* src/prompt.c (do_statusbar_output): Elide a variable.
243
244
	* src/prompt.c (do_statusbar_delete): There is no need for nulling:
	the charmove() already copies the terminating null byte.
245
246
	* src/text.c (do_justify), src/winio.c (parse_escape_sequence):
	Show the cursor after a justification and after an unrecognized
247
	escape sequence, and in the edit window when linting.
248
249
250
	* src/text.c (do_linter): Use the correct column number, also when
	messages are skipped.  And don't mind zero or negative numbers.
	This is a partial fix for Savannah bug #47131.
251

252
253
254
2016-02-21  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (input_tab): If the first Tab added the part that all
	matches have in common, don't require a third Tab to show the list.
255
	* scr/global.c (thanks_for_all_the_fish): Remove unneeded checks.
256

257
258
259
260
2016-02-20  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (get_history_completion): Avoid leaking memory
	when tabbing on a string that does not occur in the history.
	This fixes Savannah bug #47124 reported by Mike Frysinger.
261
262
	* src/files.c (input_tab): Parse a character in the correct
	buffer.  This fixes Savannah bug #47199.
263
264
	* src/prompt.c (do_statusbar_output): Reduce an allocation to what
	is actually needed.  This undoes the papering-over of above bug.
265

266
267
268
2016-02-18  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_replace_loop), src/text.c (do_int_spell_fix),
	src/winio.c (edit_refresh): Fix Savannah bug #47127 the proper way.
269
	* src/nano.c (free_filestruct): Allow the parameter to be NULL.
270
	* src/search.c (search_init): Delete a debugging leftover.
271

272
273
274
2016-02-16  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (initialize_buffer_text): Delete redundant assignment.

275
276
277
278
2016-02-15  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (read_file): Free not just the struct but also the
	data it contains, and also when it is the first and only line.
	This fixes Savannah bug #47153 reported by Mike Frysinger.
279
280
	* src/files.c (get_full_path): Avoid losing a buffer when getcwd()
	fails. 	This fixes Savannah bug #47129 reported by Mike Frysinger.
281

282
283
284
285
2016-02-14  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_replace_loop): Make iterating through replacement
	matches behave again like iterating through search matches: showing
	them centered when found offscreen.  This fixes Savannah bug #47127.
286
287
	* src/text.c (do_int_spell_fix): Restore the above behavior also for
	the internal spell fixer.
288
289
	* src/prompt.c (do_statusbar_input, do_statusbar_verbatim_input,
	do_statusbar_output): Do the copying from input to output just once.
290
291
	* src/prompt.c (do_statusbar_output): Rename and condense some stuff,
	and correct the main comment: filtering means allow_cntrls==FALSE.
292
293
	* README, TODO, doc/man/{nano.1,rnano.1,nanorc.5}: Say that 2.5.x
	is a "rolling" release, lock files are done, and prepare for 2.5.3.
294

295
296
297
298
2016-02-13  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (do_browser, browser_refresh): Rebuild the file list
	only when necessary, not for each and every cursor movement.  This
	fixes Savannah bug #47133.
299
300
	* src/files.c (save_poshistory): Allocate enough space for printing
	out the line and column numbers.  This fixes Savannah bug #47135.
301
302
303
	* src/*.c: Switch the cursor on and off at the appropriate moments,
	so that it no longer shows in the help screen nor in the file list.
	This fixes Savannah bug #47126.
304

Chris Allegretta's avatar
Chris Allegretta committed
305
306
GNU nano 2.5.2 - 2016.02.12

307
308
309
2016-02-11  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_linter): Go to the next item in the list before
	freeing the current one.  This fixes Savannah bug #46796.
310
311
312
	* src/text.c (do_formatter): Don't leave curses mode, as that would
	hide any error messages upon reentry.  And if there are any messages,
	allow the user a little time to read them.
313
314
	* src/text.c (do_linter, do_formatter): Condense some declarations,
	rewrap some lines, and improve a few comments.
315
	* doc/syntax/go.nanorc: Make the formatter command more visible.
316

317
318
319
2016-02-10  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (discard_until): Prevent a chain of editing actions from
	continuing after a discard.  This fixes Savannah bug #47104.
320
321
	* src/files.c (get_full_path): Plug a sneaky memory leak.  This fixes
	Savannah bug #47003 reported and solved by Mike Frysinger.
322
323
	* src/rcfile.c (parse_binding): Allow only control sequences in the
	proper range to be rebound.  This fixes Savannah bug #47025.
324
	* THANKS: Add a Spanish, a Catalan, and a Croat translator.
325
	* AUTHORS, THANKS: Remove SVN Id tags and a duplication.
326
327
	* src/winio.c (get_kbinput), src/nano.c (main): Switch the cursor on
	in the right place: in the central input routine.
328
	* src/files.c (load_poshistory): Free any records that are dropped.
329
	This fixes Savannah bug #47111 reported by Mike Frysinger.
330

331
332
333
334
2016-02-09  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (stat_with_alloc, open_buffer, write_file): Check the
	result of a stat() to avoid referencing unitialized data.  Original
	patch was by Kamil Dudka.
335
	* doc/man/{nano.1,rnano.1,nanorc.5}: Adjust version for release.
336

337
338
339
2016-02-07  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (update_poshistory): Don't put files in the history list
	when they have the default cursor position (line 1, column 1).
340
341
	* src/files.c (write_file): Avoid a pointless lstat() when not writing
	to a temp file, and in the bargain elide two variables.
342
	* src/files.c (write_file): Elide an unneeded 'if'.
343
344
	* doc/syntax/c.nanorc: Use a character class instead of a literal tab
	and space.  The change was inspired by David Niklas.
345
	* src/prompt.c (do_yesno_prompt): Normalize the indentation.
346
	* src/prompt.c (do_yesno_prompt): Rename a variable.
347

348
349
350
2016-02-06  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (write_file): Remove the --nofollow option that hasn't
	been working for a dozen years.
351
352
	* src/winio.c (statusbar): Update the screen immediately whenever a
	message has been posted on the status bar.
353
354
	* src/winio.c (statusbar), src/nano.c (do_input): Turn the cursor off
	when writing in the status bar, and on when waiting for	input.
355
356
	* src/prompt.c (update_the_statusbar): Chop two parameters that are
	always the same, and that are global variables anyway.
357
	* src/prompt.c (update_bar_if_needed): Rename this for more contrast.
358
	* src/prompt.c (do_statusbar_backspace): Avoid updating the bar twice.
359
360
	* src/cut.c, src/files.c, src/prompt.c: Rewrap some lines and remove
	some useless comments.
361

362
363
364
365
2016-02-05  Benno Schulenberg  <bensberg@justemail.net>
	* doc/texinfo/nano.texi: Condense the descriptions of command-key
	sequences and of the screen layout, mention how to enter Unicode,
	and mention that regular expressions are line oriented.
366
	* src/global.c (shortcut_init): Put four strings in standard order.
367
368
	* src/text.c (do_undo), src/global.c (shortcut_init): Guide the
	translators a little bit.
369

370
371
372
2016-01-31  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (has_valid_path): Be more specific in how a given path
	is invalid.  The change was improved by Rishabh Dave.
373
	* doc/syntax/nanorc.nanorc: Show ^^ and M-^ as valid key names.
374
	* src/prompt.c (do_statusbar_home): Make Home go always fully home.
375

376
377
378
2016-01-29  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (do_insertfile): Do display the buffer when configured
	with only --disable-histories.  This fixes Savannah bug #47011.
379
380
	* src/nano.c (main): Check position history only when 'positionlog'
	is set.  This fixes a bug unconsciously reported by Mike Frysinger.
381
	* src/files.c (do_lockfile): Plug a couple of memory leaks.
382
	* src/files.c (update_poshistory): Plug another memory leak.
383
384
	* src/files.c (close_buffer): Update position history only when
	the option 'positionlog' is set.
385

386
387
388
2016-01-26  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (update_poshistory): Do not add directories to the
	list of file positions.  This fixes Savannah bug #46971.
389
	* src/*.c: Adjust some indentation and some line wrapping.
390
391
392
	* src/prompt.c (do_statusbar_prev_word): When in the middle of a
	word, jump to the start of the current word, not to the start of
	the preceding one.  This fixes Savannah bug #46970.
393
	* src/prompt.c (do_statusbar_next_word): Use simpler algorithm.
394

395
396
397
2016-01-25  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (update_poshistory): Handle an update of the first
	element correctly.
398
399
	* doc/texinfo/nano.texi: Document the --enable-altrcname option.
	The lack of this was pointed out by Frank.
400
401
	* doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Mention
	that the position history is limited to the 200 most recent files.
402

403
404
405
406
2016-01-24  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (update_poshistory): Move an updated item to the end
	of the list, so that it won't be dropped any time soon.  The problem
	was pointed out by David Niklas.
407
	* src/winio.c (edit_redraw): Condense by removing a triplication.
408
409
	* src/prompt.c (do_statusbar_prev_word, do_statusbar_next_word):
	Chop an always-FALSE parameter and delete an unused return value.
410
	* src/prompt.c (do_prompt): Remove a superfluous free.
411
	* src/prompt.c (update_the_bar): Bundle some statements.
412
	* src/prompt.c (need_statusbar_update): Elide this function.
413
	* src/prompt.c (total_statusbar_refresh): Elide this function too.
414

415
416
417
418
419
2016-01-22  Benno Schulenberg  <bensberg@justemail.net>
	* src/utils.c (get_homedir): Don't use $HOME when we're root, because
	some sudos don't filter it out of the environment (which can lead to
	a root-owned .nano/ directory in the invoking user's home directory).
	It fixes https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1471459.
420
	* src/files.c (read_line): Rename a variable for clarity and contrast.
421

422
423
424
425
2016-01-21  Benno Schulenberg  <bensberg@justemail.net>
	* src/prompt.c (get_prompt_string): Preserve the cursor position on
	the statusbar when just toggling a setting or making an excursion to
	the file browser.  This fixes Savannah bug #46945.
426
427
428
	* src/prompt.c (do_prompt_abort): Remove this unneeded function, as
	nothing can break out of do_prompt(), not a SIGWINCH either.
	* src/prompt.c (get_prompt_string): Delete code that is dead now.
429
	* src/prompt.c (get_prompt_string): Elide an unneeded variable.
430
	* src/browser.c (do_browser): Delete unneeded blanking of a variable.
431

432
433
2016-01-20  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (open_buffer): Readjust the indentation and a comment.
434
	* src/files.c (has_valid_path): Get rid of a global variable.
435

436
437
438
2016-01-20  Rishabh Dave  <rishabhddave@gmail.com>
	* src/files.c (verify_path, open_buffer): When opening a new buffer,
	verify that the containing directory of the given filename exists.
439
	This fixes Savannah bug #44950.
440
441
442
	* src/files.c (do_lockfile): Remove the existence check on the
	directory, as this is now covered by verify_path().

443
444
2016-01-17  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c: Fix typo in #ifndef symbol.  Reported by Frank.
445
	* doc/syntax/nanorc.nanorc: Remove '+' as only one menu is allowed.
446
	* src/files.c (load_poshistory): Limit the number of loaded items.
447

448
449
450
2016-01-17  Mike Frysinger  <vapier@gentoo.org>
	* doc/syntax/nanorc.nanorc: Allow inline comments with key bindings.

451
452
2016-01-15  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (set_modified): Plug another memory leak.
453
	* src/files.c (set_modified): Move this function to its habitat.
454
	* src/files.c (open_file): Return the fantastic file descriptor
Benno Schulenberg's avatar
Benno Schulenberg committed
455
	when the opening of a non-existent file for reading succeeds.
456
457
458
	* src/nano.c (delete_opennode), src/text.c (discard_until):
	Free the items on the undo stack when a buffer is closed.
	This fixes Savannah bug #46904 reported by Mike Frysinger.
459

460
461
462
2016-01-15  Mike Frysinger  <vapier@gentoo.org>
	* src/files.c (open_file): Free the full filename in all cases.

463
2016-01-14  Benno Schulenberg  <bensberg@justemail.net>
464
	* doc/nanorc.sample.in: Remove a reference to an obsolete file.
465
	Reported by Mike Frysinger.
466
	* src/winio.c (edit_redraw): Delete an 'if' that is always FALSE.
467
468
	* src/winio.c (edit_redraw): Elide an unneeded variable and adjust
	some wrappings and whitespace.
469
	* src/proto.h: Delete two duplicate declarations.
470
	* src/rcfile.c (check_bad_binding): Elide this unneeded function.
471
	* src/rcfile.c (parse_binding): Show key only when it was rebound.
472

473
474
2016-01-13  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (save_poshistory): Reduce the indentation.
475
	* src/*.c: Adjust a few comments and rewrap some lines.
476

477
478
2016-01-12  Benno Schulenberg  <bensberg@justemail.net>
	* NEWS: Fix some typos and whitespace, and normalize the dates.
479
	* src/files.c (load_poshistory): Rename a variable.
480
	* src/files.c (load_poshistory): Remove some code duplication.
481
482
	* src/files.c (save_poshistory, update_poshistory, check_poshistory,
	load_poshistory): Differentiate variable name from function names.
483
	* src/files.c (load_poshistory): Remove a senseless iteration.
484
	* src/files.c (load_poshistory): Condense the reading of a line.
485
	* src/files.c (load_poshistory): Reduce the indentation.
486

487
GNU nano 2.5.1 - 2016.01.11
488

489
490
2016-01-10  Benno Schulenberg  <bensberg@justemail.net>
	* NEWS: Add item for upcoming 2.5.1.
491
492
	* src/nano.c (version), src/winio.c (do_credits), doc/man/rnano.1,
	doc/man/nano.1, doc/man/nanorc.5: Adjust dates and version number.
493

494
495
496
497
2016-01-09  Benno Schulenberg  <bensberg@justemail.net>
	* src/color.c (precalc_multicolorinfo), src/winio.c (edit_draw):
	Make sure to keep advancing also when matches are zero-length.
	This fixes Savannah bug #26977 reported by Tigrmesh.
498
499
	* src/winio.c (update_line): For softwrap, don't go beyond the number
	of available rows in the edit window.  This fixes Savannah bug #42188.
500
	* ChangeLog: Snip inconsistent blank lines.
501

502
503
504
2016-01-07  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (assign_keyinfo): Delete two unneeded #ifdefs: if
	they /could/ be false, the H and E keys would stop working.
505
	* src/global.c (assign_keyinfo): Add a comment and use a symbol.
506

507
508
509
2016-01-04  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (shortcut_init): Nowadays the functions are defined
	only once, so there is no longer any need to free existing ones.
510
	* src/global.c (sctofunc): Rewrite the loop, and constify the input.
511
	* src/text.c (do_linter): Condense the exit code.
512
	* src/nano.c (allow_sigwinch): Improve its name and its comments.
513
	* src/global.c (shortcut_init): Add "Tab" as key description.
514
	* src/text.c (do_linter): Gettextize a forgotten string.
515
516
	* src/global.c (assign_keyinfo): Make "Tab" produce the appropriate
	keycode.  This fixes Savannah bug #46812 reported by Cody A. Taylor.
517

518
519
520
2016-01-04  Mike Frysinger  <vapier@gentoo.org>
	* src/global.c (strtosc, strtomenu): Constify the input parameter.

521
522
523
524
2016-01-03  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_deletion), src/nano.c (do_input): Let reset_multis()
	figure out whether after a deletion a full refresh is needed, before
	doing a redraw of the current line.  This fixes Savannah bug #46794.
525
526
527
	* src/nano.c (do_output): Let reset_multis() figure out whether after
	an addition a full refresh is needed (for multiline-regexes' sake),
	instead of doing it always.
528
	* src/color.c (reset_multis): Abort when having no multiline regexes.
529
	* src/nano.c (do_input): A functionless shortcut should be impossible.
530
	* src/nano.c (do_input): Adjust indentation.
531

532
533
2016-01-02  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_spell, do_formatter): Plug three tiny memory leaks.
534
535
	* src/text.c (do_alt_speller, do_formatter): There is no need here to
	reinitialize the windows; it will be done when polling the keybuffer.
536
537
	* src/winio.c (do_credits): Correctly restore the settings of NO_HELP
	and MORE_SPACE.
538

539
540
2015-12-31  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_formatter): Restore the cursor position differently.
541
	* src/search.c (do_gotopos): Delete this now unused function.
542
	* src/search.c (do_gotolinecolumn): Chop an always-FALSE parameter.
543
544
	* src/search.c (do_gotolinecolumn): Chop a duplicate parameter --
	'allow_update' always has the same value as 'interactive'.
545

546
547
548
549
2015-12-30  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (main), src/files.c (open_buffer): Don't try to position
	the cursor when opening a buffer failed (because the user specified a
	directory, for example).  This fixes Savannah bug #46778.
550
	* doc/syntax/ocaml.nanorc: Normalize the comments.
551

552
553
554
555
2015-12-29  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/{c,objc,asm}.nanorc: Disable the regex for multiline
	strings as it colours some things wrong and is a glutton on time.

556
557
558
559
560
561
2015-12-23  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (do_writeout, do_writeout_void), src/global.c
	(shortcut_init, strtosc), src/nano.c (do_exit, close_and_go),
	doc/man/nanorc.5, doc/texinfo/nano.texi: In the writeout menu,
	offer ^Q to close and discard the buffer without saving it.  By
	default, the key is bound only when --tempfile is in effect.
562
	* doc/man/nanorc.5: Improve ordering of bindable functions.
563
564
	* src/files.c (read_file): Don't open an extra blank buffer when
	an empty file is read.  Bug was exposed by r5498, December 18.
565
566
567
	* src/files.c (do_writeout): When the user decides to save the
	buffer after all, go back to the filename prompt because the
	buffer may not have a name yet.  This fixes Savannah bug #46752.
568

569
570
571
2015-12-23  Mike Frysinger  <vapier@gentoo.org>
	* doc/syntax/autoconf.nanorc: Handle .m4 files too, add the "elif"
	keyword, handle dnl comments better, and mark trailing whitespace.
572
573
574
	* src/files.c (save_history, save_poshistory): Don't make the user
	hit Enter when there's an error saving history state at exit; it is
	pointless and annoying.  Just notify the user and move on.
575
576
577
	* src/nano.c (main): On most 64-bit systems, casting a pointer to
	an integer can cause valid pointers to be truncated and rejected.
	Rework the code to test for the two invalid values directly.
578

579
580
581
582
583
584
2015-12-23  Christian Weisgerber  <naddy@mips.inka.de>
	* configure.ac: AC_CHECK_HEADERS_ONCE() is very special and cannot be
	conditionalized.  Use plain AC_CHECK_HEADERS() instead, to not check
	for magic.h and zlib.h when configuring with --disable-libmagic.

2015-12-22  Benno Schulenberg  <bensberg@justemail.net>
585
586
587
	* src/color.c (precalc_multicolorinfo, alloc_multidata_if_needed):
	Move these two functions to the file where they belong.  And make
	the checking for an impatient user into a separate routine.
588
589
	* src/proto.h, src/winio.c (parse_escape_sequence, convert_sequence,
	arrow_from_abcd): Better names for these three functions.
590
	* src/winio.c (convert_sequence): Use return instead of a variable.
591

592
593
594
595
596
2015-12-20  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (display_buffer), src/nano.c (main): Precalculate the
	multiline-regex cache data for each buffer, not just for the first.
	This fixes Savannah bug #46511.

597
2015-12-18  Benno Schulenberg  <bensberg@justemail.net>
598
	* src/color.c (color_init): Use less #ifdefs, and adjust indentation.
599
	* src/color.c (set_colorpairs): Improve comments and rename vars.
600
601
	* src/files.c (read_line): Chop a superfluous bool -- 'prevnode' being
	NULL is enough indication that the first line is being read.
602
	* src/files.c (switch_to_prevnext_buffer): Tweak comment and var name.
603

604
605
606
607
2015-12-11  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/Makefile.am: Add missing autoconf and nftables syntaxes.
	* ChangeLog: Correct a bug number, plus a few other tweaks.

608
2015-12-08  Benno Schulenberg  <bensberg@justemail.net>
609
610
	* src/nano.c (splice_node, unlink_node): Let these functions update
	'filebot', instead of doing it in four different places each.
Benno Schulenberg's avatar
Benno Schulenberg committed
611
	* src/search.c (goto_line_posx), src/move.c (do_down): It should not
612
	be necessary to doubly check for being at the end of file.
613
	* src/text.c (do_justify): Rewrap and reorder a few lines.
614

615
616
2015-12-07  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (edit_draw): Quit the loop when there is no end match.
617
618
619
620
	* src/files.c (do_writeout): When --tempfile is given, make ^O not
	write out the file rightaway, as otherwise there is no way to discard
	the edits.  This undoes the core part of r5378 of September 29.  See
	https://lists.gnu.org/archive/html/help-nano/2015-11/msg00005.html.
621

Chris Allegretta's avatar
Chris Allegretta committed
622
623
GNU nano 2.5.0 - 2015.12.05

Benno Schulenberg's avatar
Benno Schulenberg committed
624
2015-12-05  Chris Allegretta  <chrisa@asty.org>
Benno Schulenberg's avatar
Benno Schulenberg committed
625
626
	* src/nano.c (main): key_defined() is an ncurses-ism.  Add better
	checks for this.
627

628
629
2015-12-05  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c: Fix compilation with --enable-tiny --enable-justify.
630
631
	* doc/man/{nano.1,rnano.1,nanorc.5}, doc/texinfo/nano.texi:
	Update date and version number to match the upcoming release.
632
	* src/files.c, src/winio.c: Avoid two compilation warnings.
633

634
2015-12-04  Benno Schulenberg  <bensberg@justemail.net>
635
	* src/proto.h: Avoid a compilation warning.
636
637
	* src/color.c (reset_multis_for_id, reset_multis_before/after):
	Fuse these three functions into a single one.
638
	* src/*.c: Rewrap some lines and tweak some comments.
639

640
641
642
2015-12-03  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (discard_until): Move the trimming of the undo stack
	into a separate function, so it can be used elsewhere.
643
644
645
	* src/text.c (do_justify): Discard the entire undo stack, to prevent
	nano from dying (or making mistakes) when trying to undo edits after
	a justification.  This works around Savannah bug #45531.
646
647
648
	* src/text.c (do_indent): Also here discard the entire undo stack, to
	prevent nano from making mistakes when trying to undo edits after an
	indentation change.  This works around Savannah bug #46591.
649
650
	* doc/man/nano.1, doc/texinfo/nano.texi: Add a note about undo not
	working after a justification or reindentation.
651

652
653
2015-12-02  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/python.nanorc: Don't colour triple quotes by themselves.
654
655
	* doc/syntax/python.nanorc: Treat backslashed quotes properly, and
	don't colour triple-quoted strings in two manners.
656
657
	* src/text.c (do_justify): Accept not just the Uncut keystroke but
	also the Undo keystroke for undoing a justification.
658

659
2015-12-02  Arturo Borrero González  <arturo.borrero.glez@gmail.com>
660
661
662
	* doc/syntax/nftables.nanorc: New file; syntax colouring for nftables.
	This addresses Debian bug #805288.

663
664
665
2015-12-01  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (do_insertfile): Mark the buffer as mofified only when
	actually something was inserted.  This fixes Savannah bug #45409.
666
	* src/files.c (do_insertfile): Rename two variables for clarity.
667
	* src/text.c (redo_cut): Delete two redundant assignments.
668
	* src/winio.c (edit_draw): Move a check to a better place.
669
	* src/winio.c (edit_draw): Rename a label and elide an 'else'.
670
	* src/winio.c (edit_draw): Unindent after previous change.
671
672
	* src/color.c (reset_multis_before, reset_multis_after): Delete four
	superfluous checks.
673

674
675
676
677
678
2015-11-30  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (redo_cut, update_undo): When cutting reaches the EOF,
	and NONEWLINES is set, there is no next line at which to put the
	cutting point for a redo.  So put it at the very end of the cut.
	This fixes Savannah bug #46541.
679
680
681
	* src/text.c (add_undo, update_undo, do_undo, do_redo), src/nano.h:
	Store and retrieve the correct file size before and after an action.
	This fixes Savannah bug #45523.
682
683
	* src/files.c (free_chararray): Allow the parameter to be NULL.
	This fixes Savannah bug #46420.
684

685
686
687
2015-11-29  Benno Schulenberg  <bensberg@justemail.net>
	* src/color.c (reset_multis): Evaluate correctly whether to reset
	the multidata cache.  This fixes Savannah bug #46543.
688
	* src/color.c (reset_multis): Reset the multidata a bit less often.
689
	* src/color.c (reset_multis): Adjust whitespace and comments.
690
691
692
	* src/winio.c (edit_draw): When an end is found but nothing is painted
	(because the coloured part is horizontally scrolled off), nevertheless
	set the multidata to CBEGINBEFORE.  This fixes Savannah bug #46545.
693
	* src/winio.c (edit_draw): Use the main cache-allocation routine.
694
695
	* src/winio.c (edit_draw): Delete two redundant conditions, and move
	the least frequent case to the end.
696
	* src/winio.c (edit_draw): Elide a variable, tweak some comments.
697

698
699
700
701
2015-11-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (main): Allow the user full control over the values of
	MALLOC_CHECK_ and MALLOC_PERTURB_; nano shouldn't override these.
	This reverts r5344 from August 6.
702
703
704
	* src/nano.c (alloc_multidata_if_needed): When allocating a new
	multidata array, initialize the array.  Problem was betrayed by
	using MALLOC_PERTURB_, and was located with valgrind.
705

706
707
708
2015-11-26  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_redo): Not just the undoing, also the redoing of a
	Backspace at EOF is a special case.  This fixes Savannah bug #46532.
709
710
	* src/text.c (do_redo): Warn about an impossible condition, instead
	of blithely continuing.  And elide an unneeded variable.
711

712
713
714
715
716
2015-11-25  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (do_output): Refreshing the whole edit window (instead
	of just the current line) is not needed for any kind of syntax, but
	only when there are multiline regexes.  And check for this not on
	every keystroke in a burst, but just once.
717
718
	* src/text.c (do_undo): Warn about a condition that should never
	occur, instead of silently continuing.
719
720
	* src/text.c (do_undo): Elide an unneeded variable, and don't skip
	the end of this function when things went wrong.
721
722
	* src/text.c (do_undo, do_redo, add_undo, update_undo): Handle more
	possible internal errors, and do it correctly.
723
	* AUTHORS: Add Mark and myself.
724

725
726
727
2015-11-24  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/makefile.nanorc: Also recognize the extensions .make and
	.mk as Makefiles.  Suggested by Emmanuel Bourg in Debian bug #804845.
728
729
	* src/color.c (color_update): Tell the user when a syntax name given
	on the command line does not exist.  This fixes Savannah bug #46503.
730
731
	* src/nano.c (splice_node): Inserting a new node into a linked list
	requires just two parameters: the insertion point and the new node.
732
	* src/nano.c (splice_node): Rename a variable for clarity.
733

734
735
736
737
738
2015-11-23  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (main), src/winio.c (parse_kbinput): Make Ctrl+Left and
	Ctrl+Right work on more terminals by asking ncurses for the keycodes.
	This addresses Debian bug #800681 reported by Arturo Borrero González.

739
740
741
2015-11-22  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (add_undo): Delete a condition that will never occur --
	this function is only ever called with PASTE when cutbuffer != NULL.
742
	* src/text.c: Rewrap, rewrite, rename, and reorder some things.
743
	* src/text.c (do_undo, do_redo): Elide an unneeded variable.
744
	* src/nano.c (unlink_node): After unlinking, also delete the node.
745

746
747
748
749
2015-11-21  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (main): Let the value of a --fill option on the
	command	line override the value of a "set fill" in an rcfile.
	This fixes Savannah bug #46492.
750
	* ChangeLog, NEWS: Add the release marker and copy the news item.
751

752
753
754
2015-11-21  David Lawrence Ramsey  <pooka109@gmail.com>
	* ChangeLog, NEWS: Fix a typo and adjust some spacing.

755
756
GNU nano 2.4.3 - 2015.11.18

757
758
759
2015-11-12  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_undo, update_undo): Store the correct end position of
	an inserted file, and use it when undoing.  Fixes Savannah bug #46414.
760
761
	* src/text.c (add_undo, update_undo): Delete an unneeded alias -- it
	wasn't being used consistently anyway.
762

763
2015-11-11  Benno Schulenberg  <bensberg@justemail.net>
764
	* src/text.c (do_redo, update_undo): Redo an Enter from the stored
765
766
767
	undo data, instead of running do_enter() again, because the latter
	will behave differently depending on the setting of autoindent.
	This addresses Debian bug #793053 reported by Clancy.
768
	* src/text.c (do_enter): Chop the now unused parameter 'undoing'.
769
	* src/text.c (do_enter_void): Discard this now useless function.
770

771
772
773
2015-11-10  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (edit_draw): Skip a zero-length match only when there
	/is/ a match.  Found with valgrind.  This fixes Savannah bug #41908.
774
	* src/files.c (do_lockfile, update_poshistory): Plug memory leaks.
775

776
777
778
2015-11-08  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (shortcut_init): Allow exiting from the file browser
	with the same key (^T) as it was entered (as ^G for the help viewer).
779
	* doc/syntax/changelog.nanorc: Accept longer bug and patch numbers.
780

781
782
783
784
785
2015-11-07  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_replace_loop): Correct the logic for adjusting the
	x position of the mark -- it happened to work because 'mark_begin' is
	NULL when 'old_mark_set' is FALSE.  Also improve the comments.

786
787
788
789
2015-11-06  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (write_lockfile): Don't bail out when the hostname is
	overlong, but instead truncate it properly and continue.  This fixes
	Ubuntu bug #1509081 reported by Sam Reed.
790
791
792
	* src/global.c (length_of_list), src/winio.c(get_mouseinput): Don't
	check whether a function has a help line, since all of them have.
	(And even if some didn't, they would still be valid functions.)
793
794
	* src/cut.c (cut_line): There is no need to set 'openfile->mark_begin'
	just like that; it will be set when 'openfile->mark_set' becomes TRUE.
795
	* src/text.c (do_redo): Delete a redundant assignment.
796

797
798
2015-11-02  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.h: Delete an unused type definition.
799
	* src/nano.h: Improve several comments.
800
801
802
	* src/text.c (do_wrap): Elide two variables.
	* src/cut.c (do_cut_text): Chop the 'undoing' parameter, so that the
	calls of this function become more symmetrical.
803

804
805
806
807
808
2015-10-31  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (copy_from_filestruct): When pasting while the mark is
	on, the mark's pointer needs to be refreshed only when it is on the
	same line as the cursor, and the mark's x coordinate only when the
	mark is located after the cursor.  This fixes Savannah bug #46347.
809
810
	* src/nano.c (copy_from_filestruct): Improve comments and combine
	two conditions.
811
	* ChangeLog: Correct the description of an old change.
812

813
814
815
816
2015-10-29  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (add_undo): Only skip adding an undo when the current
	action equals the last action.  This condition is needed for when
	typing text is broken by an undo+redo.  Fixes Savannah bug #46323.
817
818
	* src/text.c (do_redo): Check for "nothing to redo" earlier, so we
	can restore the possible warning about an internal error.
819
820
	* src/text.c (add_undo): Remove an 'if' that will never be true,
	and remove some assignments that have already been done.
821

822
823
824
825
2015-10-29  David Lawrence Ramsey  <pooka109@gmail.com>
	* src/files.c (do_writeout), src/nano.c (no_current_file_name_warning,
	do_exit): When option -t is given, make ^O work the same way as under
	Pico, writing out the file without prompting.  And make it work even
826
	better than Pico when the current file doesn't have a name yet.  This
827
	fixes Savannah bug #45415.  [Reverted in r5489 on December 7.]
828

829
830
831
832
2015-10-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_redo): For an INSERT, 'u->mark_begin_lineno' is not
	an actual line number, so spoof it.  It can be spoofed, because 'f'
	is not used for the INSERT case.  This fixes Savannah bug #45524.
833
834
	* src/text.c (do_redo): Remove a condition that can never occur.
	Also rewrite a loop to become somewhat clearer.
835

836
837
838
2015-10-27  Benno Schulenberg  <bensberg@justemail.net>
	* src/move.c (do_next_word): Rewrite this function to use the same
	logic as do_prev_word(), reducing its number of lines to half.
839
840
	* src/move.c (do_down): Don't calculate the line length twice.  And
	in the bargain avoid a warning about comparison of signed/unsigned.
841

842
843
844
845
846
2015-09-05  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (display_string, edit_draw): Force a redraw of a line
	only when it contains a multicolumn character, to spare all regular
	text this significant slowdown.  This fixes Savannah bug #45684
	reported by Wyatt Ward.
847
	* src/move.c (do_prev_word): Drop a return value that is never used.
848
849
850
851
	* src/move.c (do_prev_word): When in the middle of a word, jump to
	its beginning instead of to the beginning of the preceding word.
	Nano now matches the behaviour of Pico and of most other editors.
	This fixes Savannah bug #45413.
852

853
854
855
856
2015-09-04  Benno Schulenberg  <bensberg@justemail.net>
	* src/chars.c: Reverting r5354 from August 12.  This fixes Savannah
	bug #45874.  Apparently there is /some/ state somewhere after all.

857
2015-08-29  Benno Schulenberg  <bensberg@justemail.net>
858
	* doc/syntax/autoconf.nanorc: New file; syntax colouring for Autoconf.
859
	* src/files.c: Rewrap some lines and tweak two comments.
860

861
862
863
2015-08-16  Benno Schulenberg  <bensberg@justemail.net>
	* src/help.c (help_init, help_line_len): Avoid wide paragraphs of text
	in the help screens: wrap them at 74 columns if the screen is wider.
864
	* src/help.c (help_init): Reduce the scope of a variable.
865
	* src/help.c: Adjust some comments and whitespace.
866
867
	* src/help.c (do_help, do_help_void): Don't bother passing a function
	when it's used only once.
868
869
870
	* src/help.c (help_line_len): The wrap location can be beyond the EOL,
	so for determining the length of the current line, don't start at that
	location but at the beginning.  This fixes Savannah bug #45770.
871
	* src/help.c (help_line_len): Rename and reorder most of it.
872
873
	* src/nano.c (make_new_opennode), src/files.c (initialize_buffer):
	Remove some duplication in the initialization of a new openfile node.
874
	* src/nano.c (make_new_opennode): Don't bother setting things to NULL
875
	when they will be initialized right away.
876
877
	* src/files.c (make_new_buffer): Don't bother with a separate function
	when it's used only once, right there.
878
879
880
	* src/help.c (help_init): Since the new SIGWINCH handling, a resizing
	of the window will no longer break out of the help viewer, so there is
	no need any more for an extra freeing of the help text.
881

882
883
884
2015-08-13  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_find_bracket): Remove mistaken comparison between
	pointer and literal character.  Found with cppcheck.
885
886
887
	* src/browser.c (browser_init): Speed up the finding of the longest
	filename: don't limit the value to that of COLS all the time, as this
	is done later anyway, and don't bother skipping the dot entry.
888
889
890
	* src/global.c (shortcut_init): In restricted mode, allow changing
	the file format, but actually disable Appending, Prepending, making
	Backups, and opening the File Browser.
891

892
893
2015-08-12  Benno Schulenberg  <bensberg@justemail.net>
	* src/chars.c: UTF-8 is a stateless encoding, so there is no need to
Benno Schulenberg's avatar
Benno Schulenberg committed
894
	reset any state.  [Reverted in r5369 on September 4.]
895

896
897
898
2015-08-11  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (write_file): Avoid calling copy_file() with a null
	pointer.  Found with cppcheck.
899
900
	* src/files.c (write_file): A failure to delete the temporary file
	does not mean that it wasn't copied properly.
901

902
903
904
905
906
2015-08-09  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c, src/help.c (help_init), src/nano.c (do_toggle, main),
	src/winio.c (display_string, statusbar): Allow toggling the display
	of whitespace also when support for nanorc files was not built in,
	because the default values are quite usable.
907
908
909
	* src/files.c (read_file), src/rcfile.c, src/nano.c (main, usage):
	Fix compilation with --enable-tiny; file formats are not available
	then, so option --unix has no place; also add its description.
910
	* src/nano.c (finish): Remove an unneeded and mistaken condition.
911
	* src/nano.c (say_there_is_no_help): Make it sound more definitive.
912

913
914
915
916
917
2015-08-08  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (display_string): For some reason the reallocation done
	by null_at() messes things up.  So put in the null byte "manually".
	This is a fix -- or workaround -- for Savannah bug #45718.

918
919
920
2015-08-06  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (main): For --enable-debug builds, let malloc() help
	to find initialization failures and uses-after-free.  Suggested by
921
	Mike Frysinger.  [Reverted in r5446 on November 28.]
922
923
924
	* doc/texinfo/nano.texi: Improve the formatting, using @t to mark
	double-quoted literal strings, @: to mark periods that do not end
	sentences, and @. to mark a finishing period after a capital.
925

926
927
928
929
2015-08-04  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (main), src/files.c (read_file), src/rcfile.c,
	doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Add
	the option --unix, to save a file by default in Unix format.
930
931
	* doc/nanorc.sample.in: Advertise the five new bindable functions.
	* doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Tweaks.
932

933
2015-08-03  Benno Schulenberg  <bensberg@justemail.net>
Benno Schulenberg's avatar
Benno Schulenberg committed
934
	* src/rcfile.c (parse_binding): Check the value of shortcut->toggle
935
	only if it actually is a toggle.  Found with valgrind.
Benno Schulenberg's avatar
Benno Schulenberg committed
936
	* src/files.c (write_lockfile): Plug a leak.  Found with valgrind.
Benno Schulenberg's avatar
Benno Schulenberg committed
937
	* src/rcfile.c (parse_binding): Plug a tiny leak.
938

939
940
941
942
2015-08-02  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (initialize_buffer): Initialize also openfile->syntax.
	This addresses Debian bug #787914 reported by Paul Wise.

943
944
945
2015-08-01  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (precalc_multicolorinfo): Set each multiline-color
	value instead of OR-ing it.  This fixes Savannah bug #45640.
946
947
948
	* src/help.c (help_init): Show also the dedicated keys in the
	^G help text.  This helps to clarify some keys, and helps to
	see which ones could easily be rebound.
949
950
	* src/nano.c (usage): Add "and exit" to the description of --help,
	to match --version, and to distinguish it more from ^G.
951

952
953
954
955
956
957
958
2015-07-31  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_cutword, do_cut_prev_word, do_cut_next_word),
	src/global.c (shortcut_init, strtosc), doc/texinfo/nano.texi,
	doc/man/nanorc.5: Add two new bindable functions, 'cutwordleft'
	and 'cutwordright', which delete all characters from the cursor
	to the preceding or succeeding word start.  Fixes bug #32803.

959
2015-07-30  Benno Schulenberg  <bensberg@justemail.net>
960
961
	* src/global.c (shortcut_init): Don't show ^R and ^T in the help
	lines in restricted mode (if possible), to give visual feedback.
962
	* src/*.c: Normalize the whitespace after the preceding changes.
963
964
965
966
	* src/nano.c (show_restricted_warning, say_there_is_no_help):
	Differentiate between something being disabled/restricted (because
	of the way of invocation) and help texts being unavailable (which
	is a compile-time decision).
967
	* src/global.c (shortcut_init): Change "Justify" to a tag and regroup.
968
969
970
	* src/nano.c (do_suspend_void, do_suspend): Provide feedback when
	suspension is not enabled; and it cannot be enabled in restricted
	mode any longer, so there is no need to check for that any more.
971

972
973
974
975
2015-07-29  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_linter): When the linter is called in restricted mode
	(possible when nano was built with --disable-speller), it is better to
	say that this function is disabled than that no linter was defined.
976
977
	* src/nano.c (usage): When asking for --help in restricted mode, don't
	show options that don't have any effect.
978
979
	* src/nano.c (do_toggle): Make the four toggles that don't have any
	effect in restricted mode say that they're disabled.
980

981
982
983
984
2015-07-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_formatter), src/nano.c (allow_pending_sigwinch):
	Reenable SIGWINCH-es also when invoking the formatter fails, and
	correct some comments.
985
986
987
988
989
	* src/text.c (do_linter, do_formatter): In restricted mode, no nanorc
	files are read, so no linter or formatter will be defined, so these
	routines will never be called.  Also, the formatter will only ever
	be called when a syntax applies to the current file and this syntax
	defines a formatter, so there is no need to check this again.
990

991
992
2015-07-26  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_replace_loop): When doing regex replacements, find
993
994
995
996
997
	each zero-length match only once.  This fixes Savannah bug #45626.
	* src/global.c (shortcut_init, strtosc), src/search.c (do_findnext,
	do_findprevious), doc/man/nanorc.5, doc/texinfo/nano.texi: Add two
	new bindable functions, 'findnext' and 'findprevious', which repeat
	the last search command in a fixed direction without prompting.
998
	* src/global.c (shortcut_init): Tweak a string.
999
	* src/search.c, src/move.c: Improve a few of the comments.
1000
1001
	* src/search.c (replace_regexp, replace_line): Rename two variables,
	and make the calculation of the new line size more symmetrical.
1002

1003
1004
1005
1006
1007
1008
2015-07-25  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (shortcut_init, strtosc), src/files.c (savefile),
	doc/man/nanorc.5, doc/texinfo/nano.texi: Add a new bindable function,
	'savefile', which writes a file to disk without first asking for its
	name.  This implements Savannah patch #8208 submitted by Seiya Nuta.

1009
1010
1011
1012
2015-07-23  Benno Schulenberg  <bensberg@justemail.net>
	* doc/man/{nano.1,nanorc.5}, doc/texinfo/nano.texi: Add deprecation
	notices for the options 'set const', 'set poslog' and '--poslog'.
	Suggested by Eitan Adler.
1013
	* doc/faq.html: Mention --disable-histories and --disable-libmagic.
1014
	* src/chars.c (mbstrcasestr, mbrevstrcasestr): When searching, find
1015
1016
	only valid UTF-8 byte sequences.  This fixes Savannah bug #45579,
	first reported in 2009 by Mike Frysinger.
1017

1018
1019
1020
1021
2015-07-22  Mike Frysinger  <vapier@gentoo.org>
	* src/files.c (check_dotnano), src/global.c (thanks_for_all_the_fish),
	src/rcfile.c (parse_binding): Plug a few memory leaks.

1022
1023
1024
2015-07-19  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (main): Accept again a +LINE argument for each file
	given on the command line.  This fixes Savannah bug #45576.
1025
	* src/nano.c (main): Adjust some comments and rewrap some lines.
1026

1027
1028
1029
1030
2015-07-18  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (edit_draw): When looking for multiline-regex matches,
	look for a new start only after an end, instead of right after the
	last start.  This fixes bug #45525 and bug #41313 on Savannah.
Benno Schulenberg's avatar
Benno Schulenberg committed
1031
	* src/nano.c, src/text.c, src/winio.c: Adjust some comments.
1032
	* doc/faq.html: Fix a few typos and make some updates for 2.4.*.
1033
	* ChangeLog: Make the release markers stand out more.
1034

1035
1036
1037
1038
1039
1040
2015-07-17  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (open_buffer): Verify that a named and existing file
	is a normal file, to avoid opening an empty buffer when the name of
	a directory is specified.  This fixes Savannah bug #45383 reported
	by Mike Frysinger, and also Savannah bug #27839 (which is an echo
	from Debian bug #551717 reported by Paul Wise).
1041
1042
1043
1044
	* src/files.c (load_history): Remove an earlier attempt to make M-W
	work at startup.  It no longer worked because the assigned value gets
	overwritten by a later initialization of 'last_search' to the empty
	string.  Found through the use of valgrind.
1045
1046
	* src/text.c (do_alt_speller): Avoid an unfounded warning about a
	possibly uninitialized variable.
1047

1048
1049
1050
1051
2015-07-17  Mike Frysinger  <vapier@gentoo.org>
	* src/browser.c (browser_refresh): Use the proper type (off_t) for
	the size of a file, and avoid warnings about too large bit shifts.

1052
1053
1054
2015-07-15  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c, src/rcfile.c, doc/nanorc.sample.in, doc/man/nano.1,
	doc/man/nanorc.5, doc/texinfo/nano.texi, doc/syntax/nanorc.nanorc:
1055
1056
	Unabbreviate the long option --const to --constantshow, and --poslog
	to --positionlog, to be more understandable.
1057
1058
1059
1060
	* src/nano.h, src/global.c (add_to_sclist), src/help.c (help_init),
	src/rcfile.c (parse_binding), src/winio.c (get_shortcut): Rename
	the 'menu' item in the sc (shortcut) struct to 'menus', as it can
	refer to more than one menu.
1061

1062
1063
1064
2015-07-13  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_int_spell_fix, do_alt_speller): Remove an unneeded
	condition; 'added_magicline' can only be true when NO_NEWLINES isn't.
1065
1066
	* src/files.c (replace_buffer): Prevent a segfault when spellchecking
	a marked region and nonewlines isn't set.
1067

1068
2015-07-12  Benno Schulenberg  <bensberg@justemail.net>
1069
1070
	* src/text.c (do_alt_speller): Rename the variable 'totsize_save'
	to 'size_of_surrounding', to better describe what it contains.
1071
	* src/files.c (read_file): Remove a stray space from a message.
1072

1073
1074
2015-07-10  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (delete_opennode): Plug a small memory leak.
Benno Schulenberg's avatar
Benno Schulenberg committed
1075
1076
	* src/files.c (do_lockfile): Rename a variable; it does not contain
	the size of the file but the size of the name.
1077
	* src/nano.c (do_toggle): Elide an unneeded variable.
1078
1079
	* src/files.c: Unwrap some lines and rewrap some others in a more
	congenial manner; tweak some comments and whitespace and braces.
1080
	* src/files.c (read_line): Remove two lines of dead code.
1081
	* src/files.c (read_line): Rearrange a few lines and some whitespace.
1082

1083
2015-07-06  Benno Schulenberg  <bensberg@justemail.net>
1084
1085
1086
	* src/global.c (add_to_sclist), src/help.c (help_init), src/nano.h,
	src/rcfile.c (parse_binding): When defining the toggles, give each
	of them a sequence number, so that, when they are rebound, they can
1087
1088
	still be listed in the original order in the help text.  This fixes
	Savannah bug #45417.
1089
	* src/text.c (do_undo): Make it clearer what WAS_FINAL_BACKSPACE does.
1090
1091
	* src/text.c (add_undo, do_deletion): Move the check for a Delete at
	the end-of-file to a less frequently travelled path.
1092
1093
	* src/text.c (do_deletion): If a Backspace happens at the end-of-file,
	don't remove and then re-add the magic line; just add an undo item.
1094
1095
	* src/help.c (help_init), src/text.c (do_undo): Adjust whitespace and
	bracing after the previous changes.
1096

Chris Allegretta's avatar
Chris Allegretta committed
1097
GNU nano 2.4.2 - 2015.07.05
1098

1099
1100
1101
1102
2015-06-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (browser_refresh): Limit the selected file to the
	available ones in the list -- after a refresh the number may have
	decreased.  This fixes Savannah bug #45424.
1103
1104
	* src/text.c (do_deletion): There is no need to check again for the
	line ending -- it was done already in the encompassing 'if'.
1105
1106
	* src/text.c: Unwrap some lines, rewrap some others more logically,
	plus several other esthetic tweaks.
1107
1108
1109
	* doc/syntax/xml.nanorc: Recognize many more kinds of XML files.
	This addresses Debian bug #790017 reported by Emmanuel Bourg.
	Also colour the strings in tags differently, and add some comments.
1110

1111
1112
1113
2015-06-27  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_undo, add_undo): Skip undoing a backspace *only* when
	it really tried to delete the final, magic newline.
1114
	* src/nano.h, src/text.c: Rename three flags for clarity.
1115
1116
1117
1118
	* src/files.c (replace_buffer): This function is only ever called with
	a temporary file as parameter, so forget the case of an empty filename.
	Also, don't bother putting the pointer at the top of the buffer, as the
	first action after this function is to restore the cursor position.
1119
1120
	* src/files.c: Normalize whitespace and comments.
	* src/nano.h: Remove obsolete execute flag from the shortcut struct.
1121
1122
1123
	* src/global.c (shortcut_init): Remove a duplicate binding of ^T, to
	prevent it being shown twice in the ^G help text.  It will be rebound
	dynamically when for the current syntax another function is available.
1124

1125
1126
1127
1128
1129
1130
2015-06-23  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (edit_draw): Verify that there exists multidata for the
	found starting line before trying to use it.  When a file is inserted
	(^R), it will not have any precalculated multidata associated with it.
	This fixes Savannah bug #45377 reported by Cody A. Taylor.

1131
1132
1133
1134
2015-06-20  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_research): If nothing was searched for yet during
	this run of nano, take the most recent item from the search history.
	This makes M-W work also right after startup, like <n> in vim/less.
1135
	* src/utils.c (get_homedir): Keep homedir NULL when no home directory
Benno Schulenberg's avatar
Benno Schulenberg committed
1136
1137
	could be determined, so that nano will show a message about it.  This
	is a fix for Savannah bug #45343.
1138
1139
	* doc/syntax/nanorc.nanorc: Colour key-binding lines affirmatively
	only when the specified menu name is an existing one.
1140
1141
	* doc/syntax/changelog.nanorc: Stop the changed-files colour from
	spilling beyond a blank line.  Also highlight releases.
1142
1143
	* src/nano.c (main), src/rcfile.c: Remove the obsolete long option
	--undo.  And sort --help and the softwrap option more consistently.
1144
1145

2015-06-18  Benno Schulenberg  <bensberg@justemail.net>
1146
1147
	* src/rcfile.c: Allow a tiny nano's ~/.nanorc to enable search and
	position histories.  Also sort the options more strictly.
1148
	* src/nano.h: Delete two unused things, and add two comments.
1149

1150
1151
1152
1153
1154
1155
1156
1157
2015-06-17  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_undo, add_undo): When undoing a Backspace at the tail
	of the file and nonewlines is not set, then don't add another newline
	but just reposition the cursor.  Also, when doing a Delete at the tail
	of the file, don't add a superfluous undo structure.  This prevents
	the appearance of an extra newline when undoing the Backspace/Delete.
	Patch partially by Mark Majeres.  The problem was first reported in
	https://lists.gnu.org/archive/html/nano-devel/2015-06/msg00003.html.
1158
	* src/text.c (do_undo): Adjust whitespace after the previous change.
1159
1160
	* src/text.c (add_undo): Elide an unneeded variable and correct two
	comments.  And try to put the more frequent condition first.
1161
1162
	* src/text.c (add_undo): Rename the parameter 'current_action' to
	'action', to match the other functions.
1163
1164
	* src/text.c (do_undo, add_undo, update_undo): Improve the visibility
	of the undo-related debugging messages.
1165

1166
1167
1168
2015-06-14  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (edit_draw): Add some debugging code to track which
	multidata codes (for multiline regexes) get assigned to which lines.
1169
1170
1171
	* src/winio.c (edit_draw): Start and end regexes can be very similar;
	so if a found start has been qualified as an end earlier, believe it
	and skip to the next step.  This helps with Python's docstrings.
1172
1173
1174
	* src/winio.c (edit_draw): When the whole line has been coloured,
	don't bother looking for any more starts.  This prevents some lines
	from being erroneously marked as CENDAFTER instead of CWHOLELINE.
1175
	* src/*.c: Don't check for non-NULL before freeing; it's unneeded.
1176

1177
1178
2015-06-11  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (get_key_buffer): Add some debugging code to make it
1179
	easy to see what codes a keystroke produces.
1180

1181
1182
1183
2015-06-07  Benno Schulenberg  <bensberg@justemail.net>
	* doc/texinfo/nano.texi: Show the node with the command-line options
	in the main menu, to make it easy to find.
1184
1185
	* doc/texinfo/nano.texi: Improve some formatting, hyphenation, wording
	and dashes.  And remove some confusing, historical things.
1186
1187
1188
	* doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Clarify the
	meaning of --backupdir: it doesn't just specify a directory for saving
	backup files, it mainly causes uniquely numbered backups to be made.
1189
1190
	* doc/man/nano.1: Add a section on the non-obvious functioning of the
	cutbuffer and the mark.
1191

1192
1193
2015-06-04  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.h: Fix compilation with --enable-tiny.
1194
1195
	* nano.spec.in: Add the post-install and pre-uninstall rules for the
	Info document, plus some tweaks.  (Patch was tested by Kamil Dudka.)
1196

1197
1198
1199
2015-06-02  Benno Schulenberg  <bensberg@justemail.net>
	* doc/man/nanorc.5, doc/texinfo/nano.texi: Tweak some wordings, and
	add some missing formatting to the Info document, and fix an mdash.
1200
1201
1202
	* doc/syntax/debian.nanorc: Colour also an optional option.
	This addresses Debian bug #664456 reported by Shawn Landden.
	Also shorten the name of the syntax to "sources.list".
1203
1204
1205
1206
	* doc/syntax/python.nanorc: Require again that the triple quote	that
	starts a docstring is followed by some character -- it is better to
	*not* colour some strings than far too often colour far too much.
	This addresses Debian bug #785508 reported by Alexandre Detiste.
1207

1208
1209
1210
1211
2015-05-31  Mahyar Abbaspour  <mahyar.abaspour@gmail.com>
	* src/prompt.c (get_statusbar_page_start): Prevent a floating-point
	exception when the available length for an answer becomes zero.

1212
1213
1214
2015-05-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/help.c (do_help), src/prompt.c (do_yesno_prompt): Normalize
	the whitespace after the recent changes in logic.
1215
1216
	* src/prompt.c (do_yesno_prompt): Use 'width' instead of hardcoded
	16.  Also always first set the string and then position the cursor.
1217
	* TODO: Mark window resizes and better file-type detection as done.
1218
	* doc/syntax/debian.nanorc: Allow a CD name to contain any character.
Benno Schulenberg's avatar
Benno Schulenberg committed
1219
	This addresses Debian bug #688892 reported by Dani Möller Montull.
1220

1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
2015-05-28  Mahyar Abbaspour  <mahyar.abaspour@gmail.com>
	* src/nano.c (handle_sigwinch, regenerate_screen), src/global.c,
	src/prompt.c (do_statusbar_input, get_prompt_string, do_yesno_prompt),
	src/browser.c (do_browser, browser_refresh), src/help.c (do_help),
	src/winio.c (get_key_buffer, unget_input, get_input, parse_kbinput),
	src/text.c (do_justify, do_linter), src/nano.h, src/proto.h:
	Handle a SIGWINCH (signalling a change in window size) not when it
	happens but only when checking for input.  Report the SIGWINCH via
	a special key value to the calling routine, to allow not only the
	main editor but also the help viewer and the file browser to adapt
	their display to the new size.  (Patch edited by Benno.)

1233
1234
1235
1236
2015-05-20  Devrim Gündüz  <devrim@gunduz.org>
	* doc/syntax/postgresql.nanorc: New file -- syntax highlighting for
	PostgreSQL, first posted as Savannah patch #8601.  Trimmed by Benno.

1237
1238
1239
1240
2015-05-08  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (browser_refresh): Take the distant possibility of
	terabyte files into account, and in the bargain get rid of the need
	to calculate the number of digits in UINT_MAX.
1241
1242
	* src/files.c (get_next_filename): Limit the number of backup files
	to one hundred thousand -- which should be far more than enough --
1243
	before finding an unused filename takes an annoying amount of time.
1244
	* src/utils.c (digits): Delete this now unneeded function.
1245

1246
1247
1248
2015-05-03  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (browser_refresh): Display an ellipsis only when the
	filename is longer than the available space, not when it still fits.
1249
	* src/browser.c, src/nano.c: Adjust a few comments and line wrappings.
1250
	* doc/syntax/groff.nanorc: Use character classes correctly.
1251

1252
1253
1254
1255
2015-04-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/color.c (color_update): Match the file regex of a syntax against
	the absolute, canonical path instead of against the path the user gave.
	This fixes Savannah bug #44288, reported by Mike Frysinger.
1256
	* doc/syntax/po.nanorc: Improve the colouring of message tags.
1257
	* src/winio.c (get_escape_seq_kbinput): Unwrap a bunch of comments.
1258

1259
1260
2015-04-25  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_replace_loop): Remove the unintended special
1261
1262
	case for replacing multiple occurrences of a literal ^ or $; see
	https://lists.gnu.org/archive/html/nano-devel/2015-04/msg00065.html.
1263
	* src/search.c (findnextstr): Delete an always-FALSE parameter.
1264
1265
	* src/search.c (findnextstr): Rename the parameter 'whole_word'
	to 'whole_word_only', for clarity.
1266

1267
1268
1269
1270
1271
2015-04-21  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (findnextfile): Save the settings of the global
	case-sens, direction, and regexp flags, and restore them on exit.
	And do this not in do_filesearch() but in findnextfile(), so that
	it will also work for do_fileresearch().
1272
1273
	* src/text.c (do_int_spell_fix): Save and restore the global flags
	in the same short and quick way as above.
1274
1275
	* src/nano.c (main): Initialize the search and replace strings in
	a central place, to get rid of a bunch of ifs.
1276
	* src/search.c (search_init_globals): Elide this tiny function.
1277

1278
1279
1280
2015-04-20  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (need_horizontal_update, need_vertical_update): Fuse
	two identical functions into one: need_screen_update().
1281
1282
	* src/prompt.c (need_statusbar_horizontal_update): Rename function
	to need_statusbar_update() as there is no vertical counterpart.
1283
1284
1285
	* src/search.c (do_search, do_research): Delete redundant reprises
	of a regex search: finding an occurrence only at the very starting
	point of the search necessarily means it is the only occurrence.
1286

1287
1288
1289
2015-04-18  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c, src/nano.c, doc/man/nanorc.5, doc/texinfo/nano.texi:
	Make the descriptions of the multibuffer feature more accurate.
1290
1291
1292
1293
1294
1295
1296
1297
	* src/winio.c (display_string): Make sure an invalid starting byte
	of a multibyte sequence is properly terminated, so that it doesn't
	pick up lingering bytes of any previous content.  This prevents the
	displaying of ghosts -- characters that aren't really there -- when a
	file contains valid ánd invalid UTF-8 sequences.  For an example see:
	https://lists.gnu.org/archive/html/nano-devel/2015-04/msg00052.html.
	Also make two comments more accurate: an invalid multibyte sequence
	will never be categorized as a control character or anything else.
1298

1299
1300
2015-04-18  Mark Oteiza  <mvoteiza@udel.edu>
	* doc/syntax/{python,ruby,sh,tex}.nanorc: Add a linter definition.
1301
1302
	* doc/syntax/elisp.nanorc: New file; syntax highlighting for Elisp.
	* doc/syntax/guile.nanorc: New file; syntax highlighting for Guile.
1303

1304
1305
1306
1307
2015-04-17  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_alt_speller, do_linter, do_formatter): Distinguish
	a failure to launch the linter from receiving zero parsable lines;
	add a new function to glue together the invocation-error string.
1308
1309
1310
1311
1312
	* src/global.c (shortcut_init): In the Help Viewer and File Browswer,
	bind the unbound Home and End keys to goto_top and goto_bottom, to
	mimic the behaviour of these keys in file viewers and web browsers.
	Also show ^Y and ^V in the WhereisFile menu instead of M-\ and M-/,
	for similarity with the WhereIs menu.
1313
1314
	* src/global.c (shortcut_init): Arrange the movement keys in the File
	Browser in the order of ascending stride, as in the Help Viewer.
1315

1316
GNU nano 2.4.1 - 2015.04.14
1317

1318
1319
1320
1321
2015-04-13  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_replace_loop): Fix compilation with --enable-tiny.
	* README: Mention also the Savannah page for reporting bugs.

1322
1323
1324
1325
2015-04-12  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (filesearch_init): Stop M-\ and M-/ in WhereisFile
	menu (reached via ^R ^T ^W) from doing also an unrequested search
	after having performed their function.  Fixes Savannah bug #44790.
1326
1327
1328
	* src/global.c (shortcut_init): Rebind ^Y and ^V in the WhereisFile
	menu from the pointless page_up() and page_down() to the effective
	first_file() and last_file().  Also unbind some other useless keys.
1329
1330
	* src/browser.c (filesearch_init): Remove an unused variable, and
	adjust the introductory comment for the recently tweaked logic.
1331
1332
	* src/rcfile.c (parse_linter, parse_formatter): Use mallocstrcpy()
	in a correct manner; don't let it free an unrelated string.
1333

1334
1335
1336
1337
1338
1339
1340
2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (do_replace_loop): Do not split off the marked region
	into a separate partition, but do the replacings in the current one,
	taking good care to stay within the boundaries of the region.  This
	fixes an undo bug where the first part of a line would disappear if
	the region started in the middle of a line.  Bug was reported here:
	https://lists.gnu.org/archive/html/nano-devel/2015-03/msg00077.html.
1341
	Original idea and patch were by Mark Majeres.
1342

1343
1344
1345
1346
2015-04-08  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (browser_select_dirname, findnextfile): Rename
	'currselected' to 'looking_at', for more contrast with 'selected',
	and rename browser_select_filename() to browser_select_dirname().
1347
	* src/text.c: Correct and adjust some comments.
1348

1349
1350
1351
2015-04-07  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (do_fileresearch): Don't search for the empty string
	when nothing was sought yet (when historylog is set).
1352
1353
	* src/browser.c (filesearch_init): Remove an unfitting comment
	(there are no toggles here) and tweak some others.
1354
1355
	* src/search.c (do_search, do_research): Use the same variable as
	in the surrounding code, for consistency.
1356
1357
	* src/browser.c (findnextfile_wrap_reset): Elide this function,
	and rename 'search_last_file' to 'came_full_circle'.
1358
1359
	* src/browser.c (filesearch_init, do_fileresearch): Avoid setting
	'focusing' when searching only for filenames.
1360
1361
	* src/browser.c (findnextfile, do_filesearch, do_fileresearch):
	Greatly simplify the searching for the next matching filename.
1362
1363
1364
	* src/{browser,files,help,prompt,text,winio}.c: Let the function
	bottombars() set the global variable 'currmenu' -- the displayed
	menu must necessarily be the active one.
1365
	* src/browser.c (filesearch_abort): Elide this tiny function.
1366
	* THANKS: Add the names of recent translators, and sort the list.
1367
	* THANKS: A neater layout, plus two table headers.
1368

1369
1370
1371
1372
2015-04-05  Benno Schulenberg  <bensberg@justemail.net>
	* doc/texinfo/nano.texi: Expand on nano's features, condense the
	synopsis, and "online" means something else to most people.

1373
2015-04-03  Benno Schulenberg  <bensberg@justemail.net>
1374
	* README: Update text to the fifth milestone, 2.4.x, plus tweaks.
1375
	* src/rcfile.c: Remove two superfluous (because nested) #ifndefs.
1376
1377
	* src/rcfile.c (parse_rcfile): Ignore any magic when libmagic was
	disabled, and ignore a formatter when spell checking was disabled.
1378

1379
1380
1381
1382
1383
1384
2015-03-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/search.c (search_init_globals, search_replace_abort),
	src/winio.c (edit_redraw), src/proto.h, src/global.c: When finding
	an off-screen string, put it on the center line of the screen and
	not on the bottom or top line.  This restores the old behaviour
	that was unintentionally changed in r5149 six days ago.
1385
1386
1387
	* src/winio.c (edit_refresh): When pasting lines on the bottom line,
	only scroll the required number of lines and not half a screen --
	that is, when smooth scrolling is enabled.
1388
1389
	* doc/syntax/changelog.nanorc: Also colour a series of changed files
	that spans more than one line.
1390

1391
1392
1393
1394
2015-03-27  Mark Majeres  <mark@engine12.com>
	* src/text.c (do_alt_speller): Adjust the end point of the marked
	region for any change in length of the region's last line.

1395
1396
1397
1398
2015-03-27  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/patch.nanorc: Recognize also Debian package diffs.
	Fixes https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1300565
	requested by Rolf Leggewie.
1399
	* src/search.c (do_replace_loop): Adjust some whitespace and wrapping.
1400
1401
1402
	* src/search.c (do_replace_loop): Place a call to edit_refresh better,
	and remove two unneeded ones.  This greatly speeds up nano when doing
	a Replace All with *lots* of occurrences.
1403
	* src/{color,global,nano,text,utils}.c: Normalize some whitespace.
1404
	* src/global.c (strtosc): The linter is only available when colour is.
1405
1406
	* src/global.c, src/text.c: Treat the formatter like a speller,	to fix
	compilation with --disable-speller.  Fixes Savannah bug #44607.
1407

1408
1409
2015-03-25  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/debian.nanorc: Slightly widen and relax the header regex.
1410
1411
1412
1413
	* doc/syntax/python.nanorc: Hashes inside triple-quoted strings should
	not cause comment colouring.  (Inside single-qouted strings neither,
	but then quotes in comments will be coloured like strings.)  This
	solves https://bugs.launchpad.net/ubuntu/+source/nano/+bug/481363.
1414
1415
	* src/global.c (strtomenu): Remove mistaken menu name -- as the
	formatter allows no interaction it needs no associated menu.
1416
1417
	* src/text.c (do_formatter): Remove unneeded statement -- nothing
	has changed the value of 'currmenu'.
1418
	* src/global.c (strtosc), doc/man/nanorc.5: Allow rebinding the
1419
	linter when nano was configured with --disable-speller.
1420

1421
1422
1423
1424
1425
2015-03-23  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_alt_speller): Avoid the spell checker reporting
	an error when the marked region is zero bytes long.  The message
	is not needed -- it gets printed by the caller.  This generalizes
	the fix for Savannah bug #29393.
1426
1427
	* src/text.c (do_alt_speller): Do not unset the mark before the
	possible bailout because of a zero-sized region.
1428
	* NEWS: Option --noread allows writing, not reading, to named pipes.
1429

Benno Schulenberg's avatar
Benno Schulenberg committed
1430
2015-03-22  Chris Allegretta  <chrisa@asty.org>
1431
	* src/text.c (do_alt_speller): timestamp can just be a time_t.
1432
	Fixes compilation on win32 and macOS.
1433

1434
GNU nano 2.4.0 - 2015.03.22
1435

1436
1437
1438
1439
2015-03-22  Benno Schulenberg  <bensberg@justemail.net>
	* src/chars.c (move_mbleft): Start looking for a multibyte char
	not at the start of the string, but only as far back as such a
	char can possibly be.  Change suggested by Mark Majeres.
1440
	* src/search.c (findnextstr): Step backward or forward not simply
1441
1442
1443
	one byte but one character (possibly multibyte).  Fixes Savannah
	bug #42175, reported by myself, and the finding of ghosts seen in
	https://lists.gnu.org/archive/html/nano-devel/2015-03/msg00055.html.
1444
1445
	* src/winio.c (edit_redraw): Do not center the current line when
	smooth scrolling is used.  This fixes Savannah bug #42654.
1446

1447
1448
2015-03-21  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_alt_speller): Remove some leftovers.
1449
	* src/search.c: Place some comments better and unwrap some lines.
1450

1451
1452
1453
1454
1455
2015-03-21  Mark Majeres  <mark@engine12.com>
	* src/text.c (do_alt_speller): Restore the positions of the mark
	and the cursor in a better way: to the columns where they were.
	This fixes Savannah bug #44542, reported by Benno Schulenberg.

1456
2015-03-20  Benno Schulenberg  <bensberg@justemail.net>
1457
	* src/nano.c (finish_stdin_pager, cancel_stdin_pager, stdin_pager):
1458
1459
	Normalize the whitespace, remove an old comment, and place another
	one better.
1460
1461
	* src/text.c (do_undo): Make a message equal to another one.  It
	was mistakenly changed in r4950.  (This	is translation-neutral.)
1462
1463
	* src/global.c (shortcut_init): Keep related items together in the
	^G help screen.
1464

1465
1466
1467
1468
1469
2015-03-17  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_alt_speller): Do not set the modified flag when
	an external spell checker didn't make any changes.  This fixes
	Savannah bug #44320, reported by Cody A. Taylor.

1470
1471
1472
2015-03-14  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_formatter): Fix a message plus a few comments.

1473
2015-03-14  Mark Majeres  <mark@engine12.com>
1474
1475
1476
	* src/nano.c (renumber): Get out if there is nothing to renumber,
	to prevent do_undo() from falling over trying to renumber emptiness.
	This fixes Savannah bug #44488, reported by Dennis Decker Jensen.
1477

1478
1479
1480
2015-03-08  Benno Schulenberg  <bensberg@justemail.net>
	* src/proto.h, src/nano.c: Fix compilation with --enable-tiny plus
	--enable-nanorc.
1481
	* src/rcfile.c (parse_binding): Fix the rebinding of toggles.
1482
1483
	* doc/man/{nano.1,rnano.1,nanorc.5}, doc/texinfo/nano.texi: Update
	years and version numbers in the docs in anticipation of a release.
1484
1485
1486
	* src/nano.c (version): Drop compile time from version information
	to enable a reproducible build.  Proposed by Jérémy Bobbio and Jordi
	Mallach (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774388).
1487

1488
1489
1490
1491
2015-03-07  Benno Schulenberg  <bensberg@justemail.net>
	* doc/man/nanorc.5, doc/texinfo/nano.texi: Add a note about the
	inherent imperfection of using regular expressions for syntax
	highlighting, as suggested by Mike Frysinger in bug #30962.
1492
	* doc/man/nanorc.5: Improve the indentation of some lists.
1493
1494
1495
1496
	* doc/man/nanorc.5, doc/texinfo/nano.texi: Remove the mistaken
	square brackets around the arguments of "header" and "magic" --
	those arguments are not optional.  Also add "formatter" to the
	texinfo document, and slightly improve its punctuation.
1497

1498
GNU nano 2.3.99pre3 - 2015.02.27
1499

Benno Schulenberg's avatar
Benno Schulenberg committed
1500
2015-02-25  Chris Allegretta  <chrisa@asty.org>
1501
	* src/rcfile.c (parse_binding): Add an exception for do_toggle() as
1502
	rebinding toggles broke with r5022.  (Fixed in r5134.)
1503

1504
1505
2015-02-21  Benno Schulenberg  <bensberg@justemail.net>
	* README: Fix the explanation of how to subscribe to a mailing list.
1506
	* doc/syntax/{java,lua,python,ruby}.nanorc: Wrap some overlong lines.
1507

1508
1509
1510
2015-02-18  Mike Frysinger  <vapier@gentoo.org>
	* doc/syntax/sh.nanorc: Recognize also dash, openrc and runscript.

1511
1512
1513
2015-02-16  Mike Frysinger  <vapier@gentoo.org>
	* .gitignore: Ignore the autotools 'compile' file.

1514
1515
1516
2015-02-15  Benno Schulenberg  <bensberg@justemail.net>
	* src/file.c (do_lockfile): Also show the name of the affected file
	when finding a lock file, for when many files are opened at once.
1517
	* src/file.c (do_lockfile): The user does the editing, not the editor.
1518

Benno Schulenberg's avatar
Benno Schulenberg committed
1519
2015-02-09  Chris Allegretta  <chrisa@asty.org>
1520
1521
1522
	* nano.spec.in: Add dependency on texinfo, docdir files for
	RPM file creation.

Chris Allegretta's avatar
Chris Allegretta committed
1523
GNU nano 2.3.99pre2 - 2015.02.06
1524

1525
2015-02-03  Alex Henrie  <alexhenrie24@gmail.com>
1526
1527
1528
	* src/cut.c (do_cut_text): Make sure to set modified even when
	using --enable-tiny.

1529
1530
1531
2015-02-01  Kamil Dudka  <kdudka@redhat.com>
	* src/files.c (write_lockfile): Avoid writing uninitialized bytes to
	the lock file -- a simple null_at() would not initialize the buffer.
1532
1533
	* src/files.c (do_lockfile): Make sure that 'lockprog' and 'lockuser'
	are terminated -- strncpy() does not guarantee that on its own.
1534
1535
1536
	* src/files.c (do_lockfile): Avoid printing a wrong PID on the status
	bar due to treating serialized PID bytes as signed integers.  This
	addresses https://bugzilla.redhat.com/1186384 reported by Don Swaner.
1537
1538
	* src/files.c (write_lockfile): Do not trim the nano version number
	-- snprintf() counts the trailing zero into the size limit.
1539

1540
1541
2015-02-01  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (do_credits): Add a general entry for all translators.
1542
1543
	* src/nano.c (version), src/winio.c (do_credits): Update the copyright
	years to include 2015.
1544

Benno Schulenberg's avatar
Benno Schulenberg committed
1545
2015-01-13  Chris Allegretta  <chrisa@asty.org>
1546
1547
	* src/files.c (open_buffer): Check here for locking and properly
	handle choosing to not open a file when locked instead of in
1548
	open_file().  Fixes Savannah bug #42373 reported by Benno Schulenberg.
1549

1550
GNU nano 2.3.99pre1 - 2015.01.06
1551

Benno Schulenberg's avatar
Benno Schulenberg committed
1552
2015-01-03  Chris Allegretta  <chrisa@asty.org>
1553
1554
1555
1556
	* New formatter code to support syntaxes like Go that have tools to
	automatically lint and reformat the text (gofmt), which is lovely.
	Added rcfile option formatter, a function do_formatter() in text.c
	and some other calls.
1557

1558
1559
1560
2014-12-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (do_lockfile): Gettextize the "File being edited"
	prompt, and improve its wording.
1561
1562
1563
	* src/winio.c (do_credits): Remove the names of past translators
	from the Easter-egg scroll.
	* THANKS: Add a missing	historical translator name.
Benno Schulenberg's avatar
Benno Schulenberg committed
1564
1565
	* src/winio.c (do_credits): Add Mark to the scroll, for all his
	undo work, colouring nano's interface, and other patches.
1566

1567
1568
1569
1570
2014-11-30  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/spec.nanorc: Colorize %pretrans and %posttrans fully.
	Original patch from Savannah patch #8573 by Daniel Vrátil.

1571
1572
1573
1574
1575
2014-09-21  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/{perl,python,ruby,sh}.nanorc: Recognize also header
	lines of the form "#!/usr/bin/env thing" besides "#!/bin/thing".
	This fixes Savannah bug #43270 reported by Kitty.

1576
1577
1578
1579
2014-08-29  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_justify): Replace the old get_shortcut() wrapper
	with the new func_from_key().

1580
1581
1582
2014-08-10  Benno Schulenberg  <bensberg@justemail.net>
	* doc/texinfo/nano.texi: Improve some wordings and formatting.

1583
1584
1585
2014-08-07  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/nanorc.nanorc: Remove a mistaken OR which causes a
	'Bad regex, empty (sub)expression' error on some systems.  This
Benno Schulenberg's avatar
Benno Schulenberg committed
1586
	fixes Savannah bug #42929 reported by Misty De Meo.
1587

1588
1589
1590
2014-08-03  Benno Schulenberg  <bensberg@justemail.net>
	* doc/man/nano.1, doc/man/rnano.1: Tweak the formatting a bit so that
	po4a will create a nicer POT file.
1591
	* doc/man/nanorc.5: Improve some of the wordings and formatting.
1592

1593
1594
1595
1596
2014-08-02  Benno Schulenberg  <bensberg@justemail.net>
	* doc/texinfo/nano.texi: Standardize the formatting of command-line
	options -- each one separately.  Also add some more markup.

1597
1598
1599
1600
1601
2014-08-01  Benno Schulenberg  <bensberg@justemail.net>
	* doc/man/nano.1, doc/man/rnano.1: Separate short and long option
	by a comma instead of putting the long one between parentheses.
	And showing the required quotes around the argument of -Q.

1602
1603
2014-07-31  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (do_insertfile): Adjust some indentation.
1604
1605
	* src/prompt.c (do_statusbar_input), src/browser.c (do_browser):
	Reorder a few things, and adjust some whitespace.
1606

1607
1608
1609
2014-07-27  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (add_to_sclist): Remove the now unused and unneeded
	addition ability from this builder function of the shortcut list.
1610
	* src/global.c (strtokeytype): Move this to a better place.
1611
	* src/global.c (first_sc_for): Move this too to a better place.
1612
1613
	* src/prompt.c (do_yesno_prompt): Use the new and more direct
	func_from_key() wrapper instead of get_shortcut().
1614
	* src/text.c (do_linter): Likewise.
1615
	* src/files.c (do_insertfile, do_writeout): Likewise.
1616

1617
1618
1619
2014-07-24  Jordi Mallach  <jordi@gnu.org>
	* doc/texinfo/nano.texi, doc/man/nanorc.5: Typo fix.

1620
1621
1622
2014-07-22  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/nanorc.nanorc: Remove 'undo' from the valid options.

1623
1624
1625
2014-07-21  Jordi Mallach  <jordi@gnu.org>
	* doc/nanorc.sample.in: Remove ‘undo’ section which is now obsolete.

1626
GNU nano 2.3.6 - 2014.07.17
1627

1628
1629
1630
1631
2014-07-16  Jordi Mallach  <jordi@gnu.org>
	* doc/man/rnano.1: Additional printing formatting improvement from
	Bjarni Ingi Gislason.

1632
1633
1634
1635
1636
1637
2014-07-16  Jordi Mallach  <jordi@gnu.org>
	* doc/man/fr/nano.1, doc/man/fr/rnano.1: Apply similar escaping fixes
	to French manpages.
	* doc/man/fr/nano.1, doc/man/fr/rnano.1, doc/man/fr/nanorc.5: Recode
	as UTF-8.

1638
1639
1640
1641
1642
1643
2014-07-16  Jordi Mallach  <jordi@gnu.org>
	* doc/syntax/debian.nanorc: Add https, tor and spacewalk to supported
	APT methods.
	* doc/syntax/debian.nanorc: Apply the syntax to apt/sources.list.d/
	entries as well, as reported by Rodolphe Pelloux-Prayer.

1644
1645
1646
1647
1648
2014-07-16  Jordi Mallach  <jordi@gnu.org>
	* doc/man/nano.1, doc/man/rnano.1: Add some escaping and formatting
	fixes as suggested Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
	Debian bugs #662842 and #726956.

Benno Schulenberg's avatar
Benno Schulenberg committed
1649
1650
1651
2014-07-16  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c: Normalize the tabbing.

1652
1653
1654
1655
1656
1657
2014-07-16  Mark Majeres  <mark@engine12.com>
	* src/text.c (do_undo): Make sure renumbering starts far enough back
	after undoing a cut or paste.  This fixes a segmentation fault when
	undoing a repeated cutting and pasting of the first line of a file.
	* src/nano.c (move_to_filestruct, copy_from_filestruct): Fix two leaks.

1658
2014-07-13  David Lawrence Ramsey  <pooka109@gmail.com>
1659
	* ChangeLog: Typo fix.
1660

1661
1662
1663
1664
2014-07-12  Benno Schulenberg  <bensberg@justemail.net>
	* configure.ac: The warning about datarootdir being ignored is
	not merely a warning, it also activates a workaround.

1665
1666
1667
1668
1669
2014-07-11  Mark Majeres  <mark@engine12.com>
	* src/text.c (do_undo, do_redo): Do not speak of "line wrap"
	but instead of "text add" when undoing/redoing text additions
	that caused automatic line breaks.

1670
1671
1672
2014-07-11  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (write_lockfile): Refix typo in error message.

1673
GNU nano 2.3.5 - 2014.07.11
1674

Benno Schulenberg's avatar
Benno Schulenberg committed
1675
2014-07-11  Chris Allegretta  <chrisa@asty.org>
1676
1677
1678
1679
1680
	* src/files.c (do_lockfile, open_file): If locking fails,
	allow the lock failure message to be preserved AND
	preserve the filename passed on the cmdline.  Fixes
	Savannah bug #42668.

Benno Schulenberg's avatar
Benno Schulenberg committed
1681
2014-07-02  Chris Allegretta  <chrisa@asty.org>
1682
	* src/files.c (do_lockfile): Check whether the directory
1683
1684
1685
	of the file we're trying to lock exists, and make the
	resulting error message more intuitive.  Fixes
	Savannah bug #42639 reported by Benno Schulenberg.
1686

1687
1688
2014-07-02  Mark Majeres  <mark@engine12.com>
	* src/text.c (undo_cut, redo_cut, update_undo): Handle the
1689
	cases of cutting-from-cursor-to-end-of-line correctly.
1690
1691
	* src/nano.c (do_input): Don't preserve the cutbuffer when
	CUT_TO_END is toggled -- it would intermix two cut types.
1692
1693
	* src/text.c (redo_cut, do_undo, do_redo): Don't forget to
	free the cutbuffer after use.
1694

1695
1696
1697
1698
1699
2014-07-02  Benno Schulenberg  <bensberg@justemail.net>
	* src/proto.h: Add a typedef for a pointer to a function.
	* src/global.c (func_from_key): New wrapper.
	* src/prompt.c (get_prompt_string, do_prompt): Use the new
	wrapper to make the code a bit cleaner.
1700
1701
	* src/help.c (do_help, parse_help_input): Use the wrapper.
	* src/browser.c (do_browser, parse_browser_input): Likewise.
1702
1703
1704
1705
	* src/search.c (search_init, do_gotolinecolumn): Likewise.
	* src/search.c (findnextstr): Replace a call of old wrapper
	'getfuncfromkey()' with	a call of new 'func_from_key()'.
	* src/winio.c (getfuncfromkey): Delete now unneeded wrapper.
1706
1707
	* src/nano.c (usage, main), doc/texinfo/nano.texi: Properly
	exclude the --quiet option when --disable-nanorc was given.
1708

1709
1710
1711
2014-07-01  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (do_browser), src/help.c (do_help): Make sure
	to always set 'currmenu', so that we can rely on it.
1712
1713
	* src/*.c (get_shortcut): Now that 'currmenu' is really global,
	stop passing it around.
1714
1715
	* src/help.c (help_init), src/winio.c (bottombars): There are
	no tagless functions, so there is no need to check.
1716
1717
	* src/prompt.c (do_prompt, get_prompt_string): Don't pass the
	menu, just set it earlier.
1718
	* src/prompt.c (get_prompt_string): Group the arguments better.
1719
1720
1721
1722
1723
	* src/global.c (shortcut_init), src/browser.c (do_filesearch):
	Show that it is possible to have backwards, regular-expressive
	and case-sensitive searching in the file browser.
	* src/browser.c (filesearch_init, do_filesearch): Now delete
	these abilities again and all provisions for them.
1724
1725
	* src/global.c (shortcut_init): Add two defines to make the
	functions list clearer.
1726

1727
1728
1729
1730
1731
2014-06-30  Mark Majeres  <mark@engine12.com>
	* src/cut.c, src/global.c, src/nano.c: Rename 'cut_till_end' to
	'cut_till_eof', and 'do_cut_till_end' to 'do_cut_till_eof', to
	reduce confusion with CUT_TO_END, which is about end-of-line.

1732
1733
1734
1735
2014-06-30  Benno Schulenberg  <bensberg@justemail.net>
	* src/color.c (color_update): When there are no syntaxes, for example
	with --ignorercfiles, do not try to find one, because that would lead
	to the magic database being searched, which slows down startup a lot.
1736
	* src/color.c (color_update): Move some variables to a better place.
1737
1738
	* src/*: Make 'meta_key' and 'func_key' into global variables, instead
	of having them declared everywhere and passing them around endlessly.
1739
1740
1741
	* src/global.c (sc_seq_or): Now fix a bug introduced somewhere after
	2.3.2 where binding a movement function to a Meta key would make the
	corresponding Arrow key stop working (producing a character instead).
1742

1743
1744
2014-06-29  Benno Schulenberg  <bensberg@justemail.net>
	* src/rcfile.c: Fix compilation with --enable-tiny --enable-nanorc.
1745
1746
1747
1748
	* src/winio.c (parse_kbinput, get_escape_seq_kbinput): Make Ctrl-Left
	and Ctrl-Right produce special codes, and map these codes to Prevword
	and Nextword instead of reducing them to a plain Left and Right.  The
	codes 539 and 554 were so chosen because some terminals produce these.
1749

1750
1751
1752
1753
2014-06-29  Mark Majeres  <mark@engine12.com>
	* src/text.c (do_undo): Update the pointer to the bottom of the file
	when undoing line deletions at file's end.

1754
1755
1756
2014-06-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/prompt.c (do_statusbar_input): Remove the useless parameters
	'have_shortcut and 'allow_funcs'; the latter is only ever TRUE.
1757
1758
1759
1760
1761
1762
1763
	* src/global.c (shortcut_init), src/prompt.c (do_statusbar_input):
	Eradicate the execute flag -- it is only FALSE for functions that are
	empty placeholders (so executing them will not do anything anyway) or
	for functions ('total_refresh', 'do_suspend_void') that do not exist
	in menus with a prompt.  The only two exceptions are 'do_cancel' and
	'do_gotolinecolumn_void'.  The first is handled specially, so do that
	too for the second and then get to drop 140 parameters.
1764
1765
	* src/global.c (strtosc): Move recognition of the toggles to the end,
	use a single assignment of do_toggle_void, trim the unneeded braces.
1766

1767
1768
1769
1770
2014-06-27  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (shortcut_init): Add default keybindings for Cut,
	PrevWord and NextWord in the prompt input lines; the code for those
	special operations already exists, just the shortcuts were missing.
1771
1772
1773
1774
1775
	* src/rcfile.c (parse_binding): When binding keys, only allow those
	menus where the bound function is actually present.  This reduces
	the meaning of 'all' to "all menus where the function exists".
	* src/rcfile.c (is_universal): New function, returning TRUE for the
	functions that are present in most menus but only listed in MMAIN.
1776
	* doc/man/nanorc.5, doc/texinfo/nano.texi: Update the docs for this.
1777
1778
1779
1780
	* prompt.c (find_statusbar_bracket_match, do_statusbar_find_bracket):
	Remove these functions and thus the ability to search for a matching
	bracket in a prompt input line.  The find_bracket function never had
	a default keybinding outside MMAIN, so is unlikely to have been used.
1781
1782
	* src/prompt.c (do_statusbar_input): Normalize the indentation.
	* src/winio.c: Normalize some whitespace.
1783
	* Makefile.am, nano.spec.in: Stop distributing the BUGS file.
1784
1785
	* BUGS: Remove obsolete file, as all the bugs in it have been fixed
	long ago.  Nowadays bugs are tracked on Savannah.
1786
	* configure.ac: Silence a useless warning about ignoring datarootdir.
1787

1788
1789
1790
1791
2014-06-25  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (do_browser): Allow 'firstfile' and 'lastfile' to be
	rebound to Ctrl keys -- checking meta_key is wrong, the function has
	already been determined, that is all that matters.
1792
	* src/help.c (do_help): Same thing for 'firstline'/'lastline'.
1793

1794
2014-06-23  Benno Schulenberg  <bensberg@justemail.net>
1795
	* src/nano.h, src/move.c (do_up, do_down), src/winio.c (edit_scroll):
1796
	Rename UP_DIR and DOWN_DIR to UPWARD and DOWNWARD, for clarity.
1797
1798
1799
	* src/proto.h, src/global.c, src/search.c: Rename 'no_replace_void()'
	to 'flip_replace_void()', to show what it actually does.
	* doc/man/nanorc.5, doc/texinfo/nano.texi: Update the docs for that.
1800
1801
1802
1803
	* src/global.c (strtosc): Add the bindable function 'gotodir'.
	* doc/man/nanorc.5, doc/texinfo/nano.texi: Document the bindable
	functions 'tofiles','gotodir' and 'flipnewbuffer', and correct
	the description of 'gototext' (not being about the file browser).
1804
	* doc/syntax/nanorc.nanorc: Show Ins and Del as valid rebindable keys.
1805
	* src/help.c (do_help): Normalize the indentation.
1806
1807
	* src/files.c (do_insertfile): Give audible feedback when flipping
	the new buffer to off is not allowed in view mode.
1808

1809
1810
1811
2014-06-22  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c (parse_browser_input), src/help.c (parse_help_input):
	Remove two pointless calls of get_shortcut(), and adjust the comments.
1812
1813
	* src/nano.c (do_toggle): When toggling softwrap, only the edit window
	needs to be refreshed, not the entire screen.
1814
1815
	* src/browser.c (do_browser): Remove superfluous abortion variable,
	and place two comments better.
1816
	* src/text.c (do_redo): Rename 'undidmsg' to 'redidmsg', to be apt.
1817

1818
1819
2014-06-22  Mark Majeres  <mark@engine12.com>
	* src/text.c (do_redo): When redoing a line join at the tail
1820
	of the file, make sure openfile->filebot is updated.
1821
1822
1823
	* src/text.c (undo_cut, redo_cut, do_undo, add_undo, update_undo):
	Fix three leaks of the cutbuffer, shorten and regroup some stuff,
	and remove an unneeded iteration of cutbottom.
1824

1825
1826
1827
2014-06-21  Mark Majeres  <mark@engine12.com>
	* src/text.c (undo_cut, add_undo): When undoing a cut-till-eof,
	put the cursor back where the cut started, and not at the end.
1828
1829
	* src/text.c (do_undo): When undoing a line break at the tail
	of the file, make sure openfile->filebot is updated.
1830

1831
1832
1833
1834
2014-06-21  David Lawrence Ramsey  <pooka109@gmail.com>
	* src/move.c, src/nano.c: Miscellaneous whitespace fixes, one
	type fix, and one more #ifdef NANO_TINY.

1835
2014-06-20  Benno Schulenberg  <bensberg@justemail.net>
1836
1837
	* src/proto.h, src/global.c: Remove two obsolete variables and an
	unneeded extern, and regroup some stuff.
1838
1839
	* src/files.c (check_dotnano): Wrap long lines and actually report
	the name that is not a directory.
1840
	* src/*: Miscellaneous whitespace adjustments and comment tweaks.
1841
	* src/files.c: Fix compilation with --enable-tiny --enable-browser.
1842
1843
	* doc/man/nano.1, doc/texinfo/nano.texi: History logging no longer
	depends upon nanorc support, plus many other tweaks.
1844
1845
	* src/global.c (strtosc): Fix compilation with --enable-tiny
	--enable-histories --enable-nanorc.
1846
	* src/text.c: Fix compilation with --enable-tiny --enable-wrapping.
1847
1848
	* src/files.c (do_insertfile): Fix compilation with --enable-tiny
	--enable-histories --enable-multibuffer.
1849
	* src/nano.c: Fix compilation with --enable-tiny --enable-mouse.
1850
1851
	* doc/man/nanorc.5, doc/texinfo/nano.texi: Explain better what "all"
	means when rebinding keys.  This is a fix for Savannah bug #42552.
1852
1853
	* src/nano.c (main): Make +1 and +,1 start on line one column one,
	overriding a historical position.  This fixes Savannah bug #42538.
1854

1855
1856
1857
2014-06-19  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
	for consistency, and tweak the related comments.
1858
	* src/files.c: Update some comments to match the current status.
1859
1860
	* src/nano (finish, main): Allow -H/--historylog and -P/--poslog to
	function also when -I/--ignorercfiles is given.
1861
1862
1863
	* configure.ac: Add a --disable-histories flag, to disable the code
	for the histories of search/replace strings and cursor positions.
	* doc/texinfo/nano.texi: Document the new configure flag.
1864
1865
	* src/*: Transform many DISABLE_NANORC to the new DISABLE_HISTORIES.
	This completes the fix for Savannah bug #42539.
1866

1867
1868
1869
2014-06-18  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c: Rename 'to_end' to 'to_eof', to lessen confusion
	with CUT_TO_END (which is about cutting to end-of-line).
1870
	* src/text.c: Upon better thought, elide the unneeded 'to_eof'.
1871
	* src/text.c: And elide a totally unused 'strdata2'.
1872
	* src/text.c: Rename the undo type UNSPLIT to JOIN, for clarity.
1873
	* src/global.c, src/rcfile.c: Rename function_type to key_type.
1874
1875
	* src/text.c (break_line): Remove a condition and a break that
	cancel each other.
1876

1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
2014-06-18  Mark Majeres  <mark@engine12.com>
	* src/text.c (add_undo): Don't start a new undo for CUT when the
	cutbuffer is being preserved, because then the cuts are contiguous
	and will form a single undo item.  And make sure the cutbuffer will
	be cleared when a new undo item for CUT is created.
	* src/cut.c (keeping_cutbuffer): New function, to access the status
	of 'keep_cutbuffer' from the undo/redo code in src/text.c.
	* src/cut.c (do_copy_text): Blow away the contents of the cutbuffer
	if the mark is set or the cursor has moved between two copy commands.

1887
1888
1889
1890
2014-06-17  Mark Majeres  <mark@engine12.com>
	* src/text.c (do_undo, do_redo): After an undo or redo, update the
	'placewewant' (the desired horizontal position of the cursor).

1891
1892
2014-06-17  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_undo, do_redo): Remove obsolete boolean variable.
1893
1894
1895
	* doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Replace
	SYSCONFDIR with an absolute path or a circumlocution, as suggested
	by Mike Frysinger, plus some other tweaks.
1896

1897
1898
1899
1900
1901
2014-06-16  David Lawrence Ramsey  <pooka109@gmail.com>
	* src/nano.c (do_exit): Display the message "No file name" on the
	statusbar for two seconds when --tempfile was given and the current
	buffer has no name.  This fixes Savannah bug #41750.

1902
1903
1904
1905
2014-06-16  Benno Schulenberg  <bensberg@justemail.net>
	* configure.ac: For the sake of statically linked systems, make sure
	the compiler also links against libz, which is used by libmagic.
	This fixes Savannah bug #38378, reported by Alan Hourihane.
1906
1907
1908
	* src/nano.c (do_mouse, do_input): Don't bother returning zero when
	the cursor moved, just reset the cutbuffer directly.  This avoids an
	"Unknown Command" message on every cursor-positioning mouse click.
1909
	* src/nano.c (do_mouse): Put a common statement outside of then/else.
1910
	* src/Makefile.am: Remove -I m4; it is needed only at the top level.
1911
	* Makefile.am: Trim the contents of EXTRA_DIST to what is required.
1912
1913
	* doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Update
	the docs for the changed location of nano's search history.
1914
	* doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Change
1915
	some wordings, triggered by Savannah bug #42539.
1916

1917
1918
1919
1920
2014-06-14  Mark Majeres  <mark@engine12.com>
	* src/nano.h, src/text.c (undo_cut, update_undo): When undoing a
	backwards cut, put the cursor back in front of it, where it was.

1921
1922
1923
2014-06-13  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (do_input): Repositioning the cursor with the mouse
	(result == 0) should break a series of ^Ks.
1924
1925
	* src/nano.c (do_mouse): Clicking on the titlebar or the statusbar
	should not break a series of ^Ks, thus result must not be zero.
1926
	* src/nano.c (do_input): A toggle should not break a series of ^Ks.
1927
1928
	* src/winio.c (get_shortcut): Do not treat holding both Control and
	Meta the same as holding only Control.
1929
1930
1931
1932
	* src/global.c, src/rcfile.c, src/nano.h, src/nano.c, src/text.c:
	Remove the --undo option, having the undo functions always enabled.
	If wished, the user can unbind them.  This fixes Savannah bug #42456.
	* doc/man/{nano.1,nanorc.5}, doc/texinfo/nano.texi: Update the docs.
1933
1934
1935
	* nano.spec.in: Remove useless info dir file from the build directory,
	don't clean this directory first, it's unnecessary, add a suggestion
	for a pico symlink, and update the license and the source URL.
1936

1937
1938
1939
1940
1941
1942
1943
2014-06-11  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (get_mouseinput): Produce the correct return value for
	when a mouse event reinserted something into the keyboard buffer.
	* src/nano.c (do_input): Do not continue when there is a spurious
	mouse event (a touch of the touchpad, for example) but get out.
	Continuing would result in the cutbuffer being cleared upon the
	next cut.  These two changes together fix Savannah bug #42326.
1944
1945
	* src/nano.c (do_input): Always accept mouse events, also when
	just looking for Unjustify.  This fixes Savannah bug #42322.
1946
	* src/nano.c (do_input): Remove a superfluous switch statement.
1947
1948
	* src/winio.c (get_mouseinput): Set the type of a reinserted key,
	also when it is a function key.  This fixes Savannah bug #42092.
1949

1950
1951
1952
2014-06-10  Benno Schulenberg  <bensberg@justemail.net>
	* src/browser.c, src/files.c, src/nano.c src/prompt.c, src/winio.c:
	A few minimalistic whitespace adjustments.
1953
	* src/rcfile.c (check_bad_binding): Avoid a compiler warning.
1954

1955
1956
1957
2014-06-10  David Lawrence Ramsey  <pooka109@gmail.com>
	* src/winio.c: One more type fix and two tiny message tweaks.

1958
1959
2014-06-09  David Lawrence Ramsey  <pooka109@gmail.com>
	* src/*.c: Cosmetic tweaks of comments and whitespace.
1960
1961
	* src/help.c, src/rcfile.c, src/winio.c: Elide a function call by
	not comparing with an empty string but checking for the final \0.
1962
1963
	* src/files.c, src/nano.c, src/text.c, src/winio.c: Type fixes in
	debugging stuff -- line numbers are long, x positions unsigned long.
1964
1965
	* src/files.c, src/move.c, src/nano.c, src/text.c, src/winio.c:
	Make tiny nano a bit tinier by preening out some soft-wrap stuff.
1966
1967
	* src/global.c, src/nano.c, src/winio.c: A few more cosmetic tweaks
	(whitespace, order, braces, parentheses, and a typo) and type fixes.
1968

1969
1970
2014-06-09  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (do_input): Remove two superfluous false conditions.
1971
1972
	* src/nano.h, src/text.c (add_undo): Avoid a compiler warning with
	--disable-wrapping.
1973

1974
1975
1976
1977
1978
1979
2014-06-09  Mark Majeres  <mark@engine12.com>
	* src/text.c (do_undo, do_redo, add_undo, update_undo, do-wrap):
	Rewrite the line-wrapping code to make use of the existing line-break
	code.  And undo line wraps together with their causal text additions,
	and not as separate actions because the user did not make them.

1980
1981
1982
1983
1984
2014-06-08  Mark Majeres  <mark@engine12.com>
	* src/text.c (do_delete, do_deletion, do_undo, do_redo, update_undo):
	Differentiate between undoing a Delete and undoing a Backspace -- the
	cursor should be in a slightly but significantly different position.

1985
1986
1987
1988
1989
1990
1991
2014-06-04  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (shortcut_init), src/files.c (do_insertfile): Rename
	'ext_cmd_void' to 'flip_execute_void' to better match what it does.
	* src/global.c (strtosc), doc/man/nanorc.5, doc/texinfo/nano.texi:
	Add function name 'flipexecute' to enable rebinding ^X in the menus
	Read File and Execute Command.

1992
2014-06-04  David Lawrence Ramsey  <pooka109@gmail.com>
Benno Schulenberg's avatar
Benno Schulenberg committed
1993
1994
	* src/*.c: Adjustments of whitespace and comments.
	* doc/nanorc.sample.in: Interpunction tweaks.
1995
1996
1997
1998
1999
2000
2001
2002
	* src/global.c (add_to_funcs): Add cast to subnfunc* for nmalloc().
	* src/files.c (do_lockfile): Properly make the variable 'lockfilesize'
	a size_t instead of a ssize_t, since it holds the result of strlen().
	And use charalloc() instead of (char *)nmalloc().
	* src/text.c (do_undo): Use charealloc() and not (char *)nrealloc().
	* src/text.c (add_undo): Make use of null_at() to both null-terminate
	the multibyte character and align it to use only the amount of memory
	necessary.
2003

2004
GNU nano 2.3.4 - 2014.06.02
2005

Benno Schulenberg's avatar
Benno Schulenberg committed
2006
2014-06-02  Chris Allegretta  <chrisa@asty.org>
2007
	* doc/syntax/default.nanorc: Can't do trailing spaces in the
Benno Schulenberg's avatar
Benno Schulenberg committed
2008
2009
	  default syntax or it will hilight the spaces as you type them
	  into a new file, which for non-programming is infuriating.
2010

2011
2012
2013
2014
2014-05-29  Mark Majeres  <mark@engine12.com>
	* src/text.c (do_delete): For the undo structure, differentiate
	between deleting a newline and any other character.

Benno Schulenberg's avatar
Benno Schulenberg committed
2015
2014-05-29  Chris Allegretta  <chrisa@asty.org>
Benno Schulenberg's avatar
Benno Schulenberg committed
2016
2017
2018
	* src/chars.c (addstrings): This function needs to be available even
	  on non-utf-8 systems.
	* nano-regress: Added --disable-utf8 to regression check.
2019

2020
GNU nano 2.3.3 - 2014.05.29
2021

Benno Schulenberg's avatar
Benno Schulenberg committed
2022
2014-05-28  Chris Allegretta  <chrisa@asty.org>
2023
2024
2025
2026
2027
2028
2029
	* doc/syntax/mutt.nanorc: Include Benno's awesome signature
	  matcher, modified slightly to also work for quoted sigs.
	* doc/syntax/default.nanorc: Be far more gentle with something
	  which affects every file which doesn't match another syntax, and
	  the user may not be able to override if their distro turns on
	  highlighting by default.

2030
2031
2032
2033
2014-05-28  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (do_input): Remove the three unused parameters 's_or_t',
	'ran_func', and 'finished'.  They are only ever set and never used.
	* src/text.c (do_justify): Adjust a call of do_input().
2034
	* src/browser (do_browser): Actually translate the go-to-dir prompt.
2035
2036
2037
	* src/browser, src/search.c: There is no need to repeat translator
	comments for the same string -- once is enough to get them included.
	Add instead some translator comments for the prompts.
2038
2039
2040
2041
2042
	* src/global.c (shortcut_init): Make ^X in the Read-File menu toggle
	between executing a command and inserting a file.  The mechanism in
	do_insertfile() in files.c is already present -- in the past just
	the wrong function was used in the relevant function-list item:
	'do_insertfile_void' instead of the unintuitive 'ext_cmd_void'.
2043
	* src/browser (filesearch_init): Remove an unneeded format specifier.
2044
	* src/nano.c (usage): Add a translator comment for the --help output.
2045
	* src/global.c (shortcut_init): Elide four unneeded tags.
2046
	* src/global.c (shortcut_init): Make tiny nano just a bit tinier.
2047
2048
	* src/global.c (shortcut_init): Standardize the add_to_funcs() calls,
	breaking always between the menus and the tag.
2049

Benno Schulenberg's avatar
Benno Schulenberg committed
2050
2014-05-27  Chris Allegretta  <chrisa@asty.org>
2051
2052
2053
	* src/winio.c (edit_refresh): wredrawln() is not supported under
	  slang.

2054
2055
2056
2014-05-27  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (shortcut_init): Improve the arrangement of help items
	under certain compilation conditions.
2057
	* src/global.c (strtosc): Make tiny nano a bit tinier.
2058
	* src/global.c (strtosc): Allow rebinding 'suspend' in tiny nano.
2059
2060
	* src/winio.c (set_modified): Adjust translator comment to make it
	show up in the POT file, and make it take the "[  ]" into account.
2061

2062
2063
2064
2014-05-26  Benno Schulenberg  <bensberg@justemail.net>
	* src/cut.c (cut_line): Fix compilation with --enable-tiny.
	* src/text.c (do_linter): Avoid a warning with --enable-tiny.
2065
	* src/global.c (shortcut_init): Unwrap some lines, and reorder two.
2066

2067
2068
2069
2070
2014-05-25  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c: Cut down on the size of tiny nano, by not compiling
	the function strtosc() when --disable-nanorc is given or implied.

2071
2072
2073
2074
2075
2076
2077
2078
2014-05-25  Mark Majeres  <mark@engine12.com>
	* src/chars.c (addstrings): New function, concatenates two allocated
	strings, tacking the second onto the first and freeing the second.
	* src/cut.c (do_uncut_text): Update the undo structure for a paste.
	* src/text.c (undo_cut, redo_cut, add_undo, update_undo): Place the
	cursor after an undo there where it was before the do, and handle
	multibyte characters correctly.

2079
2080
2081
2082
2083
2084
2085
2014-05-23  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (edit_draw): Finally, the proper fix for bug #31743;
	telling ncurses to really redraw the line, without optimization, so
	it will not mistakenly assume that a wide character at the start of
	a line takes up just one column.  This deletes the workaround that
	had the side effect of creating pastes full of trailing whitespace.

2086
2087
2088
2089
2090
2014-05-19  Mark Majeres  <mark@engine12.com>
	* src/winio.c (edit_draw): Paint the current line *after* tickling the
	terminal, so that the character in the final column will be displayed
	properly.  Bug was introduced five days ago.

2091
2092
2093
2094
2014-05-18  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano (precalc_multicolorinfo): Do not match the ^ anchor when
	looking further on in a line.  This prevents an end="^$" from being
	sometimes mistakenly matched.  Fix inspired by Savannah bug #27708.
2095
	* doc/syntax/default.nanorc: New file, example for a default syntax.
2096

2097
2098
2099
2014-05-17  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/json.nanorc: New file, originally from Aapo Rantalainen,
	but edited, extended, and improved.  See Savannah patch #7410.
2100
2101
2102
	* src/winio.c (edit_draw): Do not skip the colour-off commands at the
	end of the loop.  Based on Savannah patch #7550 by Ryan Lothian.
	This fixes bug #26111 reported by Dave Geering <dreamlax@Savannah>.
2103

2104
2105
2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c, src/winio.c: Remove some more double spaces.
2106
	* doc/syntax/patch.nanorc: Show trailing whitespace on added lines.
2107
2108
	* doc/syntax/debian.nanorc: Make the component colouring simpler,
	and the URI colouring completer, and improve the comments.
2109
	* doc/syntax/*.nanorc: Harmonize (partially) the syntax files.
2110

2111
2112
2113
2114
2014-05-16  David Lawrence Ramsey  <pooka109@gmail.com>
	* src/color.c, src/cut.c, src/text.c: Tweak some whitespace.
	* src/global.c, src/move.c: Use TRUE and FALSE instead of 1 and 0.
	* src/winio.c (edit_draw): Mention the name of the tickling character.
2115
2116
	* src/search.c (goto_line_posx): Remove unneeded call of edit_refresh.
	* src/text.c (do_undo, do_redo): Use size_t for line lengths.
2117

2118
2119
2120
2121
2122
2014-05-15  Mark Majeres  <mark@engine12.com>
	* src/*, but mainly src/text.c (undo_cut, redo_cut, do_undo, do_redo):
	Go to the correct positions for undoing/redoing the cuts and pastes.
	This fixes several undo problems and Savannah bug #25585.

2123
2124
2014-05-15  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/c.nanorc: Improve the magic regex, plus tweaks.
2125
	* src/color.c (color_update): Adjust a comment, and be clearer.
2126
	* src/nano.h: Improve two comments, and elide one macro.
2127
	* doc/syntax/Makefile.am: Add texinfo.nanorc to the packing list.
2128

2129
2130
2131
2132
2014-05-14  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (edit_draw): Poke a non-breaking space into the last
	column of every line, to startle the terminal into handling wide,
	two-column characters properly.  This fixes Savannah bug #31743.
2133
2134
	* src/nano.c (precalc_multicolorinfo): Improve debugging messages,
	and remove superfluous assignment (fileptr already equals endptr).
2135
	* src/color.c (color_update): Move magic check to after headerline.
2136
2137
	* src/color.c (color_update): Open the magic database only when
	actually going to use it, and close it afterward.
2138
	* doc/syntax/{perl.nanorc,xml.nanorc}: Improve two magic regexes.
2139
	* src/color.c (color_update): Stop seeking when a magic matched.
2140
2141
	* doc/nanorc.sample.in: Add an example of colouring nano's interface
	elements, and tweak some of the other descriptions.
2142

2143
2144
2014-05-13  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_linter): Make an error message somewhat clearer.
2145
	* src/rcfile.c (parse_binding): Improve another error message.
2146
	* doc/syntax/nanorc.nanorc: Show key names like M-6 and M-/ as valid.
2147
2148
	* src/global.c (thanks_for_all_the_fish): Upon exit also free the
	lists with functions and shortcuts.
2149
	* src/*.c: Several random whitespace and comment tweaks.
2150
	* src/global.c (replace_scs_for): Condense the function a bit.
2151
	* src/help.c (help_init): No need to keep looping when two are found.
2152
	* src/global.c: Improve compilation with --disable-browser.
Benno Schulenberg's avatar
Benno Schulenberg committed
2153
	* src/nano.h, src/*.c: A few more comment tweaks.
2154

2155
2156
2014-05-12  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_spell): Provide startup feedback, as for the linter.
2157
	* doc/syntax/nanorc.nanorc: Show bright foreground colours as valid.
2158
2159
	* src/rcfile.c: Improve some comments, and remove some others that
	are mispasted or superfluous.
2160
	* doc/texinfo/nano.texi: Add missing parenthesis, remove blank line.
2161
2162
2163
	* src/rcfile.c (parse_magictype, parse_headers): Handle the libmagic
	and headerline regexes in the same manner, eliding a static variable
	while renaming some others.
2164
2165
2166
	* src/*.h, src/rcfile.c (parse_magictype, parse_headers): Rename them
	to parse_magic_exp() and parse_header_exp() to be more fitting, further
	symmetrify them, and improve some comments.
2167
2168
2169
	* src/nano.h, src/color.c, src/global.c, src/rcfile.c: Rename struct
	type 'exttype' to 'regexlisttype', to better match its functions, and
	upon exit also free the regexes for libmagic results and headerlines.
2170
2171
	* doc/syntax/python.nanorc: Improve the multiline regexes, make the
	one with single quotes work again, and add some comments.
2172
2173
	* doc/syntax/{man,python,fortran}.nanorc: Add regexes for comments,
	trailing whitespace and reminders, and trim some trailing spaces.
2174
	* src/rcfile.c: Move parse_magic_exp() next to its sister.
2175
	* src/color.c (color_update): Rename a variable, and elide another.
2176

Benno Schulenberg's avatar
Benno Schulenberg committed
2177
2014-05-10  Chris Allegretta  <chrisa@asty.org>
2178
2179
2180
	* src/rcfile.c (parse_color_names): Redefine false and true to
	  their appropriate macro names so --with-slang works (slangv2 anyway).
	* src/text.c (do_linter): Care about whether user cancelled the file
Benno Schulenberg's avatar
Benno Schulenberg committed
2181
	  save (cancel the operation) versus just said no (continue but don't
2182
2183
2184
	  save the file).  Also doupdate() after statusbar message that
	  linter is being invoked and blank the shortcuts to draw the eye.
	  Also allow user to cancel at the "open in a new buffer" prompt.
Benno Schulenberg's avatar
Benno Schulenberg committed
2185
	  New function lint_cleanup().  Fixes Savannah bug #42203.
2186

2187
2188
2189
2190
2014-05-10  Benno Schulenberg  <bensberg@justemail.net>
	* doc/texinfo/nano.texi: Make syntax highlighting into a separate
	section, and add the still missing section on rebinding keys.

2191
2192
2193
2194
2014-05-10  Mark Majeres  <mark@engine12.com>
	* src/*.h, src/*.c: Make it possible for the foreground colour of
	interface elements to be bright.

2195
2196
2197
2198
2014-05-09  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (get_mouseinput): Count only shortcuts that are actually
	shown, so that clicking on the ones after ^T (Speller/Linter) will work
	again correctly.  This fixes the second part of Savannah bug #42093.
2199
2200
	* src/global.c (shortcut_init, strtosc): Do not define nor accept
	shortcuts for functions that are disabled.
2201
2202
	* src/global.c (shortcut_init, strtosc): Define shortcut for the linter
	when speller is disabled, and fix compilation with --disable-speller.
2203
2204
	* src/global.c (shortcut_init, strtosc), doc/man/nanorc.5: Put softwrap
	back among the "Appearance" toggles.
2205
	* doc/man/nanorc.5: Describe bindable functions in the third person.
2206

2207
2208
2014-05-06  Benno Schulenberg  <bensberg@justemail.net>
	* doc/texinfo/nano.texi: Let makeinfo figure out the node pointers.
2209
	* doc/syntax/texinfo.nanorc: New file, colouring for Texinfo files.
2210
2211
	* doc/texinfo/nano.texi: Add sections on the Cutbuffer and the Mark,
	remove option '-?', and make some other tweaks.
2212
2213
	* doc/man/{nano.1,nanorc.5}, doc/texinfo/nano.texi: Synchronize the
	documentation, and tweak some wording here and there.
2214
	* doc/syntax/texinfo.nanorc: Stop the brace content from spilling.
2215

2216
2217
2218
2219
2014-05-05  Benno Schulenberg  <bensberg@justemail.net>
	* doc/man/nanorc.5: Give syntax highlighting its own section,
	add the "header" command, tweak some wording and formatting,
	and trim some duplicate introductory information.
2220
2221
	* src/global.c (strtosc), doc/man/nanorc.5: Allow the function
	do_cut_till_end (naming it "cutrestoffile") to be rebound.
2222
	* doc/syntax/nanorc.nanorc: Add the four new *color options.
2223
2224
	* doc/syntax/nanorc.nanorc: Differentiate between options that
	take an argument and those that don't.
2225

Benno Schulenberg's avatar
Benno Schulenberg committed
2226
2227
2014-05-04  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (statusbar): Elide a variable.
2228
2229
	* src/*: Rename the variable 'reverse_attr' to 'hilite_attribute',
	and remove an unneeded call of wattroff().
2230
2231
	* doc/man/nanorc.5, doc/texinfo/nano.tex: Document the settings
	of titlecolor, statuscolor, keycolor and functioncolor.
2232
2233
	* doc/man/nanorc.5, doc/texinfo/nano.tex: Show quotes where quotes
	are needed, remove some unneeded spaces, and do other tweaks.
2234
2235
	* src/global.c (strtosc), doc/man/nanorc.5: Allow the Backwards
	toggle to be rebound, document it, and document Backspace too.
Benno Schulenberg's avatar
Benno Schulenberg committed
2236

2237
2238
2239
2014-05-03  Benno Schulenberg  <bensberg@justemail.net>
	* src/*.h, src/*.c: Add the ability to colour four elements of
	nano's interface differently: title bar, status bar, key combo,
Benno Schulenberg's avatar
Benno Schulenberg committed
2240
	and function tag.  Idea and original patch #8421 by Mark Majeres.
2241
	* src/global.c (shortcut_init): Unfold long lines consistently.
2242
2243
	* src/global.c (shortcut_init): Order the shortcuts in roughly
	the same manner as in the help lines, and group them per menu.
2244
2245
	* src/global.c (shortcut_init): Remove the search-mode toggles
	from the inappropriate WHEREISFILE and REPLACEWITH menus.
2246
2247
	* src/global.c (shortcut_init): Paragraph jumping only makes
	sense in the main editing menu; remove it from all others.
2248

2249
2250
2251
2252
2014-04-30  Benno Schulenberg  <bensberg@justemail.net>
	* src/*, doc/*: Update the years in the copyright notices -- there
	were releases in 2010, 2011, and 2013, and there will be in 2014.

2253
2254
2255
2256
2014-04-27  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (usage, main): Don't blurt out the full help text
	but just a hint when the command line contains some mistake, to
	avoid drowning out the error message.
2257
2258
	* src/nano.c (usage): Mention only those options that actually do
	something.  For the no-op compat flags the man page is the place.
2259
2260
	* src/global.c (shortcut_init): In the help lines of Search/Replace
	show the important toggles early on, and group them better.
2261
2262
	* src/global.c (shortcut_init): Improve order and grouping in the
	main help text and help lines.
2263
	* src/global.c (strtosc): Fix compilation with --enable-tiny.
2264
2265
	* src/global.c (shortcut_init): Improve the order of the help items
	still further, and make them also group nicely in the tiny version.
2266

2267
2268
2269
2014-04-27  Mark Majeres  <mark@engine12.com>
	* src/rcfile.c (parse_include): Plug two tiny memory leaks.

2270
2271
2272
2273
2014-04-26  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (add_to_funcs): Add a pointer to the tail of the
	functions list, to simplify and speed up adding new items.  And
	make use of it to remember the location of the Uncut item.
2274
2275
	* src/global.c, src/files.c (make_new_buffer, close_buffer): Make
	help lines show "Close" again when more than one buffer is open.
2276
2277
	* src/global.c (strtosc), doc/man/nanorc.5: Allow the do_spell
	(and thus do_lint) function to be bound to other key combos.
2278
2279
	* src/global.c (strtosc), doc/man/nanorc.5: Group related functions
	together, remove duplicate up/down, add missing prevpage/nextpage.
2280

Benno Schulenberg's avatar
Benno Schulenberg committed
2281
2282
2014-04-24  Benno Schulenberg  <bensberg@justemail.net>
	* doc/faq.html: Update a few URLs, delete some obsolete ones, update
Benno Schulenberg's avatar
Benno Schulenberg committed
2283
2284
	the section on configuration flags and on translating nano, plus a
	whole series of other small fixes and adjustments.
Benno Schulenberg's avatar
Benno Schulenberg committed
2285

2286
2287
2014-04-23  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c, src/help.c, src/text.c, src/browser.c: Remove
2288
	several unneeded double semicolons, and two relic comments.
2289
2290
2291
2292
2293
	* src/help.c (parse_help_input), src/browser.c (parse_browser_input):
	Make the Minus and Space keys work in the help viewer and file browser
	also when the PrevPage and NextPage functions are bound to meta-key
	sequences -- searching for these will not find them.  So, instead put
	in the standard key code.  This fixes Savannah bug #42140.
2294
2295
2296
2297
2298
	* src/global.c (first_sc_for): Stop the whole charade of preferring
	control keys over meta keys over function keys, but return the first
	one in the list -- just like the function name implies.  This will
	make a user-defined shortcut appear in the two bottomlines without
	having to unbind the existing one first -- better feedback.
Benno Schulenberg's avatar
Benno Schulenberg committed
2299
	* src/global.c (shortcut_init, flagtostr, strtosc): Put the two
2300
2301
2302
	wrapping toggles together and increase their contrast a bit.
	* src/nano.c (usage), doc/man/nano{.1,rc.5}, doc/texinfo/nano.texi:
	Increase the contrast between hard-wrapping and soft-wrapping.
2303

2304
2305
2306
2014-04-22  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (shortcut_init): Put the movement keys in the
	help viewer in the order of increasing stride.
2307
2308
	* src/global.c (shortcut_init): Rename many constants from
	'*_msg' to '*_tag' to reduce confusion with 'nano_*_msg'.
2309
	* src/global.c (shortcut_init): Elide several pointless constants.
2310
2311
	* src/global.c (shortcut_init): Elide more unneeded constants, and
	update some translator comments and shorten a few tags.
2312
2313
	* src/global.c (shortcut_init): Delete unneeded empty funcs; being
	in the list of shortcuts is enough.
2314
	* src/global.c (shortcut_init): Put left/right in normal order.
2315
	* src/global.c (shortcut_init): List function key after meta key.
2316
2317
	* src/help.c (help_init): Show just two shortcuts per function --
	only three functions showed three, but who has an F13, F14, F15?
2318
	This also fixes Savannah bug #41889: misalignment of help text.
2319
2320
	* src/help.c (help_init): Split the toggles into three groups,
	and do not show toggle keys that have been rebound.
2321

2322
2323
2014-04-21  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/nanorc.nanorc: There is no F0 key.
Benno Schulenberg's avatar
Benno Schulenberg committed
2324
2325
	* src/global.c (first_sc_for): Adjust two comments -- the help
	viewer no longer sorts keys to be control first, meta second.
2326
	* src/global.c (first_sc_for): Put meta first, for clarity.
2327
2328
2329
	* src/global.c (strtokeytype): No need to check for lowercase
	'm' or 'f', the source doesn't use them and rc-file processing
	uppercases them.  Also put control first, for clarity.
2330
2331
	* src/global.c (strtosc, strtomenu): Sort functions slightly
	better, and allow things to be rebound in the linter menu.
2332
	* src/nano.h: Delete a large bunch of unused defines.
2333
	* src/nano.h, src/proto.h: Delete some more unused stuff.
2334
2335
	* src/rcfile.c (parse_binding), src/winio.c (get_mouseinput):
	Avoid three compiler warnings with --enable-debug.
2336
	* src/global.c (assign_keyinfo): Decombine repetitive condition.
2337
2338
	* src/global.c (assign_keyinfo, shortcut_init): Give nicer names
	to the dedicated keys, for when they show up in the help lines.
2339
	* src/rcfile.c (parse_binding): K-keys no longer exist.
2340
2341
	* src/global.c, src/rcfile.c, doc/nanorc.sample.in: Allow the
	codes from the Ins and Del keys to be rebound.
2342
2343
	* src/rcfile.c (parse_binding): Improve two error messages, and
	complain about wrong menu names after wrong function names.
2344

2345
2346
2347
2348
2349
2014-04-16  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (get_mouseinput): Properly find also the zeroeth
	item from a certain menu in the list of functions.  Until now
	this accidentally worked, because "Get Help" was the very first
	item in almost all menus.  Partly fixes Savannah bug #42093.
Benno Schulenberg's avatar
Benno Schulenberg committed
2350
2351
	* src/nano.h: MHELP should not be part of MALL, as ^B and ^F and
	Enter and Backspace and so on don't make any sense there.
2352
2353
	* src/nano.h, src/global.c (shortcut_init): Rename MALL to MMOST,
	to be more accurate.
2354
2355
	* src/nano.h, src/global.c, src/help.c, src/search.c: Rename
	MREPLACE2 to MREPLACEWITH, for clarity.
2356
	* src/nano.h: Adjust some tabbing and spacing.
2357
	* src/global.c (shortcut_init): Make better use of MMOST.
2358

2359
2360
2361
2014-04-15  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (precalc_multicolorinfo): Actually set the intended
	non-blocking mode for keyboard input.
2362
	* src/winio.c: Relocate and correct a few comments.
2363
	* README.SVN: To build nano from svn, ssh is not required.
2364
	* src/*.c: Normalize whitespace around '==' comparison.
2365
2366
	* configure.ac: Check for the availability of snprintf(),
	fixes Savannah bug #42070 reported by David Lawrence Ramsey.
2367
2368
2369
2370
	* src/global.c (shortcut_init), src/help.c (do_help): Add the
	shortcuts M-\ and M-/ for First Line and Last Line to the help
	viewer, instead of ^Y and ^V, which are already taken for Page
	Up and Page Down.  Also, stop them from aborting the viewer.
2371
	* src/help.c (do_help): Remove superfluous abortion variable.
2372
2373
2374
	* src/global.c (shortcut_init), src/help.c (do_help): Add the
	shortcut ^L for Refresh to the help viewer and stop it aborting;
	a changed version of patch #7013 from David Lawrence Ramsey.
2375

2376
2377
2378
2014-04-14  Benno Schulenberg  <bensberg@justemail.net>
	* src/{proto.h,cut.c,nano.c,text.c}: Remove the unused parameter
	'file_bot' from copy_from_filestruct(), and rename the other.
2379
2380
	* src/*: Remove the unused parameter 'func_key' from get_shortcut(),
	and subsequently from parse_browser_input() and parse_help_input().
2381
	* src/*: Adjust some whitespace and tweak a few comments.
2382
	* src/winio.c (getfuncfromkey): Elide variable and condense comment.
2383
2384
2385
	* src/text.c (break_line): Initialize a variable to avoid a compiler
	warning, rename it to be more apt, add a comment, tweak some others,
	and remove an unneeded 'if'.
2386
2387
	* src/char.c (move_mbleft): Avoid a compiler warning (int → size_t),
	rename the variable, and another, and straighten out the logic.
2388

2389
2014-04-13  Benno Schulenberg  <bensberg@justemail.net>
2390
	* proto.h, global.c, rcfile.c: Remove the unused parameter 'menu'
2391
	from strtosc().
2392
	* global.c (shortcut_init): Remove mistaken browser item from the
2393
	Go-To-Line menu.
2394
	* global.c (shortcut_init): Delete a misplaced setting of 'currmenu'.
Benno Schulenberg's avatar
Benno Schulenberg committed
2395
	* global.c (shortcut_init, strtomenu): Cosmetic tweaks.
2396
	* doc/syntax/{changelog,c,po}.nanorc: Some small extra colourings.
2397
2398
	* configure.ac, doc/texinfo/nano.texi: Make --enable-tiny disable
	the use of libmagic, and document the --disable-libmagic flag.
2399
	* src/nano.c (version): Print the correct --enable/--disable option.
2400
2401
	* configure.ac, src/*, doc/texinfo/nano.texi: Convert all occurrences
	of #ifdef ENABLE_NANORC to #ifndef DISABLE_NANORC, and adapt for it.
2402
	* configure.ac: Complain about --enable-color without --enable-nanorc.
2403

2404
2405
2406
2014-04-10  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/Makefile.am: Add four recent syntaxes to the packlist.

2407
2408
2014-04-08  Benno Schulenberg  <bensberg@justemail.net>
	* doc: Add the documentation for the new --noread option.
2409
	* doc: Add missing --poslog option to the texinfo file, plus tweaks.
2410

2411
2412
2413
2414
2415
2416
2417
2418
2014-04-08  Hans Alves  <fonsvandeachterburen@gmail.com>
	* nano.h, files.c, nano.c: Adding the command-line option --noread
	to treat any name on the command line as a new file.  This allows
	nano to write to named pipes -- it will start with a blank buffer,
	and will write to the pipe when the user saves the file.  This way
	nano can be used as an editor in combination with for instance gpg
	without having to write sensitive data to disk first.

2419
2420
2421
2014-04-08  David Lawrence Ramsey  <pooka109@gmail.com>
	* src/*.c: More editing of comment blocks and trimming of blank lines.

2422
2423
2014-04-08  Benno Schulenberg  <bensberg@justemail.net>
	* src/rcfile.c: Correct two comments, and tweak two others.
2424
2425
	* src/color.c (color_update): Correct one comment, tweak some others,
	remove two superfluous ones, and remove an unneeded 'if'.
2426

2427
2428
2429
2014-04-08  David Lawrence Ramsey  <pooka109@gmail.com>
	* src/nano.c (main): Convert the literal UTF-8 whitespace string into
	its corresponding byte sequence, and add a comment for it.
2430
2431
	* src/{files.c,global.c,help.c,winio.c}: Reformat some comment blocks,
	fix a few typos, and remove a few unneeded blank lines.
2432

2433
2434
2435
2014-04-08  Benno Schulenberg  <bensberg@justemail.net>
	* src/rcfile.c (parse_binding): Melt the binding and unbinding code,
	which are very similar, into a single function.
2436
2437
2438
	* src/rcfile.c (parse_binding): Uppercase only the first two or three
	characters of the key name, in order to preserve ^Space and M-Space,
	so they can be unbound.  Fixes Savannah bug #41940.
2439
2440
	* doc/syntax/go.nanorc: Extend the syntax highlighting for Go lang,
	from the submission by Robert Clausecker <fuzxxl@Savannah>.
2441

2442
2443
2444
2445
2446
2447
2448
2014-04-07  Benno Schulenberg  <bensberg@justemail.net>
	* src/{proto.h,global.c,text.c}: Keep a pointer to the Uncut item in
	the functions list, to be able to change its description to Unjustify
	at the appropriate moment.  This avoids having to fully repopulate
	the functions and shortcuts lists before and after every Justify.
	Also, look for ^U only in the main menu, to which ^W M-J factually
	returns and which shortcut_init() "sneakily" sets.
2449
2450
	* src/{proto.h,files.c,global.c,nano.c,rcfile.c}: Drop the obsolete
	argument of shortcut_init(), and remove two unneeded calls of it.
2451
	* src/global.c (shortcut_init): Allow M-J after an --enable-justify.
2452
2453
	* src/rcfile.c (parse_rcfile): The user documentation only speaks
	of options, not of flags.  Make the error messages conform.
2454
	* src/rcfile.c (check_vitals_mapped): Improve layout of message.
2455

2456
2014-04-06  Benno Schulenberg  <bensberg@justemail.net>
2457
2458
	* src/global.c (shortcut_init): Limit M-T (cut-till-end-of-file) to
	the main menu, and M-J (full-justify) to the main and search menus.
2459
2460
	* src/proto.h: There is no need for the helpline tags to be external,
	they are only ever used in src/global.c.
2461
2462
	* src/global.c: Do not set any helpline tags to empty strings;
	compilation should fail if they are needed and not defined.
2463

2464
2465
2014-04-05  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (version): Print the correct configuration options.
Benno Schulenberg's avatar
Benno Schulenberg committed
2466
	* src/{chars.c,nano.c,text.c}: Cosmetic tweaks.
2467
	* doc/texinfo/nano.texi: Adjust for new disabling config options.
2468

2469
2470
2471
2014-04-05  Mike Frysinger  <vapier@gentoo.org>
	* src/nano.c (do_input): Reload possibly freed function pointer.

2472
2473
2014-04-04  Benno Schulenberg  <bensberg@justemail.net>
	* src/{files.c,nano.c}: Avoid two more compilation warnings.
2474
2475
	* configure.ac: Allow --enable-extra and --enable-multibuffer
	to override --enable-tiny.
2476
2477
	* src/rcfile.c (check_vitals_mapped): Do not allow 'set quiet'
	to suppress a fatal-error message, make sure the user sees it.
Benno Schulenberg's avatar
Benno Schulenberg committed
2478
	* src/color.c: Comment tweaks.
2479
	* src/{*.h,*.c}, configure.ac: Convert all occurrences of
2480
	#ifdef ENABLE_COLOR to #ifndef DISABLE_COLOR.
Benno Schulenberg's avatar
Benno Schulenberg committed
2481
	* src/nano.h: Comment tweaks.
2482
	* configure.ac: Move the enabling stuff to after the disablers.
2483
	* configure.ac: Add submissive colour disabling to --enable-tiny.
2484
	* configure.ac: Allow other enablers to override --enable-tiny too.
2485
	* src/{proto.h,search.c}: Fix compilation with --enable-browser.
2486
	* src/global.c (shortcut_init): Fix warnings with --enable-help.
2487
	* src/text.c (do_justify): Fix compilation with --enable-justify.
2488
	* src/nano.c (do_mouse): Fix warning with --enable-mouse.
2489
2490
	* src/prompt.c (get_prompt_string): Fix compilation for the
	combination of --enable-tiny with --enable-tabcomp.
2491
	* src/prompt.c (get_prompt_string): Normalize the indentation.
2492
	* src/text.c: Comment tweaks.
2493

2494
2495
2014-04-03  Benno Schulenberg  <bensberg@justemail.net>
	* configure.ac: Remove unused '*_support' variables.
2496
	* doc/syntax/po.nanorc: New file, syntax colouring for PO files.
2497
	* configure.ac: Stop --with-slang from duplicating --enable-tiny.
2498
	* configure.ac: Sort all the disabling options alphabetically.
2499
2500
	* src/{proto.h,files.c,global.c,nano.c,rcfile.c}, configure.ac:
	Convert #ifdef ENABLE_MULTIBUFFER to #ifndef DISABLE_MULTIBUFFER.
2501
2502
	* src/{proto.h,files.c,,nano.c,winio.c}, configure.ac:
	Convert #ifdef NANO_EXTRA to #ifndef DISABLE_EXTRA.
2503
	* src/{global.c,text.c}: Fix two compilation warnings for tiny.
2504

2505
2506
2507
2014-04-02  Benno Schulenberg  <bensberg@justemail.net>
	* configure.ac, doc/Makefile.am: Try to build the info documentation
	only when 'makeinfo' is available.  Patch partly by Mike Frysinger.
Benno Schulenberg's avatar
Benno Schulenberg committed
2508
	* configure.ac: Upping the required version of Autoconf, to ensure the
2509
	ONCE macros are defined.  Suggested by Kamil Dudka and Mike Frysinger.
2510

2511
2512
2014-04-02  Mike Frysinger  <vapier@gentoo.org>
	* doc/man/{,fr}/Makefile.am: Simplify the man rules still further.
2513
	* .gitignore: Add 'config.cache', created by './configure -C'.
2514
2515
	* src/nano.c (die_save_file): Newer gcc warns about set-but-unused
	variables, so add a dummy if() check to kill that off.
2516
2517
	* src/search.c (search_init): Silence a compiler warning about a
	variable possibly being used uninitialized.
2518

Benno Schulenberg's avatar
Benno Schulenberg committed
2519
2014-03-31  Chris Allegretta  <chrisa@asty.org>
2520
	* doc/syntax/go.nanorc: New file, basic go syntax highlighting.
2521

2522
2014-03-30  Benno Schulenberg  <bensberg@justemail.net>
2523
	* doc/syntax/changelog.nanorc: New file, first attempt at colouring
2524
	Changelog files.
2525
	* ChangeLog: Consistently use a colon after names of changed files.
2526

2527
2014-03-30  Mike Frysinger  <vapier@gentoo.org>
2528
	* doc/Makefile.am, doc/man/Makefile.am, doc/man/fr/Makefile.am:
2529
2530
	The build already provides a standard htmldir for installing html
	files.  Use that instead of creating our own.
2531
	* doc/man/Makefile.am, doc/man/fr/Makefile.am: Use dist_ prefixes
2532
	and += appending supported by automake to produce simpler files.
2533
	* doc/Makefile.am: Drop redundant localedir, as autoconf/automake
2534
	already creates this for us.
2535
	* src/rcfile.c, doc/nanorc.sample.in: Hard-listing all the wanted
2536
2537
	syntax files is a PITA.  Support globs in include paths, so people
	can easily drop in new files and have it "just work".
2538

2539
2014-03-27  Benno Schulenberg  <bensberg@justemail.net>
2540
2541
	* src/nano.c (main): Fix compilation with --disable-utf8.
	* src/global.c (shortcut_init): Place a help string among
2542
2543
	its kin, adjust some indentation, group function pairs more
	tightly, bundle restricted stuff, and delete an unused item.
2544

2545
2014-03-27  Mike Frysinger  <vapier@gentoo.org>
2546
2547
	* configure.ac: Make --disable-nanorc with --enable-color barf.
	* configure.ac: Allow --disable-utf8 and --enable-utf8 to work.
2548

2549
2014-03-26  Benno Schulenberg  <bensberg@justemail.net>
2550
2551
2552
2553
	* configure.ac: Word, tab, and comment tweaks.
	* src/global.c: Some comment tweaks, and whitespace trimmings.
	* src/global.c (print_sclist): Also print last shortcut in list.
	* doc/texinfo/nano.texi: Explain how to select and paste with
2554
	the mouse when mouse support is enabled: by holding down Shift.
2555
	* nano.spec.in, doc/faq.html, doc/texinfo/nano.texi: Remove
2556
	vestiges of the obsolete '--enable-all' configure flag.
2557
2558
2559
2560
	* src/rcfile.c: Fix compilation with --disable-color.
	* src/rcfile.c: Allow (un)binding keys when colour is disabled.
	* src/help.c: Fix compilation with --disable-browser.
	* src/{proto.h,browser.c,help.c}: Remove a superfluous function.
2561

2562
2014-03-26  Mike Frysinger  <vapier@gentoo.org>
2563
	* configure.ac: Clean up most of the --with/--enable flags:
2564
2565
2566
2567
2568
2569
2570
2571
2572
	- use AS_HELP_STRING instead of writing the text ourselves;
	- use the normal enable_xxx var AC_ARG_ENABLE creates for us;
	- delete duplicate checks in a few places (due to previous cleanup);
	- unwrap some macros/var assignments;
	- delete trailing whitespace;
	- delete old --enable-all flag;
	- fix quoting on a lot of vars that come from the user;
	- use AC_MSG_* helpers instead of raw `echo`.

2573
2014-03-24  Benno Schulenberg  <bensberg@justemail.net>
2574
2575
	* src/{nano,move,winio}.c: Fix a few compiler warnings.
	* src/{global,rcfile,winio}.c: Print menu numbers for debugging
2576
	in hex, and tweak a few of those debugging messages.
2577
	* src/nano.c: Harmonize comments, and trim some blank lines.
2578

Benno Schulenberg's avatar
Benno Schulenberg committed
2579
2014-03-24  Mike Frysinger  <vapier@gentoo.org>
2580
	* doc/syntax/gentoo.nanorc: Match more files, add a trailing
Benno Schulenberg's avatar
Benno Schulenberg committed
2581
	whitespace check, and EAPI=5 updates.
2582
2583
2584
	* doc/syntax/javascript.nanorc: New file, based on C syntax.
	* doc/syntax/{nanorc,python}.nanorc: Highlight trailing whitespace.
	* configure.ac, m4/ax_check_compile_flag.m4: Start building with
Benno Schulenberg's avatar
Benno Schulenberg committed
2585
	warnings enabled, to help prevent issues from silently creeping in.
2586
	* configure.ac: Newer ncurses include pkg-config files which tell
Benno Schulenberg's avatar
Benno Schulenberg committed
2587
2588
	us the right -I/-L paths we need, so default to that before trying
	the legacy ways.
2589
	* configure.ac: Add a configure flag to disable the use of the
Benno Schulenberg's avatar
Benno Schulenberg committed
2590
2591
	fattening libmagic.

2592
2014-03-23  Benno Schulenberg  <bensberg@justemail.net>
2593
	* src/rcfile.c (parse_keybinding, parse_unbinding): Improve a
2594
2595
	debugging message, fix a translator comment, and tweak others.

2596
2014-03-22  Benno Schulenberg  <bensberg@justemail.net>
2597
	* THANKS: Add some missing translator names, and tweak others.
2598

Benno Schulenberg's avatar
Benno Schulenberg committed
2599
2014-03-21  Benno Schulenberg  <bensberg@justemail.net>
2600
	* src/chars.c (is_punct_mbchar, mbstrchr): Elide a variable,
Benno Schulenberg's avatar
Benno Schulenberg committed
2601
	thus making two ifs identical to six others.
2602
	* doc/syntax/nanorc.nanorc: Add the 'extendsyntax' directive,
2603
	and change two colours to be legible on a light background.
Benno Schulenberg's avatar
Benno Schulenberg committed
2604

2605
2014-03-19  Benno Schulenberg  <bensberg@justemail.net>
2606
2607
2608
	* doc/nanorc.sample.in: Document the changed whitespace defaults.
	* src/global.c, doc/man/nanorc.5: Allow softwrap to be rebound.
	* doc/nanorc.sample.in: Sort the includes alphabetically, and
2609
	add the ones for Lua, Magicpoint, and Spec files.
2610
2611
	* doc/nanorc.sample.in: Add "poslog", plus tiny textual tweaks.
	* src/global.c, doc/man/nanorc.5: Group softwrap with the toggles
2612
2613
	that affect how things look -- it does not belong in the group of
	general program functions, nor in the group of editing behaviour.
2614
	* doc/man/nanorc.5: Add the descriptions of six missing bindable
2615
	functions, and tweak those of a few others.
2616

2617
2014-03-18  Benno Schulenberg  <bensberg@justemail.net>
2618
	* src/global.c (shortcut_init): In the file browser one cannot
2619
2620
	search for a regular expression, so do not mention it.

2621
2014-03-17  Benno Schulenberg  <bensberg@justemail.net>
2622
	* src/global.c (shortcut_init): Show ^F and ^B instead of kright
2623
	and kleft in the help lines of the tiny version.
2624
	* src/global.c (shortcut_init): Remove some inconsistent spaces
Benno Schulenberg's avatar
Benno Schulenberg committed
2625
2626
	and newlines, condense three statements into one, place an #endif
	better, melt two #ifndefs into one, and add a comment.
2627
	* src/winio.c (edit_scroll): Remove the old softwrap scrolling code.
2628
	* src/{nano.h,proto.h,color.c,cut.c,files.c,global.c,help.c,nano.c,
2629
	search.c,text.c,utils.c}: Add, fix, and remove some #endif comments,
2630
	remove an obsolete comment, and remove some superfluous #ifndefs.
2631
	* src/global.c (shortcut_init): Put ^B and ^F in the same order as
2632
	all other command keys: first the backward then the forward motion.
2633
	* src/{nano.h,*.c}: Remove stray spaces before tabs.
2634

2635
2014-03-16  Benno Schulenberg  <bensberg@justemail.net>
2636
	* src/nano.h: Display more help items when the terminal is wider.
2637

2638
2014-03-14  Benno Schulenberg  <bensberg@justemail.net>
2639
	* src/nano.c (main): When in a UTF-8 locale, use prettier characters
2640
2641
2642
	(»·) for indicating whitespace, and for similarity use ">." instead of
	":." when not in a UTF-8 locale.  Changes suggested by Mike Frysinger.

2643
2014-03-05  Benno Schulenberg  <bensberg@justemail.net>
2644
	* src/move.c (do_down): Initialize the correct variable to zero.
Benno Schulenberg's avatar
Benno Schulenberg committed
2645
	Solves jumpy scrolling behaviour reported by Chris Allegretta.
2646

Benno Schulenberg's avatar
Benno Schulenberg committed
2647
2014-03-04  Chris Allegretta  <chrisa@asty.org>
2648
	* global.c (first_sc_for): Return raw keystrokes last, so
Benno Schulenberg's avatar
Benno Schulenberg committed
2649
	  they will not be displayed if there are F-keys or Meta keys
2650
2651
	  mapped for an item in the shortcut list.

2652
2014-03-04  Benno Schulenberg  <bensberg@justemail.net>
2653
	* doc/syntax/nanorc.nanorc: Add keyword 'quiet', sort 'locking',
2654
	and concatenate the two separate strings into one.
2655
	* src/nano.c (main), doc/nanorc.sample.in: Make the M-P toggle
2656
	actually do something by default, by using visible characters.
2657
	* src/global.c (shortcut_init): Normalize the writing of three
2658
2659
	help-line items: "Write Out", "Uncut Text", and "Unjustify", to
	better stress the O and U -- the big C and J were distracting.
2660
	* doc/{syntax/nanorc.nanorc,man/nanorc.5,texinfo/nano.texi}:
2661
2662
	Remove erroneous 'suspendenable' -- it is not a settable option
	but a bindable function.
2663

Benno Schulenberg's avatar
Benno Schulenberg committed
2664
2014-03-03  Chris Allegretta  <chrisa@asty.org>
2665
	* global.c (shortcut_init): Don't actually free the shortcut
Benno Schulenberg's avatar
Benno Schulenberg committed
2666
2667
	  list, since the next pass via justifying will then remove all
	  custom shortcuts.  Fixes bug discovered by Benno Schulenberg.
2668
	* text.c (do_linter): Remove some unused variables to quiet
Benno Schulenberg's avatar
Benno Schulenberg committed
2669
	  -pedantic -Wall.
2670

2671
2014-03-03  Benno Schulenberg  <bensberg@justemail.net>
2672
2673
2674
	* src/global.c (add_to_funcs): Add a newline, for clarity.
	* src/global.c (shortcut_init): Mark, don't translate yet.
	* src/move.c (do_down): Correctly compute the minimum amount
2675
	to scroll when softwrap is on and there are overlong lines.
2676
2677
	* src/winio.c (edit_scroll): Disable amount computation here.
	* src/move.c (do_down): Trim some redundant code, and correct
2678
2679
	the scrolling behaviour when softwrap is off -- the construct
	(amount ? amount : 1) wasn't doing what I intended.
2680
2681
	* doc/man/nano{.1,rc.5}: Slightly improve formatting and wording.
	* doc/{texinfo/nano.texi,man/nanorc.5}: Add some missing options
2682
	to the texinfo documentation, and improve alphabetization a bit.
2683
	* src/nano.c (usage): Don't mention --softwrap in tiny version.
2684

Benno Schulenberg's avatar
Benno Schulenberg committed
2685
2014-03-01  Chris Allegretta  <chrisa@asty.org>
2686
	* global.c (shortcut_init): Fix an issue with the split
Benno Schulenberg's avatar
Benno Schulenberg committed
2687
	  do_research() setup when using --enable-tiny.
2688
2689
	* rcfile.c (parse_linter): Allow linter to be unset using "".
	* rcfile.c: Allow syntaxes to be extended via "extendsyntax"
2690
2691
	  directive.  Color, header, magic and linter should all be
	  able to be extended.  Man page updates for nanorc(5).
2692
	* doc/nanorc.sample.in: Document 'set quiet'.
2693

2694
2014-03-01  Mike Frysinger  <vapier@gentoo.org>
2695
	* src/color.c (color_update): Do not write to stderr on magic
2696
2697
2698
2699
2700
2701
2702
	errors.  If the magic db has errors such that magic_load() fails,
	the current code dumps to stderr which messes up the terminal.
	The error message is also vague to the point where it's confusing
	-- I thought nano had problems writing to the file I was editing.
	Instead, use statusbar() and clarify the messages.
	(Patch tweaked by Benno.)

2703
2014-02-28  Benno Schulenberg  <bensberg@justemail.net>
2704
2705
	* src/text.c (execute_command): Equalize pipe error messages.
	* src/global.c (thanks_for_all_the_fish): Remove a redundant
2706
	'#ifdef DEBUG', it is contained within a wider one.
2707
2708
	* src/global.c (strtosc): Correct a misspelled keyword.
	* src/rcfile.c (check_vitals_mapped): Actually translate a
2709
	helpful message, and reword it somewhat for clarity.
2710
2711
	* src/global.c: Remove unused function 'free_shortcutage'.
	* src/global.c (strtosc): Indent conditions consistently.
2712

2713
2014-02-28  Eitan Adler  <lists@eitanadler.com>
2714
	* src/nano.c (do_toggle): Constify a char pointer, to fix
2715
2716
	a warning when compiling with clang (and -Wall).

2717
2014-02-27  Mike Frysinger  <vapier@gentoo.org>
2718
	* doc/man/nanorc.5: Relocate the misplaced unbind section,
2719
	and improve formatting.  (Patch tweaked by Benno.)
2720
	* doc/syntax/nanorc.nanorc: Add the bind/unbind commands,
2721
	so they will look supported when using syntax highlighting.
2722

2723
2014-02-27  Benno Schulenberg  <bensberg@justemail.net>
2724
	* src/help.c (parse_help_input): Make 'Space' again an alias
2725
	for PageDown and 'Minus' for PageUp -- they were mistakenly
2726
	swapped during code conversion in r4223.
2727

2728
2014-02-26  Mike Frysinger  <vapier@gentoo.org>
2729
	* doc/syntax/sh.nanorc: Highlight more shell builtins and
2730
2731
	common commands, and rewrite the variable highlighting to be
	more exact and handle cases where string operations are used.
2732
	* doc/syntax/gentoo.nanorc: Update to newer EAPIs, and fold
2733
2734
	in updated shell changes too.  Much of this is based on work
	by Davide Pesavento <pesa@gentoo.org>.
2735
	* doc/syntax/makefile.nanorc: Highlight trailing whitespace.
2736

2737
2014-02-26  Benno Schulenberg  <bensberg@justemail.net>
2738
	* src/global.c (shortcut_init): Put PageUp and PageDown
2739
2740
2741
	and also WhereIs and WhereIsNext together in the help lines
	of the file browser, and WriteOut and Readfile in the help
	lines of the main window -- related stuff in one column.
2742
	* doc/syntax/man.nanorc: Better colouring of manpage files.
2743

2744
2014-02-26  Konstantin Abakumov  <abakumov@Savannah>  (tiny change)
2745
	* doc/syntax/python.nanorc: Slightly improve the regexes for
2746
2747
	multiline strings in Python, reducing spillage.

2748
2014-02-26  Benno Schulenberg  <bensberg@justemail.net>
2749
	* src/move.c (do_down), src/winio.c (edit_scroll): Scroll an
2750
2751
2752
2753
	extra amount when softwrap is on and the current line would
	otherwise run off the screen, and recalculate maxrows after
	each scroll.  Solves bug #27550 reported by Hannes Schueller.

2754
2014-02-25  Benno Schulenberg  <bensberg@justemail.net>
2755
2756
	* NEWS: Fix some typos and wordings, and rewrap a few lines.
	* src/global.c: Correcting some translator comments, removal
2757
2758
	of a few superfluous blank lines, and some pedantic comment
	tweaks (mainly adding missing periods and stars).
2759
2760
	* src/global.c: Ordering "Prev Word" and "Next Word" better.
	* src/global.c: Make ^G not only call help but also exit from
2761
2762
	it, and make ^C also exit from help and from the file browser.
	Also remove two redundant shortcut definitions.
2763

2764
2014-02-25  Mike Frysinger  <vapier@gentoo.org>
2765
	* src/Makefile.am: Rename 'INCLUDES' to 'AM_CPPFLAGS', since
2766
2767
	Automake changed the naming of these a while ago, and at least
	version 1.13 now starts warning about it.
2768
	* .gitignore: Ignore generated files (and bak files).
2769

2770
2014-02-25  Benno Schulenberg  <bensberg@justemail.net>
2771
	* src/files.c (write_lockfile, do_lockfile): Fix a typo reported
2772
2773
2774
	by Jean-Philippe Guérard and inconsistent spelling of "lock file"
	reported by myself on nano-devel in March 2013.

2775
2014-02-25  Benno Schulenberg  <bensberg@justemail.net>
2776
	* src/help.c (do_help_void): Call the help browser with the correct
2777
2778
2779
2780
	refresher for afterwards.  This solves a bug reported by myself on
	nano-devel in August 2010: after typing ^R ^T ^W ^G ^X, the file
	being edited would get displayed instead of the list of files.

Benno Schulenberg's avatar
Benno Schulenberg committed
2781
2014-02-24  Chris Allegretta  <chrisa@asty.org>
Benno Schulenberg's avatar
Benno Schulenberg committed
2782
	* New linter functionality, rcfile option "linter".
2783
	* src/global.c (shortcut_init): Actually free the sclist
2784
	  if it was allocated before.
2785
	* src/winio.c (do_credits): Add Benno, my children,
Benno Schulenberg's avatar
Benno Schulenberg committed
2786
	  update copyright info.
2787

2788
2014-02-23  Benno Schulenberg  <bensberg@justemail.net>
2789
2790
	* doc/syntax/*.nanorc: Comment and punctuation tweaks.
	* doc/syntax/sh.nanorc: Colour $VAR within a "" string
2791
2792
	but not within a '' string, and do not colour strings
	within comments.  Fixes bug #29943.
2793

2794
2014-02-23  Benno Schulenberg  <bensberg@justemail.net>
2795
	* src/text.c (do_undo, do_redo, add_undo): Make warning
2796
2797
	sentences in the status bar consistently end in a period.

2798
2014-02-22  Benno Schulenberg  <bensberg@justemail.net>
2799
	* src/files.c (write_file): Add a missing malloc.
2800
2801
	Reported by an anonymous cross compiler, bug #30671.

2802
2014-02-22  Benno Schulenberg  <bensberg@justemail.net>
2803
	* src/winio.c (get_mouseinput): Correct an oversight,
2804
2805
2806
	use the proper 'do_up_void' and 'do_down_void' names.
	Reported by Zhou Z.J. <zzj666@Savannah>, bug #38268.

2807
2014-02-22  Lauri Kasanen  <laxy@Savannah>  (tiny change)
2808
	* doc/syntax/html.nanorc: Also recognize htm as extension,
2809
2810
2811
	use cyan for tags (more visible on dark background), correct
	the expression for ampersand codes, and colour strings too.

2812
2014-02-22  Dennis Jenkins  <dennisjenkins@Savannah>  (tiny change)
2813
	* doc/syntax/c.nanorc: Also recognize c++ as extension.
2814

2815
2014-02-22  Benno Schulenberg  <bensberg@justemail.net>
2816
	* src/nano.c (move_to_filestruct): Update the data in 'mark_begin'
2817
2818
2819
	when mark and cursor are on the same line.  This avoids a segfault
	after M-A, right, M-T, left, ^K, or a hang when the left is left out.

2820
2014-02-22  Benno Schulenberg  <bensberg@justemail.net>
2821
2822
	* src/nano.c (main): Add two conditions on ENABLE_NANORC.
	* src/files.c (close_buffer, do_insertfile): Likewise.
2823
2824
2825
	This avoids compilation failure when nano is configured
	with both --disable-color and --disable-nanorc.

2826
2014-02-22  Felipe Bugno  <capent@Savannah>  (tiny change)
2827
	* doc/nanorc.sample.in: Add an include for CMake files.
2828

2829
2014-02-22  David Lawrence Ramsey  <pooka109@gmail.com>
2830
2831
	* src/nano.c (allow_pending_sigwinch): A (char *) cast for pedantic purposes.
	* src/cut.c (do_cut_text): Wrap a reference to 'copy_text' in NANO_TINY.
2832

2833
2014-02-22  David Lawrence Ramsey  <pooka109@gmail.com>
2834
	* ChangeLog, NEWS, doc/faq.html: Fix typos, wording, and spacing.
2835

Benno Schulenberg's avatar
Benno Schulenberg committed
2836
2014-01-25  Chris Allegretta  <chrisa@asty.org>
2837
	* src/winio.c (set_modified): Check for a filename before trying to lock.
2838
2839

2014-01-24  Benno Schulenberg  <bensberg@justemail.net>
2840
2841
2842
2843
	* src/nano.c (copy_from_filestruct): Refresh the mark's pointer when
	  stuff was pasted into the line where the mark is.  This applies
	  Savannah patch #8180 and fixes the segfault reported on the list:
	  https://lists.gnu.org/archive/html/nano-devel/2012-07/msg00000.html.
2844

Benno Schulenberg's avatar
Benno Schulenberg committed
2845
2014-01-01  Chris Allegretta  <chrisa@asty.org>
2846
	* doc/texinfo/nano.texi: Change '@sp4' since makeinfo 5.1 hates the
2847
	  lack of spacing.  Fixes bug #40103 reported by flapane@Savannah.
2848
2849
	  Also change SVN status to non-binary so diffs work.

Benno Schulenberg's avatar
Benno Schulenberg committed
2850
2014-01-01  Chris Allegretta  <chrisa@asty.org>
2851
	* src/global.c (strtokeytype): Check for lower-case 'f' for defining F-key
2852
2853
	  sequences for consistency (previously was two checks for upper case 'F').
	  Fixes bug #40815 reported by David Binderman <dcb314@Savannah>.
2854

2855
2013-06-13 Matthew Fischer <mfisch@Savannah>
2856
	* doc/syntax/c.nanorc: Add the 'auto' keyword.
2857

2858
2013-06-13  David Lawrence Ramsey <pooka109@gmail.com>
2859
	* src/global.c (first_sc_for): Try to more consistently display keystrokes,
2860
	  useful when the user has rebound a bunch of them.
2861

2862
2013-06-13 Kamil Dudka <kdudka@redhat.com>
2863
	* doc/man/nano.1: Actually document the -P (--poslog) option.
2864

2865
2013-04-12 Chris Allegretta <chrisa@asty.org>
2866
	* src/files.c (do_insertfile): Check for saved cursor position when inserting a
2867
	  file as well.  Fixes Savannah bug #38600 reported by Craig Barnes.
2868
	* src/files.c (write_file): Don't re-stat() the file if we're writing out
2869
2870
	  a marked portion (especially because it would give the wrong stat info).
	  Part two of issue reported by Benno Schulenberg.
2871

2872
2013-04-07 Michael Berg <mike@berg-net.us>
2873
	* do_cut_text: Fix copying (not cutting) text setting Modified state.
2874
	  Partly fixes an issue reported by Benno Schulenberg.
2875

2876
GNU nano 2.3.2 - 2013.03.23
2877

2878
2013-03-17 Chris Allegretta <chrisa@asty.org>
2879
2880
	* Revert r4547 as we should have a new release and the overlap code is not yet
	  ready for public consumption.
2881

2882
2013-01-20 Chris Allegretta <chrisa@asty.org>
2883
	* src/text.c (do_histify): Don't allow sigwinch to be received while justifying
2884
	  as that puts us into a wacky state.  Fixes crash on justify by Joshua Rogers.
2885
	* configure.ac: Added --with-wordbounds option to let cross compilers force
2886
	  whether their target system support GNU-style word boundaries or not.
2887
	  Originally reported by Dave Festing.
2888
2889
	* doc/man/nanorc.5: Fix typo in softwrap description, reported by
	  cbart387@Savannah.
2890

2891
2013-01-19 Chris Allegretta <chrisa@asty.org>
2892
2893
	* configure.ac: Make ncurses checking to set $LIBS and check the ncursesw lib
	  actually works before defaulting to it over ncurses!  Shock!
2894

2895
2013-01-13 Chris Allegretta <chrisa@asty.org>
2896
	* src/utils.c (parse_num): Initialize errno before calling strtol().  Fixes issue
2897
2898
	  where trying to go to a line number too long will break legitimate goto-lines
	  for the remainder of the editing session, reported by Joshua Rogers.
2899
2900

2013-01-09 Mike Frysinger <vapier@gentoo.org>
2901
	* configure.ac: Check for ncursesw5-config and base $CPPFLAGS on it.
2902

2903
2013-01-09 Fabian Groffen <grobian@Savannah>
2904
	* configure.ac, src/nano.h: Make the search for ncursesw more generalized.
2905

2906
2013-01-02 David Benjamin <davidben@Savannah>
2907
2908
	* src/search.c (parse_syntax): Fix blatantly and dangerously incorrect code
	  for deleting old syntaxes.
2909

2910
2013-01-02 Mike Frysinger <vapier@gentoo.org>
2911
2912
	* src/files.c (cwd_tab_completion): Remove unnecessary variables.
	* src/search.c (search_init): Fix gcc complaints on certain versions.
2913

2914
2013-01-02 Eitan Adler <lists@eitanadler.com>
2915
2916
	* configure.ac: Remove unnecessary checks.
	* src/nano.h, NEWS: Fix redundant wording.
2917

2918
2012-12-31 Chris Allegretta <chrisa@asty.org>
2919
	* src/*: Introduce (basic) vim-style file locks.  Does not allow vim to recover
2920
2921
2922
	  our changes, and just lets a vim user know we're editing a file.  Command-line
	  option "-G" or "--locking", nanorc option "locking".  New functions in
	  src/files.c: do_lockfile(), write_lockfile(), and delete_lockfile().
2923

2924
2012-02-05 Chris Allegretta <chrisa@asty.org>
2925
2926
2927
2928
2929
2930
	* src/*: Fix overlapping strings highlighting each other.  New variables in edit_draw
	  (slmatcharray, pbegin, paintok), new logic (with repeated setting of values in the
	  array but it's BFI after all).  FIXME: Need to create a new 'overlap'.
	* src/*: Fix a silly issue with the argument to nregcomp, as it's confusing to the caller.
	* src/nano.h: Change the color types to a compiler macro (COLORWIDTH), may not actually
	  even be worth doing, but someday who knows how wide a color curses implementation might
2931
2932
	  be, and maybe we'll even start checking for it in autoconf!

Chris Allegretta's avatar
Chris Allegretta committed
2933
GNU nano 2.3.1 - 2011.05.10
2934

2935
2011-05-10 Chris Allegretta <chrisa@asty.org>
2936
2937
	* text.c (do_enter): Only increment totsize by the auto-indented amount, since the previous
	  line's size was already counted.  Fixes bug reported by Robert Spanjaard.
2938

2939
2011-05-08 Chris Allegretta <chrisa@asty.org>
2940
	* doc/syntax/Makefile.am: Finally get around to sorting the syntax file list.
2941
2942

2011-05-08 Matthew Wild <mattj100@Savannah>
2943
	* doc/syntax/spec.nanorc: New lua syntax highlighting config.
2944

2945
2011-03-28 Asterios Dramis <asterios.dramis@gmail.com>
2946
	* doc/syntax/spec.nanorc: New RPM spec file highlighting config.
2947

2948
2949
2950
2011-03-12 Chris Allegretta <chrisa@asty.org>
	* po/*: Sync latest translation fixes, add an update_linguas.sh script.  Rename
	  existing update.pl to update_sources.pl to make it more specific.
2951

2952
2953
2954
2955
2956
2011-03-04 Chris Allegretta <chrisa@asty.org>
	* color.c (color_update): Add check for whether the file even exists
	  before we try to run the magic check on it.  Fixes error messages to stderr
	  when reading in files that don't exist, reported by Mike Frysinger.

2957
2011-03-03 Chris Allegretta <chrisa@asty.org>
2958
2959
	* color.c (color_update): Remove unneeded debugging message from libmagic commit.
	  Fixed extra messages going to stderr, reported by Mike Frysinger.
2960
2961

GNU nano 2.3.0 - 2011.02.26
2962

2963
2011-02-26 Chris Allegretta <chrisa@asty.org>
2964
	* Change RAW in function_type enum to RAWINPUT, to fix compilation on AIX,
2965
	  reported by Richard G Daniel <skunk@iskunk.org>.
2966

2967
2011-02-23 Chris Allegretta <chrisa@asty.org>
2968
2969
	* Fix some more severe warnings from 'g++ -pedantic', from patch originally
	  by Eitan Adler <lists@eitanadler.com>.
2970

2971
2011-02-23 Kamil Dudka <kdudka@redhat.com>
2972
	* doc/man/nanorc.5: Fix small typo.  Report and original patch by John Bradshaw.
2973

2974
2975
2011-02-22 Chris Allegretta <chrisa@asty.org>
	* color.c (nfreeregex): Fix that we were trying to set the pointer passed by value
2976
	  to NULL.  Fixes crashes on file save reported by Ken Tyler and Matthieu Lejeune.
2977

2978
2979
2980
2011-02-18 Chris Allegretta <chrisa@asty.org>
	* New saved cursor position history option.  Command line option -P or --poslog, rc file
	  entry "poslog".  Search history changes to ~/.nano/search_history, cursor position log
2981
2982
	  is ~/.nano/filepos_history.  Added checks to move the legacy .nano_history file to the
	  new location.  Several new functions to files.c: load_poshistory(), save_poshistory(),
2983
2984
	  check_poshistory(), update_poshistory(), and reworking of histfilename().  New FAQ entry
	  4.15 discussing the change and offering an interoperability workaround.
2985
	* files.c (load_history): Set last_search to the last search value we loaded from history,
2986
	  so do_research will succeed without needing to manually load the last search in.  Fixes
2987
	  bug reported by Matthieu Lejeune.
2988

2989
2990
2991
2992
2011-02-12 Chris Allegretta <chrisa@asty.org>
	* Initial libmagic implementation, adapted from Eitan Adler <eitanadlerlist@gmail.com>.
	  New nanorc entry "magic" to enable this functionality, nanorc file and man page updates.

2993
2011-02-06 Chris Allegretta <chrisa@asty.org>
2994
	* src/*: Retire iso_me_harder_funcmap based on suggestion by <bernd.spaeth@gmx.net>.
2995
	  This does add 20KB to nano's executable size but it gets rid of a lot of indirection
2996
2997
	  that makes people's stomach turn.  There are several new stub functions and a need of
	  more tidying as a result of this.
2998
	* files.c (write_file): Fix problems with writing the backup file (albeit interactively)
2999
3000
	  with new function prompt_failed_backupwrite(), allows more secure handling of problems
	  with failing to write the backup file compared to 'allow_insecure_backup'.
3001
	* winio.c (edit_redraw): Remove unused variable.
3002

3003
GNU nano 2.2.6 - 2010.11.22
3004

3005
3006
3007
2010-11-15 Chris Allegretta <chrisa@asty.org>
	* Add a section to the FAQ about using nanorc on Win32 systems.

3008
2010-11-12 Chris Allegretta <chrisa@asty.org>
3009
3010
3011
	* Add check for RESTRICTED mode back to speller, suspend and insert file routines,
	  since adding key bindings broke the fact that they should be disabled in restricted\
	  mode.  Fixes Savannah bug #31625 reported by Charlie Somerville.
3012

Chris Allegretta's avatar
Chris Allegretta committed
3013
GNU nano 2.2.5 - 2010.08.05
3014

3015
2010-08-04 Lauri Kasanen <curaga@operamail.com>
3016
	* doc/syntax/mgp.nanorc: New Magicpoint syntax highlighting definition.
3017

3018
3019
3020
2010-08-04 Peter <exodus@savannah>
	* doc/syntax/tex.nanorc: No longer highlight escaped comments

3021
3022
3023
2010-06-20 Chris Allegretta <chrisa@asty.org>
	* New rc file option allow_insecure_backup, allows the previous security
	  fixes for backup files to be overridden if you're really positive
3024
	  you want to.  Fixes Savannah bug #29732 by Brian Szymanski <skibrianski>.
3025

3026
3027
3028
3029
2010-05-23 Chris Allegretta <chrisa@asty.org>
	* files.c (write_file): Don't even try to chown() the backup
	  file unless we're root, since it's probably going to fail if
	  we're editing a file we don't own.  Fixes Savannah bug
3030
	  #29514: [nano 2.2.2] backup should ignore chown errors.
3031

Chris Allegretta's avatar
Chris Allegretta committed
3032
GNU nano 2.2.4 - 2010.04.15
3033

3034
2010-04-14 Chris Allegretta <chrisa@asty.org>
3035
	* doc/man/nano.1,nanorc.5: Remove the backup file warnings now
3036
	  that a sufficient security fix exists for the backup file code.
3037

3038
2010-04-14 Chris Allegretta <chrisa@asty.org>
3039
3040
	* text.c (do_alt_speller): Skip invoking the alt speller if the file size
	  is 0 bytes.  Fixes Savannah bug #29393 reported by Mike Frysinger.
3041
	* files.c (write_file): Don't set current_stat when tmp == TRUE, check
3042
3043
	  whether current_stat is set when trying to use it, and don't do the
	  modification check if the filename changed, since we have no way
3044
	  of knowing about it in that case.  Fixes Savannah bug #29392, reported
3045
	  by Mike Frysinger.  [CVE-2010-1160]
3046

3047
3048
3049
2010-04-13 Felipe Bugno <necron@bol.com.br>
	* doc/syntax/cmake.nanorc: Added cmake syntax highlighting file.

3050
2010-04-09 Chris Allegretta <chrisa@asty.org>
3051
3052
	* files.c (do_writeout): Better security fixes for backup file writing,
	  mangled from submission by Dan Rosenberg <dan.j.rosenberg at gmail>.
3053
	  [CVE-2010-1161]
3054
3055

2010-04-08 Chris Allegretta <chrisa@asty.org>
3056
	* files.c (do_writeout): Previous fixes should not cause a crash
3057
3058
	  when saving a new file.  Discovered by Mike Frysinger <vapier@gentoo.org>.

3059
3060
3061
2010-04-07 Chris Allegretta <chrisa@asty.org>
	* doc/man/nano.1,nanorc.5: Add warnings about using backup
	  mode as root due to the Dan Rosenberg security analysis.
3062

3063
3064
2010-04-02 Chris Allegretta <chrisa@asty.org>
	* files.c (do_writeout): Expand modification check to include both the
3065
	  original file's device ID and inode number as reasons to warn the
3066
	  user that the file has been modified.  Also abort on writing a backup
3067
	  file when its owner doesn't match the edited file.  Based on security
3068
	  analysis on nano by Dan Rosenberg.  [CVE-2010-1160]
3069

3070
3071
2010-03-21 Chris Allegretta <chrisa@asty.org>
	* nano.c (page_stdin et al): Don't attempt to reset/reopen the terminal
3072
	  settings when reading stdin if it was aborted with SIGINT.  May fix
Benno Schulenberg's avatar
Benno Schulenberg committed
3073
	  Savannah bug #29114 reported by Mike Frysinger.
3074

3075
2010-03-21 Mike Frysinger <vapier@gentoo.org>
3076
	* doc/syntax/c.nanorc: Add additional support for #include_next and #pragma.
3077

3078
2010-03-21 Chris Allegretta <chrisa@asty.org>
3079
3080
3081
	* move.c (do_page_up, do_page_down()): Explicitly set current_y to 0 when
	  paging up when not in smooth scroll mode, as previous fixes would otherwise
	  cause the cursor to not really be moved to the top of the screen.
3082

3083
3084
2010-03-07 Chris Allegretta <chrisa@asty.org>
	* configure.ac, nano.c (handle_sigwinch): Create check for whether LINES and
3085
3086
3087
	  COLS can safely be redefined.  Fixes compilation issues with Cygwin, and likely
	  with newer versions of ncurses.  Fixes Savannah bug #28984 reported by Andy Koppe
	  and by Eric Oliver via mailing list.
3088
	* winio.c (get_mouseinput): Fix stray semicolon in code, also reported in
3089
	  bug #28984.
3090

Chris Allegretta's avatar
Chris Allegretta committed
3091
GNU nano 2.2.3 - 2010.02.11
3092

3093
2010-01-28 Chris Allegretta <chrisa@asty.org>
3094
3095
	* move.c (do_page_up, do_page_down): Fix for smooth mode not preserving cursor
	  position.  Part one of fix for Savannah bug #21178 by Mike Frysinger.
3096
3097

GNU nano 2.2.2 - 2010.01.17
3098

3099
2010-01-17 Chris Allegretta <chrisa@asty.org>
3100
3101
	* nano.c (main), prompt.c (do_statusbar_input): Handle problems with an unmapped
	  function due to key rebinding, fixes crashes on FreeBSD reported by Eitan
3102
3103
	  Adler <eitanadlerlist@gmail.com>.

3104
3105
3106
3107
2010-01-14 Chris Allegretta <chrisa@asty.org>
	* files.c (do_writeout): Fix for crash / incorrect external modification warning
	  due to earlier fix in r4467.

3108
3109
3110
2010-01-12 Chris Allegretta <chrisa@asty.org>
	* move.c (do_page_up, do_page_down): Fix issues with not enough scrolling down/up
	  and cursor centering.
3111
	* winio.c (edit_scroll): Remove lots of needless checking of line length for
3112
	  soft wrapping code.
3113
	* winio.c (edit_update): Remove extra code for when updating with old_current outside
3114
3115
	  of the new buffer boundary and centering issues.

3116
2010-01-05 Tito <farmatito@tiscali.it>
3117
	* search.c (update_history): Fix bad length check causing search crash on armel platform.
3118

3119
2010-01-04 Chris Allegretta <chrisa@asty.org>
3120
	* winio.c: edit_update, edit_redraw: Fix search not scrolling to the middle of the screen
3121
3122
	  (reported by alpha@qzx.com) and places where we rely on maxrows but should not.

3123
3124
3125
3126
2009-12-26 Jordi Mallach <jordi@gnu.org>
	* doc/man/nano.1: Avoid a groff warning by prepending a zero-width
	space to a line starting with '.

3127
3128
3129
3130
3131
3132
3133
2009-12-22 Chris Allegretta <chrisa@asty.org>
	* files.c (write_file): Fix compatibility with previous stat fix and tiny mode.

2009-12-22 David Lawrence Ramsey <pooka109@gmail.com>
	* global.c: Add new strings for forward/back in the file browser.  New variables
	  nano_forwardfile_msg and nano_backfile_msg.

3134
3135
2009-12-20 Chris Allegretta <chrisa@asty.org>
	* files.c (is_file_writable): remove assert check for f, since it's not
3136
	  initialized at the time.  Fixes Savannah bug #28309, reported by Zoltan Kovacs.
3137

3138
2009-12-20 Brian Szymanski <skibrianski via Savannah>
3139
3140
3141
	* src/files.c (write_file): Check whether stat struct exists, and if not, use the
	  just obtained stat data.  Fixes Ubuntu bug 471568, "reproducible crash in nano on
	  trying to save to a file different than the one specified on the command line".
3142

3143
2009-12-15 Chris Allegretta <chrisa@asty.org>
3144
	* doc/nanorc.sample.in: Remove erroneous 'set suspendenable' as it's actually a
3145
	  key binding (e.g. 'bind M-Z suspendenable all') and not a settable flag.  Fixes
3146
	  Savannah bug #28299 reported by Mike Frysinger.
3147

Chris Allegretta's avatar
Chris Allegretta committed
3148
GNU nano 2.2.1 - 2009.12.12
3149

3150
2009-12-12 Chris Allegretta <chrisa@asty.org>
3151
	* text.c (do_delete), nano.c (do_output): Add check for length of current line
3152
3153
3154
3155
3156
	  before and after adding/deleting text, and do full refresh if it is now
	  a different multiple of COLS.  Also get rid of superfluous do_refresh
	  vars now that we have edit_refresh_needed.

2009-12-09 David Lawrence Ramsey <pooka109@gmail.com>
3157
	* global.c (shortcut_init), browser.c (do_browser): Fix M-W not being bound to
3158
3159
	  research in either main menu or browser.

3160
2009-12-09 Chris Allegretta <chrisa@asty.org>
3161
	* files.c (read_file): Add parameter for whether we should even try to check
3162
3163
	  file writability, as the message is useless when we're inserting into an
	  existing buffer.  Fixes Savannah bug #28219.
3164

3165
3166
2009-12-07 David Lawrence Ramsey <pooka109@gmail.com>
	* global.c (shortcut_init): Many fixes for keybindings code oversights, including
3167
3168
3169
	  restore page up/down and GotoDir in browser.
	* browser.c (do_browser): Fix breaking out of a submenu (e.g. gotodir), it broke
	  out of the browser altogether.
3170
3171
	* doc/nanorc.sample.in: Add missing entries for fortran/ObjC/OCaml entries.

3172
2009-12-03 David Lawrence Ramsey <pooka109@gmail.com>
3173
	* global.c (shortcut_init): Remove help shortcut from help shortcut list. :-)  Tweaked
3174
3175
	  to reorder exit shortcut to end of list to not mess up prev/next shortcut symmetry.

3176
2009-12-03 Eitan Adler <eitanadlerlist@gmail.com>
3177
	* doc/syntax/makefile.nanorc: Fix poor regex for all alpha characters which sometimes
3178
	  leads to error messages, reported by gibboris@gmail.com.
3179

3180
2009-12-02 Chris Allegretta <chrisa@asty.org>
3181
	* text.c (add_undo, do_undo, do_redo): Do not execute cases for SPLIT when
3182
	  DISABLE_WRAPPING is defined.  Fixes Savannah bug #28151 (anon).
3183

3184
3185
3186
2009-12-02 Jordi Mallach <jordi@gnu.org>
	* doc/man/nano.1: Fix escaping of hyphens for the -$ option.

3187
2009-12-01 Kamil Dudka <kdudka@redhat.com>
3188
	* chars.c, file.c: Better handle unused results for things like mbtowc(), new
3189
3190
3191
	  macro IGNORE_CALL_RESULT.

2009-12-01 Chris Allegretta <chrisa@asty.org>
3192
	* global.c (shortcut_init): Remove redundant entries for ^Y/^V reported by
3193
	  Christian Weisgerber.
3194
	* doc/man/nanorc.5: Fix typo in Meta documentation, reported by <gibboris@gmail.com>.
3195

3196
2009-12-01 David Lawrence Ramsey <pooka109@gmail.com>
3197
	* global.c (shortcut_init): Add support for ^P and ^N in the help menu.
3198
	* Update documentation for 2.2 features including sample nanorc file, texinfo
3199
	  file, man pages, UPGRADE file, and update copyright notice for the current year.
3200

Chris Allegretta's avatar
Chris Allegretta committed
3201
GNU nano 2.2.0 - 2009.11.30
3202

3203
2009-11-29 Chris Allegretta <chrisa@asty.org>
3204
	* prompt.c (get_prompt_string): Universally handle help key when it is disabled.
3205
	  Fixes Savannah bug #28117 by David Lawrence Ramsey <pooka109@gmail.com>.
3206
3207
3208
3209
	* chars.c, files.c: Add junk vars to silence the compiler.  Sigh.

2009-11-29 David Lawrence Ramsey <pooka109@gmail.com>
	* Change several *chars to const char, additional cleanups and casts to make compilers happier.
3210
	* global.c: Fix replace and insert file initializations for proper compilation options.
3211
3212
3213
	* nano.c (do_suspend): Update comments to reflect actual code path, bad Chris, and thanks for
	  noticing, Jordi.
	* configure.ac: Fix typos.
3214

3215
3216
3217
2009-11-27 Chris Allegretta <chrisa@asty.org>
	* nano.c (do_suspend): Don't clear the screen but do move the cursor down to the last line
	  first in an effort to not corrupt the screen, which contradicts Pico but is consistent
3218
	  with almost all other text editors.  Fixes Savannah bug #28110 / Debian bug 460510
3219
	  reported by Tim Connors <reportbug@rather.puzzling.org>.
3220
	* doc/syntax/makefile.nanorc: Sample Makefile highlighting based on wiki.linuxhelp.net version.
3221

3222
3223
2009-11-26 Chris Allegretta <chrisa@asty.org>
	* winio.c (edit_scroll): Adjust for long lines when scrolling.
3224
	* rcfile.c (parse_rcfile): initialize size argument to getline(), fixes crash on FreeBSD
3225
	  reported by Eitan Adler <eitanadlerlist@gmail.com>.
3226

3227
2009-11-26 Jordi Mallach <jordi@gnu.org>
Chris Allegretta's avatar
Chris Allegretta committed
3228
	* doc/man/*: Update all man pages to escape unescaped hyphens.
3229

3230
3231
3232
3233
3234
2009-11-24 Chris Allegretta <chrisa@asty.org>
	* move.c (do_page_up, do_page_down): Make these functions work better with soft
	  line wrapping.
	* winio.c (compute_maxrows): Make maxrows calculation more accurate when all lines are > COLS.

3235
3236
2009-11-22 Chris Allegretta <chrisa@asty.org>
	* nano.c (main): Allow edit_refresh_needed to take effect when using --enable-tiny
3237
	  (fixes Savannah bug #28076 reported by David Lawrence Ramsey).
3238
3239

2009-11-22 David Lawrence Ramsey <pooka109@gmail.com>
3240
3241
	* nano.c (move_to_filestruct): Fix bug 71 (cut at top of line recenters).
	* Fix compilation with --enable-tiny.
3242

3243
3244
3245
2009-11-22 Mike Frysinger <vapier@gentoo.org>
	* doc/syntax/gentoo.nanorc: Tweak comment highlighting.

Chris Allegretta's avatar
Chris Allegretta committed
3246
GNU nano 2.1.99pre2 - 2009.11.21
3247

3248
2009-11-21 Chris Allegretta <chrisa@asty.org>
3249
	* rcfile.c: Add unbinding keyword, fixes Savannah bug #22852 reported by frankd.
3250
	* prompt.c (update_statusbar_line): Set statusbar_pww when updating the line.
3251
	  Fixes Savannah bug #24957 reported by Mike Frysinger.
3252

3253
2009-11-19 Chris Allegretta <chrisa@asty.org>
3254
	* nano.c (die_save_file): Try and match the permissions of the file we were
3255
	  editing but only make a minimal effort to do so. Fixes Savannah bug #27273
3256
3257
	  reported by Mike Frysinger.

3258
2009-11-18 Adrian Bunk <bunk via Savannah>
3259
3260
	* nano.c (main): Allow --fill and --nowrap to override nanorc entries
	  and each other on the command line.
3261

3262
3263
2009-11-15 Chris Allegretta <chrisa@asty.org>
	* winio.c (edit_refresh): Always computer maxsize regardless of whether smooth scrolling
3264
	  is enabled.  Fixes Savannah bug #28024 by Mike Frysinger.
3265

Chris Allegretta's avatar
Chris Allegretta committed
3266
GNU nano 2.1.99pre1 - 2009.11.15
3267

3268
2009-11-14 Chris Allegretta <chrisa@asty.org>
3269
3270
	* move.c (do_first_line, do_last_line): Just set edit_refresh_needed
	  rather than get messy.
3271
	* files.c (do_writeout): Only mention file modification if we're
3272
	  writing the same file we originally opened.
3273

3274
2009-11-13 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg's avatar
Benno Schulenberg committed
3275
	* winio.c: Add new static maxsize for easier calculation with softwrap.
3276
3277
	* nano.c (do_mouse): Fix mouse support not working with soft wrapping.
	  Fixes Savannah bug #27549 reported by Hannes Schueller.
3278

3279
2009-11-11 Chris Allegretta <chrisa@asty.org>
3280
	* winio.c: Large tweaking of cursor and text display based on COLS not COLS - 1,
3281
	  due to finally understanding that display_string wasn't being called properly
3282
3283
3284
	  when softwrap was enabled.  Fixes Savannah bug #27603, "Return key doesn't scroll
	  viewport" reported by Hannes Schueller.
	* Fix size_t formatting issues with -pedantic
3285

3286
2009-11-09 Chris Allegretta <chrisa@asty.org>
3287
	* files.c (read_file): Remove debugging messages from file load.
3288
	  Fixes Savannah bug #27838.
3289

3290
2009-11-07 Chris Allegretta <chrisa@asty.org>
3291
	* nano.h: Add bogus value at begin of flags enumeration because it
3292
3293
	  caused the casesens rcfile option to misbehave, reported by Helmut
	  Jarausch <jarausch@igpm.rwth-aachen.de>.
3294

3295
2009-11-03 Chris Allegretta <chrisa@asty.org>
3296
3297
	* nano.h: Fix comma at end of enumerator list which angers -pedantic.
	* rcfile.c: Add in specific check for UNDOABLE and fix declaration as
3298
	  to what flag it toggles.  Fixes undo mode being able to be called from
3299
	  the rc file, reported by Helmut Jarausch <jarausch@igpm.rwth-aachen.de>.
3300
3301

2009-11-03 Mike Frysinger <vapier@gentoo.org>
3302
	* files.c: Move up is_file_writable() to stop implicit definition complaints.
3303

3304
2009-10-27 Chris Allegretta <chrisa@asty.org>
3305
	* browser.c (browser_init): Set column width to something sane when
3306
	  initializing in a directory with no file entries.  Fixes Savannah
3307
	  bug #24163 found (and initial patch) by Paul Wise.
3308

Chris Allegretta's avatar
Chris Allegretta committed
3309
3310
3311
2009-09-15 Chris Allegretta <chrisa@asty.org>
	* winio.c: Clean up some unused variables from the soft wrapping code.

Chris Allegretta's avatar
Chris Allegretta committed
3312
GNU nano 2.1.11 - 2009.09.14
3313

3314
2009-09-12 Chris Allegretta <chrisa@asty.org>
3315
	* winio.c (edit_update): properly update edittop when using soft wrapping.
3316
3317
	  Fixes lack of centering for searching for off-screen answers, found by
	  Hannes Schueller <mr_creosote@mutantwatch.de>.
3318

3319
3320
2009-09-03 Chris Allegretta <chrisa@asty.org>
	* global.c (shortcut_init): Fix up/down keys not responding in the file browser,
3321
	  discovered by Hannes Schueller <mr_creosote@mutantwatch.de>.
3322
	* move.c (do_up): Fix another scrolling issue with softwrap when the cursor
3323
	  is beyond COLS, discovered by Hannes Schueller <mr_creosote@mutantwatch.de>.
3324

3325
3326
3327
2009-09-02 Chris Allegretta <chrisa@asty.org>
	* Attempt to check file writability and emit a warning on the status bar
	  if nano doesn't think the file can be written to.  Feature originally
3328
	  requested by Damien Joldersma <damien@skullsquad.com> et al.
3329

3330
2009-08-29 Chris Allegretta <chrisa@asty.org>
3331
	* Fix more soft wrapping issues, particularly with scrolling,
Benno Schulenberg's avatar
Benno Schulenberg committed
3332
	  discovered by Hannes Schueller <mr_creosote@mutantwatch.de>.
3333

3334
3335
2009-08-19 Chris Allegretta <chrisa@asty.org>
	* Fix issue with soft wrapping not displaying the last character of each line,
Benno Schulenberg's avatar
Benno Schulenberg committed
3336
	  fixed bug discovered by Hannes Schueller <mr_creosote@mutantwatch.de>.
3337

3338
3339
2009-08-17 Mike Frysinger <vapier@gentoo.org>
	* doc/syntax/(gentoo|sh|tcl).nanorc: Fix problems with empty regexes on POSIX.
3340
	  Fixes Savannah bug #27175.
3341

3342
2009-08-17 Chris Allegretta <chrisa@asty.org>
3343
	* Initial soft line wrapping implementation.  Command-line flags -$ or --softwrap.
3344
3345
	* nano.c, text.c: Clean up some fprintf warnings in debug mode due to printing
	  a size_t without using the zd specifier.
Benno Schulenberg's avatar
Benno Schulenberg committed
3346

3347
3348
2009-08-13 Chris Allegretta <chrisa@asty.org>
	* New global flag implementation courtesy of Adam Wysocki <gophi@arcabit.pl>, allows
3349
	  previous undo flag to be implemented consistent with other flags.
3350

Chris Allegretta's avatar
Chris Allegretta committed
3351
GNU nano 2.1.10 - 2009.07.28
3352

3353
2009-07-27 Chris Allegretta <chrisa@asty.org>
3354
	* text.c (undo_cut, redo_cut): Don't actually try and undo/redo an empty cut, i.e. the magicline.
3355
3356
	  Fixes crash on cutting last line discovered by Eitan Adler <eitanadlerlist@gmail.com>.

3357
2009-07-11 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg's avatar
Benno Schulenberg committed
3358
3359
3360
	* nano-regress: Small tweaks.
	* Change undo code to off unless enabled via a command line option (-u/--undo).
	  Until this code stabilizes this is the only responsible way to treat it.
3361

3362
2009-03-08 Chris Allegretta <chrisa@asty.org>
3363
	* TODO: Break out some targets for various features into 2.2
3364
3365
	  and 2.4 series for things which are feasible.

3366
3367
2009-02-28 Chris Allegretta <chrisa@asty.org>
	* configure.ac: Add check for whether _XOPEN_SOURCE_EXTENDED is needed for
3368
	  curses to work w/color.  Fixes compilation on HP-UX with older GCC,
3369
3370
	  reported by jay.krell@cornell.edu.

3371
2009-02-23 Eitan Adler <eitanadlerlist@gmail.com>
3372
	* doc/man/Makefile.am: Fix make variable substitution to be more portable.
3373

3374
2009-02-23 Chris Allegretta <chrisa@asty.org>
3375
	* rcfile.c (parse_keybinding): Define a var before tryung to use it.  Whoops!
3376
3377
	* fix some redefinitions causing compiler warnings, from Eitan Adler.  Other
	  (hopefully) fixes for uncasted malloc()s, reported by the same.
3378
	* doc/man/fr/Makefile.am: Add groff check fix to fr files.
3379
3380

GNU nano 2.1.9 - 2009.02.16
3381

3382
3383
2009-02-16 Chris Allegretta <chrisa@asty.org>
	* Add new argument to reset_multis for force redraws without attempting to
3384
	  guess whether we need to, for functions that we don't have good info about
3385
	  the text state.  New utility function color.c:reset_multis_for_id().
3386

3387
2009-02-15 Chris Allegretta <chrisa@asty.org>
3388
	* configure.ac, doc/man/Makefile.am: Add check for HTML output support in GNU
3389
3390
3391
3392
	  groff.  Fixes Savannah bug #24461: build traps on groff.  Also, add installation
	  of html-ized man pages to $datadir/nano/man-html, since we should probably
	  install files we went to all the trouble of generating.

3393
2009-02-14 Chris Allegretta <chrisa@asty.org>
3394
	* nano.c (precalc_multicolorinfo): Add debugging so we have a better clue if further
3395
	  issues arise.  Also start at the beginning of later lines when trying to match the
3396
	  end of a multi-line regex.  Fixes more overly aggressive highlighting found by
3397
	  Mike Frysinger.  Finally, advance to the match end for performance.
3398

3399
3400
3401
3402
3403
2009-02-11 Chris Allegretta <chrisa@asty.org>
	* nanorc.c (parse_include): Do call real_dir_from_tilde() on included
	  files in .nanorc, but still avoiding bug #25297.  Fixes ~ and ~user
	  specifications for nanorc include files, as reported by Eitan Adler.

3404
3405
3406
3407
3408
2009-02-09 Chris Allegretta <chrisa@asty.org>
	* New option -q, --quiet, rcfile option "quiet" implemented.  Skips printing
	  errors about the rcfile and asking user to press enter.  Also, nano should
	  now only ask for one enter press when there is an error when not using -q.
	  Based on discussion between Eitan Adler and Mike Frysinger.
3409
	* rcfile.c (parse_keybinding): Significant cleanups and fixes for
3410
3411
	  detecting and reporting errors in key bindings code.

3412
2009-02-08 Chris Allegretta <chrisa@asty.org>
3413
3414
3415
	* Make reset_multidata reset more lines, since contrary to previous problems the
	  syntax highlting is now too *un*ambitious, causing display glitches when
	  deleting a regex boundary.
3416
3417
3418
	* Add more multidata initliazers for new buffers and 'magic lines'.  Fixes segfaults
	  with syntax highlighting in new buffers, initially reported by Mike Frysinger.

Chris Allegretta's avatar
Chris Allegretta committed
3419
GNU nano 2.1.8 - 2009.02.07
3420

3421
2009-02-06 Chris Allegretta <chrisa@asty.org>
3422
3423
3424
	* rcfile.c (parse_include): Abort on being unable to open an included rcfile.
	  Fixes Savannah bug #25490, nanorc: "include"ing a file which doesn't exist
	  causes nano to segfault.
3425

3426
2009-02-05 Chris Allegretta <chrisa@asty.org>
3427
	* More color syntax speedups: Determine in reset_multis() whether we really need to call
3428
	  edit_refresh().  Additional global var edit_refresh_needed() to hopefully reduce
3429
	  repeated calls to the function.  New helper funcs reset_multis_before() and
3430
3431
3432
3433
	  reset_multis_after().

2009-02-02 Chris Allegretta <chrisa@asty.org>
	* New color precalculation code for mult-line regexes.  New function precalc_multicolorinfo(),
3434
	  new structure multidata for keeping track of where regexes start/stop.  More
3435
3436
	  performance improvements forthcoming.

3437
2009-01-29 Chris Allegretta <chrisa@asty.org>
3438
	* nano.c (move_to_filestruct): Properly initialize new fileage for multiswatching, sigh.
3439
	  Fix cut segfaults discovered by Mike Frysinger.
3440

3441
3442
2009-01-29 Chris Allegretta <chrisa@asty.org>
	* nano.c (main): Add support for nano acting like a pager when invoked with - as first
3443
	  file argument.
3444

3445
3446
3447
2009-01-28 Davide Pesavento <davidepesa@gmail.com>
	* doc/syntax/gentoo.nanorc: Updates from David and Mike Frysinger.

3448
2009-01-25 Chris Allegretta <chrisa@asty.org>
3449
3450
3451
	* files.c (open_file), nanorc.c (parse_include): Don't get_full_path on included
	  rc files, due to it potentially impacting the ability to read files in nano's
	  cwd().  Fixes Savnanah bug #25297 reported by Mike Frysinger.
3452

3453
2009-01-24 Chris Allegretta <chrisa@asty.org>
3454
3455
	* First pass at some caching of caching color info.  Right now it's only for
	  multi-line regexes but this may not be enough to increase performance.
3456
3457
	* Add interruptability to search functions.  New functions enable_nodelay and
	  disable_nodelay and changes to the routines to handle checking for pending
3458
	  searches.  Fixes Savnnah bug #24946: Need interrrupt for search.
3459

3460
2009-01-19 Chris Allegretta <chrisa@asty.org>
3461
	* Change function definitions to shorts instead of (void *)s.  New mapping function
3462
	  iso_me_harder_funcmap().  Fixes compilation complaints with -pedantic,
3463
3464
	  reported by Eitan Adler <eitanadlerlist@gmail.com>.

Chris Allegretta's avatar
Chris Allegretta committed
3465
GNU nano 2.1.7 - 2008.11.10
3466

3467
3468
3469
3470
2008-10-20 Chris Allegretta <chrisa@asty.org>
	* files.c (do_writeout): Add check for file modification when saving
	  the file so the user can at least know they may be blowing away changes.

3471
3472
2008-10-14 Chris Allegretta <chrisa@asty.org>
	* nanorc.5: Fix redo man page entry and update explanation, reported by
3473
	  Eitan Adler <eitanadlerlist@gmail.com>.
3474
	* global.c (shortcut_init), search.c (search_init): Fix add_to_sclist for ^W^T so
3475
	  invalid messages will display properly.  Fixes Savannah bug #24507.
3476

3477
3478
2008-10-13 Chris Allegretta <chrisa@asty.org>
	* Remove CUTTOEND as an undo type as it's unneeded, fix u->to_end logic in undo struct.
3479
	* undo.c (update_undo): Don't free cutbuffer if NULL, fixes Savannah bug #24499.
3480

3481
2008-10-04 Chris Allegretta <chrisa@asty.org>
3482
	* cut.c (add_undo): Save last cut undo information so it can be used for
3483
	  next uncut, fixes Savannah bug #24183.
3484

Chris Allegretta's avatar
Chris Allegretta committed
3485
GNU nano 2.1.6 - 2008.10.03
3486

3487
2008-10-03 Pascal Gentil <pascal.gentil@univ-rennes1.fr>
3488
	* fortran.nanorc: Sample Fortran syntax highlighting file.
3489
3490

2008-09-30 Dirkjan Ochtman <dirkjan@ochtman.nl>
3491
	* python.nanorc: Small Python syntax update.
3492

3493
2008-09-30 <bluestorm_dylc@hotmail.com>
3494
	* ocaml.nanorc: Sample OCaml syntax highlighting file.
3495
3496

2008-09-30 Dave Geering <dgeering@toshiba-tap.com>
3497
	* objc.nanorc: Sample Objective-C syntax hightlighting file.
3498

3499
2008-09-30 Chris Allegretta <chrisa@asty.org>
3500
3501
3502
	* configure.ac: Change extra, multibuffer, color and rcfile configure options
	  to default to enabled --enable-tiny will now disable these options as well.
	* python.nanorc, ruby.nanorc: Add header lines for Python and Ruby as well.
3503

3504
2008-09-21 Chris Allegretta <chrisa@asty.org>
3505
3506
	* rcfile.c, color.c, nano.h: Add new capability for matching a syntax type by
	  the "header" (1st line) of a file being edited.  Based on Savannah bug #24197
3507
	  and initial proof of concept by Dave Geering <dgeering@toshiba-tap.com>.
3508

3509
2008-09-16 Chris Allegretta <chrisa@asty.org>
3510
3511
	* text.c: Add support for undoing a text uncut.  Split out the undo and redo
	  of a text cut in order to avoid code duplication.
3512

3513
2008-09-06 Chris Allegretta <chrisa@asty.org>
3514
3515
	* nano.c: Do call disable_signals at startup regardless, since under Cygwin
	  we can't generate ^C without it.
3516

Chris Allegretta's avatar
Chris Allegretta committed
3517
GNU nano 2.1.5 - 2008.08.30
3518

3519
2008-08-29 Chris Allegretta <chrisa@asty.org>
3520
3521
3522
3523
3524
3525
3526
3527
	* configure.ac, color.c, rcfile.c, utils.c: 1st attempt at supporting systems
	  which don't support GNU-style word boundaries.  New function fixbounds() to
	  translate from GNU-style to BSD-style, autoconf option GNU_WORDBOUNDS.
	* nano-regress: New perl script to check for some of the more obvious issues
	  with compilation issues with certain configure options.
	* global.c, help.c, browser.c, files.c, proto.h: Fix several compilation and
	  programmatic issues with --disable-help, especially that do-writeout was
	  treating ^G the same as ^M.
3528

3529
2008-08-28 Chris Allegretta <chrisa@asty.org>
3530
	* configure.ac, rcfile.c: Add support for an alternate rcfilename at configure time.  Maybe this
3531
3532
3533
	  should become a command line option some day, but I don't see the need currently.  Start of
	  fix for Savannah bug #24128: Add nanorc support to win32 platform.

3534
2008-08-21 Chris Allegretta <chrisa@asty.org>
3535
3536
3537
	* text.c: Change error messages where we may possibly get into a bad state and urge the
	  user to save when this happens.  Originally by Benno Schulenberg <bensberg@justemail.net>
	* text.c (do_enter): Fix issue when compiled with --enable-debug, fixes Savannah bug #24092.
3538

3539
2008-08-08 Magnus Granberg <zorry@ume.nu> / Adam Conrad <?>
3540
3541
	* files.c (write_file): Add needed flags to open() calls when writing out files.
	  Fixes Savannah bug #23827: Compilation fails with -D_FORTIFY_SOURCE=2.
3542

3543
2008-08-08 Chris Allegretta <chrisa@asty.org>
3544
3545
3546
3547
	* files.c (write_file): Check the exit code of fclose(), since in certain
	  out-of-space conditions the OS will happily report successful fwrite()s
	  until you try and close the file.  Fixes Savannah bug #24000: no free
	  space on partition - nano claims successful write - file is empty.
3548

Chris Allegretta's avatar
Chris Allegretta committed
3549
GNU nano 2.1.4 - 2008.08.09
3550

3551
2008-08-08 Chris Allegretta <chrisa@asty.org>
3552
3553
	* files.c (write_file): Do not go on and attempt to write the main file if writing
	  the backup file failed, related to Savannah bug #24000.
3554
	* text.c (do_redo): Fix improperly restoring the text when redoing a line split.
3555
	* text.c (add_undo): Fix check for multi-line cut check skips adding other new legit events.
3556

3557
2008-07-23 Chris Allegretta <chrisa@asty.org>
3558
	* text.c: Reset openfile-> to OTHER after an undo or redo so we don't
3559
	  mistakenly think this is an update when it's really an add.  Also
3560
3561
	  fix an extra ; after an if statement which makes nano try to free
	  a struct which may be NULL.
3562

Chris Allegretta's avatar
Chris Allegretta committed
3563
GNU nano 2.1.3 - 2008.08.04
3564

3565
2008-07-23 Chris Allegretta <chrisa@asty.org>
3566
	* configure.ac: Add ncursesw dir to include path if lib is detected.
3567

3568
2008-07-11 Mike Frysinger <vapier@gentoo.org>
3569
	* doc/nanorc.sample.in: Include the updated files in the default sample nanorc.
3570

3571
3572
2008-07-11 Fabian Groffen <grobian@gentoo.org>
	* nano.c: Don't include langinfo.h if not using ENABLE_UTF8
3573
	  (Savannah patch #6565).
3574

3575
3576
2008-07-11 Mitsuya Shibata <mty.shibata@gmail.com>
	* text.c: Fix crashing in help menu when using certain locales
3577
	  (Savannah bug #23751).
3578

3579
2008-07-09 Chris Allegretta <chrisa@asty.org>
3580
	* nano.c/nano.h/global.c/text.c: New generalized undo code, currently
3581
3582
	  just works for adding and deleting text and splitting and unsplitting lines.

3583
2008-06-29 Chris Allegretta <chrisa@asty.org>
3584
3585
	* global.c: Fix for not having a search history when --disable-justify is used
	  (Savannah bug #23733).
3586

Chris Allegretta's avatar
Chris Allegretta committed
3587
GNU nano 2.1.2 - 2008.06.24
3588

3589
3590
2008-06-24 Chris Allegretta <chrisa@asty.org>
	* rcfile.c: Added function check_bad_binding() to look for sequences which
3591
	  shouldn't be bound, per Savannah bug #22674.
3592

3593
2008-05-31 Chris Allegretta <chrisa@asty.org>
3594
3595
	* prompt.c,search.c,global.c: Tentative fix for bug #23144: using arrow
	  keys in search buffer affects main window (by Mike Frysinger).
3596

3597
2008-05-31 Chris Allegretta <chrisa@asty.org>
3598
3599
	* global.c: Fix for Savannah bug #23442: left/right arrow keys
	  do not work with --enable-tiny (by Mike Frysinger).
3600

3601
2008-05-31 Chris Allegretta <chrisa@asty.org>
3602
	* files.c,proto.h,text.c: Fix for conflicts with AIX curses
3603
	  variables, from William Jojo <jojowil@hvcc.edu>.
3604
3605

2008-05-31 Chris Allegretta <chrisa@asty.org>
3606
3607
	* global.c: Fix for compile error when --disable-speller is used
	  (Savannah bug #23227 by Mike Frysinger).
Chris Allegretta's avatar
Chris Allegretta committed
3608

3609
2008-05-31 Chris Allegretta <chrisa@asty.org>
3610
3611
	* Fix for seg fault when window size is too small,
	  by Andreas Amann <andreas.amann@tyndall.ie>.
3612

3613
GNU nano 2.1.1 - 2008.04.01
3614

3615
3616
3617
3618
3619
3620
3621
2008-05-31 Chris Allegretta <chrisa@asty.org>
	* Added the following contributed files, by owner:
	  Donnie Berkholz <dberkholz@gentoo.org>
	    * Sample awk.nanorc
	  Simon Rupf <simon.rupf@int-ag.ch>
	    * Sample css.nanorc
	  Josef 'Jupp' Schugt <jupp@rubyforge.org>
3622
	    * Sample ruby.nanorc
3623

Chris Allegretta's avatar
Chris Allegretta committed
3624
3625
3626
3627
3628
3629
2008-03-31 Chris Allegretta <chrisa@asty.org>
	* global.c: Fix for issues compiling with --enable-tiny and
	  --enable-multibuffer, as reported by Mike Frysinger.
	* files.c: Fix the fact that the insert file prompt text did not
	  properly appears in tiny mode.

3630
3631
3632
3633
2008-03-19  Benno Schulenberg <bensberg@justemail.net>
	* help.c, nano.c: Fix toggle help not being translated, fix allocation
	  issue.

3634
2008-03-19  Chris Allegretta <chrisa@asty.org>
3635
	* global.c: Fix bracket matching sequence to be M-] not M-[, as reported
3636
	  Nick Warne <nick@ukfsn.org>.
3637
3638
3639
	* doc/syntax/Makefile.am: Actually include new syntaxes from Mike, etc.
	* debian.nanorc: New debian sources.list config since we're including
	  gentoo, adapted from Milian Wolff <mail@milianw.de>.
3640
3641

2008-03-18  Mike Frysinger <vapier@gentoo.org>
3642
3643
3644
3645
3646
3647
3648
	* winio.c: Remove unneeded variable in parse_kbinput().
	* rcfile.c: Relocate check_vitals_mapped() function to just above where
	  it actually gets used and declare it "static void" in the process.
	* global.c: Only declare nano_justify_msg when justify support is enabled.
	* php.nanorc: Php syntax highlighting config.
	* tcl.nanorc: Tcl syntax highlighting config.
	* gentoo.nanorc: Gentoo syntax highlighting config.
3649

3650
2008-03-17  Benno Schulenberg <bensberg@justemail.net>
3651
	* global.c: Fix incorrect first line jump messsage, fix
3652
	  more comments to assist translators.
3653
	* winio.c: Fix shortcut labels not being translated.
3654

3655
2008-03-17  Mike Frysinger <vapier@gentoo.org>
3656
3657
	* */.gitignore: Git ignore files for those running a local git
	  against SVN.
3658

3659
2008-03-16  Benno Schulenberg <bensberg@justemail.net>
3660
	* src/help.c, src/global: Fix help strings no longer being
3661
	  translated properly.
3662
3663
	* src/global.c, doc/man/nanorc.5: Fix typos and poorly worded
	  lines in the source and man pages.
3664

3665
2008-03-04  Chris Allegretta <chrisa@asty.org>
3666
	* everything: New shortcut backend.  New structs subnfunc
3667
3668
3669
	for menu functions and toggles and sc for shortcut keys, old
	'shortcut' and 'toggles' structs are gone.  The current implementation
	has a bunch of broken stuff (some of which is documented in BUGS).
3670
3671
	Updated nanorc.5 with some mostly complete documentation on configuring.

3672
3673
2007-12-20  David Lawrence Ramsey  <pooka109@gmail.com>
	* AUTHORS, doc/faq.html: Update maintenance information.
3674
	* NEWS: Resync with NEWS from the 2.0 branch.
3675

3676
3677
3678
3679
3680
2007-12-18  David Lawrence Ramsey  <pooka109@gmail.com>
	* nano.c (print_opt_full): Use strlenpt() instead of strlen(),
	so that tabs are placed properly when displaying translated
	strings in UTF-8, as found by Jean-Philippe Guérard.

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3681
2007-12-17  David Lawrence Ramsey  <pooka109@gmail.com>
3682
3683
3684
	* configure.ac, doc/texinfo/nano.texi, nano.c (terminal_init):
	Change slang curses emulation support to turn off the same
	options as --enable-tiny, as it's hopelessly broken otherwise.
3685
	* nano.c (disable_signals, main): Simplify terminal handling by
3686
	using raw mode instead of cbreak mode.
3687
3688
3689
	* text.c (execute_command): Call terminal_init() instead of just
	disable_signals() after executing the command, as the command
	may have changed the terminal settings.
3690
3691
	* ChangeLog.pre-2.1: Add missing attribution.
	* NEWS: Resync with NEWS from the 2.0 branch.
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3692

3693
3694
3695
2007-12-10  David Lawrence Ramsey  <pooka109@gmail.com>
	* nano.c (main): Exit if initscr() fails.

3696
3697
3698
3699
2007-12-09  David Lawrence Ramsey  <pooka109@gmail.com>
	* faq.html: Add minor punctuation and wording fixes, and update
	various sections to account for Alpine.

3700
3701
3702
3703
3704
3705
2007-12-08  David Lawrence Ramsey  <pooka109@gmail.com>
	* prompt.c (do_statusbar_mouse, reset_statusbar_cursor,
	update_statusbar_line, need_statusbar_horizontal_update): Fix
	minor display and cursor placement problems when scrolling
	between pages at the statusbar prompt.

3706
3707
3708
3709
2007-12-07  David Lawrence Ramsey  <pooka109@gmail.com>
	* winio.c (get_mouseinput): Fix longstanding problem where mouse
	clicks on the statusbar prompt text wouldn't be recognized
	unless the NO_HELP flag was turned off.
3710
3711
3712
	* doc/man/rnano.1, doc/man/fr/rnano.1: Update copyright notices,
	as Thijs Kinkhorst's copyrights have now been assigned to the
	Free Software Foundation.
3713

3714
3715
3716
3717
3718
3719
2007-12-04  David Lawrence Ramsey  <pooka109@gmail.com>
	* nano.c (main), prompt.c (get_prompt_string), winio.c
	(do_replace_highlight): Per OKATA Akio's patch, with minor
	tweaks by me, add wnoutrefresh() calls after
	reset_(statusbar_)?cursor() calls, to ensure that the cursor is
	placed properly when using NetBSD curses.
3720
3721
3722
	* nano.c (disable_mouse_support, enable_mouse_support): When
	toggling mouse support on or off, save and restore the mouse
	click interval.
3723

3724
3725
3726
3727
3728
2007-11-29  Jean-Philippe Guérard <jean-philippe.guerard@tigreraye.org>
	* doc/man/fr/*.1, doc/man/fr/nanorc.5: Fix copyright notices.
	The copyrights are disclaimed on these translations, but the
	copyrights of the untranslated works also apply.

3729
3730
3731
2007-11-28  David Lawrence Ramsey  <pooka109@gmail.com>
	* doc/man/fr/nanorc.5: Remove trailing whitespace.

3732
3733
3734
3735
3736
2007-11-17  David Lawrence Ramsey  <pooka109@gmail.com>
	* files.c (read_file): Improve autodetection of DOS and Mac
	format files to not trigger on carriage returns in the middle of
	files, as found by Kjell Braden.

3737
3738
3739
3740
3741
2007-11-06  David Lawrence Ramsey  <pooka109@gmail.com>
	* doc/man/rnano.1, doc/man/fr/rnano.1: Update copyright notices,
	as Jordi Mallach's copyrights have now been assigned to the Free
	Software Foundation.

3742
3743
3744
3745
3746
2007-11-05  David Lawrence Ramsey  <pooka109@gmail.com>
	* search.c (do_gotolinecolumn): Use a clearer error message if
	we enter an invalid line or column number, per Mike Melanson's
	suggestion.

3747
3748
3749
3750
3751
3752
3753
2007-10-11  David Lawrence Ramsey  <pooka109@gmail.com>
	* doc/man/nano.1, doc/man/fr/nano.1, doc/texinfo/nano.texi,
	src/*.c, src/*.h: Update copyright notices, as Chris
	Allegretta's copyrights have now been assigned to the Free
	Software Foundation.
	* doc/man/nanorc.5, doc/man/fr/nanorc.5: Make copyright notices
	for these files consistent in style.
3754
	* files.c (cwd_tab_completion): Remove unneeded assert.
3755
3756
	* files.c (username_tab_completion, cwd_tab_completion): Rename
	variable buflen to buf_len, for consistency.
3757
3758
3759
3760
3761
	* files.c (input_tab): Disable completion of usernames,
	directories, and filenames if the cursor isn't at the end of the
	line, as it can lead to odd behavior (e.g. adding a copy of the
	entire match to the middle of the line instead of just the
	uncompleted part of the match).
3762

3763
3764
3765
3766
2007-10-05  David Lawrence Ramsey  <pooka109@gmail.com>
	* src/*.c, src/*.h: Update copyright notices, as my copyrights
	have now been assigned to the Free Software Foundation.

3767
3768
3769
3770
3771
2007-09-16  David Lawrence Ramsey  <pooka109@gmail.com>
	* winio.c (edit_scroll): Fix problem where the screen wouldn't
	be updated properly if you paged up with the first line of the
	file onscreen and the mark on.

3772
3773
3774
2007-08-26  David Lawrence Ramsey  <pooka109@gmail.com>
	* doc/faq.html: Update links to the Free Translation Project.

3775
3776
3777
3778
2007-08-23  Jean-Philippe Guérard <jean-philippe.guerard@tigreraye.org>
	* doc/man/fr/*.1, doc/man/fr/nanorc.5: Add translation of new
	licensing terms.

3779
3780
3781
3782
2007-08-23  David Lawrence Ramsey  <pooka109@gmail.com>
	* doc/man/fr/*.1, doc/man/fr/nanorc.5: Delete translation of
	old licensing terms, until it can be updated.

3783
3784
3785
3786
3787
3788
3789
3790
2007-08-22  David Lawrence Ramsey  <pooka109@gmail.com>
	* COPYING.DOC: Add a copy of the GNU FDL version 1.2.
	* Makefile.am: Add COPYING.DOC to EXTRA_DIST.
	* doc/man/*.1, doc/man/nanorc.5, doc/man/fr/*.1,
	doc/man/fr/nanorc.5, doc/texinfo/nano.texi: Relicense to the GNU
	GPL version 3 or later/the GNU FDL version 1.2 or later with no
	Invariant Sections, Front-Cover Texts, or Back-Cover Texts.

3791
2007-08-21  David Lawrence Ramsey  <pooka109@gmail.com>
3792
3793
3794
3795
	* doc/man/rnano.1, doc/man/fr/rnano.1: Add missing copyright
	notice from nano-tiny.1, which rnano.1 is based on.
	* doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1:
	Make all copyright notices consistent.
3796

3797
3798
3799
3800
3801
3802
2007-08-16  David Lawrence Ramsey  <pooka109@gmail.com>
	* files.c (do_insertfile): Properly handle more cases of
	inserting a file with the mark on.
	* nano.c (copy_from_file): Properly handle more cases of
	uncutting text with the mark on.

3803
3804
3805
3806
2007-08-15  David Lawrence Ramsey  <pooka109@gmail.com>
	* Makefile.am: Remove erroneous backslash after
	ChangeLog.pre-2.1 in EXTRA_DIST, so that "make dist" works
	again.
3807
	* files.c (do_insertfile): Make sure the mark is always properly
3808
3809
3810
	positioned after inserting a file with the mark on.
	* nano.c (copy_from_file): Make sure the mark is always properly
	positioned after uncutting multiple lines with the mark on.
3811

3812
3813
3814
3815
3816
2007-08-11  David Lawrence Ramsey  <pooka109@gmail.com>
	* COPYING: Add a copy of the GNU GPL version 3.
	* configure.ac, *.c, *.h: Relicense to the GNU GPL version 3 or
	later.

3817
2007-08-10  David Lawrence Ramsey  <pooka109@gmail.com>
3818
3819
3820
	* files.c (username_tab_completion, cwd_tab_completion,
	input_tab): Update copyright notice to account for
	modifications.
3821
3822
3823
3824
	* utils.c (ngetdelim): Simplify.
	* utils.c (ngetline, ngetdelim): Update copyright notice to
	account for modifications.

3825
3826
3827
3828
3829
3830
3831
2007-08-07  David Lawrence Ramsey  <pooka109@gmail.com>
	* nano.c (copy_from_file): Fix potential segfault, found by Paul
	Goins, after uncutting one line of text with the mark on by
	properly preserving the beginning of the mark.
	* nano.c (copy_from_file): Make sure the mark is always properly
	positioned after uncutting one line of text with the mark on.

3832
3833
3834
2007-08-01  David Lawrence Ramsey  <pooka109@gmail.com>
	* nano.c (version): Display copyright notices.

3835
2007-07-31  David Lawrence Ramsey  <pooka109@gmail.com>
3836
3837
	* configure.ac: Update copyright notice to account for
	modifications.
3838

3839
3840
3841
2007-07-29  David Lawrence Ramsey  <pooka109@gmail.com>
	* doc/faq.html: Update RPM links for nano 2.0.x.

3842
3843
3844
3845
2007-07-11  David Lawrence Ramsey  <pooka109@gmail.com>
	* files.c (copy_file): Assert that inn and out don't both point
	to the same file.

3846
3847
2007-07-10  David Lawrence Ramsey  <pooka109@gmail.com>
	* chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3848
3849
	mbrevstrcasestr): Simplify and rewrite to use the strncasecmp()
	equivalents.
3850

3851
2007-07-09  David Lawrence Ramsey  <pooka109@gmail.com>
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3852
3853
3854
	* chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
	mbrevstrcasestr): Fix typo that broke the check for needle's
	being blank.
3855
3856
3857
3858
	* chars.c (mbstrncasecmp, mbstrnlen, mbstrpbrk,
	has_blank_mbchars): Simplify by using for loops instead of while
	loops where possible, to match the single-byte versions of these
	functions.
3859
3860
3861
	* search.c (do_replace_loop): Fix problem where replacing e.g.
	single-byte characters with multibyte ones could result in
	openfile->totsize's being miscalculated.
3862

3863
3864
3865
3866
2007-07-06  David Lawrence Ramsey  <pooka109@gmail.com>
	* chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
	mbrevstrcasestr): Return char* instead of const char*.

3867
3868
2007-07-02  David Lawrence Ramsey  <pooka109@gmail.com>
	* chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3869
3870
	mbrevstrcasestr): For efficiency, return haystack/rev_start
	immediately if needle is blank.
3871

3872
3873
3874
3875
2007-07-01  David Lawrence Ramsey  <pooka109@gmail.com>
	* chars.c (nstrncasecmp, mbstrncasecmp): For efficiency, return
	zero immediately if s1 and s2 point to the same string.

3876
3877
3878
3879
2007-06-30  David Lawrence Ramsey  <pooka109@gmail.com>
	* prompt.c (do_yesno_prompt): Remove redundant check for
	NO_HELP's being FALSE.

3880
3881
3882
3883
2007-06-28  David Lawrence Ramsey  <pooka109@gmail.com>
	* browser.c (do_browser), nano.c (do_mouse), prompt.c
	(do_statusbar_mouse, do_yesno_prompt): Further simplify
	processing of mouse events by consolidating if clauses.
3884
3885
3886
	* winio.c (do_mouseinput): Return unconditionally if we get a
	mouse event that we don't deal with, instead of inside an else
	clause.
3887

3888
3889
3890
3891
3892
2007-05-29  David Lawrence Ramsey  <pooka109@gmail.com>
	* winio.c (do_mouseinput): Deal with clicks of the first mouse
	button again.  Oddly, ncurses built without --enable-ext-mouse
	needs this, but ncurses built with --enable-ext-mouse doesn't.

3893
3894
3895
2007-05-25  David Lawrence Ramsey  <pooka109@gmail.com>
	* configure.ac, nano.c (main): Replace the current hackish check
	for a UTF-8 locale with a proper call to nl_langinfo().
3896
	* winio.c (get_key_buffer): Fix inaccurate comments.
3897

3898
3899
3900
3901
3902
3903
3904
3905
3906
2007-05-22  David Lawrence Ramsey  <pooka109@gmail.com>
	* browser.c (do_browser), nano.c (do_mouse), prompt.c
	(do_statusbar_mouse, do_yesno_prompt), winio.c (do_mouseinput):
	Simplify processing of mouse events.  Instead of calling
	wenclose() to get the window a mouse event took place in and
	manually adjusting the returned coordinates to be relative to
	that window the mouse event took place in, call wmouse_trafo(),
	which does both.

3907
2007-05-20  David Lawrence Ramsey  <pooka109@gmail.com>
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3908
3909
3910
3911
	* browser.c (do_browser), nano.c (do_mouse), prompt.c
	(do_statusbar_mouse, do_yesno_prompt), winio.c (do_mouseinput):
	Fix processing of mouse events so that those we don't handle are
	ignored instead of being erroneously passed through.
3912
	* winio.c (do_mouseinput): Simplify handling of mouse events
3913
	involving the first mouse button by only dealing with releases.
3914
3915
3916
	* winio.c (do_mouseinput): Improve mouse wheel support to only
	move the cursor if we're in the edit window or on the statusbar.

3917
3918
2007-05-15  David Lawrence Ramsey  <pooka109@gmail.com>
	* winio.c (do_mouseinput): Add mouse wheel support, per Helmut
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3919
3920
	Jarausch's suggestion.  Now, if mouse support is enabled, and
	nano is using a version of ncurses compiled with the
3921
3922
3923
	--enable-ext-mouse option, rolling the mouse wheel up or down
	will move the cursor three lines up or down.

3924
3925
3926
3927
2007-04-23  David Lawrence Ramsey  <pooka109@gmail.com>
	* TODO: Add entries for fixing limitations with pasting text and
	handling bad/incomplete UTF-8 sequences.

3928
3929
3930
3931
2007-04-22  David Lawrence Ramsey  <pooka109@gmail.com>
	* text.c (backup_lines): Avoid a segfault when the mark begins
	and ends on the line after the last line of the paragraph.

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3932
2007-04-21  David Lawrence Ramsey  <pooka109@gmail.com>
3933
3934
3935
	* files.c (do_writeout): If we're in restricted mode, we're not
	allowed to write selections to files, so don't display the
	"Write Selection to File" prompt.
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3936
3937
	* files.c (do_writeout): Simplify.

3938
3939
3940
2007-04-19  David Lawrence Ramsey  <pooka109@gmail.com>
	* files.c (tail): Remove unneeded if statement.

3941
3942
3943
3944
3945
2007-04-18  John M. Gabriele  <jmg3000@gmail.com>
	* doc/faq.html: Add a new section 4.14 (with minor tweaks by
	David Lawrence Ramsey) to explain how autoindent affects pasted
	text.

3946
2007-04-18  David Lawrence Ramsey  <pooka109@gmail.com>
3947
3948
3949
	* files.c (open_file): Open files using their full paths
	whenever possible, so that ~user/file.txt and "~user/file.txt"
	are treated the same way if ~user is a user's home directory.
3950
	* files.c (real_dir_from_tilde): Simplify.
3951
3952
3953
3954
3955
	* files.c (do_writeout): Properly display the warning in all
	cases if we try to save (a) an existing file under a different
	name, or (b) a file with no name under an existing file's name.
	* files.c (do_writeout): Rename variable different_name to
	do_warning, for clarity.
3956
3957
3958
3959
3960
3961
3962
3963
	* rcfile.c (parse_include): Open files using their full paths
	whenever possible, so that ~user/file.txt and "~user/file.txt"
	are treated the same way if ~user is a user's home directory.
	* rcfile.c (parse_include): Properly check for the included
	file's being a directory, a character file, or a block file.
	* rcfile.c (parse_include): For consistency, display the
	filename as the user entered it if we can't read the specified
	file.
3964
	* winio.c (parse_kbinput): Interpret Cancel and Shift-Cancel.
3965
3966
	* winio.c (get_escape_seq_kbinput): Add missing comments.

3967
2007-04-17  David Lawrence Ramsey  <pooka109@gmail.com>
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3968
3969
3970
3971
3972
	* files.c (real_dir_from_tilde): Fix long-standing problem,
	found by Justin Fletcher, where directory names that began with
	"~", but that weren't users' home directories, could be
	erroneously treated as users' home directories (e.g. "~d/" would
	be treated as "~daemon/").
3973
	* files.c (input_tab): Don't bother checking if num_matches is
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3974
	less than zero, as it's a size_t and hence unsigned.
3975

3976
2007-04-16  David Lawrence Ramsey  <pooka109@gmail.com>
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3977
3978
3979
	* files.c (real_dir_from_tilde): Fix segfault, found by Justin
	Fletcher, when dealing with directory names that begin with "~",
	but that aren't users' home directories.
3980

3981
3982
3983
2007-04-11  Mike Frysinger  <vapier@gentoo.org>
	* doc/syntax/asm.nanorc, doc/syntax/c.nanorc,
	doc/syntax/sh.nanorc: Copy the regex that highlights trailing
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3984
3985
3986
	whitespace (with minor tweaks by David Lawrence Ramsey) from
	doc/syntax/java.nanorc to these files, as it's also useful in
	them.
3987

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3988
3989
2007-04-04  David Lawrence Ramsey  <pooka109@gmail.com>
	* AUTHORS, faq.html: Update email address.
3990
3991
	* winio.c (get_escape_seq_kbinput): Add escape sequences for
	Terminal.
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
3992

3993
3994
3995
3996
3997
3998
2007-02-01  Benno Schulenberg  <bensberg@justemail.net>
	* global.c (shortcut_init): Reword the movement shortcut
	descriptions so that they use "Go to" instead of "Move to",
	since not all of them move the cursor in the same way.
	* global.c (shortcut_init): Reword the paragraph movement
	shortcut descriptions to more accurately describe how they work.
3999
4000
4001
	* nano.c (usage): Reword the description of the -S/--smooth
	command line option in order to differentiate it from the
	associated toggle description.
4002

Jordi Mallach's avatar
Jordi Mallach committed
4003
2007-01-29  David Lawrence Ramsey  <pooka109@cox.net>
4004
4005
4006
4007
	* ChangeLog: Rework the 2.1 branch's changelog to be more
	readable, per Jordi Mallach's suggestion.
	* ChangeLog.pre-2.1: Move the 2.0 branch's changelog here, per
	Jordi Mallach's suggestion.
4008
	* Makefile.am: Add ChangeLog.pre-2.1 to EXTRA_DIST.
4009
4010
	* src/help.c (help_init): Add a missing space to the "Execute
	Command" help text.