blob: 0e7feb01c248bc3743aa751e603985558d76943f [file] [log] [blame]
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00001GNU nano 2.0.3 - 2007.01.29
2- General:
3 - Miscellaneous comment fixes. (DLR)
4 - More int -> bool conversions. (DLR)
5 - Don't install the nanorc manpages or generate their HTML
6 versions if nano is built without nanorc support. Changes to
7 configure.ac, doc/man/Makefile.am, and doc/man/fr/Makefile.am.
8 (DLR)
9 - Simplify the commands that generate HTML documentation in
10 order to remove unnecessary usage of cat. Changes to
11 doc/man/Makefile.am, doc/man/fr/Makefile.am, and
12 doc/texinfo/Makefile.am. (DLR)
13- files.c:
14 do_writeout()
15 - When setting retval to the return value of
16 write_(marked_)?file(), use the "?" operator instead of an
17 if/else clause. (DLR)
18 is_dir()
19 - Don't assign dirptr's value using buf until we've asserted
20 that buf isn't NULL. (DLR)
21 - Remove unneeded assert. (DLR)
22- proto.h:
23 - Add missing is_dir() prototype. (DLR)
24- search.c:
25 regexp_init()
26 - Don't assign rc's value via regcomp() until we've asserted
27 that regexp_compiled is FALSE. (DLR)
28- text.c:
29 do_alt_speller()
30 - Rename variable altspell_error to alt_spell_error, for
31 consistency. (DLR)
32 do_spell()
33 - Rename variable i to status, for clarity. (DLR)
34- winio.c:
35 do_credits()
36 - Update the last copyright notice to include 2007. (DLR)
37- Makefile.am:
38 - Add README.CVS to EXTRA_DIST, so that nano's CVS checkout
39 instructions aren't only available in its CVS snapshots. (DLR)
40- README:
41 - Add more miscellaneous cosmetic fixes. (DLR)
42- README.CVS:
43 - Update for the 2.0 branch of nano. (DLR)
44- NEWS:
45 - Formatting fix. (DLR)
46- m4/glib-2.0.m4:
47 - Import the latest version of this file from glib 2.10.3. (DLR)
48- doc/faq.html:
49 - Update section 4.1 to describe how to open files with names
50 beginning with '+' at specified columns as well as lines.
51 (DLR)
52- doc/man/fr/Makefile.am:
53 - Set mandir before setting man_MANS, to more closely match
54 doc/man/Makefile.am. (DLR)
55- doc/syntax/python.nanorc:
56 - Improve string highlighting regexes. (Mike Frysinger)
57
58GNU nano 2.0.2 - 2006.12.20
59- General:
60 - Miscellaneous comment fixes. (DLR)
61- browser.c:
62 do_browser()
63 - Properly handle directories that contain nulls. (DLR)
64- files.c:
65 do_insertfile()
66 - Properly handle filenames and executable commands that contain
67 nulls. (DLR)
68 write_file()
69 - Properly handle filenames that contain nulls. (DLR)
70 do_writeout()
71 - Fix a segfault when we can't get the full path of either the
72 filename we want to save under or the original filename. (DLR,
73 found by Mike Frysinger)
74- nano.h:
75 - Rename NANO_ALT_REPLACE_KEY to NANO_REPLACE_ALTKEY, for
76 consistency. (DLR)
77 - Rename NANO_ALT_.* and NANO_.*ALTKEY to NANO_META_.* and
78 NANO_.*METAKEY, for consistency. (DLR)
79- search.c:
80 update_history()
81 - Fix minor memory leak. (DLR)
82- text.c:
83 do_spell()
84 - When setting i to the return value of write_(marked_)?file(),
85 use the "?" operator instead of an if/else clause. (DLR)
86 do_verbatim_input()
87 - Fix minor memory leak. (DLR)
88- winio.c:
89 parse_kbinput()
90 - Add missing break. (DLR)
91 - Fix minor memory leak. (Itay Perl)
92 parse_verbatim_kbinput()
93 - Fix minor memory leak. (DLR)
94 edit_draw()
95 - Fix potential warnings when assigning -1 to paintlen by using
96 if/else clauses instead of "?" operators. (DLR)
97- configure.ac:
98 - Reword several option descriptions, for clarity. (DLR)
99- doc/faq.html:
100 - Add miscellaneous wording and capitalization fixes. (DLR)
101- BUGS:
102 - Add miscellaneous cosmetic fixes. (DLR)
103- README:
104 - Update for the 2.0 branch of nano. (DLR)
105
106GNU nano 2.0.1 - 2006.11.20
107- General:
108 - Miscellaneous comment fixes. (DLR)
109 - Fix copyright notices to not abbreviate the year list using a
110 range. Changes to do_credits() and all source files. (DLR)
111- files.c:
112 get_full_path()
113 - Remove unneeded assert. (DLR)
114 - Fix problem where only paths would be returned when both paths
115 and filenames should have been. (DLR)
116 do_writeout()
117 - For consistency, when saving a file with no name, don't allow
118 overwriting an existing file when in restricted mode. (DLR)
119 - Fix problem where a file could sometimes be overwritten
120 without a warning prompt. (DLR)
121- winio.c:
122 do_replace_highlight()
123 - Include the code to display zero-length matches even when
124 regex.h isn't found, as it can also be used to display
125 zero-length Unicode characters. (DLR)
126- doc/rnano.1, doc/fr/rnano.1:
127 - Add missing "(C)" to the copyright notice in the comments.
128 (DLR)
129- doc/nano.texi:
130 - Remove unneeded "." from the copyright notice in the comments.
131 (DLR)
132- NEWS:
133 - Add missing entries for nano 1.0.2 and 1.0.3, since 1.1.0
134 includes their changes. (DLR)
135
136GNU nano 2.0.0 - 2006.11.06
137- General:
138 - Miscellaneous comment fixes. (DLR)
139 - Add syntax for POV-Ray files. New file doc/syntax/pov.nanorc;
140 changes to doc/nanorc.sample.in and doc/syntax/Makefile.am.
141 (Donnie Berkholz, minor tweaks by DLR)
142- AUTHORS:
143 - Update for the 2.0 branch of nano. (DLR)
144- nano.spec.in:
145 - Update links for the 2.0 branch of nano. (DLR)
146 - Update for newer RPM-based distributions. (DLR, adapted from
147 the nano 1.3.12-1.1.spec file in Fedora Rawhide)
148 - Delete the changelog section, as it hasn't been kept up to
149 date, and all its changes are documented here in any case.
150 (DLR)
151- doc/faq.html:
152 - Update links for the 2.0 branch of nano. (DLR)
153- doc/nano.1, doc/nanorc.5, doc/rnano.1:
154 - Add minor wording fixes. (DLR)
155- doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1:
156 - Updated manpage translations by Jean-Philippe Guérard.
157- doc/nano.texi:
158 - Add minor wording and punctuation fixes. (DLR)
159
160GNU nano 1.9.99pre3 - 2006.10.25
161- chars.c:
162 nstrncasecmp()
163 - When returning, use the "?" operator instead of an if/else
164 clause. (DLR)
165- cut.c:
166 do_cut_text()
167 - When uncutting text in the process of copying it, always set
168 placewewant, as do_uncut_text() does, so that the current line
169 is always updated properly. (DLR)
170- files.c:
171 input_tab()
172 - Since the field precision operator used in the sprintf() uses
173 ints and not size_t's, replace it with two strncpy()s, which
174 use size_t's, and a null termination. (DLR)
175- help.c:
176 parse_help_input()
177 - Add 'E' and 'e' as aliases for Exit, for consistency with the
178 file browser. (DLR)
179- m4/ac_define_dir.m4:
180 - Import the latest version of this file from
181 http://autoconf-archive.cryp.to/ac_define_dir.m4. (DLR)
182- doc/faq.html:
183 - Update the question in section 4.13 to match the version of it
184 in the answer section. (DLR)
185- doc/syntax/c.nanorc:
186 - Simplify "undef", "ifn?def", "elif", and "else" in the
187 preprocessor regexes. (DLR)
188
189GNU nano 1.9.99pre2 - 2006.10.02
190- General:
191 - Miscellaneous comment fixes. (DLR)
192 - Make sure that the statusbar cursor position is always
193 properly reset when we get out of all statusbar prompts.
194 Changes to do_insertfile(), do_writeout(),
195 handle_sigwinch(), main(), and do_prompt_abort(). (DLR)
196- prompt.c:
197 do_statusbar_input()
198 - If we get a verbatim input sequence ending with Ctrl-J, remove
199 the Ctrl-J from the buffer before interpreting it as Enter, so
200 that it doesn't erroneously fall through to the edit window
201 and get interpreted as Justify. (DLR)
202- winio.c:
203 get_input()
204 - Simplify to avoid an unnecessary key_buffer_len check. (DLR)
205- doc/syntax/c.nanorc:
206 - Add "size_t" and "ssize_t" to the types regexes. (DLR,
207 suggested by Mike Frysinger)
208 - Simplify "signed" and "unsigned" in the types regexes. (DLR)
209
210GNU nano 1.9.99pre1 - 2006.08.29
211- General:
212 - Miscellaneous comment fixes. (DLR)
213 - Fix option descriptions. At least one of the two parts of
214 +LINE,COLUMN must be specified at all times; COLUMN is not the
215 only optional value. Also, fix wording problems in
216 -O/--morespace and -W/--wordbounds. Changes to usage(),
217 UPGRADE, nano.1, nanorc.5, rnano.1, nano.texi, and
218 nanorc.sample.in. (DLR)
219 - Fix mouse support so that it truly ignores everything except
220 releases and clicks of button 1. Changes to
221 enable_mouse_support() and get_mouseinput(). (DLR)
222 - In certain places, call wnoutrefresh(bottomwin) after calling
223 blank_statusbar(), in order to ensure that the statusbar is
224 actually blanked. Changes to do_help(), do_continue(),
225 handle_sigwinch(), and update_statusbar_line(). (DLR)
226 - If the mark isn't on, allow Meta-} and Meta-{ to indent and
227 unindent only the current line, just as it would if the mark
228 covered only the current line, instead of displaying a
229 statusbar message and quitting. Changes to shortcut_init(),
230 do_indent_marked() (renamed do_indent()),
231 do_indent_marked_void() (renamed do_indent_void()),
232 do_unindent_marked_void() (renamed do_unindent()), and
233 UPGRADE. (DLR, suggested by John M. Gabriele)
234 - Consolidate do_scroll_(up|down)() into do_(up|down)(), as
235 they have a lot of duplicate code. New functions do_up_void()
236 and do_down_void(); changes to shortcut_init(), do_up(),
237 do_scroll_up(), do_down(), do_scroll_down(), do_left(), and
238 do_right(). (DLR)
239 - Make Jordi's email address, and the description of what the
240 manual pages were written for, consistent in the
241 documentation. Changes to AUTHORS, nano.1, nanorc.5, and
242 rnano.1. (DLR, based on suggestions by Jordi)
243 - Don't include sys/ioctl.h in nano.c when NANO_TINY is defined,
244 as ioctl() is never used then. (DLR)
245 - Improve the display of bools in debugging statements. Changes
246 to parse_kbinput(), get_escape_seq_kbinput(),
247 parse_escape_seq_kbinput(), get_shortcut(), and get_toggle().
248 (DLR)
249 - Rename the values of the scroll_dir enum to UP_DIR and
250 DOWN_DIR, since UP is defined as a termcap value in Tru64's
251 and NetBSD 3.0's curses.h, which breaks compilation on those
252 systems. Changes to do_page_up(), do_page_down(), do_up(),
253 do_down(), nano.h, and edit_scroll(). (DLR; found by Daniel
Benno Schulenberg4a073a02017-01-04 13:48:25 +0100254 Richard G. and Adam Wysocki, respectively)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +0000255 - Rename the DISABLE_ROOTWRAP #define to DISABLE_ROOTWRAPPING.
256 (DLR)
257 - When using slang 2.x, call SLutf8_enable() with an argument of
258 1 instead of TRUE, as that's the proper way to enable its
259 UTF-8 support. Changes to main() and configure.ac. (DLR)
260 - Fix punctuation relating to "i.e." in various comments and
261 documentation. (Benno Schulenberg and DLR)
262 - Make bad_mbchar a static const char* const in chars.c, as its
263 value doesn't change. (DLR)
264 - Add various clarifications to translated strings. Changes to
265 do_insertfile_void(), shortcut_init(), toggle_init(),
266 help_init(), print_view_warning(), usage(), and do_mark().
267 (Benno Schulenberg, minor tweaks by DLR)
268 - Properly preserve the cursor position when going from the
269 "Read File" or "Save File As" prompt to the file browser to
270 the "Go To Directory" prompt, and then canceling back to the
271 "Read File" or "Save File As" prompt. Changes to
272 get_prompt_string() and do_prompt(). (DLR)
273 - Rename the parameter old_pww to pww_save in
274 need_statusbar_horizontal_update(), need_horizontal_update(),
275 need_vertical_update(), and edit_redraw(); and rename the
276 variable old_pww to pww_save in do_search() and do_research();
277 for consistency. (DLR)
278- browser.c:
279 do_browser()
280 - Refactor the mouse support, modeling it after do_mouse() for
281 consistency. (DLR)
282 - Remove unneeded call to blank_edit(). (DLR)
283 - After entering "..", select the directory we were in before
284 instead of the first filename in the list, as Pico does. (DLR)
285 - Simplify screen update handling and exiting. (DLR)
286 - Fix potential segfault when going to a directory that doesn't
287 begin with '/'. (DLR)
288 do_browse_from()
289 - During the operating directory check, if path isn't NULL,
290 don't bother freeing it before mallocstrcpy()ing operating_dir
291 into it, as the latter operation will free it. (DLR)
292 - Don't bother freeing path if it's NULL. (DLR)
293 browser_init()
294 - Fix off-by-one error when calculating longest that kept the
295 rightmost column of the screen from being used. (DLR)
296 - Calculate width here instead of in browser_refresh(), as it's
297 more consistent. (DLR)
298 - If filelist is initialized, free it here instead of in several
299 places in do_browser(). (DLR)
300 browser_refresh()
301 - Simplify. (DLR)
302 - Fix problems where translated versions of "(dir)" could be
303 truncated, and where file sizes could be too long. (DLR)
304 - For the ".." entry, display "(parent dir)" instead of "(dir)",
305 as Pico does. (DLR)
306 - If a filename is too long, truncate it and display an ellipsis
307 before it, as titlebar() does. (DLR)
308 - Add translator comments explaining the maximum intended
309 lengths of "(dir)" and "(parent dir)". (DLR)
310 - Fix problem where width wouldn't be properly initialized if
311 the file list took up one line or less. (DLR)
312 - Don't display overly long filenames with ellipses if the
313 number of columns is extremely small. (DLR)
314 browser_select_filename()
315 - New function, used to select a specific filename in the list.
316 (DLR)
317 findnextfile()
318 - Simplify the uses of tail(). (DLR)
319 striponedir()
320 - Since all the strings passed to this are dynamically
321 allocated, use null_at() to strip the directory from the
322 string. Also, return the stripped path instead of modifying
323 path. (DLR)
324- chars.c:
325 mbstrncasecmp(), mbstrcasestr(), mbrevstrcasestr()
326 - Don't allocate space for multibyte characters until we've
327 asserted that the parameters we're using aren't NULL. (DLR)
328- files.c:
329 do_insertfile()
330 - If we execute a command in a new buffer, move back to the
331 beginning of the first line of the buffer afterwards, for
332 consistency. (DLR)
333 - If we don't insert a file into a new buffer, properly update
334 the x-coordinate to account for the number of characters
335 inserted on the current line. (DLR)
336 get_full_path()
337 - Don't return NULL when the current directory doesn't exist, as
338 we can still recover from that. (DLR, found by Mike Frysinger)
339 - Add various cleanups. (DLR)
340- global.c:
341 sc_init_one(), shortcut_init()
342 - Don't include blank_after when DISABLE_HELP is defined, as
343 it's never used then. (DLR)
344 shortcut_init()
345 - Remove the ^X shortcut for CutTillEnd at the search prompt, as
346 official Pico doesn't include it, and it can be confused with
347 Exit. (DLR, suggested by Benno Schulenberg)
348 - Make the help shortcut for the "Go to Directory" prompt call
349 do_browser_help() instead of do_help_void(), as this prompt is
350 only accessible inside the file browser. (DLR, found by Benno
351 Schulenberg)
352 toggle_init()
353 - Don't include desc or blank_after when DISABLE_HELP is
354 defined, as neither are ever used then. (DLR)
355 - Make sure that a blank line is not displayed after the Meta-Q
356 toggle when mouse support is disabled and we're in restricted
357 mode, and that it is displayed all other times. (DLR)
358 toggle_init_one()
359 - Don't include desc or blank_after when DISABLE_HELP is
360 defined, as neither are ever used then. (DLR)
361- help.c:
362 do_help()
363 - Simplify screen update handling and exiting. (DLR)
364 - Don't allow moving down a page when the last line of the help
365 text is onscreen. (DLR)
366 help_init()
367 - Adjust the first two chunks of the main help text so that
368 they're no more than 509 characters again. (DLR)
369- move.c:
370 do_scroll_up(), do_scroll_down()
371 - Fix problems where, after scrolling, the previous and current
372 lines would not be updated properly if the current line was
373 not the first or last line of the edit window. (DLR, found by
374 Mike Frysinger)
375- nano.c:
376 handle_sigwinch()
377 - Just in case we're in the statusbar prompt, reset the
378 statusbar cursor position when resizing the window. (DLR)
379- nano.h:
380 - Remove the manual disabling of color support if regex.h isn't
381 found, as configure.ac now handles that. (DLR)
382- rcfile.c:
383 parse_rcfile()
384 - Add missing ENABLE_COLOR #ifdef around the second check for a
385 syntax with no color commands, to fix compilation with rcfile
386 support and without color support. (Daniel Richard G.)
387- search.c:
388 replace_regexp()
389 - Remove unnecessary casting of c to int. (DLR)
390- text.c:
391 execute_command()
392 - Remove the marking of the file as modified, as do_insertfile()
393 now handles that. (DLR)
394- utils.c:
395 digits()
396 - Tweak to remove the assumption that n is always positive,
397 although it always is in this particular case. (DLR)
398- winio.c:
399 parse_kbinput()
400 - Properly handle combined meta and escape sequences, so that
401 e.g. Meta-/ will work properly when the / is on the numeric
402 keypad and NumLock is off. Also, properly handle combined
403 control character and escape sequences, so that e.g. Esc Esc /
404 will work properly when the / is on the numeric keypad and
405 NumLock is off. (DLR)
406 - Translate extended keypad keys to their ASCII equivalents even
407 when we hit Escape once or twice before typing them, for
408 consistency. (DLR)
409 - If they're defined, translate KEY_SUP into NANO_PREVLINE_KEY
410 and KEY_SDOWN into NANO_NEXTLINE_KEY, since they are sometimes
411 generated by Shift-Up and Shift-Down. (DLR)
412 parse_escape_seq_kbinput()
413 - Handle unknown and unignored escape sequences once here
414 instead of twice in parse_kbinput(). (DLR)
415 - Don't ignore escape sequences anymore. Instead, return the
416 corresponding key so that parse_kbinput() can translate it.
417 (DLR)
418 display_string()
419 - Properly handle buf[start_index]'s being a null terminator.
420 (DLR)
421 edit_draw()
422 - Simplify the setting of paintlen. (DLR)
423 titlebar()
424 - Don't display overly long filenames with ellipses if the
425 number of columns is extremely small. (DLR)
426 - Don't display any blank space for the state if we're in the
427 file browser, as Pico doesn't. (DLR)
428- configure.ac:
429 - If regex.h isn't found, display an error message if we try to
430 enable color support. (DLR)
431 - Fix the spacing of the error message displayed when slcurses.h
432 isn't found. (DLR)
433 - If we use the --disable-wrapping option, ignore the
434 --disable-wrapping-as-root option. (DLR)
435 - Add minor cosmetic tweaks. (DLR)
436- doc/Makefile.am:
437 - Don't include nanorc.sample in EXTRA_DIST, as it's only useful
438 when we're building from source, as opposed to building a
439 distribution. (DLR)
440 - Tweak to remove usage of the += operator again. (DLR)
441- doc/man/Makefile.am:
442 - Tweak to remove usage of the += operator again. (DLR)
443- doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1:
444 - Updated manpage translations by Jean-Philippe Guérard.
445- doc/faq.html:
446 - Update section 5.3 again to not state "the latest development
447 version" before 1.3.12, as it's no longer accurate. (DLR)
448 - Add some minor spacing fixes. (DLR)
449- doc/nano.texi:
450 - Add missing description of the -O/--morespace command line
451 option. (DLR)
452- doc/syntax/c.nanorc:
453 - Since .i and .ii are preprocessed C and C++ output, colorize
454 them here. (Mike Frysinger)
455 - Remove redundancy from the file extension regexes. (DLR)
456- doc/syntax/ruby.nanorc:
457 - Add missing blank line after the first comment, for
458 consistency. (DLR)
459 - Improve highlighting of constants. (John M. Gabriele, minor
460 tweaks by DLR)
461
462GNU nano 1.3.12 - 2006.06.26
463- General:
464 - Miscellaneous comment fixes. (DLR)
465 - Implement filename searches in the file browser. New
466 functions filesearch_init(), findnextfile(),
467 findnextfile_wrap_reset(), filesearch_abort(),
468 do_filesearch(), do_fileresearch(), do_first_file(),
469 do_last_file(), do_help_void(), and do_browser_help(); changes
470 to do_browser(), parse_browser_input(), shortcut_init(),
471 do_help(), and help_init(). (DLR)
472 - Open all files in binary mode for consistency and robustness.
473 Changes to load_history() and do_rcfile(). (DLR)
474 - Change translator-specific comments in global.c and prompt.c
475 so that they show up in nano.pot, and make them all
476 consistent. (Benno Schulenberg and DLR)
477 - Reduce USE_UTF8 to a static bool in chars.c, allow nano.c to
478 set it via a function, and allow winio.c to read its value
479 when needed. New functions utf8_init() and using_utf8();
480 changes to is_alnum_mbchar(), is_blank_mbchar(),
481 is_cntrl_mbchar(), is_punct_mbchar(), control_mbrep(),
482 mbrep(), mbwidth(), mb_cur_max(), make_mbchar(),
483 parse_mbchar(), mbstrncasecmp(), mbstrcasestr(),
484 mbrevstrcasestr(), mbstrnlen(), mbstrchr(), mbstrpbrk(),
485 mbrevstrpbrk(), has_blank_mbchars(), is_valid_mbstring(),
486 main(), display_string(), and do_credits(). (DLR)
487 - Add the ability to use bold text instead of reverse video
488 text, via the -D/--boldtext command line option and the
489 "boldtext" rcfile option. Changes to browser_refresh(),
490 do_help(), usage(), main(), update_statusbar_prompt(),
491 do_yesno_prompt(), titlebar(), statusbar(), onekey(),
492 edit_draw(), do_replace_highlight(), nano.1, nanorc.5,
493 nano.texi, and nanorc.sample. (DLR, suggested by Benno
494 Schulenberg)
495 - Add the ability to use self-contained color syntaxes from
496 separate files, accessible in the nanorc via the "include"
497 command. New function parse_include(); changes to
498 parse_rcfile(), do_nanorc(), nanorc.5, and nanorc.sample.
499 (Victor Ananievsky, Brand Huntsman and DLR)
500 - Change references to the "help menu" to the "help text
501 display" refer to display, for clarity. Changes to
502 shortcut_init(), configure.ac, and faq.html. (DLR, suggested
503 by Benno Schulenberg)
504 - Adjust the shortcut list display and related mouse support to
505 not waste the last few characters of bottomwin when the screen
506 width isn't a clean multiple of the column width. Changes to
507 do_mouseinput() and bottombars(). (Benno Schulenberg, minor
508 tweaks by DLR)
509 - Add several blank entries to the main shortcut list and the
510 global toggle list, in order to make the help text easier to
511 read. Changes to sc_init_one(), toggle_init(),
512 toggle_init_one(), shortcut_init(), get_toggle(), and
513 help_init(). (DLR, suggested by Benno Schulenberg)
514 - Reduce NO_RCFILE to a static bool in nano.c, since it's only
515 used there. Changes to finish() and main(). (DLR)
516 - Readd the Cancel -> Exit aliases for the file browser and help
517 browser. New function parse_help_input(); changes to
518 parse_browser_input() and do_help(). (DLR, suggested by Benno
519 Schulenberg)
520 - Add the ability to copy text into the cutbuffer without
521 cutting it, via Meta-^ (Meta-6). Note that this is disabled
522 when NANO_TINY is defined. New functions do_cut_text_void()
523 and do_copy_text(); changes to do_cut_text(), shortcut_init(),
524 and do_input(). (DLR, suggested by Ken Tyler)
525 - Add the ability to indent and unindent all marked lines of
526 text, via Meta-} (Meta-]) and Meta-{ (Meta-[). New functions
527 do_indent_marked(), do_indent_marked_void(), and
528 do_unindent_marked_void(); changes to shortcut_init(). (Chris
529 and DLR)
530 - Change the shortcut to find the matching bracket to Ctrl-].
531 Changes to shortcut_init() and do_statusbar_input(). (DLR)
532 - Drop the Meta-] and Meta-[ aliases for Meta-} and Meta-{, and
533 change the shortcut to find the matching bracket from Ctrl-]
534 back to Meta-], since Ctrl-] is used as the telnet escape key.
535 Changes to shortcut_init() and do_statusbar_input(). (DLR,
536 found by Chris)
537 - Add the ability to move to the first and last line of the help
538 text and the first and last file in the file browser via
539 Meta-\ (Meta-|) and Meta-/ (Meta-?). Changes to do_browser(),
540 shortcut_init(), and do_help(). (DLR)
541 - Allow unjustifying if we resize the window immediately after
542 justifying, as Pico does, and make input handling across
543 resizes more consistent. Changes to handle_sigwinch(),
544 main(), get_kbinput(), parse_kbinput(), get_byte_kbinput(),
545 and get_unicode_kbinput(); removal of reset_kbinput(). (DLR)
546 - Handle statusbar blanking in two places instead of many, so
547 that it always works consistently. Changes to do_browser(),
548 do_cut_text(), do_uncut_text(), do_first_line(),
549 do_last_line(), do_page_up(), do_page_down(), do_para_begin(),
550 do_para_end(), do_para_end(), do_next_word(), do_prev_word(),
551 do_home(), do_end(), do_up(), do_scroll_up(), do_down(),
552 do_scroll_down(), do_left(), do_right(), do_indent_marked(),
553 do_verbatim_input(), and get_kbinput(). (Benno Schulenberg,
554 minor tweaks by DLR)
555 - Handle prepending of wrapped text in one place instead of
556 many, so that it always works consistently. Changes to
557 do_uncut_text(), do_insertfile(), do_page_up(),
558 do_page_down(), do_up(), do_scroll_up(), do_down(),
559 do_scroll_down(), do_input(), do_search(), do_research(), and
560 do_delete(). (DLR)
561 - Ignore unhandled meta key sequences, function keys, and escape
562 sequences, indicate it on the statusbar, and beep when we get
563 an unhandled shortcut or toggle, as Pico does. To get this to
564 work properly, add a shortcut for moving to the next
565 search/replace string. New function is_ascii_cntrl_char();
566 changes to shortcut_init(), do_input(), do_statusbar_input(),
567 get_prompt_string(), and parse_kbinput(). (DLR, suggested by
568 Nick Warne and Benno Schulenberg)
569 - Explain the mouse support in more detail, and sync the text of
570 its description across all documentation. Changes to nano.1,
571 nanorc.5, nanorc.sample, and nano.texi. (Benno Schulenberg and
572 DLR)
573 - If we're using verbatim input to enter a Unicode sequence,
574 indicate it on the statusbar, and add a translator comment
575 explaining the message. Also, refactor get_unicode_kbinput()
576 to remove redundant code. New function add_unicode_digit();
577 changes to get_unicode_kbinput() and parse_verbatim_kbinput().
578 (Benno Schulenberg, minor tweaks by DLR)
579 - Allow normal typing of high-bit control characters, as Pico
580 does. Changes to do_output() and do_statusbar_output(). (DLR)
581 - Move color regexes into separate files, make nanorc.sample
582 reference them, and make them install properly. In the
583 process, rename nanorc.sample to nanorc.sample.in, put
584 @PKGDATADIR@ at the beginning of all nanorc file paths, add
585 needed AC_DEFINE_DIR macro from the Autoconf Macro Archive at
586 http://autoconf-archive.cryp.to/ac_define_dir.m4, and make
587 configure.ac do the substitution, so that the proper paths
588 will always be used in nanorc.sample. New files
589 m4/ac_define_dir.m4, doc/syntax/Makefile.am,
590 doc/syntax/asm.nanorc, doc/syntax/c.nanorc,
591 doc/syntax/groff.nanorc, doc/syntax/html.nanorc,
592 doc/syntax/java.nanorc, doc/syntax/man.nanorc,
593 doc/syntax/mutt.nanorc, doc/syntax/nanorc.nanorc,
594 doc/syntax/patch.nanorc, doc/syntax/perl.nanorc,
595 doc/syntax/python.nanorc, doc/syntax/ruby.nanorc,
596 doc/syntax/sh.nanorc, and doc/syntax/tex.nanorc; changes to
597 configure.ac, nano.spec.in, doc/Makefile.am, and
598 m4/Makefile.am; removal of doc/nanorc.sample. (DLR)
599 - Replace usage of the bool curses_ended with the isendwin()
600 function, and remove curses_ended. Changes to do_suspend().
601 (DLR)
602 - Remove the workaround for glibc 2.2.3's broken regexec(), and
603 replace it with a FAQ entry explaining the problem, since it
604 could break anything using extended regular expressions, and
605 glibc 2.2.3 is old. Changes to configure.ac, faq.html,
606 nano.h, proto.h, and UPGRADE; removal of safe_regexec(). (DLR)
607 - Minor wording fixes to various messages. Changes to
608 load_history(), shortcut_init(), toggle_init(), usage(),
609 do_suspend(), do_input(), rcfile_error(), parse_argument(),
610 parse_rcfile(), nano.1, nano.texi, and nanorc.sample.in.
611 (Benno Schulenberg, minor tweaks by DLR and Nick Warne)
612 - Make suspension clear the screen and put the cursor on the
613 last line before displaying anything, as Pico does. New
614 functions disable_mouse_support() and enable_mouse_support();
615 changes to do_mouse(), do_suspend(), do_continue(), and
616 terminal_init(). (DLR)
617- browser.c:
618 do_browser()
619 - Reference NANO_GOTODIR_(ALT|F)?KEY instead of
620 NANO_GOTOLINE_(ALT|F)?KEY for the "Go to Directory" shortcut.
621 (DLR)
622 parse_browser_input()
623 - Remove redundant key checks. (DLR)
624 browser_refresh()
625 - Rename variable editline to line, for consistency. (DLR)
626 - Change variable i from an int to a size_t in order to match
627 selected, which it's compared against. (DLR)
628- color.c:
629 color_update()
630 - Fix incorrect setting of defcolor, which prevented the
631 reserved "default" syntax from being handled correctly. (DLR)
632- cut.c:
633 cut_to_eof()
634 - New function, containing the main functionality of
635 do_cut_till_end(). (DLR)
636 do_cut_text()
637 - Add parameter cut_till_end, to indicate when we're cutting
638 from the current cursor position to the end of the file, and
639 call cut_to_eof() when it's TRUE. (DLR)
640 do_cut_till_end()
641 - Convert to a wrapper for do_cut_text(). (DLR)
642- files.c:
643 open_file()
644 - Remove redundant wording in the error message when we try to
645 open a device file. (DLR)
646 do_insertfile()
647 - Use actual gettext calls instead of no-ops, for consistency.
648 (DLR)
649 safe_tempfile()
650 - Don't ignore $TMPDIR if it's set but blank, for consistency.
651 (DLR)
652 write_file()
653 - Don't free backupname before displaying it in a statusbar error
654 message. (DLR, found by Bill Marcum)
655 - If we can't save the backup file for some reason, at least
656 save the original file, if possible, since that's better than
657 saving nothing. (DLR, problem found by Bill Marcum, solution
658 suggested by Jordi)
659 - Clarify the error messages when creating a temporary file or
660 writing one for prepending fails. (DLR)
661 - Simplify the routine for closing the file just before we
662 indicate success on the statusbar. (DLR)
663 do_writeout()
664 - Fix problem where the modifiers at the "Write File" prompt
665 were marked for translation via gettext no-ops but never
666 actually translated. (Benno Schulenberg)
667 free_chararray()
668 - Assert that array isn't NULL, for consistency with the other
669 free_.*() functions. (DLR)
670- global.c:
671 shortcut_init()
672 - Change the cursor position display help text to use "display"
673 instead of "show", for consistency. (DLR)
674 - In the main shortcut list, move the "Refresh" shortcut down to
675 after the "Enter" shortcut, for consistency. (DLR)
676 - Add the ability to move to the first and last line of the
677 current file from the main list via Meta-\ (Meta-|) and Meta-/
678 (Meta-?). Also, make sure all the equivalent shortcuts in the
679 search, replace, and "Go To Line" lists accept both the meta
680 keys and the equivalent function keys. (DLR)
681 - Reorganize the main shortcut list to make it easier for new
682 users. It now lists the twelve Pico-compatible default
683 operations, followed by search and replace shortcuts, followed
684 by cut and paste shortcuts, followed by marking shortcuts,
685 followed by back and forth movement shortcuts, followed by
686 start and end movement shortcuts, followed by buffer-switching
687 shortcuts, followed by insertion and deletion shortcuts,
688 followed by special movement shortcuts, followed by advanced
689 word and paragraph shortcuts, followed by display shortcuts.
690 (DLR and Benno Schulenberg, suggested by Benno Schulenberg)
691 - Tweak the descriptions of some shortcut keys to make them more
692 uniform. (Benno Schulenberg, minor tweaks by DLR)
693 - Shorten the "Where is Next" shortcut name to fit on the screen
694 after adding Meta-\ (Meta-|) and Meta-/ (Meta-?). (DLR)
695 - Lengthen the "UnCut Txt" shortcut name to "UnCut Text", as
696 there's enough room to display it unabbreviated. (DLR)
697 - Clarify the descriptions of the "Search" and "Replace"
698 shortcuts, and add spaces to the "Exit" shortcut's description
699 in multibuffer mode. (Benno Schulenberg)
700 - Remove the "Go To Line" shortcut in the replace shortcut list,
701 for compatibility with Pico. (DLR)
702 toggle_init()
703 - In the global toggle list, move the "Constant cursor position
704 display" toggle up to after the "Use more space for editing"
705 toggle, for consistency. (DLR)
706 - Reorganize the global toggle list to make it easier for new
707 users. It now lists toggles that affect the way things are
708 displayed, followed by toggles that affect editing, followed
709 by toggles that have to do with peripheral things. (DLR,
710 suggested by Benno Schulenberg)
711- help.c:
712 do_help()
713 - Call get_shortcut() after getting input, so that we only have
714 to check for a main shortcut key instead of both it and all of
715 its equivalents. (DLR)
716 - Clean up the handling of NANO_REFRESH_KEY. (DLR)
717 - Remove redundant key checks. (DLR)
718 help_init()
719 - If we have at least two entries' worth of blank space, use it
720 to display more of "^Space" and "M-Space". (DLR, suggested by
721 Benno Schulenberg)
722 - Add various wording fixes. (DLR and Benno Schulenberg)
723 - If one of the help strings ends in newlines followed by a
724 space, move the space to the next help string to make it
725 easier for translators to see. (Benno Schulenberg)
726 - Make sure we have enough memory in all cases when displaying
727 the shortcut and toggle lists. (DLR)
728 - Wrap the shortcut list help text, and display it even when we
729 have fewer than 24 columns, for consistency with the toggle
730 help text. (DLR, suggested by Benno Schulenberg)
731 parse_help_input()
732 - Add Space and '-' as aliases for PageDown and PageUp, for
733 consistency with the file browser. (DLR, suggested by Benno
734 Schulenberg)
735 - Remove redundant key checks. (DLR)
736 help_line_len()
737 - Properly handle the case where we can't break the line of help
738 text. (DLR)
739 - Wrap the line of help text at (COLS - 1) instead of
740 (COLS - 8), for consistency. (DLR, suggested by Benno
741 Schulenberg)
742- nano.c:
743 print1opt_full()
744 - Rename to print_opt_full(), for consistency. (DLR)
745 usage()
746 - Fix inaccuracies in the usage example. (DLR)
747 - Put command line arguments in <>'s instead of []'s, as the
748 latter imply that the arguments are optional when they aren't.
749 (DLR, found by Benno Schulenberg)
750 renumber()
751 - Remove invalid assert. (DLR, found by Filipe Moreira)
752 do_input()
753 - Remove redundant check for allow_funcs' being TRUE when we get
754 KEY_MOUSE. (DLR)
755 - Don't blow away the cutbuffer when we get a shortcut and the
756 function associated with it is do_cut_till_end(). (DLR)
757 - Simplify the routine to preserve the cutbuffer when we call a
758 cutting or copying function associated with a shortcut. (DLR)
759- nano.h:
760 - Reorder the toggle #defines to match their corresponding order
761 in toggle_init(). (DLR)
762 - Move the #include for sys/param.h here from nano.c, and add an
763 #ifdef around it. (DLR)
764- prompt.c:
765 get_prompt_string()
766 - Include the handling of the help key even when help is
767 disabled, so that we aren't erroneously kicked out of the
768 statusbar prompt under any circumstances. (DLR, found by Benno
769 Schulenberg)
770 do_statusbar_input()
771 - Remove redundant check for allow_funcs' being TRUE when we get
772 KEY_MOUSE. (DLR)
773 - Improve the handling of NANO_REFRESH_KEY. (DLR)
774 total_statusbar_refresh()
775 - New function, called when we get NANO_REFRESH_KEY in
776 do_statusbar_input(). (DLR)
777 do_yesno_prompt()
778 - Handle the keys in a switch statement instead of a long if
779 block, for simplicity. (DLR)
780- rcfile.c:
781 parse_argument()
782 - Rename variable ptr_bak to ptr_save, for consistency. (DLR)
783 - Add double quotes around invalid string arguments in error
784 messages, for consistency. (DLR)
785 - Add single quotes around the invalid string argument in the
786 error message about unterminated strings, to avoid confusion.
787 (Benno Schulenberg)
788 parse_syntax()
789 - Don't generate an error if we find a duplicate syntax name,
790 since we might be trying to override a syntax in the global
791 nanorc with one in our local nanorc. Instead, free any
792 duplicate syntaxes we find, so that we always use the last
793 syntax with a given name. (DLR)
794 color_to_short()
795 - Add quotes around invalid string arguments in error messages,
796 for consistency. (DLR)
797 parse_colors()
798 - Check for a color command's not following a syntax line before
799 anything else. (DLR)
800 - Add quotes around invalid string arguments in error messages,
801 for consistency. (DLR)
802 parse_rcfile()
803 - Properly generate an error if we've read in a syntax without
804 any associated color commands. (DLR)
805 - Change variable i from an int to a size_t, for consistency.
806 (DLR)
807 - Properly handle rcfiles that don't end in newlines. (DLR)
808 - Add quotes around invalid string arguments in error messages,
809 for consistency. (DLR)
810 do_rcfile()
811 - Check for the rcfile's being a directory or device file and
812 reject it if it is, for consistency with file handling
813 elsewhere. (DLR)
814 - Remove SYSCONFDIR #ifdef, as SYSCONFDIR should always be set.
815 (DLR)
816 - Change all rcfile error messages to refer to commands instead
817 of directives, for consistency with nanorc.5. (DLR)
818- text.c:
819 break_line()
820 - Fix problem where tab widths in columns would always be
821 calculated as tabsize. (DLR, found by Alexey Toptygin)
822 - Handle newlines consistently when searching for the last blank
823 in the first group of blanks in the range of (goal - 1). (DLR,
824 found by Benno Schulenberg)
825 do_justify()
826 - Remove redundant key checks. (DLR)
827 do_spell()
828 - Clarify the error message when creating a temporary file
829 fails. (DLR)
830 - Set currshortcut to main_list before calling total_refresh()
831 near the end of the function, so that we don't display the
832 wrong shortcut list. (DLR)
833 do_verbatim_input()
834 - Add a translator comment explaining the "Verbatim Input"
835 statusbar message. (Benno Schulenberg)
836 - Unconditionally blank the statusbar as soon as we're finished
837 getting input. (DLR, suggested by Benno Schulenberg)
838- utils.c:
839 digits()
840 - Return the proper number of digits when n is exactly 10. (DLR)
841 - Simplify to use a for loop instead of a while loop. (DLR)
842 ngetdelim()
843 - Set errno to EINVAL if stream is not a valid file stream.
844 This matches the manual page. (DLR)
845 nperror()
846 - Simplify. (DLR)
847 check_linenumbers()
848 - Removed, as it's no longer used, and since there's no way to
849 tell if its return value will be in int or ssize_t range.
850 (DLR)
851- winio.c:
852 parse_kbinput()
853 - If we get NANO_CONTROL_8, properly handle it in all cases.
854 (DLR)
855 parse_escape_seq_kbinput()
856 - New function used to interpret escape sequences, formerly part
857 of parse_kbinput(). (DLR)
858 get_byte_kbinput()
859 - Fix typo preventing Esc Esc 3 through Esc Esc 6 from being
860 interpreted as control key sequences. (DLR)
861 - Tweak to more closely match get_unicode_kbinput(). (DLR)
862 get_control_kbinput()
863 - Add Ctrl-/ as an alias for Ctrl-_. (DLR, found by Benno
864 Schulenberg)
865 - Simplify the if blocks wherever possible. (DLR)
866 parse_verbatim_kbinput()
867 - Don't include the ability to enter a Unicode sequence via
868 verbatim input mode if ENABLE_UTF8 isn't defined or we're not
869 in a UTF-8 locale. (DLR)
870 check_statusblank()
871 - Avoid redundant updates when statusblank is 0. (DLR)
872 display_string()
873 - Properly display double-column characters if they're past the
874 first virtual page and their first column is covered by the
875 "$" displayed at the beginning of the line. (DLR)
876 statusbar()
877 - Blank the statusbar after 26 keystrokes instead of 25, for
Benno Schulenberg4a073a02017-01-04 13:48:25 +0100878 compatibility with Pico. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +0000879 edit_draw()
880 - Properly ignore zero-length regexes in multi-line regexes as
881 well as single-line ones. This avoids a segfault when trying
882 to color e.g. "start="$" end="$"". (DLR, found by Trevor
883 Caira)
884 - Don't display any statusbar message when we get a zero-length
885 regex, as we can get one under legitimate circumstances. (DLR,
886 found by Mike Frysinger)
887 update_line()
888 - Remove unneeded assert. (DLR)
889 edit_redraw()
890 - Fix problem where not all lines would be updated properly if
891 we'd scrolled off the screen and the mark was on. (DLR)
892 do_credits()
893 - Update the last copyright notice to include 2006. (DLR)
894- configure.ac:
895 - Remove old warnings about color support. (DLR)
896 - Remove conditional header checks for fcntl.h and termios.h, as
897 nano won't build without them, and add conditional header
898 check for sys/param.h, as some systems need only limits.h.
899 (DLR)
900- doc/faq.html:
901 - Add a new section 4.4, and move all section 4 entries after it
902 down one number, to explain how to deal with problems typing
903 Meta-[. (DLR)
904 - Add a new section 4.5, and move all section 4 entries after it
905 down one number, to explain a problem that can occur when
906 holding down keys to generate Meta sequences. (Benno
907 Schulenberg, minor tweaks by DLR)
908 - Add a few capitalization and wording fixes. (DLR)
909 - Remove section 4.4, and move all section 4 entries after it up
910 one number, since it no longer applies. Meta-] and Meta-[ are
911 no longer used to indent and unindent marked text, since they
912 require that the bracket matching key change to Ctrl-], which
913 is used as the telnet escape key. (DLR, found by Chris)
914 - Make the link to the nano CVS page a bit more readable. (DLR)
915 - Update section 3.8 to mention the new "Unicode Input" prompt,
916 and how Unicode input only works when Unicode support is
917 enabled. (DLR)
918 - Add minor punctuation, wording, and typo fixes. (DLR)
919 - Update section 5.3, due to the display fix for two-column
920 Unicode characters. (DLR)
921- doc/nano.1:
922 - Update the copyright years to include 2006. (DLR)
923 - Explicitly mention that all regexes should be extended regular
924 expressions. (DLR, suggested by John M. Gabriele)
925 - Miscellaneous minor fixes. (DLR)
926 - Add various wording fixes. (Benno Schulenberg and DLR)
927 - Put command line arguments in <>'s instead of []'s, as the
928 latter imply that the arguments are optional when they aren't.
929 (Benno Schulenberg)
930- doc/nanorc.5:
931 - Update the copyright years to include 2006. (DLR)
932 - Explicitly mention that all regexes should be extended regular
933 expressions. (DLR, suggested by John M. Gabriele)
934 - Miscellaneous minor fixes. (DLR)
935 - Add various wording fixes. (Benno Schulenberg and DLR)
936 - Mention that the nanorc file should not be in DOS or Mac
937 format. (DLR)
938- doc/rnano.1:
939 - Update the copyright years to include 2006. (DLR)
940 - Explicitly mention that all regexes should be extended regular
941 expressions. (DLR, suggested by John M. Gabriele)
942 - Miscellaneous minor fixes. (DLR)
943 - Add various wording fixes. (Benno Schulenberg and DLR)
944 - Add description of the +LINE[,COLUMN] option. (DLR)
945- doc/nano.texi:
946 - Update the copyright years to include 2006. (DLR)
947 - Explicitly mention that all regexes should be extended regular
948 expressions. (DLR, suggested by John M. Gabriele)
949 - Miscellaneous minor fixes. (DLR)
950 - Add various wording fixes. (Benno Schulenberg and DLR)
951 - Change license to GPL, in order to match the rest of the
952 documentation, and because the current license is incompatible
953 with everything else in any case. (DLR)
954 - Mention that backup files and spell checking are disabled in
955 restricted mode, as rnano.1 does. (DLR)
956 - Add minor updates to put some text back in sync with nano's
957 help text, and with nano's current feature set. (DLR)
958 - Add a "Nanorc Files" section to explain the nanorc file format
959 in detail, using text from nanorc.5. (DLR)
960 - Put command line arguments in <>'s instead of []'s, as the
961 latter imply that the arguments are optional when they aren't.
962 (Benno Schulenberg)
963 - Add missing description of -H/--historylog, and move
964 -x/--nohelp down so that all the command line options are in
965 alphabetical order. (Benno Schulenberg)
966 - Change all occurrences of "file name" to "filename". (Benno
967 Schulenberg)
968- doc/man/Makefile.am:
969 - Simplify the setting of SUBDIRS. (DLR)
970- doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1:
971 - Updated manpage translations by Jean-Philippe Guérard.
972- doc/nanorc.sample:
973 - Miscellaneous minor fixes. (DLR and Benno Schulenberg)
974 - Tweak the "c-file" regex for characters to accept '"' again,
975 as it's apparently valid, and simplify it. (DLR)
976 - Simplify the "shellscript" regex for command line options.
977 (DLR)
978 - Replace instances of \" with ", since quotes inside string
979 parameters don't need to be escaped with backslashes. (DLR)
980 - Mention in the comments that more than one start/end regex can
981 be included per line. Also, change the comment for the
982 "whitespace" option so that the hexadecimal character values
983 are six digits long, and state which character values work
984 with which encodings. (DLR)
985 - Add sample regexes for Python. (singular on the Gentoo forums,
986 http://forums.gentoo.org/viewtopic.php?t=86562; minor tweaks
987 by DLR, suggested by John M. Gabriele)
988 - Explicitly mention that all regexes should be extended regular
989 expressions. (DLR, suggested by John M. Gabriele)
990 - Simplify the "nanorc" regex for commands. (DLR)
991 - Mention that the nanorc file should not be in DOS or Mac
992 format. (DLR)
993 - Add various wording fixes. (Benno Schulenberg and DLR)
994 - Replace instances of "\w" with its equivalent "[0-9A-Z_a-z]",
995 and instances of "\W" with its equivalent "[^0-9A-Z_a-z]", for
996 greater readability. (DLR)
997 - Remove unneeded foreground color for the Java source regex
998 used to highlight trailing whitespace, since we now support
999 background colors without foreground colors. (DLR)
1000 - Further simplify the "groff" regexes. (DLR)
1001 - Tweak the "shellscript" regexes to properly color all special
1002 variables, such as $? and $@. (Benno Schulenberg)
1003 - Tweak the "nanorc" regexes to color keywords bright green
1004 instead of cyan, and comments bright blue instead of blue.
1005 (John M. Gabriele)
1006 - Simplify the extensions associated with the "nanorc" regexes.
1007 (DLR)
1008 - Add regexes for Ruby. (John M. Gabriele, minor tweaks by DLR)
1009- doc/nanorc.sample.in:
1010 - Add comments describing the relationships between syntax file
1011 names and the names used as their short descriptions. (John M.
1012 Gabriele)
1013- doc/java.nanorc:
1014 - Simplify a comment. (DLR)
1015- doc/man.nanorc:
1016 - Change the name of the "manpage" regexes to "man", for
1017 consistency. (John M. Gabriele)
1018- doc/nanorc.nanorc:
1019 - Tweak the "nanorc" regexes to color comments starting with a
1020 double ## cyan instead of bright blue. (John M. Gabriele)
1021- doc/ruby.nanorc:
1022 - Add regex for "here" docs. (John M. Gabriele)
1023- doc/sh.nanorc:
1024 - Tweak the regex for special variables, moving "-" to the end,
1025 to avoid excessive coloring or an "Invalid range end" error.
1026 (Benno Schulenberg)
1027 - Tweak the "sh" regexes to color comments cyan instead of
1028 yellow. (John M. Gabriele)
1029- src/Makefile.am:
1030 - If we're uninstalling, remove the "rnano" symlink. (DLR, found
1031 by Benno Schulenberg)
1032 - Remove "-Iintl" from INCLUDES, as we don't use an intl
1033 directory inside the source directory anymore. (DLR)
1034- README, README.CVS:
1035 - Add various cosmetic and wording improvements. (John M.
1036 Gabriele, minor tweaks by DLR)
1037- TODO:
1038 - Update for nano 2.0, since we're now in a feature freeze.
1039 (DLR)
1040- UPGRADE:
1041 - Miscellaneous minor fixes. (DLR)
1042 - Update for nano 2.0, since we're now in a feature freeze.
1043 (DLR)
1044
1045GNU nano 1.3.11 - 2006.03.30
1046- General:
1047 - Miscellaneous comment fixes. (DLR)
1048 - Remove unnecessary #ifdef around termios.h #include in nano.c.
1049 (DLR)
1050 - Sort the default strings for brackets and punct, and the "or"
1051 atom in the default regex string for quotestr, according to
1052 ASCII. Changes to main(), nano.1, nanorc.5, and
1053 nanorc.sample. (DLR)
1054 - Rework the bracket searching code to handle multibyte bracket
1055 characters, and allow specifying matching bracket characters
1056 other than the default via the "matchbrackets" rcfile option.
1057 New functions mbstrpbrk() and mbrevstrpbrk(); changes to
1058 find_statusbar_bracket_match(), do_statusbar_find_bracket(),
1059 find_bracket_match(), do_find_bracket(), main(),
1060 parse_rcfile(), nanorc.5, and nanorc.sample. (DLR)
1061 - Rework input parsing in the file browser to be more flexible.
1062 New function parse_browser_input(); changes to do_browser().
1063 (DLR)
1064 - Allow tab completion of directories at the "Go To Directory"
1065 prompt. Also, move the browser drawing routines to a separate
1066 function, and make sure it's used when refreshing or doing tab
1067 completion at the prompt in the file browser. New function
1068 browser_refresh(); changes to do_browser(), browser_init(),
1069 do_insertfile(), do_writeout(), cwd_tab_completion(),
1070 input_tab(), do_statusbar_input(), get_prompt_string(),
1071 do_prompt(), search_init(), do_replace(), do_gotolinecolumn(),
1072 and do_int_spell_fix(). (DLR)
1073- browser.c:
1074 do_browser()
1075 - Properly set currshortcut back to the file browser shortcut
1076 list after a "Go To Directory" prompt, and properly restore
1077 the file list display after returning from the help browser at
1078 the "Go To Directory" prompt. (DLR)
1079 - Rename variable j to i, for consistency. (DLR)
1080 - Make fileline, old_selected, and the static selected size_t's,
1081 since the first and second can hold the value of the third,
1082 and the first can be that large. (DLR)
1083- chars.c:
1084 mbstrchr()
1085 - Make parameter c const. (DLR)
1086- files.c:
1087 do_writeout()
1088 - Remove unneeded setting of currshortcut. (DLR)
1089 is_dir()
1090 - Rename parameter ret to retval, for consistency. (DLR)
1091- global.c:
1092 shortcut_init()
1093 - Remove erroneous handling of the "Get Help" shortcut in the
1094 file browser shortcut list. (DLR)
1095- nano.h:
1096 - Remove now-unneeded VERMSG #define. (DLR)
1097- prompt.c:
1098 get_prompt_string()
1099 - Redraw the prompt and set finished to FALSE when NANO_HELP_KEY
1100 is pressed, so that we don't leave the prompt, enter the help
1101 browser, and restart the prompt after leaving it. This will
1102 properly preserve the cursor position after doing the last of
1103 these. (DLR)
1104- utils.c:
1105 ngetdelim()
1106 - Do sanity checks manually again instead of in an assert, and
1107 set errno to EINVAL as well as return -1 if they fail. This
1108 matches the manual page. (DLR)
1109- winio.c:
1110 get_key_buffer()
1111 - If we fail to get a character MAX_BUF_SIZE times in a row,
1112 hang up regardless of the value of errno. This fixes a
1113 problem where nano doesn't terminate properly under xterm if
1114 the user su's to root, runs nano, and then closes the terminal
1115 window. errno isn't set properly to EIO then. (DLR, found by
1116 John <acocaracha@gmail.com>)
1117 parse_kbinput()
1118 - Interpret Shift-Begin, Shift-Delete, Shift-End, Shift-Home,
1119 Shift-Insert, and Shift-Suspend as Begin, Delete, End, Home,
1120 Insert, and Suspend, respectively, regardless of whether
1121 --rebindkeypad is used. (DLR, found by David Benbennick)
1122 titlebar()
1123 - Use PACKAGE_STRING, as defined by autoconf, instead of VERMSG.
1124 (DLR)
1125 edit_redraw()
1126 - If either current or old_current is offscreen, we're not on
1127 the first page, and/or we're not on the same page as before,
1128 update old_current before scrolling the edit window. This
1129 fixes a potential display problem when a search moves the
1130 cursor offscreen and onto a different page. (DLR, found by
1131 Mike Frysinger)
1132 display_string()
1133 - Fix minor memory leak. (DLR)
1134 - Fix memory corruption problems caused by not allocating enough
1135 space for converted when a line ends in a tab(s) and we're not
1136 in UTF-8 mode. (DLR, found by Duncan Geoffry Doyle, Nick
1137 Warne, and Mike Frysinger)
1138- doc/faq.html:
1139 - Update the Free Translation Project's address, change the
1140 character set to UTF-8, and remove broken links to contributed
1141 RedHat nano packages. (DLR)
1142- doc/nano.1:
1143 - Better display the default values for quotestr. (DLR)
1144- doc/nanorc.5:
1145 - Give the default values for the brackets and punct options,
1146 and better display the default values for quotestr. (DLR)
1147 - Mention that quotes inside string parameters don't need to be
1148 escaped with backslashes. (John M. Gabriele, minor tweaks by
1149 DLR)
1150- doc/rnano.1:
1151 - Remove unneeded comments. (DLR)
1152- doc/nanorc.sample:
1153 - Remove unneeded comment. (DLR)
1154 - Mention that quotes inside string parameters don't need to be
1155 escaped with backslashes. (John M. Gabriele, minor tweaks by
1156 DLR)
1157- THANKS:
1158 - Add new Swedish translator.
1159
1160GNU nano 1.3.10 - 2005.12.23
1161- General:
1162 - Miscellaneous comment fixes. (DLR)
1163 - More int -> bool conversions. (DLR)
1164 - Add the ability to scroll up or down single lines without
1165 scrolling the cursor, via Meta-- and Meta-+. Note that this
1166 is disabled when NANO_SMALL is defined. New functions
1167 do_scroll_up() and do_scroll_down(); changes to
1168 shortcut_init(). (DLR, suggested by Mike Frysinger)
1169 - Properly handle mouse clicks on the statusbar prompt text.
1170 New functions statusbar_xplustabs() and
1171 get_statusbar_page_start(); changes to do_statusbar_mouse(),
1172 nanoget_repaint(), nanogetstr(), and statusq(). (DLR)
1173 - Since the statusbar prompt code needs at least 4 columns in
1174 order to work properly, make that the minimum number of
1175 columns that nano requires in order to run, and remove
1176 assertions and code that make use of a smaller number of
1177 columns. Changes to window_init(), nanoget_repaint(),
1178 titlebar(), statusbar(), and get_page_start(). (DLR)
1179 - Move get_page_start(), xplustabs(), actual_x(), strnlenpt(),
1180 strlenpt(), check_linenumbers(), dump_buffer(), and
1181 dump_buffer_reverse() from winio.c to utils.c, as they're
1182 really utility functions. (DLR)
1183 - Add missing stdio.h #include to text.c and winio.c, and remove
1184 unneeded sys/wait.h #include from files.c. (DLR)
1185 - Move functions specific to the statusbar prompt to their own
1186 source file, adjust related variables accordingly, and rename
1187 variable resetstatuspos reset_statusbar_x. New file prompt.c;
1188 changes to do_statusbar_input(), do_statusbar_mouse(),
1189 do_statusbar_output(), do_statusbar_home(),
1190 do_statusbar_end(), do_statusbar_right(), do_statusbar_left(),
1191 do_statusbar_backspace(), do_statusbar_delete(),
1192 do_statusbar_cut_text(), do_statusbar_next_word(),
1193 do_statusbar_prev_word(), do_statusbar_verbatim_input(),
1194 statusbar_xplustabs(), get_statusbar_page_start(),
1195 nanoget_repaint(), nanogetstr(), statusq(), statusq_abort(),
1196 and do_yesno() (all moved to prompt.c). (DLR)
1197 - Move functions specific to the help browser to their own
1198 source file, and adjust related variables accordingly. New
1199 file help.c; changes to help_init(), help_line_len(), and
1200 do_help() (all moved to help.c). (DLR)
1201 - Tweak a few functions to remove the assumption that the file
1202 always ends in a magicline. Changes to cut_line(),
1203 do_cut_till_end(), open_buffer(), read_file(), write_file(),
1204 do_last_line(), do_para_end(), do_wrap(), backup_lines(),
1205 find_paragraph(), do_justify(), do_alt_speller(), and
1206 do_wordlinechar_count(). (DLR)
1207 - Tweak a few functions to rely on fileage and filebot instead
1208 of NULL for their checks to detect the top or bottom of the
1209 file. Changes to cut_line(), cut_to_eol(), do_page_up(),
1210 do_page_down(), do_para_end(), do_next_word(), do_prev_word(),
1211 do_up(), do_down(), do_scroll_down(), do_right(), do_mouse(),
1212 do_gotolinecolumn(), do_delete(), begpar(), find_paragraph(),
1213 do_wrap(), remove_magicline(), and edit_scroll(). (DLR)
1214 - Add new -L/--nonewlines command line option, and new
1215 "nonewlines" rcfile option, to control whether nano adds
1216 magiclines to the ends of files. Changes to read_file(),
1217 write_marked_file(), move_to_filestruct(),
1218 copy_from_filestruct(), usage(), do_output(), main(),
1219 do_replace_loop(), do_delete(), do_int_spell_fix(),
1220 do_alt_speller(), nano.1, nanorc.5, nano.texi, and
1221 nanorc.sample. (DLR, suggested by Jaime
1222 <re2823@Safe-mail.net>)
1223 - Move functions specific to the file browser to their own
1224 source file, and adjust related variables accordingly. New
1225 file browser.c; changes to striponedir(), browser_init(),
1226 do_browser(), and do_browse_from() (all moved to browser.c).
1227 (DLR)
1228 - Add the statusbar prompt's equivalent of placewewant,
1229 statusbar_pww, to prompt.c, and convert its functions to use
1230 it. New functions reset_statusbar_cursor() and
1231 need_statusbar_horizontal_update(); changes to
1232 do_statusbar_mouse(), do_statusbar_output(),
1233 do_statusbar_home(), do_statusbar_end(), do_statusbar_right(),
1234 do_statusbar_left(), do_statusbar_delete(),
1235 do_statusbar_cut_text(), do_statusbar_next_word(),
1236 do_statusbar_prev_word(), do_statusbar_verbatim_input(),
1237 nanoget_repaint() (renamed update_statusbar_line()),
1238 nanogetstr() (renamed get_prompt_string()), statusq() (renamed
1239 do_prompt()), statusq_abort() (renamed do_prompt_abort()), and
1240 do_yesno() (renamed do_yesno_prompt()). (DLR)
1241 - Initialize the static pid_t pid in text.c to -1. (DLR)
1242 - Fix copyright years on source files. All functions in
1243 browser.c were originally added in 2001; the oldest function
1244 in color.c is do_colorinit() (now color_init()), which was
1245 originally added in 2001; the oldest function in chars.c is
1246 revstrstr(), which was originally added in 2001; the oldest
1247 function in help.c is do_help(), which was originally added in
1248 2000; the oldest function in prompt.c is statusq() (now
1249 do_prompt()), which was originally added before 0.6.6, which
1250 was apparently in 1999; all functions in rcfile.c were
1251 originally added in 2001; one of the oldest functions in
1252 search.c is do_search(), which was originally added in 0.2.7,
1253 which was apparently in 1999; and one of the oldest functions
1254 in text.c is do_wrap(), which was originally added in 0.3.1,
1255 which was apparently in 1999. (DLR)
1256 - For functions originally adapted from other sources, add
1257 notices from the original files, as we do with the tab
1258 completion functions adapted from busybox, updating the Free
1259 Software Foundation's address as needed. Also, invoke LGPL
1260 clause 3 to convert the LGPLed ngetdelim() and ngetline()
1261 functions to use the GPL instead. This is done so that we
1262 don't have to include a copy of the LGPL, and because the
1263 changes made to integrate these functions with nano make them
1264 dependent on nano's GPLed functions and hence useless
1265 elsewhere. (DLR)
1266 - Don't install the localized versions of the manpages if
1267 nano is built with --disable-nls. Changes to Makefile.am and
1268 doc/man/Makefile.am. (Mike Frysinger)
1269 - Rename the NANO_SMALL #define to NANO_TINY. (DLR)
1270 - Overhaul the bracket searching code so that it no longer
1271 requires regex support to work. New functions revstrpbrk()
1272 and find_bracket_match(); changes to shortcut_init() and
1273 do_find_bracket(). (DLR)
1274 - Add the ability to do bracket searches at the statusbar
1275 prompt. New functions find_statusbar_bracket_match() and
1276 do_statusbar_find_bracket(); changes to do_statusbar_input().
1277 (DLR)
1278 - Beep whenever we can't read a file or directory and have to
1279 indicate it on the statusbar, as Pico does. Changes to
1280 do_browser(), open_file(), and write_file(). (DLR)
1281 - Adjust copyright notices in all source files to account for
1282 Chris' reassigning the 2005-2006 copyright on nano to me.
1283 Changes to do_credits(). (DLR)
1284 - Readd RETSIGTYPE return types for signal handlers, since any
1285 problems with its being defined as the wrong type aren't
1286 nano's fault. Changes to handle_hupterm(), do_suspend(),
1287 do_continue(), handle_sigwinch(), and cancel_command(). (DLR)
1288 - Since proto.h includes nano.h, and nano.h includes config.h
1289 first, include proto.h first and remove redundant includes of
1290 config.h in all non-header source files. (DLR)
1291 - Refer to the Enter key instead of the Return key for
1292 consistency. Changes to load_history() and rcfile_error().
1293 (DLR)
1294- browser.c:
1295 do_browser()
1296 - When setting the width of each file, use the "?" operator
1297 instead of an if/else clause. (DLR)
1298- chars.c:
1299 mbwidth()
1300 - If wcwidth() returns -1 for the character passed in, treat the
1301 character as having the width of Unicode U+FFFD (Replacement
1302 Character) instead of having a width of zero, since display
1303 problems can crop up with the latter approach. (DLR)
1304 mbstrchr()
1305 - Detect the case where the character isn't found in the string
1306 more accurately. (DLR)
1307- cut.c:
1308 cut_line()
1309 - Since placewewant will always be zero after the line is cut,
1310 set it to zero directly instead of assigning it the value of
1311 xplustabs(). (DLR)
1312- files.c:
1313 read_file()
1314 - Remove apparently unneeded logic to handle a case where
1315 current is NULL, since it shouldn't be NULL there. (DLR)
1316 get_next_filename()
1317 - Store the value of digits(ULONG_MAX) in a static, since it
1318 doesn't change and hence doesn't need to be recalculated.
1319 (DLR)
1320- global.c:
1321 shortcut_init()
1322 - Change the description of the Meta-] shortcut to "Find
1323 matching bracket", as it's clearer. (DLR)
1324- nano.c:
1325 version()
1326 - If DISABLE_WRAPPING is defined, the code in DISABLE_ROOTWRAP
1327 #ifdefs isn't included, so don't display
1328 "--disable-wrapping-as-root" in that case. (DLR)
1329 do_cont()
1330 - Rename to do_continue(), and rename parameter s to signal, for
1331 consistency. (DLR)
1332 do_verbatim_input()
1333 - Move to text.c, since it's an advanced text-based operation.
1334 (DLR)
1335- nano.h:
1336 - Readd MIN_EDITOR_COLS #define, set to 4. (DLR)
1337- proto.h:
1338 - Remove now-unused externs for currslen, shortcut_list,
1339 fileinfo, syntaxfile_regexp, and synfilematches. (DLR)
1340- prompt.c:
1341 do_statusbar_input()
1342 - Fix misplaced break when handling NANO_VERBATIM_KEY. (DLR)
1343 reset_statusbar_cursor()
1344 - Fix cursor placement problem by modeling the code more closely
1345 after reset_cursor(). (DLR)
1346 get_prompt_string()
1347 - Adjust #ifdefs to leave out disabled keys entirely instead of
1348 keeping enough code to just ignore them. (DLR)
1349- rcfile.c:
1350 do_rcfile()
1351 - Remove unneeded assert. (DLR)
1352- search.c:
1353 search_abort()
1354 - Rename to search_replace_abort(). (DLR)
1355 findnextstr()
1356 - Remove parameter can_display_wrap, as it's always set to TRUE
1357 now, and rename parameter wholeword to whole_word, for
1358 consistency. (DLR)
1359 - Only include the whole_word parameter when DISABLE_SPELLER
1360 isn't defined, as it's only used then. (DLR)
1361 replace_abort()
1362 - Replace with search_replace_abort(), since it does the same
1363 things that this function does. (DLR)
1364 do_replace_loop()
1365 - Change order of parameters to more closely match those of
1366 findnextstr(), and rename parameter wholewords to whole_word,
1367 for consistency. (DLR)
1368 - Only include the whole_word parameter when DISABLE_SPELLER
1369 isn't defined, as it's only used then. (DLR)
1370- text.c:
1371 execute_command()
1372 - Instead of hardcoding /bin/sh as the shell to use when
1373 executing a command, use $SHELL, and only fall back to /bin/sh
1374 if $SHELL isn't set. (DLR)
1375 do_wrap()
1376 - Rename variable wrapping to prepending, to avoid confusion,
1377 and rename the static bool same_line_wrap to prepend_wrap to
1378 match. (DLR)
1379 - Properly add a new magicline when needed if, in the process of
1380 wrapping, we prepend text to the last line of the file. (DLR)
1381 break_line()
1382 - Only include the newline parameter if DISABLE_HELP isn't
1383 defined, as it's only used then. (DLR)
1384 - In the surrounding #ifdef, replace the combination of
1385 !DISABLE_JUSTIFY and !DISABLE_WRAPPING with
1386 !DISABLE_WRAPJUSTIFY, for consistency. (DLR)
1387 begpar()
1388 - Return FALSE if foo is NULL, as inpar() does. (DLR)
1389 backup_lines()
1390 - Return void instead of a pointer to the copy of the first
1391 line, since current will point to the same location after the
1392 text is copied and so can be used instead of the old return
1393 value. (DLR)
1394 - Remove unused quote_len parameter. (DLR)
1395 do_justify()
1396 - Don't save current_y and restore it if the user unjustifies,
1397 as the reset_cursor() called by edit_refresh() after restoring
1398 edittop and current will ensure that current_y is restored to
1399 its original value. (DLR)
1400 - Renumber after justifying each individual paragraph, since
1401 find_paragraph() needs the line numbers to be right as well as
1402 edit_refresh(). This fixes a potential segfault when doing
1403 full justify with auto-indent turned on. (DLR)
1404 do_alt_speller()
1405 - Move the code that replaces the text of the current file with
1406 the text of the spell-checked file into its own function,
1407 replace_buffer(). (DLR)
1408- utils.c:
1409 parse_line_column()
1410 - Simplify parsing of the column number. (DLR)
1411 ngetdelim()
1412 - Do sanity checks in an assert instead of checking them
1413 manually and returning -1 if they fail. (DLR)
1414 is_whole_word()
1415 - Only include when DISABLE_SPELLER isn't defined, as it's only
1416 used then. (DLR)
1417 get_page_start()
1418 - Fix test so that we scroll through the line in 8-character
1419 chunks when COLS is greater than 8, not when COLS is greater
1420 than 9. (DLR)
1421 remove_magicline()
1422 - Add assert. (DLR)
1423- winio.c:
1424 nanoget_repaint()
1425 - Rename parameter inputbuf to buf, for consistency. (DLR)
1426 reset_cursor()
1427 - Rename variable x to xpt, to avoid confusion. (DLR)
1428 update_line()
1429 - Remove now-unneeded logic that set the index parameter to zero
1430 if the fileptr parameter didn't point to current. (DLR)
1431 edit_add()
1432 - Rename to edit_draw(), and rename parameter yval to line.
1433 (DLR)
1434 do_cursorpos()
1435 - Remove unneeded assert. (DLR)
1436 do_yesno()
1437 - Make mouse clicks on the Yes/No/All shortcuts work properly
1438 when the MORE_SPACE flag is set. (DLR)
1439- configure.ac:
1440 - Clarify description of --disable-speller. (DLR)
1441 - Disable wrapping entirely when --enable-tiny is used, as it
1442 matches the FAQ, it makes nano even smaller, and it eliminates
1443 the need for --disable-wrapping-as-root in that case (in which
1444 it's impossible to turn wrapping back on without nanorc
1445 support). (DLR)
1446- README.CVS:
1447 - Mention that the minimum required version of texinfo is 4.0,
1448 since that's the first version that supports generating HTML.
1449 (DLR)
1450 - Mention that the minimum required version of groff is 1.12,
1451 since that's the first version that supports generating HTML.
1452 (DLR)
1453 - Update the given cvs commands so that they work again. (DLR)
1454- doc/faq.html:
1455 - Add a new section 5.3 to explain the status of nano's Unicode
1456 support. (Mike Frysinger, minor tweaks by DLR)
1457 - Clarify section 5.3 to better explain how to enable Unicode
1458 support, and remove the mention of quirks, since they turned
1459 out to not be a nano problem. (Mike Frysinger and DLR)
1460- doc/nano.1:
1461 - Make one non-bold instance of "nano" bold, for consistency.
1462 (DLR)
1463- doc/man/fr/nano.1, doc/man/fr/nanorc.5:
1464 - Updated manpage translations by Jean-Philippe Guérard.
1465- doc/rnano.1:
1466 - Add rnano.1 manpage from Thijs Kinkhorst. (Jordi) DLR: Merge
1467 a few minor updates from nano.1.
1468- doc/nano.texi:
1469 - Fix inconsistent wording and punctuation. (DLR)
1470 - Add missing configure options. (Mike Frysinger, minor tweaks
1471 by DLR)
1472 - Sort the configure options more consistently, and add missing
1473 --disable-utf8 option. (DLR)
1474 - Move --disable-wrapping above --enable-tiny, as the latter now
1475 turns it on. (DLR)
1476- doc/nanorc.sample:
1477 - Tweak the "c-file" regex for characters to properly accept
1478 '\"' and reject '"' and '''. (DLR)
1479- doc/texinfo/Makefile.am:
1480 - Automatically generate an HTML version of the info page,
1481 nano.html. (DLR)
1482- src/Makefile.am:
1483 - Add browser.c, help.c, and prompt.c to nano_SOURCES. (DLR)
1484
1485GNU nano 1.3.9 - 2005.10.23
1486- General:
1487 - Miscellaneous comment fixes. (DLR)
1488 - More int -> bool conversions. (DLR)
1489 - Fix a few last instances of the current line number's being
1490 saved as an int instead of a ssize_t. Changes to
1491 renumber_all(), renumber(), do_alt_speller(), and
1492 backup_lines(). (DLR)
1493 - Reorder some functions for consistency. (DLR)
1494 - Rename variable open_files openfile, for consistency. (DLR)
1495 - Remove renumber()'s dependency on the main filestruct.
1496 Changes to renumber(); removal of renumber_all(). (DLR)
1497 - Restructure things so that every file has its own
1498 openfilestruct, and so that the values in it are used directly
1499 instead of being periodically synced up with the globals.
1500 Accordingly, remove the globals. Changes to pretty much
1501 every function. Rename add_open_file() make_new_buffer(),
1502 rename load_buffer() open_buffer(), rename load_open_file()
1503 display_buffer(), rename open_prevnext_file()
1504 switch_to_prevnext_buffer(), rename open_prevfile_void()
1505 switch_to_prev_buffer(), rename open_nextfile_void()
1506 switch_to_next_buffer(), rename write_marked()
1507 write_marked_file(), remove load_file(), rename cancel_fork()
1508 cancel_command(), rename open_pipe() execute_command(), remove
1509 execute_command(), rename resize_variables(), rename
1510 global_init() window_size_init(), rename get_buffer()
1511 get_key_buffer(), and rename get_buffer_len()
1512 get_key_buffer_len(). (DLR)
1513 - Replace all mvwaddstr(hblank) calls with a new function that
1514 does the same thing without the need for hblank. New function
1515 blank_line(); changes to do_browser(), blank_titlebar(),
1516 blank_topbar(), blank_edit(), blank_statusbar(),
1517 blank_bottombars(), update_line(), and edit_refresh(). (DLR)
1518 - Make the static pid variable used by execute_command() and
1519 cancel_command() a pid_t instead of an int, for consistency.
1520 (DLR)
1521 - Consistently make the flags global and any variables used to
1522 hold it longs. (DLR)
1523 - Make edit_scroll() sophisticated enough to keep track of
1524 current and current_x, update the lines before and after the
1525 scrolled region, and properly scroll more than editwinrows
1526 lines; and change the movement functions that use
1527 edit_scroll() to (a) set current and current_x before calling
1528 it, and (b) no longer call edit_redraw() afterward, as it's
1529 now unnecessary. These changes eliminate redundant screen
1530 updates when the mark is on, since the mark display depends on
1531 current and current_x. Also change edit_redraw() to use
1532 edit_scroll() instead of edit_refresh() when one of its two
1533 reference lines is offscreen. Changes to edit_scroll(),
1534 do_page_up(), do_page_down(), do_up(), and do_down(). (DLR)
1535 - Consistently make the fg and bg colortype struct entries and
1536 any variables used to hold them shorts. Changes to
1537 do_colorinit() (renamed color_init()), color_to_int() (renamed
1538 color_to_short()), and parse_colors(). (DLR)
1539 - Change color handling to save only the extension and color
1540 regex strings constantly, and to actually compile them on an
1541 as-needed basis. Also, make a color syntax specified on the
1542 command line override the syntax associated with the current
1543 file extension, add a "default" syntax that takes no
1544 extensions for those files that don't match any other
1545 syntax's extensions, and add a "none" syntax that's the same
1546 as having no syntax at all. Changes to update_color(),
1547 thanks_for_all_the_fish(), nregcomp(), parse_syntax(), and
1548 parse_colors(). (Brand Huntsman and DLR)
1549 - Various other color fixes. Handle unspecified foreground
1550 colors properly, treat syntax names case sensitively, flag
1551 duplicate syntax names as errors, don't automatically
1552 reinitialize the displayed colors every time we update the
1553 current buffer's colors (since the buffer may not be displayed
1554 immediately), don't bother doing complete refreshes of the
1555 screen when color support is enabled if there's no regex
1556 associated with the current file, and rename variable
1557 exttype->val to exttype->ext, for consistency. Changes to
1558 do_colorinit() (renamed color_init()), update_color() (renamed
1559 color_update()), write_file(), do_input(), do_output(), and
1560 parse_syntax(). (DLR)
1561 - Simplify get_totals() to only get the total number of
1562 characters, and eliminate dependence on its old ability to get
1563 the total number of lines by renumber()ing when necessary and
1564 using the number of the last line of a filestruct. Changes to
1565 read_file(), move_to_filestruct(), copy_from_filestruct(),
1566 do_justify(), get_totals() (renamed get_totsize()), and
1567 do_cursorpos(). (DLR)
1568 - Change the NANO_WIDE #define to ENABLE_UTF8, as the latter is
1569 clearer. (DLR)
1570 - Minor history code fixes: Make sure that the current position
1571 in the history list is properly set to the bottom if we cancel
1572 out of the prompt, and that magichistory is properly updated
1573 when we change it and then move up. New function
1574 history_reset(); changes to nanogetstr(). (DLR)
1575 - Various character-handling cleanups. If we get an invalid
1576 multibyte sequence, treat it as Unicode FFFD (Replacement
1577 Character), unless we're searching for a match to it. Also,
1578 remove unneeded variables and checks when parsing multibyte
1579 sequences. Changes to is_alnum_mbchar(), is_blank_mbchar(),
1580 is_cntrl_mbchar(), is_punct_mbchar(), control_mbrep(),
1581 mbwidth(), make_mbchar(), parse_mbchar(), mbstrncasecmp(),
1582 mbstrcasestr(), mbrevstrcasestr(), mbstrchr(), and
1583 display_string(). (DLR)
1584 - Move advanced text operations (command execution in a buffer,
1585 wrapping, spell checking, justifying, and word counting) to
1586 their own source file, and adjust related variables
1587 accordingly. New file text.c; changes to cancel_command(),
1588 execute_command(), do_backspace(), do_delete(), do_tab(),
1589 do_enter(), do_mark(), wrap_reset(), do_wrap(),
1590 do_int_spell_fix(), do_int_speller(), do_alt_speller(),
1591 do_spell(), break_line(), indent_length(), justify_format(),
1592 quote_length(), quotes_match(), indents_match(), begpar(),
1593 inpar(), backup_lines(), find_paragraph(), do_justify(),
1594 do_justify_void(), do_full_justify(), and do_word_count() (all
1595 moved to text.c). (DLR)
1596 - Since the total number of lines in a file is the same as the
1597 number of its last line when all its lines are numbered
1598 properly, use that in place of openfile->totlines, and
1599 eliminate references to openfile->totlines. Changes to
1600 initialize_buffer_text(), read_file(), move_to_filestruct(),
1601 copy_from_filestruct(), do_delete(), do_enter(), do_wrap(),
1602 do_justify(), do_alt_speller(), do_wordlinechar_count(),
1603 new_magicline(), remove_magicline(), and do_cursorpos(). (DLR)
1604 - Various fill-related cleanups. Move check_die_too_small() and
1605 window_size_init()'s code into window_init(), as they really
1606 belong there, remove associated separate calls to them, make
1607 sure window_init() is always called at the same time when
1608 redrawing the screen, and turn the keypad on in topwin in case
1609 we ever read input from it. Changes to window_init(), main(),
1610 and do_alt_speller(); removal of check_die_too_small() and
1611 window_size_init(). (DLR)
1612 - Remove still more redundant screen updates. Change all
1613 wrefresh() calls to wnoutrefresh() calls, except for those in
1614 total_update() and do_credits(); call doupdate() just before
1615 using blocking input, since nano spends the most time using
Benno Schulenberg4a073a02017-01-04 13:48:25 +01001616 it, for blocking input; and only do constant cursor position
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00001617 display if we're just about to use blocking input. Changes to
1618 input_tab(), do_browser(), do_output(), main(),
1619 get_key_buffer(), check_statusblank(), nanogetstr(),
1620 titlebar(), statusbar(), bottombars(), edit_refresh(),
1621 do_yesno(), and do_help(). (DLR)
1622 - Treat the Unicode characters D800-DFFF, FDD0-FDEF, and
1623 xxFFFE-xxFFFF, as invalid, since the C library's multibyte
1624 functions don't seem to. New function is_valid_unicode();
1625 changes to mbrep() and make_mbchar(). (DLR)
1626 - Store Unicode values in longs instead of ints, and cover the
1627 entire range of Unicode. Changes to make_mbchar(),
1628 is_valid_unicode(), parse_kbinput(), get_unicode_kbinput(),
1629 parse_verbatim_kbinput(), and faq.html. (DLR)
1630 - Readd the option to turn the keypad off by default from nano
1631 1.2.x, but rename the long option from --keypad to
1632 --rebindkeypad, clarify its description on the command line,
1633 and add an updated FAQ entry about its use. Changes to
1634 window_init(), usage(), main(), get_verbatim_kbinput(),
1635 nanorc.sample, nano.1, nanorc.5, nano.texi, and faq.html.
1636 (DLR)
1637 - Add new -W/--wordbounds command line option, and new
1638 "wordbounds" rcfile option, to control whether
1639 the word movement functions treat punctuation characters as
1640 part of a word. Changes to do_next_word_void(),
1641 do_prev_word_void(), usage(), main(), nano.1, nanorc.5,
1642 nano.texi, and nanorc.sample. (DLR, suggested by Mike
1643 Frysinger)
1644 - Update email address. Changes to faq.html and AUTHORS. (DLR)
1645 - Remove do_(left|right)()'s ability to optionally not update
1646 the current line, as this was only used in do_backspace(), and
1647 it didn't always update the screen properly. Changes to
1648 shortcut_init(), do_left(), do_right(), and do_backspace();
1649 removal of do_left_void() and do_right_void(). (DLR; problem
1650 found by Mike Frysinger)
1651- color.c:
1652 - Remove unneeded fcntl.h include. (DLR)
1653- chars.c:
1654 control_rep(), control_mbrep()
1655 - Assert that the multibyte character passed in is a control
1656 character if it's valid. (DLR)
1657 - If crep is an invalid multibyte sequence, copy Unicode 0xFFFD
1658 (Replacement Character) into it using strncpy() instead of
1659 assigning the former to it. This avoids segfaults when freeing
1660 crep later, since it's supposed to be dynamically allocated.
1661 (DLR)
1662 mbrep()
1663 - New function, the equivalent of control_mbrep() for non-control
1664 characters. (DLR)
1665 parse_mbchar()
1666 - Remove now-unneeded bad_chr parameter. (DLR)
1667 mbstrchr()
1668 - Don't count matches between valid and invalid multibyte
1669 sequences anymore, for consistency. (DLR)
1670- files.c:
1671 open_file()
1672 - Assert that filename isn't NULL, and don't do anything special
1673 if it's blank, as the the former case shouldn't occur, and the
1674 latter case is now handled elsewhere. (DLR)
1675 write_file(), write_marked_file(), do_writeout()
1676 - Make append an append_type enum instead of an int. (DLR)
1677 input_tab()
1678 - Make columns an int instead of a size_t, since it's limited by
1679 COLS. (DLR)
1680- global.c:
1681 shortcut_init()
1682 - Simplify wording of nano_gotoline_msg. (Jordi and Ken Tyler)
1683 - Clarify wording of nano_wordcount_msg, as it will only go
1684 through the marked portions of the file if the mark is on.
1685 (DLR)
1686- move.c:
1687 do_first_line(), do_last_line()
1688 - Simplify by only using edit_redraw(), and also make them call
1689 check_statusblank(). (DLR)
1690 do_page_up(), do_page_down()
1691 - If there's less than a page of text onscreen, just call
1692 do_(first|last)_line(). (DLR)
1693 do_para_begin(), do_para_begin_void(), do_para_end(),
1694 do_para_end_void(), do_next_word(), do_next_word_void(),
1695 do_prev_word(), do_prev_word_void()
1696 - Move here from nano.c, as they're movement functions, and also
1697 make them call check_statusblank().
1698- nano.c:
1699 move_to_filestruct()
1700 - Fix problem where edittop wouldn't be reset properly if it was
1701 inside the text moved to another filestruct. (DLR)
1702 copy_from_filestruct()
1703 - Miscellaneous cleanups. (DLR)
1704 usage()
1705 - Properly mention the support for "[+LINE,COLUMN]" on the
1706 command line when HAVE_GETOPT_LONG isn't defined. (DLR)
1707 - Remove unneeded translation of "--quickblank". (DLR)
1708 do_verbatim_input()
1709 - If constant cursor position display is on, make sure the
1710 cursor position is displayed properly when we finish. (DLR)
1711 do_next_word()
1712 - Rework to be more like do_prev_word(), to avoid a potential
1713 problem if we start at the end of a line. (DLR)
1714 do_mouse()
1715 - Avoid redundant screen updates by using edit_redraw() instead
1716 of edit_refresh(), and remove now-erroneous code that disables
1717 setting the mark while in view mode. (DLR)
1718 do_output()
1719 - When adding a character, just add its length in bytes to
1720 current_x instead of calling do_right(), and set placewewant
1721 afterward. (DLR)
1722 do_alt_speller()
1723 - If we can't invoke the spell checker, use sprintf() instead of
1724 snprintf() to write the error string we return, as the one
1725 formatted value is a simple string, and so altspell_error will
1726 always be long enough to hold it. Also remove unnecessary
1727 initialization of altspell_error, refactor so that msglen is
1728 no longer needed, and make the error message more similar to
1729 what the internal spell checker returns under the same
1730 circumstances. (DLR)
1731 - Block any pending SIGWINCHes while the alternate spell checker
1732 is running, so that it can handle them, and unblock them once
1733 it's finished and we've loaded the spell-checked file back in.
1734 (DLR)
1735 - Use doupdate() to reenter curses mode instead of refresh().
1736 (DLR)
1737 do_spell()
1738 - When displaying an error message from do_(int|alt)_speller(),
1739 don't display the error message corresponding to errno if
1740 errno is zero. (David Benbennick)
1741 do_justify()
1742 - If constant cursor position display is on, make sure the
1743 cursor position is displayed properly when we finish. (DLR)
1744 handle_sigwinch()
1745 - Use doupdate() to reenter curses mode instead of refresh().
1746 (DLR)
1747 allow_pending_sigwinch()
1748 - Simplify by using the "?" operator instead of an if clause.
1749 (DLR)
1750 main()
1751 - When opening files with "+LINE,COLUMN" arguments on the
1752 command line, don't update the screen when moving to their
1753 specified lines and columns. (DLR)
1754 - Rename variable fill_flag_used to fill_used, for consistency.
1755 (DLR)
1756- nano.h:
1757 - Since we only use vsnprintf() now, remove the #ifdef block for
1758 HAVE_SNPRINTF. (DLR)
1759 - Remove TOP from the topmidnone enum, and rename the latter
1760 centernone. (DLR)
1761 - Move stdlib.h, dirent.h, regex.h, and assert.h includes here,
1762 as every source file needs them. (DLR)
1763 - Rename the updown enum scroll_dir and the centernone enum
1764 update_type for clarity, and add an append_type enum. (DLR)
1765 - If we don't have regex.h and hence regex support, disable
1766 color support, as it depends on the use of regexes. (DLR)
1767- rcfile.c:
1768 nregcomp()
1769 - Return TRUE when the compilation succeeds and FALSE otherwise,
1770 instead of the other way around. (DLR)
1771- search.c:
1772 search_init()
1773 - Don't blank out last_replace anymore when we get a new string,
1774 as it'll be blanked out in do_replace(). Also, consolidate
1775 the cases for blank and new search strings, as they now differ
1776 only in which string they pass to regexp_init(). (DLR)
1777 is_whole_word()
1778 - Move to utils.c, as it's really a utility function in the same
1779 vein as regexp_bol_or_eol(). (DLR)
1780 replace_abort()
1781 - Remove unnecessary update of placewewant. (DLR)
1782 do_replace()
1783 - Blank out last_replace properly again just before displaying
1784 the "Replace" prompt. (DLR, found by Mike Frysinger)
1785 - Remove unnecessary renumber(). (DLR)
1786 do_gotolinecolumn()
1787 - Add parameter allow_update to control whether the screen is
1788 updated after moving. If it's TRUE, call edit_refresh() after
1789 edit_update(). (DLR)
1790 do_gotopos()
1791 - Only include this function when DISABLE_SPELLER isn't defined,
1792 as the alternate spell checking code is now the only place
1793 where it's used. (DLR)
1794 do_find_bracket()
1795 - Add comments and minor cleanups. (DLR)
1796 find_history()
1797 - Make parameters const where possible. (DLR)
1798 update_history()
1799 - Don't renumber the history list starting after the entry we
1800 found if the entry we found is at the bottom of the list.
1801 (DLR, found by Simon Strandman)
1802 get_history_completion()
1803 - Make parameters const where possible. (DLR)
1804- text.c:
1805 do_tab()
1806 - Make sure that we insert the correct number of spaces if the
1807 TABS_TO_SPACES flag is set and placewewant is greater than the
1808 current column position of the cursor. (DLR)
1809 do_enter()
1810 - Don't update the edit window until we set placewewant. (DLR)
1811 break_line()
1812 - Fix a problem where a line could be broken in the middle of a
1813 multibyte character. (DLR)
1814 do_word_count()
1815 - Rename to do_wordlinechar_count(), and expand to also count
1816 the number of lines and characters in the file or selection,
1817 as wc does. (DLR)
1818- winio.c:
1819 get_key_buffer()
1820 - Only save all open buffers and hang up when a blocking
1821 wgetch() returns ERR and errno is set to EIO (input/output
1822 error). If errno is set to something else, recover properly.
1823 This fixes problems with nano's erroneously hanging up while
1824 e.g. resizing or unsuspending in a chroot. (DLR, found by Mike
1825 Frysinger)
1826 get_escape_seq_kbinput()
1827 - Fix typo preventing the VT100/VT220/VT320/xterm/rxvt escape
1828 sequence for ',' on the numeric keypad with NumLock off from
1829 being interpreted properly. (DLR)
1830 get_word_kbinput()
1831 - Multiply the entered digits by hexadecimal numbers instead of
1832 decimal numbers for clarity, rename to get_unicode_kbinput(),
1833 and rename variables word and word_digits to uni and
1834 uni_digits. (DLR)
1835 parse_verbatim_kbinput()
1836 - Rename variables word_mb and word_mb_len to uni_mb and
1837 uni_mb_len. (DLR)
1838 display_string()
1839 - Instead of using parse_mbchar()'s bad_chr parameter, use
1840 mbrep() to get the representation of a bad character. (DLR)
1841 - If column is less than start_col and the character's a tab,
1842 which can be possible if there are enough tabs and the
1843 terminal size is sufficiently large, don't try to display it
1844 using control_mbrep(). (DLR, found by Duncan Geoffry Doyle)
1845 - Really avoid a memory corruption problem by allocating enough
1846 space for COLS characters. (DLR)
1847 edit_redraw(), edit_refresh()
1848 - Clean up and simplify. (DLR)
1849 edit_update()
1850 - Since we no longer use TOP, remove references to it. Also,
1851 don't call edit_refresh() anymore; it will call us. (DLR)
1852 do_statusbar_next_word()
1853 - Rework to be more like do_statusbar_prev_word(), to avoid a
1854 potential problem if we start at the end of a line. (DLR)
1855 do_statusbar_input()
1856 - Call do_statusbar_mouse() instead of do_mouse(). (DLR)
1857 do_statusbar_output()
1858 - When adding a character, just add its length in bytes to
1859 statusbar_x instead of calling do_statusbar_right(). (DLR)
1860 titlebar()
1861 - Rework to display only one space after the version number, so
1862 that there's more room for other things, and to not display
1863 the status when we're in the file browser, since Pico doesn't.
1864 (DLR)
1865 do_credits()
1866 - Various cleanups. Turn on the MORE_SPACE and NO_HELP flags
1867 before showing the credits, so that they use as much of the
1868 screen as possible, and set the flags back to their original
1869 values afterward. Also, call wscrl(1) instead of scroll(),
1870 only call scrollok() just before and after we scroll, and
1871 tweak where screen updates occur so that messages are properly
1872 displayed when they first scroll onto the bottom line of the
1873 screen. (DLR)
1874 - Add Mike Frysinger to credits. (DLR)
1875- configure.ac:
1876 - Since we only use vsnprintf() now, remove the tests for
1877 snprintf(). (DLR)
1878 - Change the description of "sufficient wide character support"
1879 to "sufficient UTF-8 support", as the latter is clearer. (DLR)
1880 - Update the description of the ENABLE_COLOR option to mention
1881 the need for regex.h. (DLR)
1882- doc/faq.html:
1883 - Update section 4.10 to mention that pasting from the X
1884 clipboard via the middle mouse button also works when the
1885 Shift key is used. (DLR)
1886- doc/nanorc.sample:
1887 - Add regexes for Bourne shell scripts. (Mike Frysinger, minor
1888 tweaks by DLR)
1889 - Explain how the "none" and "default" syntaxes work. (DLR)
1890 - Tweaks and additions to the "c-file" regexes: handle #defined
1891 constants more accurately and use a brighter color for them,
1892 support C99 standard integer types, support more GCC builtins,
1893 and color code flow control statements differently. (Mike
1894 Frysinger) DLR: Slightly simplify the integer types regex.
1895 - Tweak one "TeX" regex to use the "icolor" directive. (DLR)
1896- doc/man/nanorc.5:
1897 - Explain how the "none" and "default" syntaxes work. (DLR)
1898- doc/man/fr/nano.1, doc/man/fr/nanorc.5:
1899 - Updated translation by Jean-Philippe Guérard.
1900- src/Makefile.am:
1901 - Add text.c to nano_SOURCES. (DLR)
1902- AUTHORS:
1903 - Add Mike Frysinger. (DLR)
1904- README.CVS:
1905 - Since we only use vsnprintf() now, remove the mention of
1906 snprintf(). (DLR)
1907- THANKS:
1908 - Add Bulgarian and Dutch translators.
1909
1910GNU nano 1.3.8 - 2005.06.30
1911- General:
1912 - Miscellaneous comment fixes. (DLR)
1913 - Various #include fixes. Since proto.h includes nano.h, only
1914 include the former in source files. Also add an #include
1915 guard to proto.h, and make the config.h #include in nano.h
1916 match the config.h #includes everywhere else. (DLR)
1917 - Change all hardcoded instances of 128 bytes to MAX_BUF_SIZE,
1918 and #define MAX_BUF_SIZE as 128 in nano.h. (DLR)
1919 - Display the key to go to the previous strings in the
1920 search/replace history as "^P" instead of "Up". This makes
1921 mouse clicks work properly on it. Changes to shortcut_init(),
1922 help_init(), nanogetstr(), and do_statusbar_input(). (DLR)
1923 - Update the Free Software Foundation's mailing address in
1924 various comments. (DLR)
1925 - Add the ability to open a file on a specified column as well
1926 as a specified line, by allowing an argument of the form
1927 +LINE,COLUMN. New function parse_line_column(); changes to
1928 shortcut_init(), main(), do_gotoline() (renamed
1929 do_gotolinecolumn()), do_gotoline_void() (renamed
1930 do_gotolinecolumn_void()), nano.1, and nano.texi. (DLR,
1931 suggested by PFTank)
1932 - Overhaul the history code to work more consistently, and clean
1933 up various parts of it. New function history_has_changed();
1934 changes to load_history(), writehist(),
1935 thanks_for_all_the_fish(), history_init(), find_node()
1936 (renamed find_history()), update_history(),
1937 get_history_older(), get_history_newer(),
1938 get_history_completion(), do_search(), do_replace(),
1939 nanogetstr(), and statusq(); removal of remove_node() and
1940 insert_node(). (DLR)
1941 - Remove all instances of charcpy() and replace them with
1942 strncpy(), since there's no way to be sure that a charcpy()ed
1943 string will always be properly null-terminated, and strcpy()'s
1944 null termination is the only difference between it and
1945 charcpy(). (DLR)
1946 - When using a backup directory, make sure all the filenames
1947 written are unique by using get_next_filename() when
1948 necessary. Changes to get_next_filename(), write_file(),
1949 die(), usage(), nano.1, nanorc.5, nanorc.sample, and
1950 nano.texi. (DLR, suggested by James Collings)
1951 - Rework the file-writing routines so that they can work
1952 properly with already-opened files, such as the
1953 mkstemp()-created files used by the spell-checking code.
1954 Changes to safe_tempnam() (renamed safe_tempfile()),
1955 write_file(), write_marked(), die(), do_spell(), and
1956 do_exit(). (DLR)
1957 - Remove the -R/--regexp command line option and enable the
1958 toggle at the search prompt in tiny mode, as it already
1959 allows the prepend and append toggles at the search prompt.
1960 For consistency, rename TOGGLE_REGEXP_KEY to NANO_REGEXP_KEY,
1961 and move it out of the toggles block to where NANO_PREPEND_KEY
1962 and NANO_APPEND_KEY are. Also, change the short command line
1963 option for --restricted from -Z to -R. Changes to
1964 shortcut_init(), usage(), main(), search_init(), nano.1,
1965 nano.texi, etc. (DLR)
1966 - Various cleanups and improvements in chars.c. Remove some
1967 unnecessary w?ctype wrappers and variables; change the wctype
1968 wrappers to take wint_t instead of wchar_t to match the
1969 functions they wrap; rename some functions for consistency;
1970 add functions to detect blank characters in a string, for use
1971 in rcfile option parsing; and don't count matches between
1972 valid and invalid multibyte sequences anymore, as it causes
1973 problems when doing a replace. New functions
1974 is_valid_mbstring(), has_blank_chars(), and
1975 has_blank_mbchars(); changes to is_alnum_mbchar(),
1976 is_blank_char() (renamed nisblank()), is_blank_mbchar(),
1977 is_blank_wchar() (renamed niswblank()), is_cntrl_wchar(),
1978 control_rep(), control_mbrep(), make_mbstring() (renamed
1979 make_valid_mbstring()), mbstrncasecmp(), mbstrcasestr(),
1980 mbrevstrcasestr(), etc.; removal of is_alnum_char() and
1981 is_alnum_wchar(). (DLR)
1982 - Implement word count via Meta-D at the main window. Note that
1983 this is disabled when NANO_SMALL is defined. Also, convert
1984 all word detection functions to use the same wrapper function
1985 for ease of maintenance, and make them return more
1986 information. New functions is_punct_mbchar(),
1987 is_word_mbchar(), do_next_word_void(), do_prev_word_void(),
1988 and do_word_count(); changes to shortcut_init(),
1989 do_next_word(), do_prev_word(), is_whole_word(),
1990 do_statusbar_next_word(), and do_statusbar_prev_word(). (DLR)
1991 - Fix #ifdefs so that nano compiles with NANO_SMALL defined and
1992 DISABLE_TABCOMP undefined. Changes to revstrstr() and
1993 free_charptrarray() (renamed free_chararray()). (DLR)
1994 - Change the wctype wrappers to take wchar_t's again, as they
1995 still work the same way with them. This also fixes
1996 compilation on Mac OS X 10.4.1, which doesn't seem to define a
1997 wint_t type. (DLR, found by Emily Jackson)
1998 - Add the ability to convert typed tabs to spaces using
1999 the -E/--tabstospaces command line options, the "tabstospaces"
2000 rcfile option, and the toggle Meta-Q (since QBasic did this by
2001 default :)). Note that this doesn't affect tabs entered using
2002 verbatim input, and that it's disabled when NANO_SMALL is
2003 defined. Also, change the short command line option for
2004 --backupdir from -E to -C. Changes to toggle_init(), usage(),
2005 do_tab(), main(), nanorc.sample, nano.1, nanorc.5, and
2006 nano.texi. (DLR, suggested by many people)
2007 - Change the CONSTUPDATE, REVERSE_SEARCH, and SMOOTHSCROLL flags
2008 to the CONST_UPDATE, BACKWARDS_SEARCH, and SMOOTH_SCROLL
2009 flags, respectively. (DLR)
2010 - Change the SMOOTHSCROLL flag to the SMOOTH_SCROLL flag. (DLR)
2011 - Change the NO_UTF8 flag to the USE_UTF8 flag, and reverse its
2012 meaning. (DLR)
2013 - Add rcfile options "casesensitive" and "backwards", to do
2014 case sensitive and backwards searches by default. Changes to
2015 nanorc.sample and nanorc.5. (DLR)
2016 - Since the DISABLE_CURPOS flag is only used in winio.c, reduce
2017 it to a static bool there. Changes to statusbar() and
2018 disable_cursorpos(). (DLR)
2019 - Add -U/--quickblank option and a "quickblank" rcfile option to
2020 blank the statusbar after 1 keystroke instead of 25. Note
2021 that this obviously has no effect when constant cursor
2022 position display is turned on, and that this is disabled when
2023 NANO_SMALL is defined. Changes to usage(), main(),
2024 statusbar(), nanorc.sample, nano.1, and nanorc.5. (DLR,
2025 suggested by CHAO Wei-Lun)
2026 - Add support for case insensitive expression matching when
2027 using color syntax highlighting, via the "icolor" directive,
2028 and add it to those regexes that can use it. Changes to
2029 parse_colors(), parse_rcfile(), nanorc.sample, and nanorc.5.
2030 (Brand Huntsman, minor tweaks by DLR)
2031 - Add various type changes to avoid problems on systems where
2032 int and ssize_t are different sizes. Make filestruct->lineno
2033 a ssize_t (so that we can avoid negative line numbers at the
2034 "Go To Line" prompt), current_y a ssize_t (in order to hold
2035 the maximum difference between two filestruct->lineno's),
2036 totlines a size_t, and change related variables to match.
2037 (DLR, initial problem with parse_line_column() found by Mike
2038 Frysinger)
2039 - Rework the credits handling to display Florian König's name
2040 properly whether we're in a UTF-8 locale or not, and without
2041 requiring a massive function that we only use once. Changes
2042 to do_credits(); removal of make_valid_mbstring(). (DLR)
2043- chars.c:
2044 make_mbstring()
2045 - Change erroneous ENABLE_EXTRA #ifdef to NANO_EXTRA to fix a
2046 compilation problem when --enable-nanorc isn't used and
2047 --enable-extra is. (DLR)
2048- color.c:
2049 update_color()
2050 - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8
2051 color syntax names are properly detected. (DLR)
2052- cut.c:
2053 cut_line()
2054 - Set placewewant properly after cutting a line, to avoid a
2055 problem where the screen won't be updated if (a) we're not on
2056 the first page when we cut the line, and (b) immediately after
2057 we cut the line, we hit End to move to the end of the line
2058 after it. (DLR)
2059- files.c:
2060 read_line()
2061 - Rename variable prev to prevnode to avoid confusion. (DLR)
2062 - Rename variable len to buf_len, for consistency. (DLR)
2063 load_open_file()
2064 - Remove an unneeded clearok(FALSE). (DLR)
2065 get_next_filename()
2066 - Use an unsigned long instead of an int for the number
2067 prepended to the filename. (DLR)
2068 do_insertfile()
2069 - Set i to 0 when we get a filename via the file browser, so
2070 that it's read in properly when we exit the file browser.
2071 (DLR)
2072 open_prevnext_file()
2073 - Move up a misplaced assert. (DLR)
2074 - Rename variable next to next_file, to avoid confusion. (DLR)
2075 write_file()
2076 - Since lineswritten is a size_t, print its value as an unsigned
2077 long instead of an unsigned int. (DLR)
2078 - Declare the size_t i only in the loop where it's used. (DLR)
2079 diralphasort()
2080 - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8
2081 filenames are sorted properly. (DLR)
2082 cwd_tab_completion(), browser_init()
2083 - Rename variable next to nextdir to avoid confusion. (DLR)
2084 input_tab()
2085 - Since list is a bool, set it to FALSE instead of 0. (DLR)
2086 - Add multibyte/wide character support, so that we don't end up
2087 with a string that contains only part of a multibyte
2088 character during tab completion. (DLR)
2089 - Rename variable buflen to buf_len, for consistency. (DLR)
2090 do_browser()
2091 - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
2092 consistency. (DLR)
2093 - When displaying "(dir)" in the available screen space, make
2094 sure that the string it's stored in is always null-terminated.
2095 (DLR)
2096 - Rename variable selectedbackup to old_selected, for
2097 consistency. (DLR)
2098 - Make mouse clicks in the browser window work properly when the
2099 MORE_SPACE flag is set. (DLR)
2100 - Make foo_len a size_t instead of an int. (DLR)
2101 save_history()
2102 - Properly save history when we're in view mode. (DLR)
2103- global.c:
2104 shortcut_init()
2105 - Move the "Refresh" and "Exit" shortcuts to the beginning of
2106 the help browser shortcut list, for consistency. (DLR)
2107 - Remove unnecessary "Refresh" placeholder in the file browser
2108 shortcut list. (DLR)
2109 - Allow the mark to be used in view mode, as Pico does. (DLR)
2110 - Clarify the description of ^X when --enable-multibuffer is
2111 used. (DLR)
2112 - Change the description of the Meta-B toggle at the search
2113 prompt from "Direction" to "Backwards", for consistency. (DLR)
2114 toggle_init()
2115 - Clarify the descriptions of M-C and M-L. (DLR)
2116 - Reorder the toggles to put more toggles with similar functions
2117 together. (DLR)
2118 thanks_for_all_the_fish()
2119 - Remove free_toggles() and move its code here verbatim, as it's
2120 only called here anyway. (David Benbennick)
2121 - Fix the code to free all open file buffers to work properly
2122 with the previous overhaul of the multibuffer code instead of
2123 going into an infinite loop. (David Benbennick)
2124 - Add additional checks for variables' not being NULL before we
2125 try to free them, to avoid assertion failures. (DLR)
2126- nano.c:
2127 die()
2128 - Rename variable ret to retval for consistency. (DLR)
2129 - Tweak the message displayed when a backup file can't be
2130 written, so as to not duplicate a translated string. (DLR)
2131 - If the current filestruct's been partitioned, unpartition it
2132 before saving the associated file. (DLR)
2133 resize_variables()
2134 - Use charset() instead of memset() to initialize hblank. (DLR)
2135 copy_filestruct()
2136 - Rename variable prev to copy to avoid confusion. (DLR)
2137 print1opt_full()
2138 - If desc should be empty, allow it to be NULL instead of
2139 "", since the latter is not necessarily translated as "".
2140 (DLR, found by Jordi)
2141 usage()
2142 - Add missing N_() around one message, so that it isn't
2143 erroneously translated twice. (DLR)
2144 - Remove inaccurate default listed for -Q/--quotestr. (DLR)
2145 version()
2146 - Add --enable-utf8 to the displayed compilation options, put
2147 the options in alphabetical order, and handle --enable-tiny
2148 the same way as all the other options. (DLR)
2149 do_tab()
2150 - Remove unneeded variable kbinput. (DLR)
2151 do_int_spell_fix()
2152 - Display highlighted misspelled words using display_string(),
2153 as do_replace_loop() does. (DLR)
2154 do_alt_speller()
2155 - Replace a set_modified() with SET(MODIFIED) to avoid an
2156 unnecessary update, and remove an unneeded clearok(FALSE).
2157 (DLR)
2158 - Move the spell checking error handling block down and refactor
2159 it so that we go back into curses mode, reinitialize the
2160 terminal, turn the cursor back on, and turn the mark back on
2161 if necessary before returning the error message. (DLR)
2162 do_spell()
2163 - If the spell-checker printed any error messages onscreen, call
2164 total_refresh() to make sure they're cleared off. (DLR, found
2165 by CHAO Wei-Lun)
2166 find_paragraph()
2167 - Reset placewewant as well as current_x to 0, in order to avoid
2168 a potential screen update problem. (DLR)
2169 do_justify()
2170 - Save placewewant, and restore it if we unjustify, in order to
2171 avoid a potential screen update problem. (DLR)
2172 do_output()
2173 - Properly allow wrapping when we insert a tab, for consistency.
2174 (DLR)
2175 - Don't set current_len until after it's been asserted that both
2176 current and current->data aren't NULL. (DLR)
2177 do_toggle()
2178 - Properly treat color syntax highlighting as enabled by
2179 default, and only treat wrapping as enabled by default when
2180 DISABLE_WRAPPING isn't defined. (DLR)
2181 disable_extended_input()
2182 - Disable extended output processing as well as extended input
2183 processing, and rename to disable_extended_io(). (DLR)
2184 disable_flow_control(), enable_flow_control()
2185 - Only turn off flow control on output, as it might be needed
2186 for input on slow terminals. (DLR)
2187- nano.h:
2188 - Add macro charset(), a wrapper that calls memset(). (DLR)
2189 - Readd #defines for the isblank() and iswblank() equivalents.
2190 (DLR)
2191 - In the colortype struct, make bright a bool instead of an int,
2192 for consistency. (DLR)
2193- proto.h:
2194 - Add missing NANO_SMALL and HAVE_REGEX_H #ifdefs around the
2195 do_find_bracket() prototype. (DLR)
2196- rcfile.c:
2197 color_to_int()
2198 - Since colorname's being NULL is handled elsewhere now, assert
2199 that it isn't NULL at the beginning of the function. (DLR)
2200 parse_colors()
2201 - Properly parse a background color without a foreground color.
2202 (DLR)
2203 - Properly generate an error if we get a color directive without
2204 a regex string. (DLR)
2205 parse_rcfile()
2206 - Properly generate an error if we get an invalid multibyte
2207 string for an option, instead of working around it. (DLR)
2208 - Use has_blank_mbchars() to check for blank characters in the
2209 "punct" and "brackets" options, and clarify the error message
2210 displayed when we find blank characters. (DLR)
2211- search.c:
2212 do_gotoline()
2213 - Properly show an error message if we try to go to line 0,
2214 since the first line in the file is 1. (DLR)
2215 - Start the search for a line from fileage instead of current
2216 (again). (DLR)
2217 replace_regexp()
2218 - Rename variables create_flag and new_size to create and
2219 new_line_size, for consistency. (DLR)
2220 - Make new_line_size, search_match_count, and i size_t's, for
2221 consistency. (DLR)
2222 replace_line()
2223 - Make new_line_size and search_match_count size_t's, for
2224 consistency. (DLR)
2225 do_replace_loop()
2226 - When moving to the next match, update the screen using
2227 edit_refresh() instead of edit_redraw(), as the latter won't
2228 work properly when we've replaced one or more instances of a
2229 string in copy and haven't yet updated current->data to match
2230 copy. (DLR)
2231 do_find_bracket()
2232 - Miscellaneous cleanups: rename variables for consistency, and
2233 save the search direction and regexp setting in two bools
2234 instead of one flags variable. (DLR)
2235- utils.c:
2236 num_of_digits()
2237 - Use a size_t instead of an int, and rename to digits(). (DLR)
2238 align()
2239 - Rename variable strp to str for consistency. (DLR)
2240- winio.c:
2241 do_statusbar_output()
2242 - Don't set answer_len until after it's been asserted that
2243 answer isn't NULL. (DLR)
2244 display_string()
2245 - Avoid a memory corruption problem by allocating enough space
2246 for len plus a trailing multibyte character and/or tab. (DLR)
2247 - Don't check for multicolumn characters if the NO_UTF8 flag
2248 isn't set. (DLR)
2249 - Free buf_mb when we're done using it. (DLR)
2250 nanogetstr()
2251 - Rename variable def to curranswer to avoid confusion. (DLR)
2252 - Only declare and use the tabbed variable if DISABLE_TABCOMP
2253 isn't defined. (DLR)
2254 - Refactor to replace unnecessary variable answer_len with
2255 curranswer_len, and hence avoid an assertion failure involving
2256 the former. (DLR)
2257 statusq()
2258 - Rename variable which_history to history_list, for
2259 consistency. (DLR)
2260 - Rename variables def and ret to curranswer and retval to avoid
2261 confusion. (DLR)
2262 - Call wnoutrefresh(bottomwin) after getting an answer and
2263 blanking out the statusbar, to make sure that the blanking is
2264 done. This fixes a problem where the statusbar is not
2265 properly blanked after using the "Go To Line" prompt with the
2266 NO_HELP flag set. (DLR)
2267 titlebar()
2268 - Use actual_x() to calculate the number of characters VERMSG
2269 takes up, in case it's UTF-8. (DLR)
2270 do_cursorpos()
2271 - Properly display the value of totsize as unsigned. (DLR)
2272 - If constant is TRUE, only display the cursor position when
2273 disable_cursorpos is FALSE. Don't refuse to display it when
2274 the cursor position hasn't changed, as that doesn't always
2275 keep it properly updated. (DLR, found by Mike Frysinger)
2276 do_help()
2277 - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
2278 consistency. (DLR)
2279 statusbar()
2280 - Set statusblank to 25 instead of 26, to match current Pico.
2281 (DLR)
2282 edit_redraw()
2283 - Make do_refresh a bool instead of an int. (DLR)
2284 do_yesno()
2285 - Allow refreshing the screen via Ctrl-L, as Pico does. (DLR)
2286 - Add a missing assert, and use actual_x() to calculate the
2287 number of characters buf takes up, in case it's UTF-8. (DLR)
2288 - Get input from bottomwin instead of edit, so that the cursor
2289 isn't erroneously put in the edit window while we wait for an
2290 answer. (DLR)
2291 - Call wnoutrefresh(edit) to make sure that the edit window is
2292 refreshed before we get input, as statusq() does. (DLR)
2293 total_redraw()
2294 - Simplify to just call wrefresh() on curscr, which updates the
2295 entire screen in one function call without moving the cursor
2296 from the window it's currently in. (DLR)
2297 - When using slang, use SLsmg_touch_screen() and SLsmg_refresh()
2298 to update the screen, as slang doesn't define curscr. (DLR)
2299 do_replace_highlight()
2300 - Use waddch() instead of waddstr() to display a space when we
2301 have a zero-length regex. (DLR)
2302 - Rename variable highlight_flag to highlight, for consistency.
2303 (DLR)
2304 do_credits()
2305 - Save the keystroke that breaks us out of the credits (if any)
2306 and put it back so that it isn't lost. This is especially
2307 needed if the keystroke is part of a multibyte character.
2308 (DLR)
2309- nano.1:
2310 - Clarify and consolidate the descriptions of --fill and
2311 --tabsize. (DLR)
2312- nanorc.5:
2313 - Update the description of how the "color" regex works. (DLR)
2314 - Clarify descriptions of the characters that aren't allowed
2315 in the "punct" or "brackets" options. (DLR)
2316 - Use .B instead of \fB ... \fP where possible, as nano.1 does.
2317 (DLR)
2318 - Clarify and consolidate the descriptions of "fill" and
2319 "tabsize". (DLR)
2320- nano.texi:
2321 - Update the "Feature Toggles" section to match current nano.
2322 (DLR)
2323 - Clarify and consolidate the descriptions of --fill and
2324 --tabsize. (DLR)
2325- configure.ac:
2326 - Minor tweaks to some of the test blocks to avoid XSI:isms.
2327 (DLR, adapted from a Debian patch for GNU ed by David
2328 Weinehall)
2329 - Don't refer to the built-in file browser as crappy anymore.
2330 (DLR)
2331 - Check for iswpunct() and mbstowcs(). (DLR)
2332 - Change the behavior of --enable-extra to only define
2333 NANO_EXTRA, instead of defining both it and
2334 ENABLE_MULTIBUFFER. (DLR)
2335 - Check for get_wch() instead of wget_wch() to determine if
2336 there's a wide curses library, as it's a more generic
2337 function. (DLR)
2338 - Check for possibly unavailable functions in alphabetical
2339 order. (DLR)
2340- doc/faq.html:
2341 - Update section 1.1 to mention the current maintainer. (DLR)
2342 - Minor capitalization and wording fixes. (DLR)
2343 - Update description of --enable-extra, and add missing line
2344 breaks. (DLR)
2345- doc/nanorc.sample:
2346 - In the "nanorc" regexes, tweak the "color" regex to properly
2347 color a line that specifies a background color without a
2348 foreground color, and update the associated comments. (DLR)
2349 - Clarify descriptions of the characters that aren't allowed
2350 in the "punct" or "brackets" options. (DLR)
2351 - Update comment referring to --enable-extra. (DLR)
2352 - Add "cxx" and "hxx" to the list of extensions that the
2353 "c-file" regexes apply to, and add "warning" and "error" to
2354 them as well. (Mike Frysinger)
2355 - Add regexes for assembler files. (Mike Frysinger)
2356 - In the preprocessor directives regex string in the "c-file"
2357 regexes, cover more whitespace characters than just " " by
2358 using "[[:space:]]" instead. (Mike Frysinger) DLR: Extend
2359 this to other regex strings whenever possible.
2360 - Move some overly long split-up regex strings that cover
2361 similar areas onto the same line. (DLR)
2362 - Add GCC builtins to the "c-file" regexes. (Mike Frysinger)
2363 - Simplify the file extension regex for groff. (DLR)
2364 - Clarify and consolidate the descriptions of "fill" and
2365 "tabsize". (DLR)
2366- Makefile.am, m4/Makefile.am:
2367 - Make sure that the files in EXTRA_DIST are in alphabetical
2368 order, and that the lines are wrapped at 72 characters. (DLR)
2369- doc/man/fr/Makefile.am:
2370 - Set mandir to @mandir@/fr, so French manpages get installed
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01002371 where they belong. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00002372- THANKS:
2373 - Add new translators to the credits.
2374
2375GNU nano 1.3.7 - 2005.04.10
2376- General:
2377 - Miscellaneous comment fixes. (DLR)
2378 - After (re)initializing the terminal, make sure the cursor is
2379 always turned on. Changes to do_alt_speller(),
2380 handle_sigwinch(), and main(). (DLR)
2381 - Make sure that all references to cut-to-end are left out when
2382 NANO_SMALL is defined. Changes to cut_to_eol(),
2383 do_cut_text(), and do_statusbar_cut_text(). (DLR)
2384- chars.c:
2385 make_mbchar()
2386 - Remove unneeded assert. (DLR)
2387 move_mbleft()
2388 - Fix assert to reference the proper variable, so that nano
2389 builds with DEBUG defined again. (Mike Frysinger, found by
2390 Dmitri Vassilenko)
2391- files.c:
2392 do_insertfile()
2393 - Fix problem where going into the help browser at the "Insert
2394 File" prompt would always result in the current answer's being
2395 used as the filename afterward. (DLR)
2396 get_full_path()
2397 - Rework handling of the results of getcwd() in order to avoid
2398 segfaults if they fail, and to remove uses of the nonportable
2399 GNU extension where passing a size of 0 will get a string as
2400 long as we need. (DLR)
2401 do_browser()
2402 - Rename variable lineno to fileline to avoid confusion. (DLR)
2403 do_browse_from()
2404 - Rework handling of the results of getcwd() in order to avoid
2405 segfaults if they fail, and to remove uses of the nonportable
2406 GNU extension where passing a size of 0 will get a string as
2407 long as we need. (DLR)
2408- nano.c:
2409 help_init()
2410 - When calculating allocsize, take multibyte characters into
2411 account, and keep the column number limits consistent. (DLR)
2412 - Break htx up into three chunks, in case the string is too long
2413 for the compiler to handle (e.g. an ISO C89 compiler that can
2414 only handle up to 509 characters). (DLR)
2415 - Minor wording fixes. (DLR)
2416 print1opt()
2417 - Don't include longflag if HAVE_GETOPT_LONG isn't defined.
2418 Rename this function to print1opt_full(), leave out the
2419 longflag parameter if HAVE_GETOPT_LONG isn't defined, and make
2420 print1opt() a macro for print1opt_full() that does that
2421 without the need for a lot of extra #ifdefs. (David
2422 Benbennick) DLR: Rename print1opt_f() to print1opt_full().
2423 - Rework the special case of options that are ignored for Pico
2424 compatibility so that they display more neatly when
2425 HAVE_GETOPT_LONG isn't defined. (DLR)
2426 usage()
2427 - Fix erroneous #ifdef that resulted in the -d/--rebinddelete
2428 option's not being printed when NANO_SMALL was defined. (DLR)
2429 find_paragraph()
2430 - Fix problem where a search for the next paragraph would skip
2431 over certain cases of one-line paragraphs. (DLR)
2432 do_justify()
2433 - Instead of breaking a line at a space and readding the space
2434 afterwards, just break the line after the space, as it's more
2435 efficient. (DLR)
2436 main()
2437 - Change 0 to NULL in the option struct where needed. (David
2438 Benbennick)
2439- nano.h:
2440 - Define PATH_MAX as 4096 if it isn't defined, as passing a size
2441 of 0 to get a string as long as we need is a nonportable GNU
2442 extension, and hence it won't work on non-GNU systems that
2443 don't define PATH_MAX. (DLR)
2444- rcfile.c:
2445 parse_rcfile()
2446 - Fix debugging message to display the long value of a flag
2447 properly. (DLR)
2448- utils.c:
2449 regexec_safe()
2450 - Rename to safe_regexec() for consistency. (DLR)
2451- winio.c:
2452 nanogetstr()
2453 - Fix misplaced break. (DLR)
2454 statusq()
2455 - Make sure that the vsnprintf(foo) call and foo's subsequent
2456 null termination both take the proper number of bytes when
2457 using multibyte characters, so that multibyte prompt strings
2458 aren't prematurely cut off. (DLR)
2459 titlebar()
2460 - Make sure that the (mv)?waddnstr() calls take the proper
2461 number of bytes when using multibyte characters, so that
2462 multibyte strings aren't prematurely cut off. (DLR, found by
2463 Jordi)
2464 - Allow the "View" state to be displayed when a filename is
2465 passed in, in case we're in multibuffer mode and inside the
2466 file browser. (DLR)
2467 help_line_len()
2468 - Make the text display more flexible, and closer to what nano
2469 1.2.x does. (DLR)
2470- configure.ac:
2471 - Allow more flexible handling of UTF-8 support by allowing
2472 the --enable-utf8 and --disable-utf8 options. (Mike
2473 Frysinger) DLR: Extend these options to work with slang as
2474 well as curses, consolidate the warning and error messages
2475 dealing with UTF-8 support as much as possible, and add a few
2476 minor consistency fixes.
2477 - Mention explicitly that the check for the broken regexec() is
2478 needed for glibc 2.2.3. (DLR)
2479- nanorc.sample:
2480 - Fix the description for the whitespace option to mention that
2481 only single-column characters are allowed. (DLR)
2482 - Add C++ regexes. (Neil Brown, merged into c-file regexes by
2483 DLR)
2484 - Break up overly long perl and nanorc regexes into separate
2485 regexes of no more than 256 bytes, as POSIX-compliant regexp
2486 implementations can reject regexes of over 256 bytes. (DLR)
2487- nano.1, nano.texi:
2488 - Mention the -? alias for -h/--help, and add various
2489 consistency fixes. (DLR)
2490- nanorc.5:
2491 - Fix the description for the whitespace option to mention that
2492 only single-column characters are allowed. (DLR)
2493
2494GNU nano 1.3.6 - 2005.03.20
2495- General:
2496 - More int -> bool conversions. (DLR and David Benbennick)
2497 - Overhaul the cutting and uncutting routines to use the
2498 partitioning code, as it greatly simplifies how they work.
2499 New functions move_to_filestruct(), copy_from_filestruct(),
2500 cut_line(), cut_marked(), and cut_to_eol(); changes to
2501 add_to_cutbuffer(), do_cut_text(), do_uncut_text(), etc.;
2502 removal of functions get_cutbottom(), add_to_cutbuffer(), and
2503 cut_marked_segment(). (DLR)
2504 - Overhaul the justify-related routines to back up and restore
2505 unjustified text to use the partitioning code, as it greatly
2506 simplifies how they work, and to store such text in its own
2507 buffer rather than the cutbuffer. Changes to backup_lines(),
2508 do_justify(), etc. (DLR)
2509 - Overhaul the multibuffer routines to increase efficiency, most
2510 importantly making them use a doubly linked list for the open
2511 files so that switching between them is no longer O(N), and
2512 only including free_openfilestruct() when --enable-debug is
2513 used. Also use some of the same efficiency tweaks when
2514 dealing with filestruct nodes. New function
2515 open_prevnext_file(); changes to make_new_opennode(),
2516 splice_opennode(), unlink_opennode(), delete_opennode(),
2517 free_openfilestruct(), add_open_file(), load_open_file(),
2518 close_open_file(), shortcut_init(), die(), make_new_node(),
2519 copy_node(), splice_node(), delete_node(), and
2520 free_filestruct(); removal of open_prevfile() and
2521 open_nextfile(). (David Benbennick, minor tweaks and additions
2522 by DLR)
2523 - Change references to "open files" to "open file buffers", for
2524 consistency. (DLR)
2525 - Add flag to disable UTF-8 sequence interpretation, so that
2526 people using single-byte encodings such as KOI8-R can type
2527 properly again. (DLR, found by Arthur Ivanov)
2528 - Massively overhaul the input and output routines to support
2529 buffered input and output, the first steps toward
2530 wide/multibyte character input and output, and verbatim input
2531 of double-byte Unicode characters instead of single-byte ASCII
2532 characters. New functions is_byte(), get_buffer(),
2533 get_buffer_len(), buffer_to_keys(), unget_input(),
2534 get_input(), parse_kbinput(), and parse_verbatim_kbinput();
2535 new macro charcpy(); changes to do_char() (renamed to
2536 do_output()), get_edit_input() (renamed to do_input() and
2537 moved to nano.c), get_edit_mouse() (renamed do_mouse() and
2538 moved to nano.c), do_verbatim_input(), do_tab(), main(), and
2539 get_ascii_kbinput() (renamed to get_byte_kbinput()). The wide
2540 version of ncurses is required in order for wide/multibyte
2541 input and output to work properly. (DLR; buffered input/output
2542 based on ideas from mutt 1.4.2.1; input of Unicode characters
2543 in hexadecimal suggested by Michael Piefel)
2544 - More steps toward wide character/multibyte character support.
2545 New functions control_rep(), parse_char(), move_left(), and
2546 move_right(); changes to do_left(), do_right(), do_delete(),
2547 breakable(), break_line(), do_output(), get_buffer(),
2548 unget_input(), actual_x(), strnlenpt(), display_string(),
2549 titlebar(), statusbar(), onekey(), edit_add(),
2550 do_replace_highlight(), and do_credits(). (David Benbennick
2551 and DLR)
2552 - Overhaul the high-level input routines for the statusbar to
2553 make them read the shortcut lists for functions instead of
2554 manually running them, to make nanogetstr() less complex, and
2555 to increase flexibility. Note that currshortcut is now used
2556 regardless of #ifdefs, and that cutting text at the statusbar
2557 now respects the CUT_TO_END flag. Changes to shortcut_init()
2558 and nanogetstr(); new functions do_statusbar_input(),
2559 do_statusbar_mouse(), do_statusbar_home(), do_statusbar_end(),
2560 do_statusbar_right(), do_statusbar_left(),
2561 do_statusbar_backspace(), do_statusbar_delete(),
2562 do_statusbar_cut_text(), and do_statusbar_output(). (DLR)
2563 - Even more steps toward wide character/multibyte character
2564 support. Movement and cursor display at the statusbar prompt
2565 should now (mostly) work properly with a string containing
2566 multibyte characters, and text display of such strings should
2567 now (mostly) work properly as well. Changes to search_init(),
2568 nanoget_repaint(), do_statusbar_right(), do_statusbar_left(),
2569 do_statusbar_backspace(), and do_statusbar_delete(). (David
2570 Benbennick and DLR)
2571 - Implement cutting from the current position to the end of the
2572 file, using Ctrl-X from the search prompt and Meta-T from the
2573 edit window. New function do_cut_till_end(). Note that this
2574 is disabled when NANO_SMALL is defined. (DLR, based on ideas
2575 from a patch for Pico by Eduardo Chappa, suggested by Ryan
2576 Dlugosz and Paul Adams)
2577 - Implement verbatim input for the statusbar prompt. Changes to
2578 do_statusbar_input() and do_statusbar_output(); new functions
2579 keys_to_buffer(), unparse_kbinput(), and
2580 do_statusbar_verbatim_input(). (DLR)
2581 - Yet more steps toward full wide character/multibyte character
2582 support. Overhaul the functions that already have support for
2583 them to work with multibyte strings as much as possible, add
2584 support to a few more functions as well, and move multibyte
2585 character-specific functions to their own source file. New
2586 file chars.c; new functions is_alnum_char(),
2587 is_alnum_mbchar(), is_alnum_wchar(), is_blank_mbchar(),
2588 is_blank_wchar(), is_cntrl_mbchar(), is_cntrl_wchar(),
2589 control_mbrep(), control_wrep(), mbwidth(), mb_cur_max(),
2590 make_mbchar(), mbstrlen(), mbstrnlen(), mbstrcasecmp(),
2591 mbstrncasecmp(), mbstrcasestr(), and mbrevstrcasestr();
2592 changes to help_init(), do_wrap(), break_line(), is_byte()
2593 (moved to chars.c), is_blank_char() (moved to chars.c),
2594 is_cntrl_char() (moved to chars.c), nstricmp() (renamed
2595 nstrcasecmp() and moved to chars.c), nstrnicmp() (renamed
2596 nstrncasecmp() and moved to chars.c), nstristr() (renamed
2597 nstrcasestr() and moved to chars.c), revstrstr() (moved to
2598 chars.c), revstristr() (renamed revstrcasestr() and moved to
2599 chars.c), nstrnlen() (moved to chars.c), parse_char() (renamed
2600 parse_mbchar() and moved to chars.c), move_left() (renamed
2601 move_mbleft() and moved to chars.c), move_right() (renamed
2602 move_mbright() and moved to chars.c), do_home(),
2603 do_verbatim_input(), do_delete(), do_tab(), do_enter(),
2604 indent_length(), do_next_word(), do_prev_word(), do_wrap(),
2605 do_input(), do_output(), is_whole_word(), strstrwrapper(),
2606 get_buffer(), unget_input(), unget_kbinput(), get_input(),
2607 parse_kbinput(), unparse_kbinput(), parse_verbatim_kbinput(),
2608 do_statusbar_input(), do_statusbar_home(),
2609 do_statusbar_verbatim_kbinput(), do_statusbar_output(),
2610 do_help(), help_line_len(), and display_string(); removal of
2611 buffer_to_keys() and keys_to_buffer(). (DLR)
2612 - Add -O/--morespace command line option, plus a corresponding
2613 Meta-O toggle and a "morespace" rcfile option. When these are
2614 used, the normally-unused blank line below the titlebar will
2615 be treated as part of the edit window. New functions
2616 no_more_space() and blank_topbar(); changes to global_init(),
2617 window_init(), handle_sigwinch(), do_toggle(), do_mouse(),
2618 get_mouseinput(), etc. (DLR; suggested by Mike Frysinger,
2619 Rocco, and Robert Schultz)
2620 - Add support for moving to the next or previous word at the
2621 statusbar prompt. New functions do_statusbar_next_word() and
2622 do_statusbar_prev_word(); changes to do_statusbar_input().
2623 (DLR)
2624 - Make resizing more flexible. We now can work with as few as
2625 one row, and with no limit on the number of columns (except of
2626 course the curses-imposed limit that it be greater than zero).
2627 New function resize_variables(); changes to die_too_small()
2628 (renamed check_die_too_small()), global_init(), window_init(),
2629 and handle_sigwinch(). (David Benbennick)
2630 - Use void instead of RETSIGTYPE, as signal handlers are
2631 supposed to return void anyway. Also, the value of RETSIGTYPE
2632 is sometimes misdetected as int, leading to compilation
2633 warnings or errors. Changes to cancel_fork(),
2634 handle_hupterm(), do_suspend(), and do_cont(). (David
2635 Benbennick)
2636 - Change flags to an unsigned long, and totsize to a size_t.
2637 (DLR)
2638 - Store the number of multibyte characters instead of the number
2639 of single-byte characters in totsize, and use get_totals() to
2640 get the value of totsize in a few more places. Changes to
2641 read_line(), read_file(), do_delete(), do_input(),
2642 get_totals(), and do_cursorpos(). (DLR)
2643 - Overhaul the tab completion code, the file browser code, and
2644 related functions to increase efficiency and support multibyte
2645 characters. New function is_dir(); changes to
2646 get_full_path(), check_writable_directory(), safe_tempnam(),
2647 diralphasort(), username_tab_completion(),
2648 cwd_tab_completion(), input_tab(), tail(), striponedir(),
2649 browser_init(), do_browser(), and do_browse_from(); removal of
2650 append_slash_if_dir(), readable_dir(), and
2651 check_wildcard_match(). (David Benbennick) DLR: Move the
2652 routine to get the current user's home directory into the new
2653 function get_homedir(), and use it where necessary. Also add
2654 a few miscellaneous tweaks.
2655 - Overhaul the rcfile parsing code to make it simpler and more
2656 accurate, remove now-redundant checks from the color code,
Benno Schulenberg4a073a02017-01-04 13:48:25 +01002657 change the COLOR_SYNTAX toggle to the NO_COLOR_SYNTAX toggle,
2658 and improve various debugging messages. Changes to
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00002659 set_colorpairs(), do_colorinit(), parse_next_word(),
2660 parse_argument(), colortoint(), parse_next_regex(),
2661 parse_syntax(), parse_colors(), parse_rcfile(), do_rcfile(),
2662 etc. (David Benbennick) DLR: Rename colortoint() to
2663 color_to_int(), and add a few miscellaneous tweaks.
2664 - Overhaul the paragraph-searching code to make it use the
2665 paragraph-searching utility functions when possible instead of
2666 duplicating code. Also overhaul the justify code to make it
2667 leave the right number of spaces at the ends of the lines of a
2668 paragraph, to make it support multibyte characters, and to
2669 make it simpler. Also, don't remove a space after a duplicate
2670 character in punct anymore, as it doesn't really make us more
2671 compatible with Pico. New functions mbstrchr(),
2672 do_para_begin_void(), and do_para_end_void(); changes to
2673 justify_format(), do_para_begin(), inpar(), do_para_end(),
2674 break_line(), do_para_search() (renamed find_paragraph()), and
2675 do_justify(); removal of breakable(). (DLR)
2676 - Still more steps toward full wide/multibyte character support.
2677 Make sure all rcfile arguments are valid multibyte strings,
2678 make whitespace display mode work with multibyte characters,
2679 and add a few related documentation updates. New function
2680 make_mbstring(); changes to make_mbchar(), make_mbstring(),
2681 main(), parse_rcfile(), display_string(), and do_help(). (DLR)
2682- cut.c:
2683 do_cut_text()
2684 - If keep_cutbuffer is FALSE, only blow away the text in the
2685 cutbuffer if the cutbuffer isn't empty. (DLR)
2686 do_uncut_text()
2687 - No longer duplicate Pico's adding an extra magicline to the
2688 file if uncutting leaves the cursor on the current one. This
2689 behavior appears to be a bug, as inserting a file in the same
2690 manner doesn't add an extra magicline. (DLR)
2691- files.c:
2692 get_full_path()
2693 - Remove unneeded NANO_SMALL #ifdef, so that it's included
2694 whenever its prototype is, and so it can compile when
2695 DISABLE_OPERATINGDIR isn't defined and NANO_SMALL is. (DLR)
2696 do_browser()
2697 - Refresh the screen when Ctrl-L is pressed in the file browser,
2698 as Pico does. (DLR)
2699- global.c:
2700 shortcut_init()
2701 - Fix misplaced #endif keeping the "Full Justify" shortcut in
2702 the search shortcut list from being included when NANO_SMALL
2703 is defined but DISABLE_JUSTIFY isn't. (DLR)
2704 - Use NULL instead of 0 when a shortcut has no associated
2705 function. (DLR)
2706 thanks_for_all_the_fish()
2707 - Free the justify buffer if it isn't empty. (DLR)
2708- nano.c:
2709 help_init()
2710 - Clarify the text describing double-escape character input.
2711 Since ASCII is technically only seven bits wide, characters
2712 128-255 aren't ASCII. (DLR, suggested by Michael Piefel)
2713 do_toggle()
2714 - When we get the whitespace display toggle, update the titlebar
2715 as well as the edit window, in case the filename displayed on
2716 the titlebar contains spaces or tabs. (DLR)
2717 handle_sigwinch()
2718 - If the justify buffer isn't empty, blow it away and don't
2719 display "UnJustify" in the shortcut list anymore. (DLR)
2720 usage()
2721 - Typo fix. (DLR)
2722 do_wrap()
2723 - Make wrap_loc and word_back ssize_t's, to match fill. (DLR)
2724 break_line()
2725 - Fix compilation problem caused by its returning int when it
2726 should return ssize_t according to its prototype. (Jeremy
2727 Huddleston)
2728 indent_length()
2729 - Make the #ifdef around it match that of its prototype to avoid
2730 compilation problems when compiling with --enable-tiny and
2731 without DISABLE_JUSTIFY's being defined. (DLR)
2732 do_justify()
2733 - For consistency, preserve placewewant if we didn't unjustify
2734 instead of setting it to 0. (DLR)
2735 - When justifying the entire file, properly break out of the
2736 loop if we've found at least one paragraph, there are no more
2737 paragraphs after the current one, and the paragraph search
2738 left us on the magicline. This avoids a segfault. (DLR)
2739 do_input()
2740 - Add finished parameter, used to indicate when we run or try to
2741 run a function associated with a shortcut. (DLR)
2742 main()
2743 - Try to automatically detect whether UTF-8 support is needed by
2744 setting the NO_UTF8 flag if setlocale() returns a string that
2745 doesn't contain "UTF8" or "UTF-8", case insensitively. When
2746 using slang 2.x, enable UTF-8 support with SLutf8_enable().
2747 (DLR, string checks beyond case-sensitive "UTF-8" adapted from
2748 Debian's UTF-8 patch for slang)
2749- nano.h:
2750 - Remove now-unneeded #defines for functions that now have
2751 multibyte equivalents. (DLR)
2752 - Remove now-unneeded MIN_EDITOR_COLS. (David Benbennick)
2753- utils.c:
2754 regexec_safe()
2755 - Remove redundant regexec #define, and move the regexec #undef
2756 to nano.h. (DLR)
2757 is_blank_char()
2758 - Rewrite to use ctype functions instead of checking directly
2759 for spaces and tabs. (DLR)
2760 revstrstr(), revstristr()
2761 - Add asserts. (DLR)
2762- winio.c:
2763 get_buffer()
2764 - If we get ERR when using blocking input, it means that the
2765 input source that we were using is gone. In this case, call
2766 handle_hupterm(), so that nano dies gracefully instead of
2767 going into an infinite loop. (DLR, found by Jim Uhl)
2768 titlebar()
2769 - Rename some variables for consistency, make space an int
2770 instead of a size_t, properly handle the case where the prefix
2771 length plus the path length is greater than the amount of
2772 space available, and fix a typo in an assert. (DLR)
2773 unget_kbinput()
2774 - Remove the wide character handling, as it didn't work properly
2775 with respect to function keys. (DLR)
2776 get_kbinput(), get_translated_kbinput(), get_ascii_kbinput(),
2777 get_untranslated_kbinput()
2778 - Make the ascii_digits variables ints instead of size_t's,
2779 since they will only hold very small values. (DLR)
2780 get_kbinput()
2781 - Remove the wide character handling, as it didn't work properly
2782 with respect to adding multiple wide characters at once, and
2783 ungetting them just caused other problems elsewhere. (DLR)
2784 get_translated_kbinput()
2785 - Remove the wide character handling, as it didn't work properly
2786 with respect to adding multiple wide characters at once, and
2787 ungetting them just caused other problems elsewhere. (DLR)
2788 - Use if statements instead of switch/case statements to handle
2789 ASCII character sequence mode, as they take up less room.
2790 get_ascii_kbinput()
2791 - Use if statements instead of switch/case statements to handle
2792 ASCII character sequence mode, as they take up less room.
2793 get_verbatim_kbinput()
2794 - Don't pass v_kbinput in as a parameter, since we're
2795 dynamically allocating it and then returning it. (DLR)
2796 - Remove v_first parameter, and go back to the old behavior of
2797 putting back the first character of the escape sequence, as it
2798 worked just as well and was less complicated. (DLR)
2799 get_mouseinput()
2800 - Return TRUE instead of FALSE only when we have a control key,
Benno Schulenberg4a073a02017-01-04 13:48:25 +01002801 a primary meta key sequence, or both. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00002802 get_shortcut()
2803 - Add a debug message. (DLR)
2804 - Take kbinput as a reference instead of a value, so that it's
2805 translated when the key is translated to its equivalent
2806 control key or meta key shortcut. (DLR)
2807 - Return s instead of NULL only when we have a control key, a
Benno Schulenberg4a073a02017-01-04 13:48:25 +01002808 primary meta key sequence, or both. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00002809 get_toggle()
2810 - Add a debug message. (DLR)
2811 bottombars()
2812 - Initialize foo, in case a keystroke meets none of the handled
2813 cases. (DLR)
2814 total_refresh()
2815 - Refresh bottomwin using the value of currshortcut, and change
2816 the code around do_refresh() calls to accommodate this. (DLR)
2817 - Split out the code that updates the screen before refreshing
2818 it into the new function total_redraw().
2819 do_help()
2820 - Refresh the screen when Ctrl-L is pressed in the help browser,
2821 as Pico does. (DLR)
2822- configure.ac:
2823 - Remove specific references to control key shortcuts. (DLR)
2824 - Check for the wide versions of ncurses or slang, without which
2825 multibyte strings don't seem to be displayed properly, and
2826 associated multibyte/wide character functions. (DLR)
2827 - Check for wchar.h, for those systems that need it for the
2828 wcwidth() prototype. (DLR)
2829 - Remove checks for all include files that we include
2830 unconditionally. (DLR)
2831 - Remove references to termio.h here and elsewhere, since it's
2832 obsolete and it defines a struct termio that we don't use
2833 anywhere. (DLR)
2834 - Typo fixes. (DLR)
2835 - Add checks for isascii(), iswalnum(), iswblank() or
2836 iswspace(), mblen(), and wctype.h. (DLR)
2837- README:
2838 - Updated for the 1.3 branch. (DLR)
2839- README.CVS:
2840 - Updated to mention the need for a wide character-supporting
2841 version of curses or slang if UTF-8 support is desired. (DLR)
2842- doc/faq.html:
2843 - Remove now-inaccurate note about verbatim input's not working
2844 at prompts, and update its description to mention that it
2845 handles hexadecimal values now. (DLR)
2846 - Add question about opening files with names beginning with
2847 '+'s, and add a few more miscellaneous cosmetic fixes.
2848- nanorc.sample:
2849 - Add return to the "c-file" regexes. (DLR)
2850 - Clarify the text describing good values for whitespace
2851 display. Since ASCII is technically only seven bits wide,
2852 characters 128-255 aren't ASCII. (DLR, suggested by Michael
2853 Piefel)
2854 - Add the "morespace" option. (DLR)
2855 - Add support for characters to the "c-file" regexes. (DLR)
2856 - Add the hexadecimal equivalents of the decimal values
2857 suggested for whitespace display, now that it can handle
2858 multibyte characters. (DLR)
2859 - Add "manpage" regex. (Mike Frysinger, minor tweaks by DLR)
2860- nano.1. nanorc.5, nano.texi:
2861 - Add the "morespace" option, and sync with the descriptions in
2862 nanorc.sample in a few places. (DLR)
2863 - Miscellaneous wording tweaks. (DLR)
2864- src/Makefile.am:
2865 - Add chars.c to nano_SOURCES. (DLR)
2866 - If we're installing and the "rnano" symlink already exists,
2867 remove it so that we can create it again without an error.
2868 (DLR)
2869- AUTHORS:
2870 - Updated to mention UTF-8 support.
2871
2872GNU nano 1.3.5 - 2004.11.22
2873- General:
2874 - Convert more ints that hold only TRUE and FALSE values to
2875 bools. (DLR)
2876 - Consolidate the code for finding and running a shortcut in a
2877 shortcut list, the code for finding and toggling a toggle in a
2878 toggle list, and the code for doing both of those and
2879 interpreting mouse clicks in the edit window. Also move the
2880 code for do_mouse() to get_edit_mouse() and tweak it to
2881 properly handle cases where a shortcut isn't clicked. New
2882 functions get_shortcut(), get_toggle(), get_edit_input(), and
2883 get_edit_mouse(); changes to do_browser(), do_justify(),
2884 do_help(), and main(). (DLR)
2885 - Simplify a few more translated messages. (DLR)
2886 - Translation updates (see po/ChangeLog for details).
2887 - Remove reference to @includedir@ in src/Makefile.am, as it's
2888 unneeded and can break cross-compilation. (DLR, found by Mike
2889 Frysinger)
2890 - Overhaul the file opening, reading, and loading operations to
2891 increase efficiency, avoid problems on invalid filenames
2892 specified on the command line, and eliminate corner cases that
2893 erroneously leave edittop or current NULL when they shouldn't
2894 be. Also split out the code to execute a command into a
2895 separate function, eliminate a workaround for one of the
2896 aforementioned corner cases, handle files with a mix of DOS
2897 and Mac format lines, and remove the code to turn on the
2898 NO_CONVERT flag when opening a binary file, as it's not always
2899 reliable and will cause problems with UTF-8 text files. New
2900 functions open_file(), execute_command(), and mallocstrassn();
2901 changes to read_line(), load_file(), read_file(), open_file(),
2902 get_next_filename(), do_insertfile(), do_insertfile_void(),
2903 do_alt_speller(), and edit_refresh(). (David Benbennick) DLR:
2904 Add a few minor fixes to make sure that current is set
2905 properly in all cases, indicate on the statusbar when the file
2906 has a mix of DOS and Mac format lines, move the test for DOS
2907 line endings from read_line() to read_file() to avoid
2908 inaccurate statusbar messages and to reduce fileformat to a
2909 local variable in read_file(), eliminate another workaround in
2910 edit_update(), rename open_the_file() to open_file() since the
2911 latter has been removed, and rename load_a_file() to
2912 load_buffer().
2913 - Add alternative shortcuts to the main and search shortcut
2914 lists for moving to the beginning and end of a paragraph and
2915 justifying the entire file: Meta-( (Meta-9), Meta-) (Meta-0),
2916 and Meta-J, respectively. Do this because Pico's practice of
2917 putting these shortcuts only in the search shortcut list is
2918 rather odd. (DLR)
2919 - Turn off extended input processing (the IEXTEN termios flag)
2920 as nano 1.2.x does. New function disable_extended_input();
2921 changes to terminal_init(). (DLR)
2922 - Remove redundant include of limits.h from nano.c. nano.c
2923 includes nano.h and nano.h includes limits.h. (DLR)
2924 - Add a func_key flag to the low-level input functions and the
2925 currently existing high-level input functions, to indicate
2926 extended keypad values. This is needed for UTF-8 support.
2927 Changes to unget_kbinput(), get_kbinput(),
2928 get_translated_kbinput(), get_shortcut(), get_edit_input(),
2929 etc. (DLR)
2930 - Add a multibuffer mode toggle to the "Execute Command" prompt,
2931 for consistency with the "Read File" prompt. Changes to
2932 do_insertfile() and shortcut_init(). (DLR)
2933 - Add an ^X toggle to the "Execute Command" prompt to go back to
2934 the "Insert File" prompt, and add a ^T toggle to the "Go To
2935 Line" prompt to go back to the "Where Is" prompt. Changes to
2936 do_insertfile(), shortcut_init(), do_gotoline(), etc.
2937 - Make sure a few uninitialized static variables are initialized
2938 to sane values. (DLR)
2939 - After reading in a file and detecting the format it's in, set
2940 the file format flags (DOS_FILE and MAC_FILE) to match, and
2941 preserve them across multiple file buffers. Changes to
2942 read_file(), add_open_file(), and load_open_file(). (DLR,
2943 suggested by Bill Soudan)
2944 - Remove the -D/--dos and -M/--mac command line options, as they
2945 aren't much use with the new file format autodetection. Also
2946 remove the global versions of the toggles, so that they can
2947 only be used at the "Write File" prompt as similar options
2948 can. Finally, change the Mac format toggle to Meta-M, since
2949 that no longer conflicts with the global -m/--mouse toggle.
2950 (DLR)
2951 - Add support for reading in UTF-8 sequences to the low-level
2952 input routines. Changes to get_kbinput() and
2953 get_translated_kbinput(). (DLR)
2954 - Reduce search_last_line to a static variable in search.c, and
2955 allow it to be set to FALSE via a function. New function
2956 findnextstr_wrap_reset(); changes to do_int_spell_fix(),
2957 findnextstr(), do_search(), do_research(), do_replace_loop(),
2958 do_replace(), and do_find_bracket(). (DLR, problem with making
2959 search_last_line local to findnextstr() found by Rocco)
2960 - When saving or changing file positions, be sure not to ignore
2961 placewewant. Changes to do_int_spell_fix(), findnextstr(),
2962 do_replace_loop(), and do_replace(). (DLR)
2963 - Convert current_x and mark_beginx to size_t's, and convert
2964 some functions that use them as a parameter to use size_t as
2965 well. Also change some related assertions to handle them.
2966 (David Benbennick and DLR)
2967 - Add code to partition a filestruct between a set of arbitrary
2968 coordinates. Given the coordinates of the beginning and end
2969 of the mark, this allows proper and easier handling of saving
2970 marked selections, replacing text only in marked selections
2971 (suggested by Joseph Birthisel), and spell-checking marked
2972 selections using either the internal or alternate spell
2973 checker. Do all these using a global partition structure.
2974 New functions partition_filestruct(),
2975 unpartition_filestruct(), remove_magicline(), and
2976 get_totals(); changes to write_marked(), do_int_spell_fix(),
2977 do_alt_speller(), handle_sigwinch(), and do_replace_loop().
2978 (DLR)
2979 - Remove most redundant includes of sys/stat.h. It's included
2980 in nano.h, so it doesn't need to be included in files that
2981 include nano.h. (DLR)
2982 - Remove the DOS_FILE and MAC_FILE flags, as they're only used
2983 in files.c, and replace them with a static file_format enum.
2984 Change the openfilestruct structure accordingly in order to
2985 handle this. (DLR)
2986 - Convert some ints with predefined boundaries to enums. (DLR)
2987 - Include config.h only if HAVE_CONFIG_H. (Jordi)
2988- cut.c:
2989 cut_marked_segment()
2990 - Respect concatenate_cut, as we need to use it if we do a
2991 marked cut and immediately follow it with a cut-to-end (which
2992 uses this function). (DLR)
2993 do_cut_text()
2994 - Set concatenate_cut to TRUE unconditionally when doing a
2995 marked cut. This fixes an incompatibility with Pico where an
2996 extra line is uncut if we do a marked cut that includes the
2997 magicline and immediately follow it with an unmarked cut.
2998 (DLR)
2999 do_uncut_text()
3000 - Maintain current_y's value when uncutting blocks so that
3001 smooth scrolling works correctly. (DLR)
3002- files.c:
3003 read_file()
3004 - Rename variable fileformat to format, to avoid confusion with
3005 the file_format enum type. (DLR)
3006 load_buffer()
3007 - Don't change the file format when we insert another file into
3008 the current one. (DLR)
3009 do_insertfile()
3010 - Simplify by reusing variables whereever possible, and add a
3011 parameter execute to indicate whether or not to be in "Execute
3012 Command" mode. (DLR)
3013 - Rework so that goto is no longer needed, using do_writeout()
3014 as a model. (DLR)
3015 - If file browsing succeeds, call statusq_abort() so that the
3016 cursor position at the statusbar is reset. (DLR)
3017 - Add missing #ifdefs around the wrap_reset() call so that nano
3018 compiles with wrapping disabled again. (DLR)
3019 - If we're not inserting a file into a new buffer, partition the
3020 current buffer so that it's effectively a new buffer just
3021 before inserting the file, and only restore placewewant
3022 afterwards. This is the same behavior we would get if we
3023 opened the file, added all of it to the cutbuffer, closed the
3024 file, and uncut at the current cursor position. (DLR)
3025 - Maintain current_y's value when inserting so that smooth
3026 scrolling works correctly. (DLR)
3027 do_writeout()
3028 - Restructure if blocks for greater efficiency, using
3029 do_insertfile() as a model. (DLR)
3030 - Simplify where possible, and use an int retval to hold the
3031 return value instead of i. (DLR)
3032 - If file browsing succeeds, call statusq_abort() so that the
3033 cursor position at the statusbar is reset. (DLR)
3034 - Remove unneeded calls to display_main_list(). (DLR)
3035 do_writeout_void()
3036 - Call display_main_list(), for consistency with
3037 do_insertfile_void(). (DLR)
3038 write_file()
3039 - If we've tried to write to an unwritable file and we're not
3040 prepending, tempname is NULL when it's passed to unlink().
3041 This can cause problems if unlink() can't handle NULL, so
3042 don't call it in that case. (David Benbennick)
3043 write_marked()
3044 - Remove check for MARK_ISSET's not being set. (DLR)
3045 open_prevfile(), open_nextfile()
3046 - Translate the "New Buffer" string when displaying "Switched
3047 to" messages on the statusbar. (DLR)
3048 input_tab()
3049 - Fix snprintf() call so that we don't segfault when trying to
3050 complete a filename containing %'s. (Ulf Härnhammar)
3051- global.c:
3052 shortcut_init()
3053 - Remove redundant NANO_SMALL #ifdef. (DLR)
3054 - Change an erroneous _() around the "New Buffer" string to
3055 N_(). (DLR)
3056 - Add new key aliases: F15 for "Mark Text" (DLR) and F16 for
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01003057 "Where Is Next". (Chris)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00003058 - Leave "Mark Text" and "Where Is Next" out entirely when
3059 NANO_SMALL is defined. Since they aren't in the visible main
3060 list, there's no point in having them in but disabled. (DLR)
3061 - In the search prompt shortcut list, move "Full Justify" to
3062 after "History", so that the latter is visible onscreen
3063 again. (DLR)
3064- nano.c:
3065 die_save_file()
3066 - Clarify the error message when there are too many backup files
3067 and the current one can't be written. (DLR)
3068 help_init()
3069 - Rework to be a bit more flexible. Only add tabs for shortcut
3070 key entries if those entries exist, and if there's only one
3071 entry left but there's room for more than one, add enough tabs
3072 to put that entry at the end. Also, make sure a function key
3073 is displayed in the middle if it's the first entry. These
3074 changes allow e.g. the miscellaneous meta key sequence to be
3075 displayed in a shortcut that has a control key, a primary meta
3076 key sequence, and a miscellaneous meta key sequence, but no
3077 function key. (DLR)
3078 - Update the help text to mention replacing and spell checking
3079 only selected text, and also add a few cosmetic fixes to it.
3080 (DLR)
3081 - Update the help text to mention how to get a blank buffer at
3082 the "Execute Command" prompt. (DLR)
3083 do_prev_word()
3084 - Tweak to avoid an infinite loop, since current_x is now a
3085 size_t and hence is unsigned. (DLR)
3086 do_int_spell_fix()
3087 - Move the REVERSE_SEARCH flag toggling into the NANO_SMALL
3088 #ifdef, since the tiny version of nano doesn't support reverse
3089 searching. Move the CASE_SENSITIVE flag toggling out in order
3090 to allow the internal spell checker to work properly when
3091 NANO_SMALL is defined and DISABLE_SPELLER isn't. Also, turn
3092 the USE_REGEXP flag off during spell checking in order to
3093 avoid a potential segfault. (DLR)
3094 - Fix a problem where if the cursor is in the middle of a file,
3095 the spell checker will sometimes only correct the misspelled
3096 word instances that appear before the cursor position and then
3097 stop. (Rocco)
3098 - Use do_replace_loop()'s canceled parameter in order to ensure
3099 that the spell checking stops if we canceled at the replace
3100 prompt. (DLR)
3101 do_alt_speller()
3102 - Call terminal_init() unconditionally after running the
3103 alternate spell checker, so that the terminal state is
3104 properly restored in all cases. (DLR)
3105 justify_format()
3106 - For more compatibility with Pico, remove extra space after a
3107 character in punct if that character is the same as the one
3108 before it. For example, with the default values of punct and
3109 brackets, only one space will be left after "...". (DLR)
3110 do_para_begin(), do_para_end()
3111 - Maintain current_y's value when moving up or down lines so
3112 that smooth scrolling works correctly. (DLR)
3113 breakable(), break_line()
3114 - Make goal a ssize_t instead of an int, since fill is now a
3115 ssize_t, and the position at which a line is broken can be
3116 greater than COLS. (DLR)
3117 main()
3118 - Tweak the command line parsing routine so that multiple +LINE
3119 flags are properly interpreted in multibuffer mode. (DLR)
3120- nano.h:
3121 - Add WIDTH_OF_TAB #define, containing the default width of a
3122 tab. (DLR)
3123 - Move the PATH_MAX #define here from files.c.
3124 - Remove unused COPYFILEBLOCKSIZE #define. (DLR)
3125- proto.h:
3126 - Add missing NANO_SMALL #ifdef around the cut_marked_segment()
3127 prototype. (DLR)
3128- rcfile.c:
3129 parse_rcfile()
3130 - Add missing brackets around an if statement block so that
3131 parsing the numeric argument after "tabsize" works properly
3132 again. (DLR, found by Mike Frysinger)
3133 - Since flag values are longs, use "%ld" instead of "%d" in the
3134 debugging messages indicating when a flag is set or unset.
3135 (DLR)
3136- search.c:
3137 regexp_init()
3138 - If NANO_SMALL is defined, don't bother checking the
3139 CASE_SENSITIVE flag or using its value when compiling a list
3140 of matching regular expressions. (DLR)
3141 search_init()
3142 - Add parameter use_answer. When it's TRUE, only set
3143 backupstring to answer. This is needed to preserve the text
3144 of the statusbar when switching to the search prompt from
3145 the "Go To Line" prompt. Also, set backupstring before doing
3146 anything else, add one minor efficiency tweak, and preserve
3147 the text of the statusbar no matter what when switching from
3148 the search prompt to the "Go To Line" prompt, since the
3149 toggling works both ways now and non-numeric text shouldn't be
3150 lost when going only one of those ways. (DLR)
3151 - When we're replacing and the mark is on, display a prompt
3152 indicating that we're replacing text only in the selection
3153 instead of the usual prompt. (DLR)
3154 findnextstr()
3155 - Take the no_sameline parameter after can_display_wrap and
3156 wholewords, not after all other parameters. (DLR)
3157 - Maintain current_y's value when moving up or down lines so
3158 that smooth scrolling works correctly. (DLR)
3159 - Fix handling of the wholewords flag so that it works with
3160 regular expressions and in conjunction with the no_sameline
3161 flag, and add new parameter needle_len (used to return the
3162 length of the match). (DLR)
3163 do_replace_loop()
3164 - Miscellaneous cleanups: treat real_current as current and
3165 real_current_x as current_x, only turn the mark off and call
3166 edit_refresh() if the mark was originally on, and make
3167 length_change a ssize_t. (DLR)
3168 - Return ssize_t instead of int. (DLR)
3169 - Add new parameter canceled, set to TRUE if we canceled at the
3170 prompt and FALSE otherwise. (DLR)
3171- utils.c:
3172 regexp_bol_or_eol()
3173 - Don't assume any longer that string will be found if
3174 REG_NOTBOL and REG_NOTEOL are not set. (DLR)
3175 mallocstrncpy()
3176 - New function, used as a malloc()ing equivalent of strncpy().
3177 (DLR)
3178 mallocstrcpy()
3179 - Refactor to be a wrapper for mallocstrncpy(). (DLR)
3180 mark_order()
3181 - Add new parameter right_side_up. Set it to TRUE If the mark
3182 begins with (mark_beginbuf, mark_beginx) and ends with
3183 (current, current_x), or FALSE otherwise. (DLR)
3184- winio.c:
3185 unget_kbinput()
3186 - New function used as a wrapper for ungetch(). (DLR)
3187 get_kbinput()
3188 - When reading an escape sequence, set get_verbatim_kbinput()'s
3189 new first parameter to the first character of the sequence
3190 instead of putting that character back and reading the entire
3191 sequence afterwards. (DLR)
3192 get_escape_seq_kbinput()
3193 - Make the escape_seq parameter a const int*, since it's never
3194 modified. (DLR)
3195 - Support the escape sequences for F15 and F16. (DLR)
3196 get_verbatim_kbinput()
3197 - Add new parameter first. If first isn't ERR, make it the
3198 first character in the returned sequence instead of reading
3199 the first character in via blocking input. (DLR)
3200 get_mouseinput()
3201 - Consolidate two if statements to increase efficiency. (DLR)
3202 - Check kbinput against metaval instead of (erroneously) ctrlval
3203 when putting back a meta sequence. (DLR)
3204 - If there are more than MAIN_VISIBLE shortcuts available, only
3205 register clicks on the first MAIN_VISIBLE shortcuts, since
3206 bottombars() only shows that many shortcuts. (DLR)
3207 check_statblank()
3208 - Rename to check_statusblank(), and rename its associated
3209 global int statusblank too. (DLR)
3210 nanogetstr()
3211 - Refresh the screen when Ctrl-L is pressed at the statusbar
3212 prompt, as Pico does. (DLR)
3213 - Always return the key pressed by the user. (DLR)
3214 statusq()
3215 - Rework slightly to reset the cursor position when the user
3216 hits Enter as well as Cancel. This means that resetstatuspos
3217 no longer needs to be global. (DLR)
3218 statusq_abort()
3219 - New function to set resetstatuspos to FALSE when we don't
3220 properly exit the statusbar prompt, e.g. when we get a file
3221 from the file browser). (DLR)
3222 bottombars()
3223 - For efficiency, no longer dynamically allocate space for each
3224 visible shortcut, as they're all of a constant short length.
3225 (David Benbennick)
3226 reset_cursor()
3227 - If this is called before any files have been opened, as it can
3228 be by statusbar(), put the cursor at the top left corner of
3229 the edit window before getting out. (DLR)
3230 edit_refresh()
3231 - Call edit_update() with NONE instead of CENTER when smooth
3232 scrolling is on, for consistency with the movement routines.
3233 (DLR)
3234 edit_update()
3235 - Simplify so as not to require the fileptr parameter anymore,
3236 since it's set to current in all calls. (DLR)
3237 - Add comments better explaining what the update actually does,
3238 and avoid an infinite loop when location is NONE and current_y
3239 is greater than (editwinrows - 1). (DLR)
3240 do_yesno()
3241 - Don't bother assigning the value of get_mouseinput() to
3242 anything. Since allow_shortcuts is FALSE, its return value
3243 will always be FALSE. (DLR)
3244- configure.ac:
3245 - When calling AC_TRY_RUN() to test for a broken regexec()
3246 function, set the fourth parameter to default to "no" (since
3247 it apparently only occurs on glibc 2.2.3-based systems) so
3248 that cross-compiling will work. (DLR, found by Mike Frysinger)
3249 - Simplify the curses library tests by only checking for
3250 initscr(), which ncurses, curses, and pdcurses should all
3251 have, and not tgetent(), which is a termcap-specific function.
3252 (DLR)
3253 - Check only for glib 2.x, as it's much more common than
3254 glib 1.2.x now, and it has a better v?snprintf()
3255 implementation. (DLR, suggested by Jordi)
3256- nanorc.sample:
3257 - Remove specific references to control key shortcuts other than
3258 XON and XOFF. (DLR)
3259 - Add continue and goto to the "c-file" regexes. (DLR)
3260 - Change the included speller value to "aspell -x -c". The -x
3261 option makes aspell not create backup files, and this is
3262 consistent with the internal spell checker's behavior. (DLR)
3263- doc/man/fr/nano.1, doc/man/fr/nanorc.1:
3264 - Updated manpage translations by Jean-Philippe Guérard.
3265- README.CVS:
3266 - Mention the requirement for glib 2.x on systems lacking
3267 v?snprintf(), and add minor formatting changes.
3268 - Mention the requirement for groff in order to create html
3269 versions of the manpages. (DLR)
3270 - Update the given cvs commands so that they work again, and
3271 mention the need for ssh to do cvs checkouts. (DLR)
3272 - List sh as an example of a Bourne shell. (DLR)
3273- faq.html:
3274 - Fixed inaccuracy: Pico compatibility mode was made the default
3275 in nano 1.1.99pre1, not 1.2.2. (DLR)
3276 - Added question about how to type F13-F16 on terminals lacking
3277 keys past F12 (suggested by Chris), question about how to
3278 select text for the clipboard in X terminals with nano's mouse
3279 support turned on (answer found by Joseph Birthisel), and
3280 miscellaneous fixes and link updates. (DLR)
3281- nano.1:
3282 - Eliminate references to the now removed -D/--dos and -M/--mac
3283 command line options. (DLR)
3284- nano.texi:
3285 - Eliminate references to the now removed -D/--dos and -M/--mac
3286 command line options, and their corresponding toggles. (DLR)
3287- m4/Makefile.am:
3288 - Add glib-2.0.m4 to EXTRA_DIST, so that nano builds from CVS
3289 with automake 1.7.x again. For some reason, automake 1.9.x
3290 didn't have a problem with its (erroneously) being left out.
3291 (DLR, problem found by Chris)
3292- m4/glib-2.0.m4:
3293 - New file imported from glib 2.4.7. This is needed to detect
3294 glib 2.x on systems that may not have it installed. (DLR,
3295 suggested by Jordi)
3296- src/Makefile.am:
3297 - Don't use DEFS to define things. Use INCLUDES instead.
3298 (Jordi)
3299
3300GNU nano 1.3.4 - 2004.08.17
3301- General:
3302 - More minor comment cleanups. (DLR)
3303 - Convert more ints and functions using 0 and 1 to bools using
3304 TRUE and FALSE. (David Benbennick and DLR)
3305 - Change more instances of ints that have large enough upper
3306 bounds and which can never be negative to size_t's, and
3307 convert nano to handle them properly. (DLR)
3308 - Convert the shortcut list functions and most related functions
3309 to return void instead of int, as the return values of all
3310 those functions are essentially unused. Changes to
3311 sc_init_one(), shortcut_init(), etc. (David Benbennick and
3312 DLR)
3313 - Make flags and all variables meant to store the value of flags
3314 longs for consistency. (David Benbennick)
3315 - Rename the TEMP_OPT flags to TEMP_FILE, as it's more
3316 descriptive. (DLR)
3317 - Remove unused global variable search_offscreen. (David
3318 Benbennick)
3319 - Add new N_() macro to mark strings that aren't translated
3320 immediately, and convert nano to use it in cases where the
3321 translated string is stored in a const char*. Changes
3322 to sc_init_one(), print1opt(), help_init(), rcfile_error(),
3323 do_credits(), etc. (David Benbennick) DLR: Do this for
3324 toggle_init_one() too.
3325 - Minor tweaks and clarifications to some option descriptions.
3326 (DLR)
3327 - Overhaul the shortcut list and toggle list initialization
3328 code for efficiency. Changes to shortcut_init() and
3329 toggle_init(). (David Benbennick) DLR: Move "Cancel" to just
3330 after "Get Help" in the file browser list, for consistency
3331 with all the other lists, have the replace list accept all the
3332 same function keys as the search list, and clarify a few
3333 shortcut descriptions.
3334 - Convert nano to use the new parse_num() function to read in
3335 numeric values at the command line and in the rcfile, and
3336 duplicate the messages used in the rcfile in the command line
3337 for consistency. (David Benbennick) DLR: Tweak parse_num() to
3338 parse ssize_t values instead of ints and to return a bool
3339 indicating whether parsing succeeded. Convert tabsize,
3340 wrap_at, and fill to ssize_t in order to work with
3341 parse_num() properly and also to increase their capacity
3342 while keeping the ability to hold negative numbers in case of
3343 errors. Also exit instead of calling usage() in the event of
3344 an invalid fill value, for consistency with how an invalid
3345 tabsize value is handled. Finally, handle invalid tabsize
3346 entries in the rcfile the same way as on the command line,
3347 and reset tabsize and wrap_at to their default values if
3348 invalid rcfile entries are specified for them.
3349 - Remove several unnecessary reset_cursor() calls. (David
3350 Benbennick)
3351 - Include <sys/types.h> in proto.h. (David Benbennick) DLR:
3352 Remove some redundant inclusions of <sys/types.h> elsewhere.
3353 - Move the main terminal initialization functions, aside from
3354 initscr(), into a new terminal_init() function, and convert
3355 nano to use it. (DLR)
3356 - Convert placewewant to a size_t, and convert some functions
3357 that use it as a parameter to use size_t as well. (David
3358 Benbennick and DLR)
3359 - Overhaul the paragraph searching code and some of the justify
3360 code to clarify it and fix a bug where searches from the
3361 previous paragraph would move up too far. Also make
3362 quotestr-related variables global so that they only have to be
3363 compiled once, and remove the no-longer-needed IFREG() macro.
3364 New functions begpar() and inpar(); changes to quote_length(),
3365 quotes_match(), do_para_search(), do_para_begin(),
3366 do_para_end(), and do_justify(). (David Benbennick)
3367 - Readded the errors flag and moved the ending prompt from
3368 rcfile_error() to parse_rcfile() so that we only get prompted
3369 once for all errors instead of separately for each error.
3370 (DLR) David Benbennick: Make sure that no rcfile error
3371 messages end in newlines, and show the ending prompt if we
3372 can't read the .nano_history file while starting nano.
3373 - Don't treat the return value of strn?(case)?cmp() as boolean.
3374 (DLR and David Benbennick)
3375 - Automatically install a symlink "rnano" pointing to nano.
Benno Schulenberg4a073a02017-01-04 13:48:25 +01003376 Changes to src/Makefile.am. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00003377 - Move the static int pid to the beginning of nano.c with all
3378 the other static variables. (DLR)
3379 - Consolidate some if blocks to remove some redundant code.
3380 (David Benbennick)
3381 - Fix warnings when compiling with ENABLE_NLS undefined and with
3382 the fwritable-strings option. (David Benbennick)
3383 - Add various #ifdefs to fix warnings and compilation problems
3384 when compiling with every option manually turned on, including
3385 NANO_SMALL. (David Benbennick)
3386 - Simplify some of the rcfile and statusbar error messages, and
3387 make some of them more consistent. (David Benbennick and DLR)
3388 - Change some functions to take const char*'s instead of char*'s
3389 where possible. (David Benbennick)
3390 - Tweak some #ifdefs around indent_length() and references to
3391 fill_flag_used to avoid warnings when compiling with
3392 --disable-wrapping, --disable-justify, or a combination of the
3393 two. (DLR)
3394 - Overhaul the routines used to read the rcfiles and history
3395 files for efficiency, make them work properly on lines over
3396 1023 characters long and on lines containing nulls, and make
3397 them properly handle the case where the user's home directory
3398 changes in the middle of a session. New functions
3399 histfilename() and writehist(); changes to
3400 thanks_for_all_the_fish(), load_history(), save_history(), and
3401 do_rcfile(). (David Benbennick)
3402- files.c:
3403 get_next_filename()
3404 - Tweak for efficiency, and add the ".save" suffix to the file
3405 here. (David Benbennick)
3406 close_open_file()
3407 - Tweak to no longer rely on the return values of
3408 open_(prev|next)file(). (DLR)
3409 write_file()
3410 - For consistency with nano 1.2.x and with other editors, make
3411 the mode of newly created files 666 instead of 600 before
3412 it's modified by the umask. (DLR, found by Toni Suokas)
3413 do_writeout()
3414 - If we're in restricted mode and the current filename isn't
3415 blank, we can't change it, so disable tab completion in that
3416 case. (DLR)
3417 - Fix spacing problem in the "Save Under Different Name"
3418 prompt. (DLR)
3419- global.c:
3420 shortcut_init()
3421 - Fix erroneous #ifdef so that nano compiles with
3422 --disable-justify again. (DLR, found by Mike Frysinger)
3423 - Change the Cancel shortcut in the file browser to an Exit
3424 shortcut, to be more compatible with the current version of
3425 Pico. (DLR)
3426 thanks_for_all_the_fish()
3427 - Delete topwin, edit, and bottomwin. (David Benbennick)
3428- nano.c:
3429 die()
3430 - Don't add the ".save" suffix to a saved file here anymore,
3431 since get_next_filename() does that now. (David Benbennick)
3432 die_save_file()
3433 - Tweak for efficiency. (David Benbennick)
3434 help_init()
3435 - Fix the display of the translated key descriptions "Up" and
3436 "Space" under all circumstances, and make the help browser
3437 work properly when there are fewer than 24 columns available.
3438 (David Benbennick)
3439 usage()
3440 - Don't translate the option strings for -Z/--restricted.
3441 (David Benbennick)
3442 do_enter()
3443 - Don't treat it as a special case when the user presses Enter
3444 on the last line of the screen and smooth scrolling is on, for
3445 consistency. (DLR)
3446 do_alt_speller()
3447 - When reloading the newly spell-checked temporary file, call
3448 terminal_init() to make sure that all the original terminal
3449 settings are restored, as a curses-based alternative spell
3450 checker (e.g. aspell) can change them. (DLR)
3451 quote_length()
3452 - Fix problem where quoted justify wouldn't work if HAVE_REGEX_H
3453 wasn't set. (David Benbennick)
3454 do_justify()
3455 - Add allow_respacing flag, used to indicate when we've moved to
3456 the next line after justifying the current line, and only run
3457 the respacing routine when it's true. This keeps the
3458 respacing routine from erroneously being run more than once on
3459 the same line. (DLR)
3460 - Check for first_par_line's not being NULL and only run the
3461 renumbering and cutbuffer-splicing routines depending on that
3462 if that's the case. This fixes a segfault occurring when
3463 trying to do full justification on a file with no paragraphs
3464 (in which case there are no normal lines to renumber and no
3465 backed-up lines to be stored in the cutbuffer or spliced back
3466 in during unjustify). (DLR)
3467 do_exit()
3468 - Tweak for efficiency. (David Benbennick)
3469 main()
3470 - Move the reset_cursor() call to the beginning of the main
3471 input loop, and remove the apparently unnecessary wrefresh()
3472 call. (David Benbennick)
3473 - Call setlocale() outside the ENABLE_NLS #ifdef, since UTF-8
3474 support won't work properly if the locale isn't set, whether
3475 NLS is enabled or not. (Junichi Uekawa)
3476 - Add titlebar() calls before all open_file() calls and remove
3477 the titlebar() call after them, so that the titlebar is
3478 displayed properly for all file(s) loaded. Also call
3479 display_main_list() after adding the first file to open_files,
3480 so that "Close" is properly displayed then instead of "Exit".
3481 (DLR)
3482- nano.h:
3483 - Reassign the key for full justification to Ctrl-U, for
3484 compatibility with the current version of Pico. (DLR)
3485 - Remove justbegend enum, as it's no longer needed. (DLR)
3486- proto.h:
3487 - Change the variables in the prototypes for do_justify(),
3488 get_verbatim_kbinput(), and get_mouseinput() to match the ones
3489 used in the actual functions. (DLR)
3490 - Remove unused declaration of temp_opt. (David Benbennick)
3491 - Add missing copy_file() prototype. (David Benbennick)
3492 - Move the load_history() and save_history() prototypes up to
3493 match their corresponding location in files.c. (DLR)
3494- rcfile.c:
3495 rcfile_msg()
3496 - Removed and replaced with calls to rcfile_error(). (David
3497 Benbennick)
3498 - Removed the reference to "starting nano" in the statusbar
3499 message, as it may be called when we exit if the history file
3500 can't be saved. (DLR)
3501 parse_rcfile()
3502 - Have whitespace display default to off instead of on. (Mike
3503 Frysinger)
3504 nregcomp()
3505 - Rename the variable flags to eflags so as not to conflict with
3506 the global flags. (DLR)
3507- search.c:
3508 do_replace_loop()
3509 - Make sure old_pww is updated to the current value of
3510 placewewant when a new match is found, so that edit_redraw()
3511 will redraw the screen properly when only placewewant changes.
3512 (DLR, found by Mike Frysinger)
3513 do_replace()
3514 - Instead of using edit_update() to redraw the screen with
3515 edittop at the top, set edittop beforehand and call
3516 edit_refresh(). (DLR)
3517 do_gotoline()
3518 - Use parse_num() to interpret a line entered by the user, and
3519 start the search for a line from current instead of fileage.
3520 (DLR)
3521 do_gotopos(), find_node(), free_history()
3522 - Tweak for efficiency. (David Benbennick)
3523 free_history()
3524 - Only include when DEBUG is defined. (David Benbennick)
3525- utils.c:
3526 parse_num()
3527 - New function to parse numeric values, so that we don't have to
3528 duplicate code that calls strtol() all over the place. (David
3529 Benbennick) DLR: Renamed from parse_int() to parse_num() and
3530 converted to use ssize_t instead of int.
3531 nstrnicmp()
Benno Schulenberg4a073a02017-01-04 13:48:25 +01003532 - Remove code checking for n's being less than 0 that will never
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00003533 be run, since n is a size_t and is hence unsigned. (David
3534 Benbennick)
3535 ngetdelim(), ngetline()
3536 - New functions equivalent to getdelim() and getline(), which
3537 are both GNU extensions. (DLR, adapted from GNU mailutils
3538 0.5 with minor changes to better integrate with nano and
3539 increase efficiency)
3540- winio.c:
3541 get_kbinput()
3542 - Since the only valid values for escapes are 0, 1, and 2,
3543 convert it to an int. (DLR)
3544 get_control_kbinput()
3545 - Fix erroneous debugging statement so that nano compiles with
3546 --enable-debug again. (Jon Oberheide)
3547 nanogetstr()
3548 - Tweak the code to update the edit window just before getting
3549 statusbar input for efficiency, and update bottomwin just
3550 before then too. (David Benbennick)
3551 - Don't delete the statusbar line on UnCut, since the current
3552 version of Pico doesn't. (DLR)
3553 do_cursorpos()
3554 - Add assert to check whether totsize is correct. (David
3555 Benbennick)
3556 line_len()
3557 - Rename to help_line_len() so as not to conflict with the
3558 line_len variable used elsewhere, and move inside the
3559 DISABLE_HELP #ifdef surrounding do_help() since it's only
3560 called in do_help(). (DLR)
3561 do_help()
3562 - Have help_line_len() properly return an int again, since its
3563 value can't be larger than COLS. (DLR)
3564 - Allow the user to exit the help browser via Ctrl-C as well as
3565 Ctrl-X, for consistency with the file browser. (DLR)
3566- configure.ac:
3567 - Add AC_PROG_LN_S, so that we can portably create symlinks.
3568 (DLR)
3569 - Check for getdelim() and getline(), which are both GNU
3570 extensions. (DLR)
3571- nanorc.sample:
3572 - Add sample regexes for patch files. (Mike Frysinger)
3573 - Various improvements to the "c-file" regexes. Add double,
3574 typedef, extern, union, unsigned, inline, and long to the
3575 green list. (Mike Frysinger) DLR: Also add signed, short, and
3576 enum to the green list.
3577- nano.spec.in:
3578 - Tweak to include all files in %{_bindir} instead of just nano,
3579 so that the "rnano" symlink will be properly packaged. (DLR)
3580
3581GNU nano 1.3.3 - 2004.06.28
3582- General:
3583 - Minor comment cleanups. (DLR)
3584 - Convert more ints used as boolean values to use TRUE and
3585 FALSE. (David Benbennick)
3586 - Make sure the special control keys are handled the same way
3587 after the window is resized or we come out of suspend mode.
3588 Changes to do_cont() and handle_sigwinch(). (DLR)
3589 - Change some instances of ints that can never be negative to
3590 size_t's. (DLR)
3591 - Add better explanations for and in the "Terminal breakage"
3592 comments, and handle missing key #ifdefs inside the functions
3593 that use those keys. (DLR)
3594 - Add restricted mode, accessible via the -Z/--restricted
3595 command line option or by invoking nano with any name
3596 beginning with 'r' (e.g. "rnano"). In restricted mode, nano
3597 will not read or write to any file not specified on the
3598 command line, read any nanorc files, allow suspending, or
3599 allow a file to be appended to, prepended to, or saved under a
3600 different name if it already has one. (IO ERROR) DLR: Also
3601 disable backup files and spell checking (since the latter can
3602 leave a pre-spell-checked version of the file in a temporary
3603 directory), use tail() to get the program name so that the
3604 check for its beginning with 'r' will work when a path is
3605 specified, disable toggles that are only useful with options
3606 that are disabled in restricted mode, call nano_disabled_msg()
3607 when trying to read or spell check a file instead of leaving
3608 the shortcuts out of the main list, and instead of acting as
3609 though TEMP_OPT is enabled when exiting with a modified file
3610 (which caused problems if the filename was blank), only allow
3611 a filename to be modified at the writeout prompt if it's blank
3612 beforehand. Changes to do_writeout(), toggle_init(),
3613 shortcut_init(), die_save_file(), and nanogetstr().
3614 - Call nano_disabled_msg() directly from the shortcut list
3615 instead of inside the disabled functions. (David Benbennick)
3616 - Clarifications to comments explaining exactly what control
3617 characters and escape sequences are supported. (DLR)
3618 - Disable "Where Is Next" in tiny mode. (DLR)
3619 - Added the ability to justify the entire file at once, which
3620 Pico has via ^W^J. Changes to backup_lines() and
3621 do_justify(); new functions do_justify_void() and
3622 do_full_justify(). (DLR)
3623 - Modify the justification algorithm to work the same way as in
3624 the current version of Pico, i.e. add a space at the end of
3625 each line of the justified paragraph except for the last one,
3626 and if there was a space at the end of the last one, remove
3627 it. Changes to justify_format() and do_justify(). Note that
3628 we can no longer reliably detect the first modified line in a
3629 paragraph, since a line unmodified by justify_format() may get
3630 a space tacked onto the end of it or removed from the end of
3631 it later. The entire original paragraph is now always backed
3632 up, and justify_format() no longer has a non-modifying mode,
3633 so it's now only called in backup_lines(). (DLR)
3634 - Wrap the long jump code in NANO_SMALL #ifdefs, since we only
3635 use it if we're resizing the window, which is disabled when
3636 NANO_SMALL is defined. (DLR)
3637 - Add smart home key option, accessible via -A/--smarthome on
3638 the command line, "set smarthome" in the rcfile, and the
3639 Meta-H toggle in the edit window. Smart home works as
3640 follows: When Home is pressed anywhere but at the very
3641 beginning of non-whitespace characters on a line, the cursor
3642 will jump to that beginning (either forwards or backwards).
3643 If the cursor is already at that position, it will jump to the
3644 true beginning of the line. This option is disabled in tiny
3645 mode. Changes to do_home(), nanogetstr(), etc. (DLR;
3646 suggested by Stephan T. Lavavej)
3647 - Minor tweaks to the punctuation in some statusbar messages.
3648 (DLR)
3649 - Overhaul the low-level input routines into main routines that
3650 actually get the input and state machines that interpret the
3651 input. This allows better handling of the input (e.g. ignored
3652 keys are now always ignored instead of just being ignored when
3653 there are no escapes prefixing them) and will make it easier
3654 to port to interfaces that don't have blocking input. New
3655 functions reset_kbinput(), get_translated_kbinput(),
3656 get_control_kbinput(), and get_untranslated_kbinput(); changes
3657 to do_verbatim_input(), handle_sigwinch(), get_kbinput(),
3658 get_ascii_kbinput(), get_escape_seq_kbinput(), and
3659 get_verbatim_kbinput(); removal of get_ignored_kbinput() and
3660 get_accepted_kbinput(). (DLR)
3661 - Overhaul all the movement functions in order to avoid
3662 redundant screen redraws (and regexec()s when color support is
3663 available) whenever possible during ordinary cursor movement
3664 when the text doesn't change. Do the same for moving in
3665 do_char(), do_delete(), do_next_word(), do_prev_word(),
3666 do_search(), do_research(), and do_replace_loop. Changes to
3667 do_first_line(), do_last_line(), do_home(), do_end(),
3668 do_page_up(), do_page_down(), do_up(), do_down(), do_left(),
3669 do_right(), do_delete(), do_backspace(), do_search(),
3670 do_research(), do_replace_loop(), do_find_bracket(), and
3671 edit_refresh(). New functions do_left_void(),
3672 do_right_void(), need_horizontal_update(),
3673 need_vertical_update(), edit_scroll(), and edit_redraw(). All
3674 of these functions but the first two require the previous
3675 versions of current and/or placewewant as parameters, so that
3676 they can redraw properly when the location has changed. Also
3677 rename the int refresh in do_delete() and do_backspace() to
3678 do_refresh so as not to conflict with refresh(). (DLR)
3679 - Add some comments better explaining what is disabled in
3680 restricted mode and why. (DLR)
3681 - Since KEEP_CUTBUFFER is only used in cut.c, make it a static
3682 variable in cut.c instead of a flag, and unset it in other
3683 files via the new function cutbuffer_reset(). (DLR)
3684 - Add the ability to change the characters used to display the
3685 beginning characters of tabs and spaces via the rcfile entry
3686 "whitespace". This is disabled if nanorc support is disabled
3687 or if we're in tiny mode. Displaying the new characters is
3688 toggled on and off by Meta-P; the default is on. (Mike
3689 Frysinger; minor changes and adaptations by DLR)
3690 - Add the ability to change the closing punctuation and closing
3691 brackets used to control justification, via the rcfile
3692 entries "punct" and "brackets". (DLR)
3693 - Translation updates (see po/ChangeLog for details).
3694 - Make the former flag same_line_wrap use TRUE and FALSE
3695 instead of 1 and 0. (DLR)
3696- files.c:
3697 add_open_file()
3698 - Rearrange the NANO_SMALL #ifdef so that the code to set the
3699 MODIFIED flag in open_files->flags is included only once.
3700 (DLR)
3701 write_marked()
3702 - Call write_file() with nonamechange set to TRUE so that we
3703 don't erroneously change the current filename when writing a
3704 selection, and don't take a nonamechange parameter anymore
3705 since we don't use it. (DLR)
3706 do_writeout()
3707 - Refactor so that no recursion is needed if we try to exit with
3708 a modified file that has no name when TEMP_OPT is set. (DLR)
3709 - Add spaces to the ends of the "Overwrite" and "Different Name"
3710 prompts, for consistency. (DLR)
3711 do_browser()
3712 - Call check_statblank() instead of blanking the statusbar
3713 unconditionally, for consistency. (David Benbennick)
3714- global.c:
3715 shortcut_init()
3716 - Don't assign any handler functions to the help browser keys,
3717 as the help browser handles them all internally. (David
3718 Benbennick)
3719- move.c:
3720 do_first_line(), do_last_line()
3721 - Move these functions here from winio.c. (DLR)
3722- nano.c:
3723 finish()
3724 - Call blank_statusbar() and blank_bottombars() to blank out
3725 the statusbar and shortcut list in bottomwin. (DLR)
3726 - Since all of the calls to finish() use 0 for the value of
3727 sigage, and the return value of finish() is never used, make
3728 it accept and return void. (David Benbennick)
3729 die_save_file()
3730 - Call write_file() with nonamechange set to TRUE since we don't
3731 need to change the current filename if we're writing emergency
3732 backup files. (DLR)
3733 do_early_abort()
3734 - Removed, as it's no longer called anywhere. (David Benbennick)
3735 usage()
3736 - Add missing "[dir]" and two missing _()'s around the strings
3737 describing the -E [dir]/--backupdir=[dir]" option. (CHAO
3738 Wei-Lun)
3739 open_pipe()
3740 - Call enable_signals() at the beginning and disable_signals()
3741 at the end, so that we get a SIGINT when Ctrl-C is pressed
3742 during wait() and can then call cancel_fork() properly. (DLR)
3743 do_delete(), do_enter()
3744 - Tweak for efficiency. (David Benbennick)
3745 do_prev_word()
3746 - Switch the last test (current != NULL or not) around to match
3747 the order of the same test in do_next_word() (current ==
3748 NULL). The results are the same either way. (DLR)
3749 do_wrap()
3750 - Tweak for efficiency. (David Benbennick)
3751 do_spell()
3752 - Tweak for efficiency. (David Benbennick)
3753 - Change the statusbar entries used in cases of failure so that
3754 they all display the actual error that occurred. (David
3755 Benbennick and DLR)
3756 do_int_speller(), do_alt_speller()
3757 - Make these functions return const char*'s instead of char*'s.
3758 (David Benbennick)
3759 justify_format()
3760 - Remove redundant assignment. (DLR)
3761 do_para_search()
3762 - Remove unneeded edit_update() calls. (David Benbennick)
3763 - Convert to use an enum to specify the search type: JUSTIFY,
3764 BEGIN, or END. (DLR)
3765 - Refactor to properly do searches for beginnings of paragraphs
3766 in the same way as searches for endings of paragraphs, without
3767 needing the old (and somewhat inaccurate) recursive approach.
3768 (DLR)
3769 do_justify()
3770 - Remove unneeded edit_update() calls, and add a few minor
3771 efficiency tweaks. (David Benbennick)
3772 - Simplify an if statement. (DLR)
3773 do_exit()
3774 - Refactor so that no recursion is needed if we try to exit with
3775 a modified file that has no name when TEMP_OPT is set. (DLR)
3776 print_numlock_warning()
3777 - Removed, as it's no longer needed and was never called
3778 anywhere after the input overhaul. (DLR)
3779 signal_init()
3780 - Don't use termios and _POSIX_VDISABLE to disable keys anymore,
3781 as there's no real equivalent of it when the latter isn't
3782 defined. (DLR)
3783 handle_sigwinch()
3784 - Call resetty() to get the original terminal settings back.
3785 (DLR)
3786 - Rework so that nano properly redraws the screen on systems
3787 that don't have resizeterm() and/or wresize(). In curses, we
3788 now leave and immediately reenter curses mode via endwin() and
3789 refresh(), and then reinitialize all windows via
3790 window_init(). In slang, the above routine will only work if
3791 the resize made the window smaller, so we now leave and
3792 immediately reenter screen management mode via
3793 SLsmg_reset_smg() and SLsmg_init_smg(), and then reinitialize
3794 all windows via window_init(). (DLR, adapted from code in
3795 Minimum Profit 3.3.0 and mutt 1.4.2.1, respectively)
3796 do_toggle()
3797 - Call blank_statusbar() and blank_bottombars() to blank out
3798 the statusbar and shortcut list in bottomwin. (DLR)
3799 do_verbatim_input()
3800 - If PRESERVE is set, disable flow control characters before
3801 getting input and reenable them after getting input. (DLR)
3802 disable_signals(), enable_signals(), disable_flow_control(),
3803 enable_flow_control()
3804 - New functions that allow more fine-grained control of the
3805 terminal: disabling and enabling signals without having to use
3806 _POSIX_VDISABLE and disabling and enabling flow control
3807 characters. (DLR)
3808 main()
3809 - Don't open the first file in quiet mode, since if we do, an
3810 error message won't be shown if it's unreadable. (DLR; found
3811 by Jaap Eldering)
3812 - If we've specified multiple files on the command line and
3813 multibuffer support is compiled in, turn multibuffer mode on
3814 when reading those files and turn it off afterward if it was
3815 off before. This allows us to open multiple files without
3816 having to turn multibuffer mode on at the command line or in
3817 the nanorc first, both of which are unintuitive. Multibuffer
3818 mode should only affect how the "Read File" command behaves
3819 anyway. (DLR)
3820 - Remove the disabling of implementation-defined input
3821 processing, as cbreak mode appears to turn it off anyway.
3822 (DLR)
3823 - After noecho(), call disable_signals() and
3824 disable_flow_control(), the latter only if PRESERVE is not
3825 set. (DLR)
3826 - Move the savetty() call down from just after initscr() to just
3827 after the terminal is properly set up, so that we can restore
3828 it easily after a resize. (DLR)
3829 - Add missing cast to char when calling do_char(). (DLR)
3830 - Don't initialize the backup directory if we're in restricted
3831 mode, since backups are disabled then. (DLR)
3832 - Check $SPELL for an alternative spell checker if we didn't get
3833 one from the command line and/or rcfile, as Pico does. Don't
3834 do this if we're in restricted mode, since spell checking is
3835 disabled then. (DLR)
3836 - Add some cleanups for greater readability, and remove a few
3837 bits of redundant code. (DLR and David Benbennick)
3838- nano.h:
3839 - Since REGEXP_COMPILED is only used in search.c, convert it
3840 from a flag to a static int there. (DLR)
3841 - Add justbegend enum, used in do_para_search(). (DLR)
3842 - Add updown enum, used in edit_scroll(). (DLR)
3843- proto.h:
3844 - Remove unused xpt() and add_marked_sameline() prototypes.
3845 (DLR)
3846 - Add missing #ifdefs around the nstristr() and get_mouseinput()
3847 prototypes. (DLR)
3848- rcfile.c:
3849 - Move "rebinddelete" up in the list of options so that the list
3850 is in alphabetical order. (DLR)
3851 - Cosmetic reorganization of the order in which some options are
3852 interpreted. (DLR)
3853 - Explicitly check for rcopts[i].name's being "tabsize" to avoid
3854 a spurious error under some circumstances about tabsize's
3855 being 0 when there's no tabsize entry in the rcfile. (DLR)
3856- search.c:
3857 regexp_init()
3858 - Overhaul for efficiency. Also check if regcomp() failed, and
3859 if so, display "Bad regex" message on the statusbar, so that
3860 we don't have to display it separately after every call to
3861 this function. (David Benbennick)
3862 search_init()
3863 - Only check whether USE_REGEXP is set, and hence whether or not
3864 to display "[Regexp]" on the search prompt, if HAVE_REGEX_H is
3865 defined. (DLR)
3866 not_found_msg()
3867 - Convert to properly handle strings generated by
3868 display_string() that have been used in the search prompt
3869 since 1.3.0. (David Benbennick)
3870 - Use display_string() directly to display the text that we
3871 didn't find instead of relying on statusbar() to do it
3872 indirectly, since the latter won't display its text with the
3873 user-specified whitespace characters and the former will.
3874 (DLR)
3875- utils.c:
3876 is_blank_char()
3877 - New function used as an isblank() equivalent, since isblank()
3878 is a GNU extension. (DLR)
3879 nstricmp(), nstrnicmp()
3880 - Add extra blank lines for greater readability, and remove
3881 unneeded test for n's being less than zero (since it's already
3882 been tested for being greater than zero or equal to zero at
3883 that point) from nstrnicmp(). (DLR)
3884 stristr()
3885 - Rename to nstristr() to avoid a potential conflict with an
3886 existing stristr() function, and move up to just after
3887 nstrnicmp(). (DLR) David Benbennick: Tweak for efficiency.
3888 - Include and use only when strcasestr() is unavailable, since
3889 strcasestr() is a GNU extension. (DLR)
3890 nstrnlen()
3891 - New function used as a strnlen() equivalent, since strnlen()
3892 is a GNU extension. (DLR)
3893- winio.c:
3894 get_verbatim_kbinput()
3895 - Refactor the output in the DEBUG #ifdef. It didn't work
3896 properly ever since this function was changed to use an int*
3897 instead of a char*. (DLR)
3898 - When reading characters from input, properly reallocate
3899 verbatim_kbinput via (int*)nrealloc() instead of an uncast
3900 realloc(). (DLR)
3901 get_accepted_kbinput()
3902 - Add proper support for the keypad values and escape sequences
3903 generated by the NumLock glitch and by certain keys on the
3904 numeric keypad. (DLR)
3905 - Add an extra break and move an #endif down to fix a potential
3906 problem when NANO_SMALL is defined or KEY_RESIZE isn't, and
3907 when PDCURSES isn't defined. (DLR)
3908 get_escape_seq_kbinput()
3909 - Add proper support for the keypad values and escape sequences
3910 generated by the NumLock glitch. (DLR)
3911 - Add ignore_seq parameter. If a sequence is recognized but
3912 ignored, we will now return ERR and set ignore_seq to TRUE, and
3913 if a sequence is unrecognized, we will now return ERR and set
3914 ignore_seq to FALSE. Also, here and elsewhere, don't bother
3915 assigning ERR to retval when that's its initial value. (DLR)
3916 - Fix problem where the escape sequence for F3 on the FreeBSD
3917 console would not be interpreted properly. (DLR)
3918 get_mouseinput()
3919 - Don't ungetch() anything if there's no control key and no meta
3920 key defined in the shortcut we clicked. (DLR)
3921 bottombars()
3922 - Don't display any more than MAIN_VISIBLE shortcuts. Adding
3923 justification of the entire file above made the search
3924 shortcut list longer than this and hence made the shortcuts in
3925 it so short as to be almost incomprehensible. (DLR)
3926 - Tweak for efficiency and to better handle shorter screen
3927 widths. (David Benbennick)
3928 - Restructure the if block used for the sentinel key values,
3929 dynamically allocate keystr based on the number of columns
3930 available, and make sure we can display shortcuts even when
3931 the number of available columns is too short for any complete
3932 one. (DLR)
3933 onekey()
3934 - Don't bother padding the displayed shortcuts with spaces.
3935 (David Benbennick)
3936 - Convert len to a size_t. (DLR)
3937 edit_add()
3938 - Minor cosmetic reformatting. Also remove unused int
3939 searched_later_lines. (DLR)
3940 blank_bottomwin()
3941 - Removed, as it does the same thing as blank_bottombars().
3942 (David Benbennick)
3943 blank_titlebar()
3944 - New function used to blank the titlebar in topwin. (DLR)
3945 blank_statusbar_refresh()
3946 - Removed, as it's now unnecessary. (David Benbennick)
3947 titlebar()
3948 - Overhaul to use display_string() to display the filename, and
3949 to better handle shorter screen widths. Also remove
3950 now-unneeded wrefresh(topwin) calls. (David Benbennick)
3951 DLR: Tweak to reserve enough space for "Modified", plus
3952 padding, in all cases, to make sure that the version message
3953 takes up no more more than 1/3 of the available width, minus
3954 padding, and to include a reset_cursor() call so that the
3955 cursor is always in the right place.
3956 bottombars()
3957 - Call blank_bottombars() instead of blank_bottomwin(). (David
3958 Benbennick)
3959 check_statblank()
3960 - Overhaul for efficiency, (David Benbennick) DLR: Add
3961 reset_cursor() call to ensure that the cursor is always in the
3962 right place.
3963 update_cursor()
3964 - Removed, as it's no longer called anywhere. (David Benbennick)
3965 edit_refresh()
3966 - Remove apparently unneeded leaveok() calls. (David Benbennick)
3967 edit_refresh_clearok(), center_cursor()
3968 - Removed, as they are now unnecessary. (David Benbennick)
3969 statusq()
3970 - Don't allow "Full Justify" when in view mode. (DLR)
3971 statusbar()
3972 - Call reset_cursor() just before refreshing the edit window, so
3973 that slang and other non-ncurses versions of curses will
3974 properly place the cursor back in the edit window instead of
3975 leaving it at the end of the statusbar. (DLR)
3976 do_help()
3977 - Overhaul for efficiency, and allow scrolling through the help
3978 via the arrow keys as well as the paging keys. (David
3979 Benbennick) DLR: Revert the use of the return value of
3980 curs_set() to restore the previous state of the cursor, as
3981 some curses implementations (including slang) get it wrong,
3982 and explicitly turn the cursor off where needed instead.
3983 do_credits()
3984 - Use napms() instead of nanosleep(), as it does the same thing
3985 (aside from taking an argument in milliseconds instead of
3986 microseconds) and curses includes it. (DLR)
3987 - Overhaul for efficiency, and make sure the xlcredits
3988 translations are done after initialization in order to avoid
3989 an error when compiling with -pedantic. (David Benbennick)
3990 do_yesno()
3991 - Add a comment to encourage translators to use both native and
3992 English shortcuts, if possible. (Jordi)
3993- configure.ac:
3994 - Add tests for isblank(), strcasestr(), and strnlen(), and
3995 define _GNU_SOURCE so that the tests work properly. Increase
3996 the minimum required autoconf version to 2.54. (DLR)
3997 - Reformat the test programs so that they aren't packed into
3998 fewer lines than usual, so as to make them easier to read, and
3999 remove unnecessary inclusion of stdio.h in the slang test
4000 programs. (DLR)
4001 - Remove the checks for resizeterm() and wresize(), as they're
4002 no longer needed. (DLR)
4003- config.rpath:
4004 - Replace usage of egrep with grep -E, avoiding a XSI:ism (David
4005 Weinehall)
4006- faq.html:
4007 - Removed question about the NumLock glitch, as it's no longer
4008 needed. (DLR)
4009- nano.1:
4010 - Document restricted mode. (IO ERROR) DLR: Add minor
4011 modifications to account for the above changes.
4012 - Document the smart home key option. (DLR)
4013 - Document the use of the SPELL environment variable. (DLR)
4014- nanorc.5:
4015 - Document the smart home key option. (DLR)
4016 - Document the whitespace option. (DLR, adapted from
4017 documentation by Mike Frysinger)
4018 - Document the punct and brackets options. (DLR)
4019- nano.texi:
4020 - Fix toggle inaccuracies: Meta-L now toggles line wrapping, and
4021 Meta-< and Meta-> aren't toggles. (DLR)
4022 - Document restricted mode. (IO ERROR) DLR: Add minor
4023 modifications to account for the above changes.
4024 - Fix version number inaccuracies: Search/replace history and
4025 sorting/uniqueness filtering for the internal spell checker
4026 were added in nano 1.1.99pre1. (DLR)
4027 - Document the smart home key option. (DLR)
4028 - Document the use of the SPELL environment variable. (DLR)
4029- nanorc.sample:
4030 - Add missing mouse entry, and update the nanorc sample regexes
4031 to account for the backupdir and mouse options. (DLR)
4032 - Add smarthome description. (DLR)
4033 - Document the whitespace option. (DLR, adapted from
4034 documentation by Mike Frysinger)
4035- README.CVS:
4036 - Increase the minimum required autoconf version to 2.54, and
4037 change the recommended automake version 1.7 to the minimum
4038 required automake version. Note that autoconf 2.54 will
4039 technically also work with automake 1.6c, but that is a CVS
4040 version as opposed to a stable release version, and automake
4041 1.7 requires at least autoconf 2.54 in any case. (DLR)
4042- TODO:
4043 - Added entry for justifying the entire file at once, since Pico
4044 can do it, and with "[DONE]" since it's already been
4045 implemented. (DLR)
4046
4047GNU nano 1.3.2 - 2004.03.31
4048- General:
4049 - Change instances in the code that refresh the entire edit
4050 window when color support is enabled (in order to properly
4051 handle multi-line color regexes) to only do so when
4052 it's necessary, i.e. when COLOR_SYNTAX is set. (DLR)
4053 - Minor cosmetic tweaks to the code involving direction keys.
4054 NANO_UP_KEY and NANO_DOWN_KEY are now NANO_PREVLINE_KEY and
4055 NANO_NEXTLINE_KEY, and the help messages for them have been
4056 changed accordingly. Also remove extraneous references to
4057 NANO_DOWN_KEY in the search history shortcut entries. (DLR)
4058 - Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the
4059 shortcut list, and tweak the unjustify routine to use it.
4060 Also add NANO_FIRSTLINE_FKEY and NANO_LASTLINE_FKEY, and tweak
4061 the statusbar input routines to handle them and NANO_HELP_FKEY
4062 properly. (DLR)
4063 - Block SIGWINCH after setting up its handler, and only unblock
4064 and handle it when we're in a stable state, i.e. when we're
4065 waiting for input from the user. New function
4066 allow_pending_sigwinch(); changes to signal_init(),
4067 get_kbinput(), and get_verbatim_kbinput(). (DLR)
4068 - Decouple the paragraph searching code and the justifying code.
4069 Removed function do_para_operation(); new function
4070 do_para_search(); changes to do_justify(). (DLR)
4071 - Add -E/--backupdir option. When used with -B/--backup, backup
4072 files will be saved in the specified directory with their
4073 canonical pathnames encoded in their names (all '/'s replaced
4074 with '!'s). Changes to write_file(). (Martin Ehmsen) DLR:
4075 Add function init_backup_dir() to handle relative paths
4076 correctly, use get_full_path() to get the canonical pathname,
4077 and use tail() to get the filename if get_full_path() fails.
4078 - Port to the Tandem NonStop Kernel (nsr-tandem-nsk). (Tom
4079 Bates; minor tweaks by DLR)
4080 - Change some instances of boolean 0 and 1 to TRUE and FALSE.
4081 (David Benbennick)
4082 - Fix memory corruption problem occurring when answer is used as
4083 the value of def; if the realloc() of answer leads to its
4084 pointing to a different memory block, there will be a segfault
4085 when the value of def is copied into it via strcpy().
4086 (bort@alltel.net, Christian Weisgerber, David Benbennick, and
4087 DLR)
4088 - Remove the last editbot references, to avoid any potential
4089 segfaults related to them. Also remove fix_editbot(), as it's
4090 no longer needed. (David Benbennick)
4091 - Rename several variables to make their use clearer and to
4092 avoid conflicts. (DLR)
4093 - Set the input mode before turning the keypad on. (DLR)
4094- cut.c:
4095 add_to_cutbuffer()
4096 - Add parameter allow_concat to determine whether we're allowed
4097 to concatenate strings in the cutbuffer. (DLR)
4098- files.c:
4099 do_insertfile()
4100 - Wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef.
4101 (DLR)
4102 - Save the already-typed answer when switching from "Insert
4103 File" to "Execute Command" mode via Ctrl-X, just in case we
4104 started typing a command before switching. (DLR)
4105 add_open_files()
4106 - Make the saving of marked status in open_files->file_flags
4107 work properly again; a tweak to the ISSET() macro in 1.3.0
4108 to make it only return 0 or 1 broke it. (DLR)
4109 write_marked()
4110 - New function used to write the current marked selection to a
4111 file, split out from do_writeout(). (DLR)
4112 do_writeout()
4113 - Tweak for efficiency. (David Benbennick) DLR: Modify to have
4114 the current answer preserved between toggles again.
4115 filestat()
4116 - Removed, as it is only called in one place and is
4117 redundant. (DLR)
4118 do_browser()
4119 - Replace the filestat() call with an equivalent stat() call.
4120 (DLR)
4121- global.c:
4122 shortcut_init()
4123 - Only allow verbatim input when we're not in view mode. (DLR)
4124 - Set the associated function for unjustify to 0 instead of
4125 do_uncut_text(), since it's currently unused. (DLR)
4126- nano.c:
4127 usage()
4128 - Clarify the description for -T/--tabsize a bit. (DLR)
4129 do_verbatim_input()
4130 - Remove the now-unneeded code to disable XON, XOFF, and
4131 suspend, since we now go into raw mode in
4132 get_verbatim_kbinput() and bypass them. (DLR)
4133 do_next_word()
4134 - Simplify and remove references to editbot so as to avoid a
4135 segfault. (David Benbennick)
4136 do_prev_word()
4137 - Simplify and remove references to edittop. (David Benbennick)
4138 do_int_speller(), do_alt_speller(), do_spell()
4139 - Modify to write only the current selection from a file to the
4140 temporary file used for spell checking when the mark is on,
4141 and add a few miscellaneous cosmetic cleanups. (DLR)
4142 do_int_spell_fix()
4143 - Store the value of current_x in a size_t instead of an int,
4144 and add a few minor efficiency tweaks. (David Benbennick)
4145 - Remove comment explaining why findnextstr() is called with
4146 bracket_mode set to TRUE even though we aren't doing a bracket
4147 search, since after the above efficiency tweaks, it's now more
4148 accurately called can_display_wrap. (DLR)
4149 indent_length()
4150 - Remove unneeded #ifdef. (David Benbennick)
4151 do_justify()
4152 - Remove references to the now-unneeded JUSTIFY_MODE flag. (DLR)
4153 signal_init()
4154 - Trap SIGQUIT in addition to turning it off via termios in
4155 main(). This is consistent with SIGINT, which we trap here
4156 and turn off via termios in main(), as well as with the
4157 associated comment. (DLR)
4158 handle_sigwinch()
4159 - Set keypad() to TRUE and switch to cbreak mode just before
4160 calling siglongjmp(), in case we resized during verbatim
4161 input. (DLR)
4162 main()
4163 - Move the call to raw() on systems that don't define
4164 _POSIX_VDISABLE outside the main input/output loop, as it
4165 doesn't need to be called every time through the loop. Call it
4166 instead of cbreak() on such systems, as it overrides cbreak()
4167 anyway. (DLR)
4168 - Add more descriptive comments explaining the termios and
4169 curses setup routines, and turn the keypad on before setting
4170 the input mode. (DLR)
4171 - Remove stray HAVE_GETOPT_LONG #ifdefs. (DLR)
4172 - Don't call keypad() before initializing the windows it needs
David Lawrence Ramseye3a02632007-12-17 23:05:11 +00004173 via window_init(). (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004174- nano.h:
4175 - Move the NANO_H include guard up before the first #include.
4176 (DLR)
4177 - Remove the now-unneeded JUSTIFY_MODE flag. (DLR)
4178- search.c:
4179 regexp_cleanup()
4180 - Only do anything if REGEXP_COMPILED is set. (David Benbennick)
4181 search_abort()
4182 - Only test if the mark is set when NANO_SMALL isn't defined.
4183 (David Benbennick)
4184 search_init()
4185 - Add some more comments and comment tweaks, don't indicate that
4186 the search has been canceled when we enter a blank string in
4187 replace mode, only call regexp_init() when USE_REGEXP is set,
4188 and return -1 instead of -3 since a canceled search and a
4189 canceled replace should be mostly equivalent. (David
4190 Benbennick) DLR: Tweak to use the old behavior if we try to
4191 search for invalid regexes.
4192 findnextstr()
4193 - Refactor to use a loop invariant, and tweak for greater
4194 efficiency and simplicity. Also modify so that all searches
4195 start one character after (or before, if we're doing a
4196 backwards search) the current one, as opposed to all searches
4197 except for regex searches for "^" and the like, for
4198 consistency with other searches. (David Benbennick)
4199 do_search()
4200 - Handle search_init()'s no longer returning -3 above. (David
4201 Benbennick)
4202 - Port the code from do_replace_loop() to skip the current line
4203 if we're searching for a regex with "^" and/or "$" in it and
4204 end up on the same line to this function. This fixes a
4205 problem where doing a forward search for "^" on a file with
4206 more than one line would erroneously stop at the magicline and
4207 indicate that that was the only occurrence. (DLR)
4208 do_research()
4209 - Port David Benbennick's efficiency tweaks and the
4210 aforementioned code ported from do_replace_loop() to this
4211 function. (DLR)
4212 replace_regexp()
4213 - Completely refactor for increased efficiency. (David
4214 Benbennick)
4215 replace_line()
4216 - Use a char* parameter for the replacement string instead of
4217 last_search, and add minor efficiency tweaks. (David
4218 Benbennick)
4219 do_replace_loop()
4220 - Fix segfault when doing a regex replace of a string that
4221 matches inside a line (e.g. replace the "b" in "abc" with
4222 anything). (David Benbennick)
4223 - If the mark is on at the beginning of the function, turn it
4224 off and turn it back on just before returning. Also overhaul
4225 to rely on the return value of findnextstr() instead of a loop
4226 invariant, to not need to take an int* parameter, and store
4227 the beginning x-coordinate in a size_t instead of an int.
4228 (David Benbennick)
4229 do_replace()
4230 - Handle search_init()'s no longer returning -3 above, and add
4231 efficiency tweaks. (David Benbennick) DLR: Tweak to follow
4232 the old behavior of adding non-blank strings entered at the
4233 "Replace: " prompt to the search history. (DLR)
4234 do_gotoline()
4235 - Simplify the edit_update() call depending on the value of
4236 save_pos. (David Benbennick)
4237 do_bracket()
4238 - Add efficiency tweaks. (David Benbennick) DLR: Remove
4239 reliance on the hardcoded bracket string length; instead, only
4240 require that the bracket string length be even.
4241- utils.c:
4242 regexec_safe()
4243 - Wrap in HAVE_REGEX_H #ifdefs. (DLR)
4244 regexp_bol_or_eol()
4245 - New function used to check if a regex contains "^" and/or "$",
4246 assuming that the regex would be found if the REG_NOT(BOL|EOL)
4247 flags aren't used in the regexec() call; it replaces the
4248 direct regexec()s used before. (DLR)
4249 strstrwrapper()
4250 - Refactor for increased efficiency, and eliminate the need for
4251 the line_pos parameter. (David Benbennick)
4252 mallocstrcpy()
4253 - Tweak so that when src is "", "" is allocated and returned
4254 instead of NULL. (David Benbennick)
4255- winio.c:
4256 get_verbatim_kbinput()
4257 - Set keypad() to FALSE and switch to raw mode while reading
4258 input, and set it back to TRUE and go back into cbreak mode
4259 mode afterwards. (Note that if _POSIX_VDISABLE isn't defined,
4260 we don't need to change to or from raw mode since we're
4261 already in it exclusively.) This ensures that we don't end up
4262 reading in extended keypad values that are outside the ASCII
4263 range or having to deal with interrupt-generating key values.
4264 Also, with keypad() set to TRUE, xterm generates KEY_BACKSPACE
4265 when the user hits Ctrl-H, which, when cut down to ASCII
4266 range, ends up being Ctrl-G, which can be confusing. (DLR)
4267 - For consistency with get_kbinput(), use an int* to store and
4268 return the input instead of a char*, and tweak the functions
4269 that call it to handle this. (DLR)
4270 get_accepted_kbinput()
4271 - Don't use "kbinput = wgetch(win)" as a switch value. (DLR)
4272 get_escape_seq_kbinput()
4273 - Add support for the escape sequences for F1-F14 whenever
4274 possible (i.e. whenever a conflict doesn't occur), some
4275 additional comments, and a few cosmetic cleanups. (DLR)
4276 - Use switch statements instead of strncmp() to read in the long
4277 xterm sequences for Ctrl-[arrow key] and Shift-[arrow key].
4278 (DLR)
4279 get_escape_seq_abcd()
4280 - A resurrected version of the old abcd() function, readded in
4281 order to simplify get_escape_seq_kbinput(). (DLR)
4282 get_mouseinput()
4283 - Interpret shortcut key values slightly more stringently when
4284 ungetch()ing them. (DLR)
4285 strlenpt()
4286 - Properly cast the second parameter of the strnlenpt() call to
4287 size_t. (DLR)
4288 get_page_start()
4289 - For consistency, tweak so that scrolling always occurs when we
4290 try to move onto the "$" at the end of the line, as opposed to
4291 (a) when we move onto the "$" at the end of the line on the
4292 first page and (b) when we move onto the character just before
4293 the "$" on subsequent pages. (DLR)
4294 reset_cursor()
4295 - Tweak for efficiency. (David Benbennick)
4296 edit_refresh()
4297 - Tweak for efficiency. (David Benbennick)
4298 statusq()
4299 - Rename "tabs" to "allowtabs". (David Benbennick)
4300 do_credits()
4301 - Use nanosleep() instead of usleep(). The latter is only
4302 standard under BSD, whereas the former is POSIX compliant.
4303 Accordingly, only include time.h if we use this function, i.e.
4304 if NANO_EXTRA is defined. (DLR)
4305 - Add explanatory comment. (DLR)
4306- configure.ac:
4307 - Change instances of "int main ()" to "int main(void)". (DLR)
4308- faq.html:
4309 - Fixed inaccuracy: multibuffer mode was first in nano 1.1.0,
4310 not 1.1.12. (DLR)
4311- nano.1, nanorc.5, nano.texi
4312 - Clarify the description for -T/--tabsize a bit. (DLR)
4313 - Add -E/--backupdir description. (Martin Ehmsen; minor cosmetic
4314 fixes by DLR)
4315- nanorc.sample:
4316 - Add backupdir description. (Martin Ehmsen; minor cosmetic
4317 fixes by DLR)
4318- README:
4319 - Reformat to 72 characters per line, fix wording in one spot,
4320 and fix spacing and capitalization in several spots. (DLR)
4321- NEWS:
4322 - Capitalization fix. (DLR)
4323- TODO:
4324 - Clarify the paragraph searching item, and add item for
4325 filename searches in the file browser. (DLR)
4326
4327GNU nano 1.3.1 - 2004.01.09
4328- General:
4329 - Minor overhaul and abstraction of the lowest level of mouse
4330 input, mostly adapted from the code in do_mouse() that handles
4331 clicking on the shortcut list. New function do_mouseinput();
4332 changes to do_mouse(). (DLR) David Benbennick: Add a few
4333 efficiency/extensibility tweaks.
4334 - Modify the shortcut structure so that instead of having two
4335 miscellaneous key values (misc1 and misc2), there is one key
4336 value reserved for function keys (func_key) and one
4337 miscellaneous key value (misc), and tweak the
4338 shortcut-handling code to deal with this. These changes allow
4339 NANO_OPEN(PREV|NEXT)_ALTKEY to work properly when added to the
4340 shortcut entries for NANO_OPEN(PREV|NEXT)_KEY. Also remove
4341 the values in the shortcut list and elsewhere that were made
4342 redundant by the low-level input overhaul, use toupper()
4343 instead of subtracting 32 from values for greater code
4344 readability, and eliminate use of adding 32 to values when
4345 testing for toggles, as get_kbinput_accepted() converts toggle
4346 values to lowercase before returning them. (DLR)
4347 - Remove the workarounds for missing KEY_UP and KEY_DOWN, as
4348 they appear to be holdovers of the old way of denoting the
4349 search history shortcuts; if they aren't defined, KEY_LEFT and
4350 KEY_RIGHT probably shouldn't work either, and all four appear
4351 to be standard keys in termcap/terminfo in any case. Add new
4352 special sentinel key values NANO_NO_KEY (for no shortcut key)
4353 and NANO_HISTORY_KEY (for search history keys, both Up and
4354 Down), modify the shortcut list to use them, and modify the
4355 shortcut display routines to handle them. Also modify the
4356 shortcut list code to not treat non-control character values
4357 of val as Meta-sequences, and fix dependencies on that
4358 behavior. Also rename several variables: "alt" -> "meta",
4359 "altval" -> "metaval". (DLR)
4360 - Hook up the verbatim input functions so that verbatim input
4361 can be used in the edit window. New function
4362 do_verbatim_input(); changes to do_char(). (DLR) Additional
4363 minor tweaks to do_char() by David Benbennick.
4364 - Clarify the description of the --rebinddelete option. (DLR)
4365 - Miscellaneous comment tweaks, and copyright year updates in
4366 the comments and in do_credits(). (DLR)
4367- cut.c:
4368 - Overhaul to increase efficiency and add various cleanups.
4369 Changes to add_to_cutbuffer(), cut_marked_segment(), and
4370 do_uncut_text(). (David Benbennick)
4371- files.c:
4372 check_operating_dir()
4373 - Add an assert to ensure that full_operatingdir isn't NULL,
4374 a fix for reporting nonexistent (incomplete) directory names
4375 as being outside the operating directory when tab completion
4376 is being used, and cosmetic cleanups. (David Benbennick)
4377 copy_file()
4378 - New function used to create a copy of a file, split out from
4379 do_writeout(). (David Benbennick)
4380 write_file()
4381 - Completely overhauled to properly ignore appending/prepending
4382 to symlinks when NOFOLLOW_SYMLINKS is defined, to properly
4383 support writing a selection to a file under the changed
4384 cutting code, to have more concise error messages, to add
4385 various cleanups, and so on. (David Benbennick)
4386 do_writeout()
4387 - Prompt the user if we're trying to save an existing file (and
4388 not just a selection of it) under a different name. (DLR;
4389 suggested by Jean-Philippe Guérard)
4390 - Overhaul the code used to write a selection of a file to
4391 temporarily set fileage and filebot to the top and bottom of
4392 the selection and then call write_file(), instead of following
4393 the old hackish behavior with cut_marked_segment() (which
4394 won't work after the cutting code changes anyway). (David
4395 Benbennick) DLR: Tweak to not add an extra blank line to the
4396 end of the written selection if the cursor is at the beginning
4397 of the last line of the selection.
4398 open_prevfile(), open_nextfile()
4399 - For consistency with the rest of the multibuffer code, change
4400 "No more open files" to "No more open file buffers". (DLR)
4401 do_browser()
4402 - Allow '?' to open the help browser, and readd the ability of
4403 'G'/'g' to open the "Go to Directory" prompt (which was
4404 erroneously removed before), for compatibility with Pico.
4405 (DLR)
4406- global.c:
4407 shortcut_init()
4408 - Allow WHEREIS_NEXT_KEY to be used in view mode. (DLR)
4409- nano.c:
4410 do_int_spell_fix()
4411 - Add comment explaining why findnextstr() is called with
4412 bracket_mode set to TRUE even though we aren't doing a bracket
4413 search. (DLR)
4414 do_para_operation()
4415 - Convert to use the new low-level input functions. (DLR)
4416 main()
4417 - Remove unused variable option_index. (DLR)
4418 - Fix omission of NANO_NO_KEY in the shortcut list scanning
4419 code. (DLR)
4420 - Remove now-unnecessary initialization of kbinput. (DLR)
4421- nano.h:
4422 - Comment additions and cosmetic tweaks. (DLR)
4423- search.c:
4424 findnextstr(), do_replace_loop()
4425 - Fix potential infinite loops and other misbehavior when doing
4426 beginning-of-line or end-of-line regex replacements ("^", "$",
4427 and "^$"). Add a no_sameline parameter to findnextstr(), and
4428 set it in the calls in do_replace_loop() when such regexes are
4429 found, so that such regexes are only found once per line.
4430 Also change length_change from a long to an int; size_t is
4431 unsuitable due to its being unsigned. (DLR; found by Mike
4432 Frysinger and DLR) David Benbennick: Add a few minor cleanups
4433 to do_replace_loop().
4434- winio.c:
4435 get_kbinput(), get_accepted_kbinput()
4436 - Don't pass in the value of the REBIND_DELETE flag anymore.
4437 Instead, handle it directly inside the functions. (DLR)
4438 get_accepted_kbinput()
4439 - Translate Ctrl-8 into NANO_DELETE_KEY (or NANO_BACKSPACE_KEY
4440 if REBIND_DELETE is set), since it apparently is generated
4441 sometimes even when keypad() is TRUE. (DLR)
4442 - Translate KEY_SLEFT into NANO_BACK_KEY and KEY_SRIGHT into
4443 NANO_FORWARD_KEY, since they are sometimes generated by
4444 Shift-Left and Shift-Right. (DLR)
4445 get_ascii_kbinput()
4446 - Tweak to make it slightly more readable. (DLR)
4447 get_verbatim_kbinput()
4448 - Modify to take an extra parameter indicating if we should
4449 interpret ASCII codes or not. (DLR)
4450 get_escape_seq_kbinput()
4451 - Expand to deal with more broken terminals that don't generate
4452 keypad values. Support the escape sequences for Insert,
4453 Delete, Home, End, PageUp, and PageDown, [arrow key],
4454 Ctrl-[arrow key], and Shift-[arrow key] when needed in the
4455 Linux console, the FreeBSD console, the Hurd console, xterm,
4456 rxvt, and Eterm. Also, use get_verbatim_kbinput(), with ASCII
4457 interpretation disabled, to read in the sequences. (DLR)
4458 get_skip_tilde_kbinput()
4459 - Removed, as it is unneeded due to the expansion of
4460 get_escape_seq_kbinput(). (DLR)
4461 get_mouseinput()
4462 - Modify to take an extra parameter indicating if we should
4463 ungetch() the key equivalents of shortcuts we click on or not.
4464 (DLR)
4465 nanogetstr()
4466 - Properly interpret the Meta key value in misc if we hit it at
4467 the statusbar prompt. (DLR)
4468 do_yesno()
4469 - Add a few efficiency/extensibility tweaks. (David Benbennick)
4470 - Convert to use the new low-level input functions, and remove
4471 two last hardcoded widths left after the above tweaks. (DLR)
4472 do_replace_highlight()
4473 - Display a highlighted space if the word length is zero, so
4474 that we can see zero-length regexes we're replacing. (DLR;
4475 suggested by Mike Frysinger)
4476- configure.ac:
4477 - Check for glib 2.x and then 1.2.x if we need glib. (DLR)
4478- faq.html:
4479 - Add question explaining how verbatim input works, as well as a
4480 few minor fixes. (DLR)
4481- nano.1, nanorc.5:
4482 - Add nano version numbers (minus any "-cvs" suffixes). (DLR)
4483- nano.spec.in:
4484 - Update for the 1.3 branch of nano. (DLR)
4485- NEWS:
4486 - Reformat so all lines are limited to 72 columns, add a few
4487 typo fixes, and make a few minor cosmetic cleanups. (DLR)
4488- THANKS:
4489 - Add Danilo Segan, for the Serbian translation.
4490
4491GNU nano 1.3.0 - 2003.10.22
4492- General:
4493 - Complete overhaul and abstraction of the lowest level of
4494 keyboard input, mostly rewritten but incorporating a few bits
4495 from the old functions and adding support for Pico's Esc Esc
4496 [three-digit decimal ASCII code] input method. New functions
4497 get_kbinput(), get_verbatim_kbinput(), get_ignored_kbinput(),
4498 get_accepted_kbinput(), get_ascii_kbinput(),
4499 get_escape_seq_kbinput(), and get_skip_tilde_kbinput(). These
4500 should work properly on FreeBSD (due to code and input
4501 provided by Lee Nelson and Wouter van Hemel, respectively).
4502 (DLR)
4503 - The -K/--keypad command line/rcfile option has been removed,
4504 and keypad() is now always TRUE. keypad_on() in winio.c and
4505 the check for _use_keypad in configure.ac have both been
4506 removed. (DLR)
4507 - The -d/--rebinddelete command line/rcfile option, equivalent
4508 to Pico's -d, has been added. It is intended to work around
4509 the problem with Backspace/Delete confusion on some terminals,
4510 notably FreeBSD; if your Backspace key acts like Delete, this
4511 option will fix that. (DLR)
4512 - Remove unneeded breaks at the ends of default: clauses. (DLR)
4513 - Add the ability to repeat the last search without prompting
4514 via Meta-W, and move the line wrapping toggle to Meta-L. New
4515 function do_research(). (Wouter van Hemel)
4516 - Added the ability to move to the beginning or end of the
4517 paragraph, which Pico has via ^W^W (previous paragraph)
4518 and ^W^O (next paragraph). Changes to do_justify(); new
4519 functions do_para_operation(), do_para_begin(), and
4520 do_para_end(). Note that the last three functions are
4521 disabled if justification is disabled. (DLR)
4522 - Make sure the "historylog" option isn't included at all if
4523 NANO_SMALL is defined. (DLR)
4524 - Source reorganization: move code to src/, docs to doc/.
4525 (Jordi)
4526 - Translation updates (see po/ChangeLog for details).
4527 - Since SAMELINEWRAP is only used in nano.c, make it a static
4528 variable in nano.c instead of a flag, and surround all
4529 wrap_reset() calls with DISABLE_WRAPPING #ifdefs. (DLR)
4530 - Change enum "topmidbotnone" to "topmidnone", as there's no
4531 BOTTOM option anymore. (DLR)
4532 - Split out the string-displaying routine from update_line()
4533 into a separate function; convert the edit window, statusbar
4534 display, and statusbar prompt to use it, so that they can all
4535 properly display control characters and tabs; free and NULL
4536 the backup search string in one place in the search code
4537 instead of several; and do some other minor refactoring of
4538 related display functions to simplify them. New functions
4539 mark_order() and display_string(); new macro charmove();
4540 changes to actual_x(), strnlenpt(), blank_bottombars(),
4541 blank_edit(), get_page_start(), edit_add(), update_line(),
4542 statusbar(), and do_replace_highlight(). (David Benbennick)
4543 DLR: Add minor cosmetic tweaks, add missing NANO_SMALL #ifdef
4544 around the text for a backwards search in the refactored code,
4545 and enclose dump_buffer() and dump_buffer_reverse() in one
4546 ENABLE_DEBUG #ifdef instead of two.
4547 - Convert memmove() function calls to charmove() macro calls, as
4548 the former all work on char*'s. (DLR)
4549 - Miscellaneous #define cleanups: only include the prototype for
4550 and definition of wrap_at if wrapping and/or justification are
4551 enabled, remove duplicate wrap_at prototype, and define
4552 DISABLE_MOUSE if NCURSES_MOUSE_VERSION isn't defined in nano.h
4553 instead of all over the code. (DLR)
4554 - Autogenerate the html versions of the manpages in the
4555 Makefile.am's in doc/man/, make sure that they're properly
4556 installed via "make dist", and make sure that "make distcheck"
4557 works too. Also be sure to set EXTRA_DIST properly. (Jordi,
4558 DLR and Jeff Bailey)
4559- files.c:
4560 read_file()
4561 - After we've read in a file and possibly converted it from
4562 DOS/Mac format, set fileformat back to 0 to prevent erroneous
4563 conversion messages when we read other files in. (DLR)
4564 do_browser()
4565 - Some of the Pico compatibility options in the file browser
4566 that don't work properly for current Pico have been removed.
4567 Backspace, 'g', 'l', 'q', and 'u' are invalid. 'd' deletes
4568 the highlighted file, and 'r' renames the highlighted file;
4569 neither of these are implemented. (DLR)
4570- global.c:
4571 toggle_init()
4572 - Change the message for the line wrapping toggle from "Auto
4573 wrap" to "Auto line wrap", to more clearly associate it with
4574 Meta-L. (DLR)
4575 shortcut_init()
4576 - Change multibuffer-enabled references to
4577 opening/closing/toggling the previous/next loaded file to
4578 toggling/switching to/closing the previous/next file buffer,
4579 for consistency with other references. (DLR)
4580- nano.c:
4581 window_init()
4582 - Set keypad() to TRUE regardless of whether PDCurses is being
4583 used, as Meta-X apparently turns it off even under ncurses.
4584 (DLR)
4585 do_backspace()
4586 - Vastly simplify, and remove dependency on page_up(). (David
4587 Benbennick)
4588 help_init()
4589 - Document the support for Esc Esc [character]'s being
4590 interpreted as Ctrl-[character], and the support for Pico's
4591 Esc Esc [three-digit decimal ASCII code] input method. (DLR)
4592 do_mark()
4593 - Toggle MARK_ISSET at the beginning of the function instead of
4594 setting it in one place and unsetting it in another place.
4595 (David Benbennick)
4596 do_suspend()
4597 - Use handle_hupterm() to handle SIGHUP and SIGTERM so we can
4598 properly deal with them while nano is suspended. (DLR; problem
4599 found by David Benbennick)
4600 abcd()
4601 - Removed, as it's unneeded due to the low-level input overhaul.
4602 (DLR)
4603- nano.h:
4604 - Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as
4605 slang has no equivalent of either. When nano is compiled with
4606 slang support, resizing the window doesn't generate
4607 KEY_RESIZE, and pressing Ctrl-Z to suspend nano at the Linux
4608 console with keypad(TRUE) generates Ctrl-Z instead of
4609 KEY_SUSPEND, both unlike ncurses. (DLR)
4610 - Define KEY_RESIZE as -1 if it isn't defined, as it isn't in
4611 the curses library included with SunOS 5.7-5.9. Also define
4612 KEY_SUSPEND as -1 if it isn't defined, in case it isn't in
4613 more than just Slang. (DLR)
4614 - Define all potentially missing keys as different negative
4615 values (ERR is -1, so use -2, -3, etc.) so as to avoid having
4616 duplicate case values when keys are missing. (DLR)
4617- move.c:
4618 - Remove unneeded inclusion of stdio.h, make various cleanups,
4619 and preserve the cursor's coordinates when paging up and down.
4620 (David Benbennick) DLR: Readd the ability to behave the old
4621 way while paging, make it so the new behavior is only used in
4622 smooth-scrolling mode, and modify page_down() to always go
4623 down a full page (even when there's less than one page of text
4624 left) for consistency.
4625 page_up()
4626 - Removed due to rewrite of movement functions. (David
4627 Benbennick)
4628- proto.h:
4629 - Surround the do_prev_word() and do_next_word() prototypes with
4630 NANO_SMALL #ifdefs, since the actual functions aren't included
4631 in tiny mode. (DLR)
4632- rcfile.c:
4633 parse_colors()
4634 - Generate an error if we try to use a bright background color
4635 in a nanorc file. (DLR; found by Brand Huntsman)
4636 - Make sure all rcfile error messages are capitalized, for
4637 consistency. (DLR)
4638- winio.c:
4639 get_verbatim_kbinput()
4640 - Fix a silly memory corruption bug that would occur when trying
4641 to read a sequence of more than one key verbatim. (DLR)
4642 get_accepted_kbinput()
4643 Handle Ctrl-{ to Ctrl-~ correctly, and drop support for
4644 converting Esc ` to Esc Space, since making Meta-[key]
4645 correspond to Ctrl-[key] in all cases is inconsistent due to
Benno Schulenberg4a073a02017-01-04 13:48:25 +01004646 the different natures of Control and Meta key sequences. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004647 do_first_line()
4648 - Call edit_update() with TOP instead of CENTER; both do the
4649 same thing, but it works faster with TOP. (DLR)
4650 nanogetstr()
4651 - Don't let the user type in ASCII 127 at the statusbar prompt.
4652 (DLR)
4653 titlebar()
4654 - Fix problem with the available space for a filename on the
4655 titlebar's being short by one. (DLR)
4656 edit_add()
4657 - Fix problems with the marking highlight's being drawn
4658 improperly in some cases. (DLR)
4659 edit_update()
4660 - Tweak for efficiency and remove the fix_editbot() call. (David
4661 Benbennick)
4662 do_credits()
4663 - Update the copyright years to "1999-2003", to match those
4664 given in the rest of the code. (DLR)
4665- configure.ac:
4666 - Change instances of "GNU Nano" to "GNU nano" for consistency.
4667 (DLR)
4668- nano.1, nanorc.5, nano.texi:
4669 - Change all instances of $SYSCONFDIR to SYSCONFDIR, since
4670 SYSCONFDIR is set at compile time and can't be overridden by
4671 setting SYSCONFDIR in the environment. (David Benbennick)
4672 - Remove -K/--keypad, and document -d/--rebinddelete. (DLR)
4673 - Document the support for Esc Esc [character]'s being
4674 interpreted as Ctrl-[character], and the support for Pico's
4675 Esc Esc [three-digit decimal ASCII code] input method, if
4676 applicable. (DLR)
4677 - French translation by Jean-Philippe Guérard.
4678- nano.1.html, nanorc.5.html:
4679 - Regenerated. (DLR)
4680- nanorc.sample:
4681 - Remove duplicate "historylog" entry, remove "keypad" entry,
4682 and add "rebinddelete" entry. (DLR)
4683 - Update and add comments to the regexes for nanorc files.
4684 (Brand Huntsman)
4685 - Fix an attempt at a bright background color in the sample Java
4686 source regexes. (DLR)
4687 - Since tabs are shown as groups of spaces, they are interpreted
4688 as such when parsed by color regexes. Accordingly, simplify
4689 regexes that handle both spaces and tabs to just handle
4690 spaces, as the results are the same. (DLR)
4691- AUTHORS:
4692 - Updated to show 1.2/1.3 maintainers.
4693
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004694GNU nano 1.2.2 - 2003.08.11
4695- General:
4696 - Translation updates (see po/ChangeLog for details).
4697 - Change uncast nrealloc()s assigned to char pointers/arrays to
4698 charealloc()s, and cast all other nrealloc()s and all
4699 nmalloc()s. (David Benbennick and DLR)
4700 - Remove gettext marks from all debug messages. Good for developers,
4701 better for translators. (Jordi)
4702 - Add translator comments on strings that should be short, like in
4703 status bar strings, etc. (Jordi)
4704- utils.c:
4705 align()
4706 - Tweak to avoid a potential problem when strp is non-NULL but
4707 *strp is NULL. (David Benbennick)
4708 nstricmp(), nstrnicmp()
4709 - Add these functions, equivalent to strcasecmp() and
4710 strncasecmp(), and convert nano to use them when strcasecmp()
4711 and/or strncasecmp() are unavailable. (DLR)
4712- winio.c:
4713 do_help()
4714 - Get rid of keypad_on() call for bottomwin, which should not be
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004715 needed. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004716 nanogetstr()
4717 - Fix problem with search history where a temporary string
4718 added at the bottom of the history (but which was not in the
4719 history) would not be preserved after scrolling down to the
4720 blank bottom entry and then scrolling back up. (DLR)
4721 - Fix problem where pressing down,up,down does not blank the
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004722 search prompt but keeps the previous search. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004723 - Handle Alt-[-F and H (DLR, fixed home and end not working with
4724 -K in statusbar).
4725- configure.ac:
4726 - Change the program used to detect a broken regexec() function
4727 so that it works properly, using information found at
4728 http://sources.redhat.com/ml/libc-hacker/2001-06/msg00015.html.
4729 (DLR)
4730- nanorc.sample:
4731 - Revised comment explaining the non-escaping of quotes to cover
4732 non-escaping of all shell-interpreted characters. (DLR)
4733 - Fixes to the descriptions and examples in the comments, and
4734 changes to some default values. (David Benbennick and DLR)
4735 - Add regexes for Perl syntax. (Richard Smith, tweaked for
4736 greater efficiency by David Benbennick)
4737 - Add regexes for Java source syntax. (David Benbennick)
4738 Regex for C++-style comments (colored the same way as C-style
4739 comments) added by DLR.
4740- THANKS:
4741 - Added Laurentiu Buzdugan, for Romanian.
4742 - Added Geir Helland, for Norwegian BokmĂĄl.
4743- TODO:
4744 - Move the items for nano 1.2 to the "Old Requests" section,
4745 and mark color syntax highlighting as done. (David Benbennick)
4746- faq.html:
4747 - Added question about nano's not showing color when it's
4748 compiled with color support. (DLR; suggested by Jordi)
4749- nano.1, nanorc.5:
4750 - Formatting improvements by Jean-Philippe Guérard.
4751 - Minor fixes by DLR.
4752- nano.1.html, nanorc.5.html:
4753 - Regenerated from nano.1 and nanorc.5. (DLR)
4754
4755GNU nano 1.2.1 - 2003.04.19
4756- General:
4757 - Translation updates (see po/ChangeLog for details).
4758 - Work around broken regexec() on some systems that segfaults
4759 when passed an empty string. This is known to be in glibc
4760 2.2.3. New function regexec_safe(). (David Benbennick)
4761 - Fix various bugs with search string history logging: don't
4762 print a broken error message and freeze if ~/.nano_history is
4763 unreadable, actually show an error message in save_history()
4764 if ~/.nano_history is unwritable, and prevent ~/.nano_history
4765 from being completely overwritten by save_history() if it's
4766 unreadable but writable. (David Benbennick)
4767 - Only unset KEEP_CUTBUFFER in main() when we do something other
4768 than cut text in the main input loop, instead of unsetting it
4769 all over the place (which, as written, didn't handle cases
4770 like a cut followed by M-Space properly). Also, instead of
4771 checking for keyhandled's not being set inside the for loops,
4772 do it in if blocks surrounding the for loops to increase
4773 efficiency. (David Benbennick) DLR: Also unset KEEP_CUTBUFFER
4774 if we hit a shortcut key other than the one for cutting text.
4775 - Make it so a marked cut immediately followed by an unmarked
4776 cut tacks the latter's text onto the end of the former's text
4777 instead of putting it on a new line, as Pico does. (DLR)
4778 - Convert instances of "(char *)nrealloc()" to the macro
4779 charealloc(), which does the same thing. (DLR)
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004780 - Change justify_mode from a boolean int to a flag. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004781- cut.c:
4782 do_cut_text()
4783 - Tweak where KEEP_CUTBUFFER is set so that a marked cut
4784 immediately followed by an unmarked cut preserves the
4785 cutbuffer between the two. (David Benbennick) DLR: Also
4786 properly set KEEP_CUTBUFFER in tiny mode.
4787 do_uncut_text()
4788 - If we're about to uncut on the magicline, always make a new
4789 magicline in advance, as Pico does. (DLR)
4790- global.c:
4791 shortcut_init()
4792 - Simplify the #ifdef used to enable file insertion in view mode
4793 if multibuffer support has been compiled in. (DLR)
4794- nano.c:
4795 justify_format()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004796 - If we shave spaces off the end of the line, make sure totsize
4797 is properly updated. (DLR; much simplified by David
4798 Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004799- nano.h:
4800 - Simplify #ifdefs relating to HAVE_STRCASECMP and
4801 HAVE_STRNCASECMP. (David Benbennick)
4802- search.c:
4803 goto_abort()
4804 - Removed, with all instances replaced with display_main_list(),
4805 since with the removal of all the scattered calls to
4806 SET(KEEP_CUTBUFFER), that function was all that was left of
4807 it. (DLR)
4808 do_find_bracket()
4809 - If a matching bracket wasn't found, call update_line() after
4810 setting current and current_x back to their original values,
4811 in case current_x's original value is greater than the width
4812 of the screen. (DLR)
4813- winio.c:
4814 nanogetstr()
4815 - Remove a few unnecessary breaks occurring immediately after
4816 gotos, and properly interpret the up and down arrow keys when
4817 ALT_KEYPAD is set. (DLR)
4818- configure.ac:
4819 - Enable autodetection of broken regexec(). (DLR) Re-added
4820 regex.h check to ensure compile under Debian w/autoconf 1.6.
4821- README:
4822 - Update obsolete 1.1.x information.
4823- TODO:
4824 - Fix typo. (David Benbennick)
4825- faq.html:
4826 - Update RPM links for nano 1.2.x. (DLR)
4827
4828GNU nano 1.2.0 - 2003.02.19
4829- General:
4830 - Translation updates (see po/ChangeLog for details).
4831- files.c:
4832 read_file()
4833 - If the file we're loading has already been detected as a DOS
4834 or Mac formatted file, don't turn on NOCONVERT if we find
4835 binary chars in it. This is because if it's detected as
4836 DOS/Mac format, at least one line has already been converted,
4837 so setting NOCONVERT (which is supposed to signal that none
4838 of the file should be converted) makes no sense. (DLR)
4839- nano.c:
4840 justify_format()
4841 - Fix ugly behavior when wrapping spaces at the end of long
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004842 words. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004843- nanorc.5:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004844 - Fix formatting error and update copyright year. (Jordi)
4845 - Several enhancements. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004846
4847GNU nano 1.1.99pre3 - 2003.02.13
4848- General:
4849 - Translation updates (see po/ChangeLog for details).
4850 - Fix globals and externs such that nano will compile with
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004851 DISABLE_SPELLER. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004852 - Fix unreasonable fill values by wrapping at length 0 instead
4853 of erroring out, and don't start up if the window size is too
4854 small but fill is set reasonably. Changes to
4855 nano.c:global_init(), window_init(), and handle_sigwinch().
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004856 New macro MIN_EDITOR_COLS replaces MIN_FILL_LENGTH.
4857 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004858 - Change ngettext macro to P_(), to avoid a clash with the
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004859 reserved C __ identifier. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004860 - Memory leak fixes for files.c:do_insertfile(),do_browser(),
4861 nano.c:do_spell(), and search.c:do_replace() (David
4862 Benbennick).
4863 - Remove do_preserve_msg, as using -p still gives Pico-style
4864 string behavior, so an annoying message every invocation is
4865 probably unneeded (all cheer).
4866 - Change resetpos function to be global (now called
4867 resetstatuspos. Fixes annoying but small odd problem with
4868 cursor placement when inserting a file. This needs to be done
4869 better in 1.3 (originally by David Lawrence Ramsey). Added
4870 this issue to TODO.
4871- files.c:
4872 cwd_tab_completion()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004873 - Memory leak fix. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004874 input_tab()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004875 - Fix assumption that matches is null terminated. (David
4876 Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004877 load_history()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004878 - Fix segfault on loading huge strings from history file.
4879 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004880 load_history(), save_history()
4881 - Changed to look at $HOME before getpwuid(geteuid()), see
4882 details in comment for rcfile.c:do_rcfile().
4883 real_dir_from_tilde()
4884 - Change check for the running user's home dir to use
4885 getpwuid(geteuid()) rather than a getpwent() loop
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004886 (suggested by Jordi).
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004887- nano.c:
4888 breakable()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004889 - Fix incorrect return value on short lines. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004890 do_help()
4891 - Fix line lengths not being computed properly, causes display
4892 glitches most noticeable with < 20 rows. New function
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004893 nano.c:line_len(). (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004894 do_justify()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004895 - Add regfree() to quote regex. (David Benbennick)
4896 - Only copy previous indent if AUTOINDENT is set. (David
4897 Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004898 do_suspend()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004899 - Fix untranslated message. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004900 do_wrap()
4901 - Fix isspace() call to operate on int.
4902 help_init()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004903 - Fix crashing in do_help when COLS < 23. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004904 main()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004905 - Fix nano not compiling with ENABLE_RCFILE and DISABLE_TABCOMP.
4906 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004907 - Silence annoying compiler messages about clobbering and
4908 uninitialized variables by moving variable inits to the top
4909 of main() and re-initializing them after the sigsetjmp().
4910- rcfile.c:
4911 colortoint()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004912 - Don't bomb after invalid color and print bad color name.
4913 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004914 colortoint, parse_colors()
4915 - Don't add strings with invalid fg colors at all.
4916 do_rcfile()
4917 - Revert (somewhat) previous behavior of looking at
4918 $HOME, and only run getpw* if it is NULL. Most *nix programs
4919 seem to only care about $HOME, and at the user-level
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004920 getpw* may not be reliable (and it's slower).
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004921- search.c:
4922 do_gotoline()
Benno Schulenberg4a073a02017-01-04 13:48:25 +01004923 - Only goto_abort() if we *didn't* abort the command, making
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004924 the function seem horribly misnamed. ;-) (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004925- winio.c:
4926 browser_init(), striponedir(), do_browse_from()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004927 - Various memory leak fixes. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004928 do_yesno(), do_help()
4929 - Add defined(NCURSES_MOUSE_VERSION) to macro so systems that
4930 don't understand MEVENT will compile.
4931 nanogetstr()
4932 - Remove unnecessary reset of x since it is now handled
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004933 elsewhere. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004934 statusq()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004935 - Always blank the statusbar on exit. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004936- nano.1, nano.1.html:
4937 - Add initialization file comments, change some options from
4938 bracketed to underlined to emphasize that they are not
4939 optional.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004940 - Add SEE ALSO section. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004941 - Moved nano.1 color and syntax sections to nanorc, pointed
4942 nano.1 to nanorc.5 for initialization file. Changed
4943 nanorc.5 variables to be italics to match nano.1. Added
4944 nanorc.5.html to CVS tree.
4945- nanorc.5:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004946 - Add nanorc manpage, with descriptions of all available commands.
4947 (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004948- nanorc.sample:
4949 - Make nanorc entry less tolerant of invalid colors.
4950- nano.spec.in:
4951 - Change default flags to --enable-all.
4952- THANKS:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004953 - Add Kalle Kivimaa and Kalle Olavi Niemitalo, for Finnish. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004954- UPGRADE:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004955 - Add upgrading information document for 1.0 users. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004956
4957GNU nano 1.1.99pre2 - 2003.02.03
4958- General:
4959 - Changed some translatable debug messages to use %s
4960 instead of the function name, and removed gettext from
4961 two strings that had no actual words in them that
4962 should be translated. Suggested originally by
4963 Christian Rose.
4964 - Fix subexpression replacement to work consistently.
4965 Affects search.c:replace_regexp() and
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004966 utils.c:strstrwrapper(). (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004967 - Fix cursor position being saved when escaping out
4968 of nanogetstr with keys like ^Y and ^V. New arg
4969 resetpos to nanogetstr(), added static int
4970 resetpos in statusq() (bug found by DLR).
Benno Schulenberg4a073a02017-01-04 13:48:25 +01004971 - Fix constant curpos updates from obliterating other
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004972 system messages, and fix statusbar message length.
4973 Affects files.c:load_open_file(), nano.c:main(),
4974 search.c:findnextstr(), winio.c:statusbar() and
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004975 do_cursorpos(). (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004976 - Fix nano crashing when searching/replacing an invalid
4977 regex (try "^*"). Changed regexp_init() to return
4978 1 or 0 based on regcomp()'s return value and search_init
4979 to exit with an error message (sorry Jordi!). Added
4980 another check when using last_search instead of answer.
4981 - Move regcomp into rcfile.c rather than each display refresh
4982 of winio.c. New function rcfile.c:nregcomp().
4983 This fixes much of nano's resource hogging behavior
Benno Schulenberg4a073a02017-01-04 13:48:25 +01004984 in syntax highlighting. (David Benbennick).
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004985 - Fix justify failing for certain lines, new function
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004986 nano.c:breakable(). (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004987 - Fix screen getting trashed on signals nano can catch
4988 (TERM and HUP). New global variable curses_ended,
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004989 changes to winio.c:statusbar() and nano.c:die().
4990 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004991- cut.c:
4992 do_cut_text()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004993 - Fix incorrect cursor location when cutting long lines.
4994 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004995- files.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01004996 - Set a default PATH_MAX for getcwd() etc calls. (David
4997 Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004998 do_browse_from()
4999 - Fix path checking to fix bad paths, escaping
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005000 the operating directory, new function readable_dir(). (David
5001 Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005002 do_browser()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005003 - Fix incorrect path check for check_operating_dir().
5004 (David Benbennick)
5005 - Fix goto directory operating dir check and tilde expansion.
5006 (David Benbennick)
5007 - Even more checks and operating dir fixes. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005008 do_insertfile()
5009 - Add some more checks and fix recursion when toggling
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005010 multibuffer. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005011 open_file()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005012 - Fix FD leak with file load error. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005013 add_open_file()
5014 - Revert the fix for the supposed minor logic error from before;
5015 it was keeping some updates from happening when they should,
5016 which was leading to segfaults with both multibuffer and view
5017 mode on. (DLR; found by David Benbennick)
5018 save_history()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005019 - Fix nrealloc return value being ignored. (David Benbennick)
5020 - Fix off-by-one bug causing write to unallocated memory.
5021 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005022- global.c:
5023 thanks_for_all_the_fish()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005024 - Fix compiling with DEBUG and multibuffer. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005025- nano.c:
5026 do_char()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005027 - Remove unneeded check_statblank(). (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005028 do_int_spell_fix(), do_int_speller()
5029 - Fix crashes with mark position, current_x position,
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005030 and edit_update args. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005031 do_justify()
5032 - Unset KEEP_CUTBUFFER so nano won't crash with subsequent
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005033 ^K cuts and justifies. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005034 do_mouse()
5035 - Fix the mouse code to work with lines longer than COLS and
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005036 with the proper positioning, including special characters.
5037 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005038 do_preserve_msg():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005039 - Unsplit error message into a single fprintf call. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005040 main()
5041 - Call load_file with arg 0 for insert, as we aren't really
5042 doing an insert, allows new_file() to run if we open a
5043 non-file at startup.
5044 usage()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005045 - Remove gettext markings from -p/--preserve. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005046 - Revamp -H option message to fit in 80 column terminal.
5047 window_init()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005048 - Fix leaking *WINDOWs (no pun intended). (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005049- search.c:
5050 do_search(), do_replace_loop()
5051 - Fix edit_update call to use CENTER instead of current_x
5052 (related to David Benbennick's fixes for spelling).
5053 do_replace_loop()
5054 - Fix various bugs having to do with replace string length
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005055 and positioning. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005056 edit_refresh()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005057 - Fix cursor being above as well as below the current screen.
5058 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005059- winio.c:
5060 bottombars()
5061 - Change strcpy of gettext() "Up" string to strncpy of max
5062 width 8, to stop stupid strcpy crash.
5063 do_yesno()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005064 - Fix mouse interaction bugs with yes/no prompt. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005065- nanorc.sample:
5066 - Change comment to say magenta instead of purple.
5067
5068GNU nano 1.1.99pre1 - 2003.01.17
5069- General:
5070 - New date format for NEWS and ChangeLog.
5071 - Completely removed PICO_MODE, as with the search/replace
5072 history patch we should have the extended functionality we can
5073 without being incompatible with Pico. Removed all code for
5074 different search/replace string editing and alternate shortcut
5075 list. I'm sure I won't even have to ask for feedback on this
5076 one :-)
5077 - Add in Pico's -p flag, (-p, --preserve). To preserve the XON
5078 and XOFF keys (^Q and ^S). Add warning if we invoke -p and
5079 add checks for using --preserve (to skip warning) and --pico
5080 (to force showing it). New flag PRESERVE, function
5081 do_preserve_msg(), changes to main(), signal_init().
5082 - Search history and replace history up/down cursor arrows,
5083 w/history tab completion, not available w/NANO_SMALL. Changes
5084 to statusq(), others (Ken Tyler). Added shortcut to
5085 search/replace shortcuts so people will know it's there,
5086 forced KEY_UP and KEY_DOWN defs in nano.h (Chris, in case
5087 blame needs to be placed later). Minor fixes by DLR: allow ^P
5088 and ^N as alternatives to the up and down arrows, make sure
5089 the "Up" shortcut is displayed properly in the help menu,
5090 remove a few bits of unneeded and/or warning-generating code,
5091 and fix some missing statusq() prompts with --enable-tiny.
5092 - Added search/replace history log. Flag -H, --historylog.
5093 Flags HISTORY_CHANGED and HISTORYLOG (only room for one more
5094 flag!), added entries in nanorc.sample, new functions
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005095 log_history and save_history. (Ken Tyler)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005096 - Translation updates (see po/ChangeLog for details).
5097 - Forward-ported Chris' --disable-wrapping-as-root option from
5098 1.0.9. Per Jordi's suggestions, have it override
5099 $SYSCONFDIR/nanorc but not ~/.nanorc. (DLR)
5100 - Change all references to /etc/nanorc in the documentation to
5101 $SYSCONFDIR/nanorc. (DLR)
5102 - Minor cosmetic tweaks to the ngettext() macro, and fix to
5103 properly detect systems lacking ngettext() and correctly
5104 compile on them; the previous fix didn't work. (DLR)
5105 - Fix problems with some code sections' not being #ifdef'ed out
5106 when they should be, or being #ifdef'ed out improperly. (David
5107 Benbennick and DLR)
5108 - Change FOLLOW_SYMLINKS to NOFOLLOW_SYMLINKS, and rework the
5109 associated logic accordingly, throughout the code. (David
5110 Benbennick)
5111 - Rework #ifdefs to not include mouse_init() at all if
5112 DISABLE_MOUSE is defined or NCURSES_MOUSE_VERSION isn't. (DLR)
5113 - For consistency, change many references of (!x) to (x == NULL)
5114 and (x) to (x != NULL). (DLR)
5115 - Define KEY_IC properly (and KEY_DC more portably) when slang
5116 support is enabled, and remove the hack to work around the
5117 former's not being defined. (David Benbennick and DLR)
5118 - Miscellaneous tweaks to update_color() calls, to make sure
5119 they're called at the right times and that refreshes are done
5120 afterwards only when needed. (David Benbennick)
5121 - Renamed [have_]past_editbuff [have_]search_offscreen. (DLR)
5122 - Add the "preserve" option to the nanorc file, to match
5123 nanorc.sample. (DLR)
5124 - Fixed awful scrolling in do_int_speller. Problem was
5125 findnextstr() calling edit_update(), though screen updating
5126 is not its business. Added checks in do_search() and
5127 do_replace_loop() to do the checks. It really should not be
5128 done here, as some function in winio.c should handle this,
5129 but I can't seem to find a good place to put this check.
5130 - Updated all copyright notices to say 2003 rather than 2002, as
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005131 nearly all the source files have been worked on this year.
5132 (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005133- configure.ac:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005134 - Added tr and eu to ALL_LINGUAS. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005135 - Fix now inaccurate description of --enable-tiny's effects; it
5136 no longer disables NLS support. (DLR)
5137 - Fix typo. (David Benbennick)
5138 - Check for strcasecmp() and strncasecmp(), since they are
5139 apparently only standard under BSD. (DLR)
5140 - Small cleanups. Add copyright header, add autopoint support and
5141 define bug report address and full package name in AC_INIT. Move
5142 ALL_LINGUAS to po/LINGUAS, recommended place for gettext 0.11.
5143 - Added --enable-all option to compile in all the extra stuff
5144 we'd normally need extra flags for.
5145- color.c:
5146 update_color():
5147 - Remove an unneeded edit_refresh() call after do_colorinit().
5148 (David Benbennick)
5149- cut.c:
5150 do_cut_text()
5151 - Fix a memory corruption problem caused by accessing edittop
5152 after it was freed but before it was reset to a sane value
5153 from current. (David Benbennick)
5154 do_uncut_text()
5155 - If uncutting more than one line of unmarked text at editbot,
5156 don't center the screen, since Pico doesn't. (DLR)
5157 - If uncutting previously unmarked text, uncut to end if we're
5158 not at the beginning of the line, and set placewewant to 0 if
5159 we are. This matches Pico's behavior. (DLR)
5160- files.c:
5161 load_file()
5162 - Remove unneeded wmove() call. (David Benbennick)
5163 read_line()
5164 - Miscellaneous cleanups. (David Benbennick)
5165 open_file()
5166 - If we're in multibuffer mode and there's an error opening the
5167 file in read-only mode, display the error message on the
5168 statusbar regardless of the value of quiet. (DLR)
5169 read_file()
5170 - Miscellaneous cleanups. (David Benbennick)
5171 - Fix len's being off by one when reading in Mac-format files,
5172 exposed by one of David Benbennick's cleanups. (DLR)
5173 - If NO_CONVERT isn't set when we first enter, and it gets set
5174 while reading in the file, unset it again afterwards. (DLR)
5175 do_insertfile()
5176 - If we're in multibuffer mode and there's an error opening the
5177 file that we're trying to insert, close the new buffer that we
5178 made to hold it and reload the buffer we had open before.
5179 (DLR)
5180 add_open_file()
5181 - Fix minor logic error when determining when to resave fileage
5182 and filebot. (DLR)
5183 load_open_file()
5184 - If switching between files when CONSTUPDATE is set, only force
5185 a cursor position display update if DISABLE_CURPOS isn't set.
5186 This will ensure that the "Switching to [file]" messages are
5187 shown. (DLR)
5188 write_file()
5189 - Change lineswritten from a long to an int, to match
5190 filestruct->lineno. (DLR; mismatch found by David Benbennick)
5191 real_dir_from_tilde()
5192 - Since this is needed for proper interpretation of paths
5193 containing tildes and not just for tab completion, include and
5194 use it regardless of whether tab completion is disabled.
5195 (David Benbennick and DLR)
5196 input_tab()
5197 - Variable name change: matchBuf -> matchbuf. (DLR)
5198 diralphasort()
5199 - Remove the HAVE_STRCASECMP #ifdef block; see the changes to
5200 configure.ac and nano.h for why. (DLR)
5201- global.c:
5202 thanks_for_all_the_fish()
5203 - Miscellaneous cleanups. (David Benbennick)
5204- move.c:
5205 do_page_down()
5206 - If there's a page or less of text, do an edit_update() if the
5207 mark is on; otherwise, the highlight won't be displayed. (DLR)
5208- nano.c:
5209 - Added free_history() list calls clean up, added init of list
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005210 headers, and modified statusq() calls. (Ken Tyler)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005211 do_prev_word()
5212 - Make the assert match that in do_next_word(). (DLR)
5213 do_enter()
5214 - If smooth scrolling is on, and Enter is pressed on the
5215 magicline, don't center the screen. (DLR)
5216 do_justify()
5217 - Fix memory corruption problem triggered when edittop and
5218 current->next pointed to the same value and current->next was
5219 destroyed during justification. (DLR)
5220 - Center the screen when justification moves the cursor entirely
5221 off the bottom of the screen, instead of when it moves the
5222 cursor near the bottom of the screen, to more closely match
5223 Pico's behavior. (DLR)
5224 version()
5225 - Remove obsolete reference to --enable-undo. (David Benbennick)
5226 - Move up check for --disable-nls as it's independent of
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005227 --enable-tiny now. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005228 do_int_speller()
5229 - Make internal spell program use sort -f and uniq to create a
5230 less redundant word list. [The only reason this is going in
5231 during feature freeze is because the int speller is useless as
5232 is and should either be improved or removed. I chose
5233 improved].
5234 - Change all child error checks to use one goto (gasp!) called
5235 close_pipes_and_exit, so we don't leak FDs.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005236 - Fix FD leaks which occur outside of errors. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005237 do_int_speller(), do_alt_speller()
5238 - Programs now return char *, NULL for successful completion,
5239 otherwise the error string to display. This allows us to give
5240 more useful feedback to the user when spell checking fails.
5241 ABCD()
5242 - Renamed abcd(). (DLR)
5243 main()
5244 - Remove an unneeded do_colorinit() call, do major cleanups, and
5245 allow loading of multiple files on the command line when
5246 multibuffers are used. (David Benbennick)
5247- nano.h:
5248 - Make sure NO_RCFILE and COLOR_SYNTAX aren't set to the same
5249 value. (DLR; discovered by Ken Tyler)
5250 - If strcasecmp() and/or strncasecmp() aren't available, use
5251 strcmp() and/or strncmp() instead. (DLR)
5252- proto.h:
5253 - Fix the #ifdef block for DISABLE_TABCOMP's being undefined
5254 so that functions only used with tab completion are properly
5255 #ifdef'ed out. (DLR)
5256- search.c:
5257 do_gotoline()
5258 - Don't call blank_statusbar_refresh() so if there's an error
5259 returned in multibuffer mode, we can actually see it.
5260 do_search()
5261 - Remove erroneously introduced near-duplicate call to
5262 update_history(). (DLR)
5263 print_replaced()
5264 - Remove and replace with an equivalent ngettext() call. (DLR)
5265 do_replace_loop()
5266 - Fix bug where if text on the magicline was replaced (which can
5267 be done via a regexp replace of "^$" with something other than
5268 ""), a new magicline wouldn't be created. (DLR)
5269 - Remove check for answer being a blank string, presumed to be
5270 a PICO_MODE holdover, but it stops us from doing a blank
5271 spelling replacement.
5272 do_replace()
5273 - For greater Pico compatibility, when an attempt to replace a
5274 string results in 0 replacements due to the string's not being
5275 found, display "[string] not found" instead of "Replaced 0
5276 occurrences". (DLR)
5277- utils.c:
5278 is_cntrl_char()
5279 - Rework to fix a problem with displaying certain high-bit
5280 characters. (David Benbennick; reported by Andrzej Marecki)
5281 align()
5282 - Don't just assert that the string passed in isn't NULL; check
5283 that it isn't and only do the alignment when it isn't. (David
5284 Benbennick)
5285 nmalloc(), nrealloc()
5286 - If the size passed to nmalloc() or nrealloc() is zero, don't
5287 die with an erroneous out-of-memory error. Also, change
5288 their dying messages to "nano is out of memory!". (David
5289 Benbennick)
5290 charalloc()
5291 - Removed and redefined as a macro that calls nmalloc(). (David
5292 Benbennick)
5293- winio.c:
5294 nanogetstr()
5295 - Tweak to make the cursor stay in the same place if we hit a
5296 prompt-changing toggle while it's in the middle of the string.
5297 Reset it to -1 (so next time we come here, it'll be set to the
5298 end of the string) if we leave the prompt via Enter or Cancel.
5299 Also fix minor problem with search history where the current
5300 search item could be at the bottom of the history twice in a
5301 row under certain conditions. (DLR)
5302 - Remove parens in NANO_CONTROL_I check so nano won't complain if
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005303 just NANO_SMALL is defined. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005304 edit_refresh()
5305 - Miscellaneous cleanups that fix a bug where the screen
5306 isn't updated after uncutting chunks of upwardly marked cut
5307 text that are over a page in length. (David Benbennick)
5308 do_credits()
5309 - Add David Benbennick to credits. (DLR)
5310- nanorc.sample:
5311 - Added comment to explain the non-escaping of quotes in
5312 color regexes, based on info provided by David Benbennick.
5313 (DLR)
5314 - Added some examples for groff and the nanorc courtesy of
5315 Robert D. Goulding.
5316 - Added double hash marks to comment lines, so people who
5317 uncomment the beginning of every line won't get syntax errors.
5318- faq.html:
5319 - Miscellaneous fixes and updates for typos, broken links, and
5320 slashes at the end of directories. It is now fully compliant
5321 with HTML 4.01 Transitional. (DLR and David Benbennick)
5322 - Added docs about the new unified search string interface and
5323 search histories, and added --enable-all into configure docs.
5324- nano.texi:
5325 - Typo fixes and updates. (David Benbennick)
5326 - Updates for the most recent and not so recent changes.
5327- nano.1, nano.1.html
5328 - Updated for the --preserve and --historylog options.
5329- TODO
5330 - Added some wishlist stuff.
5331- THANKS:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005332 - Added Doruk Fisek and Peio Ziarsolo. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005333
Benno Schulenbergf8841f02017-01-04 12:50:22 +01005334GNU nano 1.1.12 - 2002.10.24
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005335- General:
5336 - Translation updates (see po/ChangeLog for details).
5337 - Remove malloc.h, as it's unneeded and just causes annoyances on
5338 *BSD systems. Added stdlib.h to global.c.
5339 - Added Meta-Y toggle to disable/enable color syntax highlighting
5340 completely. This may eventually be per-buffer, but that's too
5341 complicated for a feature freeze.
5342 - Disable VSTOP keystroke. Stops people accidentally locking up
5343 nano (suggested by David Benbennick).
5344 - Pluralize messages with ngettext() where needed. (David
5345 Benbennick) Tweaked to compile on systems lacking ngettext()
5346 by DLR (problem found by Ken Tyler).
5347 - Update nano.1 and nano.1.html to show that nano now does an
5348 emergency save on receiving SIGHUP or SIGTERM. (DLR)
5349 - Don't include "nowrap" in the long options if
5350 DISABLE_WRAPPING is defined. (DLR)
5351- files.c:
5352 read_file()
5353 - Minor efficiency fixes, some of which fit in with the change
5354 to ngettext() usage mentioned above. (David Benbennick)
5355 do_browser()
5356 - Make sure the value of path is mallocstrcpy()ed into retval
5357 and not just assigned to it, to avoid memory corruption
5358 problems. (DLR)
5359- nano.c:
5360 version()
5361 - If ENABLE_NLS isn't defined, display "--disable-nls"
5362 (suggested by Ken Tyler). (DLR)
5363 justify_format()
5364 - Make sure the double space maintained after sentence-ending
5365 punctuation is done when that punctuation is immediately
5366 followed by a bracket-type character, so justifying e.g.
5367 sentences in parentheses works properly. (David Benbennick)
5368 handle_hup()
5369 - Renamed handle_hupterm() to show that it now handles SIGTERM
5370 as well as SIGHUP. (DLR)
5371 signal_init()
5372 - Do an emergency save on receiving either SIGHUP or SIGTERM,
5373 not just SIGHUP. (David Benbennick)
5374 main()
5375 - Fix a problem where control key commands were printed
5376 literally instead of interpreted after a failed search of a
5377 one-line file. (David Benbennick)
5378- proto.h:
5379 handle_hup()
5380 - Renamed handle_hupterm(); see above for why. (DLR)
5381- winio.c:
5382 edit_add()
5383 - Fix a potential infinite loop occurring with certain
5384 zero-length regexes. (David Benbennick)
5385
Benno Schulenbergf8841f02017-01-04 12:50:22 +01005386GNU nano 1.1.11 - 2002.10.01
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005387- General:
5388 - Translation updates (see po/ChangeLog for details).
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005389 - Upgraded to gettext 0.11.5. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005390 - Updated nano.1, nano.1.html, and nano.texi to fix an
5391 inaccuracy in the description of -Q/--quotestr. (DLR)
5392 - Set REG_EXTENDED in all regcomp() calls. (DLR)
5393 - Minor cosmetic code cleanups. (DLR)
5394 - Changed do_insertfile to (a) report multibuffer status at the
5395 prompt and allowing it to be toggled, taking into account the
5396 need to keep the translatable strings, and (b) added a
5397 variable inspath to keep track of what the string was before
5398 toggling. I'm sure there's bugs, have at it.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005399 - Make sure all functions have prototypes in proto.h, and swap
5400 some functions around to put similar functions closer
5401 together (for this, rename clear_bottombars() to
5402 blank_bottombars()). (DLR; suggested by David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005403 - More changes of char *'s to const char *'s when possible.
5404 (David Benbennick)
5405 - Fix various minor memory leaks in files.c. (David Benbennick)
5406 - Fix minor problems with the operating directory code: set the
5407 operating directory properly if it's specified only in a
5408 nanorc file, and handle an operating directory of "/"
5409 properly. New function init_operating_dir() to handle
5410 setting it both on the command line and in the nanorc file.
5411 (David Benbennick)
5412 - Major rewrite of color and screen update routines to fix
5413 minor bugs and increase efficiency. New function
5414 set_colorpairs() for the former. (David Benbennick)
5415- configure.ac:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005416 - Added pt_BR to ALL_LINGUAS. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005417 - Changed --enable-color warning to be slightly less severe.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005418 - Put the configure options in more or less alphabetical order,
5419 and remove --enable-undo, since it doesn't do anything. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005420- files.c:
5421 open_file()
5422 - String change: "File "x" is a directory" -> ""x" is a
5423 directory". (Jordi)
5424 do_insertfile()
5425 - Disallow multibuffer toggling at the "Insert File" prompt if
5426 we're in both view and multibuffer mode, so as to keep proper
5427 integration between the two, and make sure the toggle
5428 actually works all the time otherwise. Also, make sure
5429 TOGGLE_LOAD_KEY isn't referenced when NANO_SMALL and
5430 ENABLE_MULTIBUFFER are both defined. (DLR)
5431 open_prevfile_void(), open_nextfile_void()
5432 - Return the return values of open_prevfile() and
5433 open_nextfile(), respectively, instead of (incorrectly)
5434 calling them and returning 0. (DLR)
5435 real_dir_from_tilde()
5436 - Rework to use getpwent() exclusively and end reliance on
5437 $HOME. Adapted from equivalent code in do_rcfile(). (DLR)
5438 input_tab()
5439 - Most likely fixed the check marked with FIXME, so that tab
5440 completion works properly when we're trying to tab-complete a
5441 username and the string already contains data. (DLR)
5442- global.c:
5443 shortcut_init()
5444 - Disable the new multibuffer toggle at the file insertion
5445 prompt when NANO_SMALL and ENABLE_MULTIBUFFER are both
5446 defined. (DLR)
5447 thanks_for_all_the_fish()
5448 - Make sure the reference to help_text is #ifdefed out when
5449 --disable-help is used. (DLR)
5450- move.c:
5451 page_up()
5452 - Fix bug where current is moved up two lines when the up arrow
5453 is pressed on the top line of the edit window; this causes a
5454 segfault if the top line in the edit window is the second
5455 line of the file, as the line current ends up on doesn't
5456 exist. (Jeff DeFouw)
5457 do_down()
5458 - Fix bug where, if the last line in the edit window is the
5459 line before the magicline, and smooth scrolling is turned
5460 off, pressing the down arrow on that last line centers the
5461 cursor without updating the edit window. (Jeff DeFouw)
5462- nano.c:
5463 version()
5464 - Put the listed configure options in more or less alphabetical
5465 order. (DLR)
5466 open_pipe()
5467 - If we're in view mode here (in which case we're also in
5468 multibuffer mode), don't set the modification flag. (DLR)
5469 do_next_word(), do_prev_word()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005470 - If we're on the last/first line of the file, don't center the
5471 screen; Pico doesn't in the former case. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005472 do_backspace()
5473 - Rework to call edit_refresh() regardless of the value of
5474 current_x if ENABLE_COLOR is defined, so that multiple-line
5475 color regexes are properly updated onscreen as they are in
5476 do_delete(). (DLR)
5477 do_delete()
5478 - Rework to only call edit_refresh() unconditionally if
5479 ENABLE_COLOR is defined; if it isn't, and we're not deleting
5480 the end of the line, only call update_line(). (DLR)
5481 do_wrap()
5482 - Make sure wrapping is done properly when the number of
5483 characters on the line is exactly one over the limit. (David
5484 Benbennick)
5485 - Restore the previous wrapping point behavior (pre 1.1.10)
5486 (David Benbennick). Minor fix by DLR to prevent spaces from
5487 being added to the ends of lines ending in spaces or lines
5488 ending in tabs (the latter case found by David Benbennick).
5489 do_alt_speller()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005490 - Readd DLR's fix to preserve marking when using the alternate
5491 spell checker; it was accidentally dropped. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005492 do_justify()
5493 - Fix cosmetic problems caused when justifying on the
5494 magicline, and a minor problem where the cursor would
5495 sometimes be moved to the wrong line after justification.
5496 (David Benbennick)
5497 main()
5498 - When searching through the main shortcut list looking for a
5499 shortcut key, stop searching after finding one; this avoids a
5500 rare segfault. (DLR)
5501- nano.h:
5502 - Change search toggles for case sensitive searching and regexp
5503 searching to M-C and M-R, respectively. (DLR; suggested by
5504 Chris)
5505 - Add support for HP-UX's curses, which doesn't seem to support
5506 KEY_HOME and KEY_END.
5507- nanorc.sample:
5508 - Fix the c-file regex for all caps words to be extended regex
5509 format ({} instead of \{\}) (found by DLR).
5510 - Add a better string matching sequence that includes escaped
5511 quotes (thanks to Carl E. Lindberg, who doesn't even know he
5512 helped ;-). Some unneeded \'s in that sequence removed, and
5513 a new sequence to handle multi-line quotes added, by David
5514 Benbennick.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005515 - Add some examples for HTML and TeX files. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005516- rcfile.c:
5517 parse_colors()
5518 - Stop infinite loop when syntax doesn't begin with " char.
5519- utils.c:
5520 charalloc()
5521 - Switch from using calloc() to using malloc(). (David
5522 Benbennick)
5523- faq.html:
5524 - Typo fix. (DLR)
5525- AUTHORS:
5526 - Add David Benbennick. (Jordi and Chris)
5527- TODO:
5528 - Add entry in the 1.4 section for Pico's paragraph searching
5529 ability (at the search prompt, ^W goes to the paragraph's
5530 beginning, and ^O goes to the paragraph's end). (DLR)
5531
Benno Schulenbergf8841f02017-01-04 12:50:22 +01005532GNU nano 1.1.10 - 2002.07.25
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005533- General:
5534 - Translation updates (see po/ChangeLog for details).
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005535 - Upgraded to gettext 0.11.2. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005536 Removed intl/ entirely, and a few more tweaks by gettextize.
5537 - i18nized a few strings used in DEBUG mode. (DLR)
5538 - Some chars being assigned 0 are now assigned '\0'. (DLR)
5539 - Put header file #includes in a more consistent order. (DLR)
5540 - Remove some unneeded blank lines and spaces, and make some
5541 spacing more consistent. (DLR)
5542 - When possible, use iscntrl() to determine whether a character
5543 is a control character or not. (DLR)
5544 - Miscellaneous typo fixes. (DLR)
5545 - Many fixes to the help browser and shortcut lists: efficiency
5546 updates, consistency fixes, help text fixes and improvements,
5547 and spacing improvements. (David Benbennick)
5548 - Make some functions use const variables when possible, and
5549 also make them static when necessary. (David Benbennick,
5550 necessary redefined by Chris ;-)
5551 - Add Carl Drinkwater's backup file option (-B or --backup on the
5552 command line, M-B in nano's global shortcuts). If the original
5553 file is unchanged from when it was loaded, it is backed up to
5554 filename~; if the original file has been changed or deleted
5555 since it was originally loaded, it isn't backed up. The backup
5556 file retains the permissions, owner/group, and
5557 access/modification times of the original file. This option is
5558 disabled when --enable-tiny is used. It will not back up
5559 temporary files. Minor fixes to it by David Benbennick and
5560 DLR. Changes to open_file(), add_open_file(),
5561 load_open_file(), write_file(), and do_writeout().
5562 - Add \n's to the ends of "filename is %s" debugging strings.
5563 (Carl Drinkwater)
5564 - Add the long option --quotestr as an alternative for -Q, and
5565 --regexp as an alternative for -R; they were listed in nano's
5566 usage information, but weren't actually in nano. Also, display
5567 "-?" as an alternative for "-h" in nano's usage information,
5568 put the command line options in a more consistent (i.e. mostly
5569 alphabetical) order in nano, put the long options in a more
5570 consistent order in rcfile.c and nanorc.sample, don't include
5571 rcfile options if their equivalent command line options are
5572 disabled, and remove obsolete relative option from
5573 nanorc.sample. (DLR)
5574 - Change "File Name to Append/Prepend" to "File Name to
5575 Append/Prepend to". The original prompt could confusingly
5576 imply that we are appending/prepending another file to the
5577 current file, when we are actually appending/prepending the
5578 current file to another file. (DLR)
5579 - Put nano.1, nano.1.html, and nano.texi up to date, and fix a
5580 few inconsistencies in them. (DLR)
5581 - Typo fixes for the ChangeLog. (David Benbennick and DLR)
5582 - Complete rewrite of justification code to fix some bugs and
5583 improve its functionality. (David Benbennick)
5584 - If a variable isn't going to be used in tiny mode, #define it
5585 out when possible. (David Benbennick)
5586 - Major reworking of the cutting/screen-updating code in cut.c,
5587 some functions in utils.c, the cursor placement code in
5588 winio.c, and many, many other areas to increase efficiency.
5589 (David Benbennick)
5590 - Rework handling of prompts when there's a list of partial
5591 filename matches on the screen: remove kludgy case-by-case
5592 handling (which didn't even handle every case), and have
5593 statusq() handle it directly for all cases. (David Benbennick
5594 and DLR)
5595 - Fix some warnings and errors that show up when using gcc's
5596 -pedantic option. (DLR)
5597 - Add a comment to nanorc.sample warning that an out-of-range
5598 negative value for fill can make nano die complaining that
5599 the screen is too small (which may not be immediately
5600 obvious). (DLR)
5601 - There were some opendir() calls in files.c without
5602 corresponding closedir() calls; add them. (DLR)
5603 - Move align() and null_at() from nano.c to utils.c, and move
5604 the openfilestruct handling functions from nano.c to files.c.
5605 (DLR)
5606 - In color.c, start the "#ifdef ENABLE_COLOR" block after
5607 including all the header files, as rcfile.c does; this fixes
5608 a warning about ANSI C'S inability to handle blank files.
5609 (DLR)
5610 - Add new function is_cntrl_char() as a wrapper for iscntrl();
5611 this is needed to treat ASCII 0x80-0x9f as control characters
5612 consistently. (Without this, they will only be treated as
5613 such when gettext is used; when it isn't used, they will be
5614 printed as-is and be interpreted as commands by xterm, which
5615 will corrupt the display.) (DLR)
5616 - Add command line option -I/--ignorercfiles to ignore
5617 $SYSCONFDIR/nanorc and ~/.nanorc. (Carl Drinkwater). Fix to
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005618 parsing getopt args. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005619 - Fix minor bugs with importing certain text files in Mac
5620 format. (DLR)
5621- files.c:
5622 append_slash_if_dir(), input_tab()
5623 - Changed variable names: lastWasTab -> lastwastab, matchBuf ->
5624 matchbuf. (DLR)
5625 check_operating_dir()
5626 - Memory leak fix. (David Benbennick)
5627 check_writable_directory()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005628 - Optimizations. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005629 cwd_tab_completion()
5630 - Changed a variable name: dirName -> dirname. (DLR)
5631 do_browser()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005632 - Optimizations and mouse selection fixes. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005633 do_writeout()
5634 - Fix problem with formatstr's being defined as NULL when
5635 --enable-tiny is used. Since formatstr isn't ever used in tiny
5636 mode, don't bother even creating the variable. (David
5637 Benbennick and DLR)
5638 do_insertfile()
5639 - Memory leak fix (accidentally dropped 1st time).
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005640 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005641 get_full_path()
5642 - Memory leak fix. Also, make it properly interpret ~/ notation
5643 so, among other things, the option "--operatingdir ~" works.
5644 (David Benbennick)
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005645 - More optimizations. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005646 new_file()
5647 - Make sure current_x is zero; this fixes a problem where the
5648 current cursor position wasn't reset when reading in a file in
5649 multibuffer mode. (David Benbennick)
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005650 - Use make_new_node rather than setting up fileage by hand.
5651 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005652 read_file(), read_line()
5653 - Rework to properly handle nulls in the input file, fix
5654 detection of binary files to properly mark a file as binary if
5655 the only binary characters it contains are ASCII 127's, and
5656 after reading the last line of a file that doesn't end in a
5657 newline, increment totsize. Remove previous kludge to set
5658 totsize properly. (DLR)
5659 write_file()
5660 - Rework to properly handle nulls in the input file. When
5661 appending/prepending, don't change the current file's name to
5662 the name of the file it's being appended/prepended to. When
5663 writing a marked selection to a file, save and restore totsize
5664 so it isn't decreased by the size of the selection afterward.
5665 (DLR)
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005666 - Optimizations. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005667- global.c:
5668 free_toggles()
5669 - Only include if we're not using tiny mode. (David Benbennick)
5670 toggle_init()
5671 - Remove global entries for search toggles, as they aren't really
5672 global. (DLR)
Benno Schulenberg4a073a02017-01-04 13:48:25 +01005673 - Don't reinitialize the toggles if they've already been
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005674 initialized; it's unnecessary and even causes a segfault in
5675 do_toggle() if Pico emulation mode is the toggle in question.
5676 Don't free the toggles here, either; it's unnecessary after the
5677 above change. (David Benbennick)
5678 - If wrapping is disabled, don't include the toggle for it.
5679 (DLR)
5680 shortcut_init()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005681 - Rework IFHELP macro. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005682- move.c
5683 page_down(), page_up()
5684 - Put sanity checks for current_x back in, to avoid rare
5685 segfaults (oops). Now, however, they are only called when
5686 placewewant is zero instead of being called unconditionally;
5687 see changes to winio.c:actual_x_from_start() below. (DLR)
5688- nanorc.sample:
5689 - Put in much less crappy example regex rules for c-file.
5690- nano.c:
5691 clear_filename()
5692 - Remove this function, as it has unneeded functionality, is
5693 short enough to be inlined, and is only called in two spots
5694 anyway. (DLR)
5695 die()
5696 - Rework slightly to remove redundant printing of last message
5697 and print all messages after resetting the terminal. (DLR)
5698 do_backspace()
5699 - Make sure placewewant is set properly, and that the mark is
5700 moved backwards. (David Benbennick)
5701 do_char()
5702 - Fix a problem where, if ENABLE_COLOR wasn't used, typing
5703 characters on a marked line before the beginning of the mark
5704 would make the highlight short by one. (David Benbennick)
5705 do_cont()
5706 - Handle the case where the window was resized while we were
5707 stopped. (David Benbennick)
5708 do_delete()
5709 - Make sure placewewant is set properly, to match Pico's
5710 behavior. (DLR)
5711 do_int_spell(), do_alt_spell()
5712 - Rework to save the marked selection before doing spell checking
5713 and restore it afterward. (DLR)
5714 do_next_word(), do_prev_word()
5715 - Fix a problem where highlighting isn't done properly after
5716 calling either of these, and another problem where the cursor
5717 would move back too far in certain cases with do_prev_word().
5718 (David Benbennick)
5719 do_toggle()
5720 - Since the search mode toggles aren't global anymore, we don't
5721 need to explicitly block them here anymore (which will end up
5722 blocking the global backup mode toggle, which is the same as
5723 the backwards search toggle). (DLR)
5724 do_wrap()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005725 - fill fixes and 'two short word wrap' bug. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005726 global_init()
5727 - Call die_too_small() when fill is 0. (DLR)
5728 handle_sigwinch()
5729 - Make sure we adjust fill when the window is resized. (David
5730 Benbennick)
5731 - Call die_too_small() when fill is 0. (DLR)
5732 help_init()
5733 - Since the return value of snprintf() isn't well defined, use
5734 sprintf() instead. (David Benbennick)
5735 main()
5736 - Rework to blank out filename manually before doing anything
5737 with it, instead of calling clear_filename() in two places.
5738 Make startline an int instead of a long, since it's supposed to
5739 hold a line number. (DLR)
5740 - Properly handle multiple -r settings on the command line. (Carl
5741 Drinkwater)
5742 - Fix a bug that prevented file insertion via the Insert key
5743 from working at all when --enable-multibuffer wasn't used
5744 (oops). (DLR)
5745 - Adapt David Benbennick's fix to get fill to accept negative
5746 numbers properly in parse_rcfile() (see below) to the
5747 handlers for the -r and -T options as well, so that -r/-T 0
5748 can be treated separately from -r/-T string. (DLR)
5749 - Fix so that Esc-Esc-Space is properly treated as Ctrl-Space.
5750 (DLR)
5751 usage()
5752 - List the options that are ignored for the purpose of Pico
5753 compatibility, and make some minor consistency fixes. (DLR)
5754- nano.h:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005755 - Fix some space/tab formatting for flags. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005756- proto.h:
5757 - Remove external declaration of the global int fill, since
5758 it's now static. (DLR)
5759- rcfile.c:
5760 parse_rcfile()
5761 - Add David Benbennick's fix that allows fill to accept
5762 negative numbers properly. Specifically, use strtol() there
5763 instead of atoi() so that errors can be detected. Also
5764 adapted for tabsize by DLR.
5765 parse_next_regex(), colortoint()
5766 - Only include if ENABLE_COLOR is defined. (DLR)
5767- search.c:
5768 search_init()
5769 - Since the search mode toggles aren't global anymore, rework the
5770 part of this function referencing them so that they still work.
5771 (DLR)
5772 - Remove unneeded toggles variable. (David Benbennick)
5773 - Fix a problem where the first character of buf was overwritten
5774 if the last search string was one third the number of columns
5775 plus one. (David Benbennick)
5776 findnextstr()
5777 - Update the current line at current_x if we don't find a match.
5778 Also, pass current_x_find to strstrwrapper() so we know whether
5779 we're at the beginning of a string or not (see changes to
5780 strstrwrapper() below), and reset it between lines. (DLR)
5781 do_gotoline():
5782 - Make sure placewewant is zero after we go to a line. (David
5783 Benbennick)
5784 do_gotopos()
5785 - Simplify the sanity check to only put x within the range of the
5786 current line; don't call actual_x() anymore. (DLR)
5787- utils.c:
5788 - Add sunder() and unsunder(). These functions convert nulls
5789 other than the terminating null in strings to newlines and
5790 back; they're used to handle null characters in files properly.
5791 (DLR)
5792 lowercase()
5793 - Remove, since it isn't actually used anywhere. (David
5794 Benbennick)
5795 strstrwrapper()
5796 - Set REG_NOTBOL when we're not at the beginning of a
5797 string, to avoid false positives when searching for regular
5798 expressions prefixed with ^. Make it take a new parameter,
5799 line_pos, to determine where we are in the string. (DLR)
5800 check_wildcard_match()
5801 - Changed variable names: retryPat -> retrypat, retryText ->
5802 retrytext. (DLR)
5803- winio.c:
5804 actual_x_from_start()
5805 - Overhaul to make cursor placement more like that of Pico: add
5806 sanity check for i, and then place i as close to the value of
5807 xplus column as possible. This change is most noticeable when
5808 moving down through binary files. (DLR)
5809 do_credits()
5810 - Fix for the i18ned credits so it will compile with -pedantic
5811 (DLR & Chris).
5812 do_help()
5813 - Add support for the handled keyboard escape sequences in the
5814 help menu, as they are needed with some terminals (e.g. xterm
5815 with TERM=ansi). (DLR)
5816 edit_refresh()
5817 - Turn on leaveok() so the cursor doesn't bounce around the
5818 screen while we're updating it (most noticeable when using
5819 color syntax over a very slow connection).
5820 do_replace_highlight()
5821 - When using regexps, make sure the highlight is the length of
5822 the search result and not the regexp string. (DLR)
5823 nanogetstr()
5824 - After the user presses Enter at the prompt, refresh the edit
5825 window in case there's a list of possible filename matches
5826 (left over from attempted tab completion) on it. (DLR)
5827 statusbar()
5828 - Limit statusbar display to the number of columns less four, and
5829 don't allow it to go over its original row. (David Benbennick)
5830 titlebar()
5831 - Tweak text spacing and printing so that the titlebar text looks
5832 better on smaller terminals. (Carl Drinkwater)
5833 update_line()
5834 - When marking control characters, make sure the mark moves
5835 forward by two characters instead of one. Rework control
5836 character display routine to display newlines within the line
5837 (which should never occur under normal circumstances; they will
5838 only be there if the line had nulls in it and was unsunder()ed
5839 beforehand) as ^@'s. (DLR)
5840 - Fix to properly treat ASCII 128-159 as control characters.
5841 (DLR)
5842- configure.ac:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005843 - Added ms to ALL_LINGUAS. (Jordi)
5844 - Merged acconfig.h in. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005845 - Fixed so that --enable-debug defines DEBUG and undefines
5846 NDEBUG. (Carl Drinkwater)
5847- THANKS:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005848 - Completed a bit. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005849 - Fixed David Benbennick's email address. (David Benbennick)
5850 - Typo fix. (DLR)
5851
Benno Schulenbergf8841f02017-01-04 12:50:22 +01005852GNU nano 1.1.9 - 2002.05.12
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005853- General:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005854 - Typos n misspellings all over the place. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005855 - Allow --tiny and --multibuffer to cooperate (who the heck
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005856 would want this is beyond me but... ;-) Changes to
5857 configure.ac, global.c, .... (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005858 - Change to openfilestruct for multibuffer mode by DLR.
5859 New functions nano.c:make_new_opennode(), free_openfilestruct(),
5860 delete_opennode(), unlink_opennode(), splice_opennode(),
5861 new struct openfilestruct in nano.h.
5862 - Preliminary prepend code. This may be a bad idea, but I've
5863 been wanting it for awhile now and we'll see how bad it messes
5864 everything up. Changes to files.c:do_writeout(), write_file().
5865 Fixes for O_CREAT & append compatibility by David Benbennick.
5866 - Change from read() and write() to file streams by Jay Carlson.
5867 Allows OS to implement read and write ahead rather than making
5868 us do it. Hopefully merged properly.
5869 - More cleanups with DISABLE flags, better free_shortcutage and
5870 free_toggle, and get rid of unnecessary variable decls with
5871 NANO_SMALL in shortcut_init() by David Benbennick.
5872 - Added "syntax" command to .nanorc file, to allow multiple
5873 syntaxes. New function color.c:update_color(), calls in various
5874 files.c places, syntaxtype struct, global variables syntaxes,
5875 syntaxfile_regexp and synfilematches. Global flag -Y ,--syntax
5876 to specify the type on the command line, if there's no good
5877 filename regex to use. Global variable syntaxstr.
5878 - Changed many strcmp()s and strcpy()s to their equivalent
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005879 '\0' counterparts. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005880 - Many changes to allow marked cutting to work with multiple
5881 file buffers: changes to openfilestruct type in nano.h and
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005882 files.c. (David Lawrence Ramsey)
5883 - Changed NANO_SMALL to ENABLE_NLS for gettext disabling.
5884 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005885 - Move next_key and pev_key definitions out of main() and into
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005886 global.c where they belong. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005887- color.c:
5888 update_color()
5889 - Add regfree call here to avoid memory leaks.
5890- configure.ac:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005891 - Define NDEBUG to silence asserts. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005892- files.c:
5893 get_next_filename()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005894 - Optimizations. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005895- global.c:
5896 shortcut_init()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005897 - Add missing free_shortcutage()s. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005898 thanks_for_all_the_fish()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005899 - Only defined when using DEBUG, makes sense. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005900- nano.c:
5901 die_save_file()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005902 - Add missing free. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005903 do_justify()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005904 - Optimizations. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005905 do_wrap()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005906 - Complete rewrite. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005907 help_init()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005908 - A little less readable, a lot shorter. :-) (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005909 - Fix Meta-A not getting capitalized, and convert the ASCII
5910 #s to their character equivalent.
5911 main()
5912 - Changed charalloc(), strcpy()s to mallocstrcpy()s.
5913- nano.h:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005914 - NANO_ALT_COMMAND and NANO_ALT_PERIOD were reversed (lol).
5915 (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005916- nano.spec.in:
5917 - Don't put Chris' name as the Packager in the distribution
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005918 by default. (I'm an idiot.)
5919 - Fixed Source line. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005920- nano.1:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005921 - Changed references to Debian GNU/Linux to Debian GNU. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005922- nano.1.html:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005923 - Updated for -Y option. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005924- rcfile.c:
5925 - Made some rc file errors less fatal.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005926 - Added in my patch for getpwent instead of relying on $HOME.
5927 (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005928- winio.c:
5929 edit_add()
5930 - Changed some syntax highlight computations for the sake of COLS.
5931 - Add in the necessary regfree() calls to stop nano from leaking
5932 memory like a sieve when using color syntax highlighting :-)
5933 bottombars(), onekey()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005934 - Cleanups. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005935- po/gl.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005936 - Galician translation updates. (Jacobo Tarrio)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005937- po/de.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005938 - German translation updates. (Michael Piefel)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005939- po/fr.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005940 - French translation updates. (Jean-Philippe Guérard)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005941- po/ca.po, po/es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005942 - Catalan and Spanish translation updates. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005943- po/sv.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005944 - Swedish translation updates. (Christian Rose)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005945- po/nl.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005946 - Dutch translation updates. (Guus Sliepen)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005947- po/it.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005948 - Italian translation updates. (Marco Colombo)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005949- po/ru.po, po/uk.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005950 - Russian and Ukrainian translation updates. (Sergey A. Ribalchenko)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005951- po/id.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005952 - Indonesian translation updates. (Tedi Heriyanto)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005953- po/sv.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005954 - Swedish translation updates. (Christian Rose)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005955
Benno Schulenbergf8841f02017-01-04 12:50:22 +01005956GNU nano 1.1.8 - 2002.03.30
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005957- General
5958 - Type misalignments and mem leaks in renumber_all, do_justify
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005959 and do_spell. (Rocco & Steven Kneizys)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005960 - New "External Command" code, originally by Dwayne Rightler,
5961 various fixes and changes by Chris, Rocco and David Benbennick.
5962 New function nano.c:open_pipe() and signal handler cancel_fork(),
5963 changes to do_insertfile(), new list extcmd_list, cmd is
5964 ^X after ^R.
5965 - Added separate regex variable (color_regex and colormatches)
5966 so that color syntax and regex search/replace can coexist.
5967 - Added new nano.spec file from Brett <brett@bad-sports.com>,
5968 added because maintaining the spec file is getting to be a large
5969 hassle ;)
5970- files.c:
5971 check_writable_directory()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005972 - Stat full_path, not path. (Steven Kneizys)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005973 open_pipe()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005974 - I18nize the pipe error. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005975 do_insertfile()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005976 - Handle cancel from ExtCmd properly. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005977 read_file()
5978 - Abort if we read a file of 0 lines (num_lines == 0), fixes BUG #70.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005979 - Reverse tests to stop segfault on editing a new file of 0 lines.
5980 (David Benbennick)
5981 - Change input var to one char instead of array. (David Benbennick)
5982 - Move NO_CONVERT check up so chars get read in properly. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005983- nano.c:
5984 do_justify()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005985 - More fixes for indented justify. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005986 do_int_speller()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005987 - Fix zombie processes and spelling buffer issues. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005988 help_init()
5989 - Capitalize Meta altkeys.
5990 - Various fixes and string changes.
5991 main()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005992 - Put NANO_SMALL defines around toggle pointer (noticed by Jordi).
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00005993 usage()
5994 - Rewritten to encompass systems with and without GETOPT_LONG.
5995 New function print1opt does most of the dirty work, stops
5996 duplication of effort and eases translator's jobs. Also
5997 breaks all the current translations ;-)
5998- proto.h:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01005999 - Missing externs. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006000- rcfile.c:
6001 do_rcfile()
6002 - Reset lineno between system and local .nanorc file.
6003 - Fix errno->strerror(errno) mismatch.
6004 parse_rcfile()
6005 - Don't use i for both for loop and atoi(), fixes lots of
6006 potential crashes, 1st reported by Jean-Philippe Guérard.
6007 rcfile_error()
6008 - Don't print out the file name if we haven't opened the file
6009 yet (lineno == 0).
6010- search.c:
6011 search_init()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006012 - Fix a missing free. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006013 do_gotoline()
6014 - Set placewewant if we actually move to a different line.
6015- utils.c:
6016 stristr()
6017 - Defined regardless of NANO_SMALL (noticed by Jordi).
6018 nperror()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006019 - New wrapper for perror. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006020- winio.c:
6021 do_credits()
6022 - Add Thomas Dickey.
6023 do_cursorpos()
6024 - Make col numbering start from 1 (suggested by Andrew Ho).
6025 update_line(), xpt()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006026 - Add check for 127. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006027- po/sv.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006028 - Swedish translation updates. (Christian Rose)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006029- po/de.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006030 - German translation updates. (Michael Piefel)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006031- po/id.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006032 - Indonesian translation updates. (Tedi Heriyanto)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006033- po/it.po:
6034 - Serious typo.
6035- po/ca.po, po/es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006036 - Catalan and Spanish translation updates. (Jordi)
6037 - Typo. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006038- po/fr.po:
6039 - French translation updates (Jean-Philippe Guérard).
6040- po/gl.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006041 - Galician translation updates. (Jacobo Tarrio)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006042- po/uk.po, po/ru.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006043 - Russian and Ukrainian translation updates. (Sergey A. Ribalchenko)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006044- po/pl.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006045 - Polish translation updates. (Wojciech Kotwica)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006046- po/fr.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006047 - French translation updates. (Jean-Philippe Guérard)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006048- po/it.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006049 - Italian translation updates. (Marco Colombo)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006050- po/da.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006051 - Danish translation updates. (Keld Simonsen)
Benno Schulenberg4a073a02017-01-04 13:48:25 +01006052
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006053GNU nano 1.1.7 - 2002.03.05
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006054- General
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006055 - malloc->calloc, etc cleanups. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006056 - New option, noconvert (-N, --noconvert) to completely stop
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006057 the translation of files from DOS or Mac format. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006058 - New functions check_writable_directory() and safe_tempnam()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006059 to get around the tempnam warning. More improvements. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006060 Still needs testing.
6061 - Added DOS and Mac format options to write file routine.
Benno Schulenberg4a073a02017-01-04 13:48:25 +01006062 Changes to shortcut_init() and do_writeout().
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006063 - Removed stupid static definitions of toggles and shortcut
6064 lists. Many changes to shortcut_init(), toggle_init(),
6065 statusq(), nanogetstr(), main(), and many other places.
6066 - Multibuffer mode now allows multiple empty filenames.
6067 Changes to add_open_files(), removed open_file_dup_search(),
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006068 open_file_dup_fix(), etc. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006069 - New code to handle multiple .save files. Changes to
6070 die_save_file(), new function files.c:get_next_filename()
6071 and utils.c:num_of_digits(). (Dwayne Rightler, DLR & Chris)
6072 - Many malloc() cleanups and files.c tweaks by Steven Kneizys,
6073 new functions utils.c:free_shortcutage() (got to love that
6074 name!) & free_toggles(), and big cleanup program
6075 thanks_for_all_the_fish() (originally
6076 thanks_for_the_memories()). Mods to shortcut_init() by Chris.
6077 - Preliminary quoting support for justify. New arg -Q,
6078 --quotestr, changes to do_justify(), global variable
6079 quotestr().
6080- Makefile.am:
6081 - Add SYSCONFDIR to DEFS, so we can have a $SYSCONFDIR/nanorc.
6082 - Change localedir line to 1.0's version.
6083 - Moved m4/ stuff to its own m4/Makefile.am.
6084- m4/aclocal_inc.m4:
6085 - New macro AM_ACLOCAL_INCLUDE, tells configure.ac where to look
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006086 for macros. (Gergely Nagy)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006087- configure.in:
6088 - Renamed to configure.ac.
6089- configure.ac:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006090 - Moved to autoconf 2.52. (Jeff Bailey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006091 - Added call to AM_ACLOCAL_INCLUDE.
6092- files.c:
6093 read_byte()
6094 - Added check for control characters (indicative of a binary
6095 file), set NO_CONVERT if found (fixes by DLR).
6096 do_insertfile()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006097 - Added support for -o in prompt. (Steven Kneizys)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006098- global.c:
6099 - Move openprev and opennext functions to shortcuts, they really
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006100 aren't toggles. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006101- rcfile.c:
6102 parse_next_regex()
6103 - Allow " symbol to be in regex without leading \ by checking
6104 for *ptr+1 is not the end of the regex.
6105 do_rcfile()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006106 - Parse rcfile in $SYSCONFDIR as well. (Dwayne Rightler)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006107- nano.1:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006108 - Added Noconvert option to man page. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006109- nano.c:
6110 justify_format(), do_justify()
6111 - Various fixes for starting blank spaces, spaces after
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006112 punctuation, & segfault with quoting strings. (David Benbennick)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006113 do_justify()
6114 - Don't continue to justify string if it's indented more
6115 (quoting wise) than the beginning of the justification.
6116 help_init()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006117 - Added message re: having multiple blank buffers. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006118 main()
6119 - Add 407 as equiv of 26, this seems to be sent when using
6120 ^Z in linux console with keypad() enabled.
6121- rcfile.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006122 - Get rid of unneeded relativechars from rcopts. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006123- search.c
6124 do_replace(), findnextstr()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006125 - Fixes for various search issues. (Ken Tyler)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006126- winio.c:
6127 do_cursorpos()
6128 - Rewritten to show col place as well as character place, without
6129 needing an entirely separate flag.
6130 bottombars(), onekey()
6131 - Make bottom list dynamic with screen size (Guus Sliepen & Chris).
6132 - More cleanups w/width of shortcut.
6133- utils.c:
6134 strcasestr(),revstrcasestr()
6135 - Renamed to stristr and revstristr since strcasestr has not
6136 been confirmed to be detected properly on various Linux
6137 systems.
6138 strstrwrapper()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006139 - NANO_SMALL test was backwards. (Ken Tyler)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006140- winio.c:
6141 strlenpt()
6142 - Changed main function to strnlenpt() for new justify changes,
6143 original function now just a stub.
6144- nanorc.sample
6145 - Mention unset in the sample nanorc.
6146- po/ca.po, po/es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006147 - Catalan and Spanish translation updates. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006148- po/sv.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006149 - Swedish translation updates. (Christian Rose)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006150- po/fr.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006151 - French translation updates. (Jean-Philippe Guérard)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006152- po/nn.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006153 - Norwegian nynorsk translation updates. (Kjetil Torgrim Homme)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006154- po/de.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006155 - German translation updates. (Michael Piefel)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006156- po/it.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006157 - Italian translation updates. (Marco Colombo)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006158- po/cs.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006159 - Partial Czech translation updates. (Vaclav Haisman)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006160- po/hu.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006161 - Hungarian translation updates, or to be precise, rewrite.
6162 (Gergely Nagy)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006163- po/uk.po, po/ru.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006164 - Russian and Ukrainian translation updates. (Sergey A. Ribalchenko)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006165- po/da.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006166 - Danish translation updates. (Keld Simonsen)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006167- po/nb.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006168 - Norwegian bokmĂĄl translation updates. (Stig E Sandoe)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006169- po/nl.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006170 - Dutch translation updates. (Guus Sliepen)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006171- po/pl.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006172 - Polish translation updates. (Wojciech Kotwica)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006173
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006174nano-1.1.6 - 2002.01.25
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006175- General
6176 - Add Meta-A as alternate keystroke for ^^ for people with
6177 non-US keyboards.
6178 - Add Alt-G (NANO_ALT_GOTO_KEY) as alternate for goto dir in
6179 browser.
6180 - Better partial word checking code. New function
6181 search.c:is_whole_word(), changes to findnextstr(),
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006182 and nano.c:do_int_spell_fix(). (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006183 - Added multiple-line regex support. Format in .nanorc is
6184 start="regex" end="regex". Cleaned up nanorc:parse_colors(),
6185 added parse_next_regex(), changes to edit_add in winio.c(),
6186 changes to colortype, cleaning up some old cruft.
6187 - Upgrade to gettext 0.10.40, probably broke everything again :)
6188 - Upgraded to and then downgraded from automake 1.5, as there
6189 are severe security implications.
6190- color.c:
6191 do_colorinit()
6192 - Moved some comments and braces around so color can work
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006193 w/slang. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006194- global.c:
Benno Schulenberg4a073a02017-01-04 13:48:25 +01006195 shortcut_init()
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006196 - Replace hard coded ALT_G and ALT_H values in the replace
Benno Schulenberg4a073a02017-01-04 13:48:25 +01006197 and goto shortcuts with their macro counterparts NANO_ALT_*_KEY.
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006198- nano.c:
6199 usage()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006200 - Remove extra \n in --keypad description. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006201 main()
6202 - Check that alt value is an alpha char before comparing to
6203 val - 32, fixes Alt-R calling doprev instead of replace.
6204 do_char()
6205 - Run edit_refresh() if ENABLE_COLOR is defined so adding
6206 multi-liners will update (e.g. /* in C).
6207 do_int_spell_fix()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006208 - Temporarily unset REVERSE_SEARCH if it's set. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006209 do_suspend()
6210 - Call tcsetattr() to restore the old terminal settings, so
6211 tcsh can use ^C after suspend for example (fixes BUG #68).
6212 do_wrap()
6213 - Move "right" increment to part where new line is created,
6214 should change (fix?) some wrapping problems with autoindent.
6215 version()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006216 - Show --enable-multibuffer independently of --enable-extra being
6217 compiled in. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006218- nano.h:
6219 - Changed color struct slightly, because of previous issue with
6220 applying color painting in order, the "str" portion was
6221 useless. Renamed "val" in colortype to "start", added "end"
6222 for multi-line color strings.
6223- rcfile.c:
6224 General
6225 - Took silly variables being passed everywhere like lineno and
6226 filename and made them static variables.
6227 - Re-indented.
6228 - Added stdarg.h to includes.
6229 rcfile_error()
6230 - Now automatically prepends the "error in line blah at foo"
6231 message to error messages.
6232 parse_colors()
6233 - Added section for computing "end" section.
6234 parse_next_word()
6235 - Added support for "\ ", in word parsing.
6236- search.c:
6237 do_search()
6238 - Check position of cursor and return value of findnextstr and
6239 tell user if search string only occurs once (Rocco & Chris).
6240 findnextstr()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006241 - Fix off by one in check for wrap around. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006242- winio.c:
6243 edit_refresh()
6244 - Rename lines to nlines to fix AIX breakage (reported by
6245 Dennis Cranston, re-reported by arh14@cornell.edu).
6246 edit_add()
6247 - Refuse to honor regex matches of 0 characters when applying
6248 color highlighting, and say so on the statusbar. Otherwise
6249 we go into an infinite loop, the error message should clue
6250 users into the fact that their regex is doing something bad.
6251- THANKS:
6252 - Oops, correct Eivind's entry. His translation was Norwegian nynorsk,
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006253 not bokmĂĄl as we claimed. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006254- .cvsignore
6255 - Added config.guess config.sub install-sh missing & mkinstalldirs
6256- po/ca.po, po/es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006257 - Catalan and Spanish translation updates. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006258- po/sv.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006259 - Swedish translation update. (Christian Rose)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006260- po/de.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006261 - German translation update. (Michael Piefel)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006262- po/fr.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006263 - French translation update. (Jean-Philippe Guérard)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006264- po/ru.po, po/uk.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006265 - Russian and Ukrainian translation updates. (Sergey A. Ribalchenko)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006266- po/no.po:
6267 - Moved to po/nn.po, which is the correct name for Norwegian nynorsk.
6268- po/nn.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006269 - Norwegian nynorsk translation updates. (Kjetil Torgrim Homme)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006270- po/nb.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006271 - New Norwegian bokmĂĄl translation. (Stig E Sandoe <stig@ii.uib.no>)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006272- po/da.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006273 - Danish translation update. (Keld Simonsen)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006274
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006275nano-1.1.5 - 2002.01.05
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006276- General
6277 - Better integration of View mode (-v) and multibuffer.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006278 Fixes to new_file(), do_insertfile_void(), shortcut_init().
6279 (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006280 - The keypad handling has changed (again). We now use
6281 the keypad() function by default. New flag -K, --keypad
6282 allows the old behavior for those using the keypad arrow keys
6283 and rxvt-based terminals.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006284 - Updated copyright notices to 2002. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006285- nano.c:
6286 die()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006287 - Only save files that were modified. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006288 do_cont()
Benno Schulenberg4a073a02017-01-04 13:48:25 +01006289 - Run signal_init() after doupdate() so ^Y won't suddenly
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006290 start suspending after returning from ^Z suspend in Hurd.
6291 signal_init()
6292 - Unconditionally disable VDSUSP if it exists, stops ^Y
6293 suspending nano on the Hurd.
6294 help_init()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006295 - Typo fixes in help strings. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006296 - New variable helplen needed cause currslen is not always
6297 the length we want (bug found by David Lawrence Ramsey).
6298 - Typo in file switch string (found by David Lawrence Ramsey).
6299 main()
6300 - Handle Alt prev/next file keys (,.), as well as normal ones (<>).
6301 - Handle OS-specific insert keys by jump to do_insertkey (David
6302 Lawrence Ramsey).
6303- files.c:
6304 read_file()
6305 - Make conversion message less confusing (suggested by Jordi).
6306- rcfile.c:
6307 parse_next_word()
6308 - Get rid of ptr == \n check to abort, screws up option
6309 parsing (bug found by David Lawrence Ramsey)
6310- winio.c:
6311 update_line()
6312 - set realdata check to >= 1 && <= 31, lack of > 0 check screwed
6313 high ascii characters.
6314 titlebar()
6315 - gettextized a pair of strings.
6316 bottombars()
6317 - Get rid of that annoying reversed line when color is on! :)
6318 edit_add()
6319 - Little fixes to let color highlights not bleed onto the next line.
6320 statusq()
6321 - Initialize "list".
6322- m4/gettext.m4:
6323 - Back down to 1.1.3 version.
6324- faq.html:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006325 - Various link updates and other fixes. (Aaron S. Hawley)
6326 - Typo fixes. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006327- AUTHORS
6328 - Add DLR.
6329- po/sv.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006330 - Swedish translation update. (Christian Rose)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006331- po/ru.po, po/uk.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006332 - Russian and Ukrainian translations updates. (Sergey A. Ribalchenko)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006333- po/ca.po, po/es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006334 - Catalan and Spanish translations updates. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006335- po/pl.po:
6336 - New Polish, partial translation, by Cezary Sliwa <sliwa@cft.edu.pl>.
6337 - Wojciech Kotwica <wkotwica@post.pl> completed it and is the new
6338 official maintainer.
6339- po/fr.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006340 - French translation update. (Michel Robitaille)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006341- po/gl.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006342 - Galician translation update. (Jacobo TarrĂ­o)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006343- po/it.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006344 - Italian translation update. (Marco Colombo)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006345- po/de.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006346 - German translation update. (Michael Piefel)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006347- po/fr.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006348 - French translation update. (Jean-Philippe Guérard)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006349
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006350nano-1.1.4 - 2001.12.11
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006351- General
6352 - Preliminary syntax highlighting support. New functions
6353 colortoint() and parse_color() in rcfile.c, new code in
6354 edit_add() in winio.c to actually do the highlighting. It's
6355 not even close to pretty yet :P
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006356 - Many int/long alignments. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006357- files.c:
6358 - Fixes for tab completion and screen refresh (David Lawrence
6359 Ramsey).
6360 add_open_file()
6361 - Get rid of unsetting MARK_ISSET because otherwise writing
6362 marked text will automatically unset the marker with
6363 multibuffer enabled.
6364- global.c:
6365 - Define currshortcut and currslen when either DISABLE_MOUSE
6366 or DISABLE_HELP or DISABLE_BROWSER is not defined (Silvan
6367 Minghetti).
6368- nano.c:
6369 main()
6370 - Add Esc-[-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert).
6371 - Added better Hurd support for function keys (Alt-V,U,9,@,F).
6372 signal_init()
6373 - do SIG_IGN for the SIGTSTP sigaction regardless of whether
6374 we have _POSIX_VDISABLE or not (more Hurd fixes)
6375 help_init()
6376 - Typo fixes and additions to the new help texts.
6377 do_curpos()
6378 - Now takes arg for constant updating to always show the cursor
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006379 position. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006380 do_wrap()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006381 - Many fixes. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006382 do_spell()
6383 - Dont prompt for replace if we don't change the word in
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006384 question. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006385- po/de.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006386 - German translation updates. (Karl Eichwalder)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006387- po/ru.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006388 - Russian translation updates. (Sergey A. Ribalchenko)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006389- po/sv.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006390 - Swedish translation updates. (Christian Rose)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006391- po/da.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006392 - Danish translation updates. (Keld Simonsen)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006393- po/es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006394 - Spanish translation updates. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006395- po/fr.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006396 - French translation updates. (Michel Robitaille)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006397- m4/gettext.m4:
6398 - diff against mutt 1.2.5's gettext.m4.
6399
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006400nano-1.1.3 - 2001.10.26
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006401- General
6402 - Finally wrote function-specific help mode. Changes to
6403 nano.c:help_init() and winio.c:do_help(). Changed
6404 currshortcut and currslen #ifdefs to depend on both
6405 DISABLE_HELP and DISABLE_MOUSE being defined to not
6406 include. Changed all the shortcuts and lengths.
6407 - Fixed null_at to ACTUALLY DO SOMETHING with its arg. Again,
6408 this was causing nasty errors if the call to nrealloc moved
6409 where the data was located.
6410 - Changed header comments to say "version 2" instead of "version
6411 1" as the COPYING file is actually version 2 of the GPL (bug
6412 noticed by Jordi Mallach).
6413- cut.c:
6414 do_cut_text()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006415 - Check to see whether marked text is contained within edit
6416 window and if so only do an edit_refresh (variable dontupdate
6417 replaces cuttingpartialline).
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006418 do_uncut_text()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006419 - Similar display fixes. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006420- faq.html
6421 - Removed nano-editor.org FTP site address [deprecated] and added
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006422 the GNU one.
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006423- files.c:
6424 - Added status messages for converted DOS and Mac files.
Benno Schulenberg4a073a02017-01-04 13:48:25 +01006425 People should know that their file wasn't normally formatted.
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006426 load_file()
6427 - Status message when trying to load an already loaded file with multiple
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006428 buffers. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006429 read_file()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006430 - Get rid of useless linetemp variable and name num_lines int.
6431 (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006432- nano.c:
6433 - New function do_prev_word, similar to do_next_word. Hard coded as
6434 Alt-space, as next word is hard coded as control-space. Fixed
6435 goofy logic setting x pos to value of last line when hitting the
6436 beginning of first line, prog should simply abort. Added
6437 the #ifdefs around the code in main().
6438- nano.h:
6439 - Additional #define, SMALL_TOO to determine how long
6440 MAIN_LIST_LEN is. We need this because of the find matching
6441 bracket code.
6442 main()
6443 - Moved #ifndef NANO_SMALL down past the case 0: line so
6444 control-space doesn't insert a \0 (ack!)
6445- rcfile.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006446 - Fix incorrect number of rc options. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006447- po/sv.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006448 - Updated Swedish translation. (Christian Rose)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006449- po/da.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006450 - Updated Danish translation. (Keld Simonsen)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006451- po/es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006452 - Style updates to Spanish translation. (Santiago Vila)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006453- po/ru.po, po/uk.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006454 - Updated Russian and Ukrainian translation. (Sergey A. Ribalchenko)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006455
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006456nano-1.1.2 - 2001.10.03
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006457- General
6458 - Added BUGS #63 & 64. Fixes in search_init() and nanogetstr(),
6459 new flag CLEAR_BACKUPSTRING because there's no easy way to
6460 clear the backupstring without making it global (messy), so we
6461 use a flag instead (just as messy?)
6462 - --enable-tiny now leaves out the Auto Indent code, do you really
6463 need that on a bootdisk? =-)
6464 - New flag -o, --operatingdir, similar to Pico's -o mode. New
6465 function check_operating_dir(), changes to load_file (arg),
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006466 open_file_dup_search (arg), new function do_gotopos for -F.
6467 (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006468 - Code to read/write dos formatted files. Massive amounts of
6469 new code in read_line and write_file. New cmdline flag
6470 (-D --dos) to automatically write the file in DOS format,
6471 regardless of the original format.
6472 - Mac file writing supported too. Flag -M, --mac. Toggle
6473 Meta-O (MacOS? OS-X? =-)
6474 - New smooth scroll code by Ken Tyler. New flag -S, --smooth,
6475 changes to page_up() and page_down(). Many fixes to paging by
6476 David Lawrence Ramsey.
6477 - Bracket (brace, parens, etc) matching code by Ken Tyler.
6478 New functions do_find_bracket(), changes to findnextstr(),
Benno Schulenberg4a073a02017-01-04 13:48:25 +01006479 command is Meta-] (hope you don't mind since I already sold off
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006480 Meta-O to the MacOS file code Ken...) Fixes to bracket_msg
6481 by DLR.
6482 - Call do_gotopos from do_alt_spell() to keep position
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006483 consistent when invoking alt speller. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006484 - Readded DISABLE_CURPOS because in certain instances (like
6485 all the "Search Wrapped" lines) the cursor position will
6486 be different yet we don't want the cursor position displayed.
6487 - Take control-space out of -tiny build, unneeded.
6488- cut.c:
6489 cut_marked_segment()
6490 - Add magic line when cutting a selection including filebot
6491 (discovered by DLR, fixed by DLR & Chris, fixes BUG #66).
6492 do_cut_text()
6493 - Don't recenter the line when cutting one line (DLR) (Bug #65).
6494- faq.html:
6495 - Notes about the Free Translation Project.
6496 - Debian additions.
6497- files.c:
6498 do_writeout()
6499 - Expanded strings to not use %s and ?: to determine
6500 write/append string to be nice to translators.
6501 new_file()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006502 - Initialize totsize. (DLR)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006503- nano.c:
6504 main()
6505 - Added var constcheck as a CRC-like check of whether cursor
6506 pos has changed and if so update the pos with -c.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006507 - Many tweaks and changes from numerics to char equivs.
6508 (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006509 - Fix the KEY_IC being undefined when using slang.
6510 do_mouse()
6511 - Send 27 when the menu item clicked is an alt key seq... The
6512 lines aren't lined up since the menu width changed though,
6513 this breakage depends on whether the new widths will be kept
6514 or not (FEEDBACK!!)
6515 - Change k based on currslen to allow the new widths in
6516 bottombars().
6517 do_wrap()
6518 - Fixes for Pico incompatibility in cases 2b and 2c.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006519 (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006520 global_init()
6521 - New arg save_cutbuffer, allows cutbuffer to not be lost when
6522 using multibuffer.
6523- nano.1:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006524 - Added new features, fixed some typos. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006525- nano.texi:
6526 - Corrected the Mouse Toggle section, noticed by Daniel Bonniot.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006527 - Added many command line options, toggles and other additions.
6528 (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006529- rcfile.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006530 - NUM_RCOPTS fix. (DLR)
6531 - Add tabsize support to rc file. (Nathan Heagy)
6532 - Fix incorrect argument in fill and tabsize error message.
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006533 (Nathan Heagy)
6534- search.c:
6535 - Changed search prompt to "Search" followed by a list of
6536 bracketed, free-standing modifiers that do not imply a grammar,
6537 and the (to replace) string separately. Hopefully this resolves
6538 the i18n problems that this provoked.
6539 findnextstr()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006540 - Various fixes that need testing. (Ken Tyler)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006541- winio.c:
6542 - Add David Lawrence Ramsey to credits.
6543 bottombars()
6544 - Spread out the menu items, feedback definitely needed on this.
6545 nanogetstr()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006546 - More key fixes. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006547 - Don't be clever and wasteful, just repaint every iteration.
6548- po/nl.po:
6549 - New Dutch translation, by Guus Sliepen <guus@nl.linux.org>.
6550- po/ca.po, po/es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006551 - Updated Catalan and Spanish translation. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006552- po/gl.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006553 - Updated Galician translation. (Jacobo TarrĂ­o)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006554- po/da.po:
6555 - New Danish translation, by Keld Simonsen <keld@dkuug.dk>.
6556- po/sv.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006557 - Updated Swedish translation. (Christian Rose)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006558- po/it.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006559 - Updated Italian translation. (Marco Colombo)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006560- po/fi.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006561 - Updated Finnish translation. (Pauli Virtanen)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006562
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006563nano-1.1.1 - 2001.07.28
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006564- General
6565 - Reverted included gettext from 0.10.38 to 0.10.35 in intl/ dir.
6566 - Added m4/ directory to allow rebuilding using only the internal
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006567 version of gettext.m4. (Albert Chin)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006568- nano.c:
6569 main()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006570 - Change the multibuffer getopt option to 'F'. (David Lawrence
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006571 Ramsey)
6572 do_mark()
6573 - Temporarily disable cursorpos when enabled to be able to see
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006574 the mark (un)set message. (Ken Tyler)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006575- nanorc.sample
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006576 - Typo fixes and updates. (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006577- files.c:
6578 new_file()
6579 - Do add_open_files if there aren't any open yet (David Lawrence
6580 Ramsey).
6581 close_open_file()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006582 - Try to open the next file first, then the previous one.
6583 (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006584- global.c:
6585 shortcut_init()
6586 - Rewrote the whereis and replace lists to put CANCEL at the end
6587 of the list, and not include the toggle functions when using
6588 NANO_SMALL.
6589- nano.h:
6590 - Fix type in INSERTFILE_LIST_LEN.
6591 - Rewrote all the macro definitions to be a little less messy,
6592 for the #ifdefs anyway.
6593- rcfile.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006594 - Update for the multibuffer option (oops). (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006595- search.c:
6596 - Added #ifdef NANO_SMALLs around the REVERSE_SEARCH code.
6597 search_init()
6598 - add #ifdef NANO_SMALL around toggles code.
6599- winio.c:
6600 bottombars()
6601 - Fixed an off by one that wasn't letting lines with odd #
6602 shortcuts work in certain cases.
6603
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006604nano-1.1.0 - 2001.07.15
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006605- General
6606 - New global variables currshortcut and currslen to support using
6607 the mouse with the shortcuts. Also supports clicking on files
6608 in browser. Added #ifdef DISABLE_MOUSE around this code also.
6609 - Changed mouse disabling code from depending on --enable-tiny
6610 to its own flag, --disable-mouse. The --tiny option defines
6611 this automatically, but now just mouse support can be disabled
6612 if desired.
6613 - File Browser supports the "Goto Directory"
6614 - Added rcfile.c source file. Only includes much of anything when
6615 --enable-nanorc is used. Tons of new funcs, most notably
6616 do_rcfile() called from nano.c:main(). Added much needed
6617 function ncalloc(), will have to go through source code later
6618 and change the appropriate calls which used nmalloc for lack of
6619 an appropriate calloc function *** FIXME ***
6620 - After "Alternate" spell checker is called, cursor is repositioned on
6621 the same line as before ^T was pressed.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006622 - Moved config.h up in all .c files #include list. (Albert Chin)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006623 - Added config.guess and config.sub to distribution because,
6624 apparently, newer autoconf/automakes can't live without them.
6625 - Various spelling updates by David Lawrence Ramsey.
6626 - Changed all string allocations to charalloc(), new function
6627 designed to take nmalloc argument but call calloc based on
6628 (char *) size.
6629 - New macro DISABLE_WRAPJUSTIFY to easily check for both wrapping
6630 and justify being disabled. This allows us to compile out the
6631 -r flag if neither are set, and will also allow us to comment
6632 out -W when it is written.
6633 - Allow fill to take a negative value to signify a "from right side"
6634 value. This allows the value to vary with the screen size yet
6635 still be correct. New static value wrap_at to minimize code
6636 impact. Updated man page and info file.
6637 - Allow file appending. New shortcut list nano_insertfile_list (since
6638 insert and write routines can't share shortcut lists anymore),
6639 new args to do_writeout and write_file called append, and of source
6640 code changes to those functions.
6641 - Allow backwards searching. Drastic rewrite of the search prompt
6642 string by Chris. All other code by Ken Tyler. New globals
6643 nano_reverse_msg, new functions revstrstr and revstrcasestr,
6644 many changes to search functions. Not too big a code size
6645 increase!
6646 - Moved extension functions (Case Sensitive, Regexp, and Backwards
6647 Search, Append key in write file function) to Meta keys, as
6648 people are complaining loudly about nano not being control-key
6649 compatible with Pico, which is a Bad Thing (TM). Changes to
6650 shortcut_init, toggle_init, new toggles for backwards and regexp
6651 (and you can now toggle all search options including regexp at
6652 the Search: prompt!) Changes to nanogetstr to enable Meta
6653 keys to be grabbed, changes to onekey to print M-style shortcuts.
6654 - New macro TOGGLE which just toggles, no more silly checking
6655 ISSET and then using SET or UNSET when we want a simple toggle
6656 for a flag.
6657 - Added multiple buffer capability (God help us). New configure
6658 option --enable-multibuffer (-F), changes to do_insertfile(),
6659 do_insertfile_void(), toggle_init(), do_gotoline(), edit_update(),
6660 and write_file(), new functions add_open_file(),
6661 open_file_change_name(), load_open_file(), open_file_dup_search(),
6662 open_file_dup_fix(), open_prevfile(), open_nextfile(),
6663 close_open_file(), get_full_path(), die_save_file(), etc.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006664 (David Lawrence Ramsey)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006665 - Using --enable-extra automatically defines --enable-multibuffer
6666 changes to version() and configure.in.
6667 - Moved to gettext 0.10.38 at the last second, sure to break
6668 something, but at least I can run make distcheck!
6669- Makefile.am:
6670 - Include ABOUT-NLS and the new THANKS files to the distributed list.
6671- THANKS:
6672 - Initial, incomplete list of people to thank.
6673 - Added some more people.
6674- configure.in:
6675 - New option, --enable-nanorc, which allows people to have a .nanorc
6676 initialization file and set options normally used on the command
6677 line, and color later on.
6678 - Added --enable-color option to allow color and syntax highlighting
6679 (stub as of now).
6680- cut.c:
6681 add_to_cutbuffer()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006682 - Remove useless statements. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006683 cut_marked_segment()
6684 - Add bizarre copy of bot node, else *BSD goes ballistic (fixes
6685 BUG #60).
6686 - Added 'destructive' argument. Allows the selected text to be
6687 added to the cutbuffer without changing the contents of the
6688 file. This allows writing selection to separate files.
6689 do_cut_text()
6690 - If the line is empty when using -k and wasn't already added,
6691 create a dummy line and add it to the cutbuffer (fixes bug #61)
6692 - Reset marked_cut if we blow away the cutbuffer.
6693 - Moved the case of current == mark_beginbuf into cut_marked
6694 segment, so do_writeout could call it when writing selection to
6695 file.
6696 do_uncut_text()
6697 - Reset cutbuffer even if we're uncutting marked or cut to end text!
6698- faq.html:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006699 - Brought the FAQ up to date, many little changes. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006700 - Added sections 3.7 and 3.8 for the multibuffer and nanorc support.
6701- files.c:
6702 do_browser()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006703 - Minor fixes to the processing of SELECT function. (Rocco)
6704 - Added the "Goto Directory" code. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006705 - Don't shift the size of the file is it's less than 1K. Fixed
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006706 files less than 1K being displayed as 0B. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006707 - More Picoish keystrokes for the browser, ^P, ^N, etc, for up,
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006708 down, etc, and add the consistent ^C to exit. (Jim Knoble)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006709 do_writeout()
6710 - New code to allow writing selected text to a separate file.
6711 When this is done, the current state is preserved.
6712 write_file()
6713 - New arg, nonamechange, means whether or not to update the
6714 current filename after writing the file out.
6715 - Increment lineswritten when the very last line isn't null.
6716 Fixes off by one count when writing selection to file.
6717- global.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006718 - Updated some of the lists for the "Goto Directory" code. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006719- move.c:
6720 page_up()
6721 - Rewritten with a loop to make screen updates work when
6722 mark is set (fixes bug #59).
6723 do_home(), do_end()
6724 - Don't keep cutbuffer.
6725- nano.1:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006726 - Added the missing -r flag. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006727- nano.c:
6728 do_alt_speller()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006729 - Reposition cursor on same line as before ^T was called. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006730 ABCD(), main()
6731 - Add Alt-whatever-[a-d] support as well as Alt-whatever-[A-D].
6732 main()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006733 - Code to silently process "-g" and "-j". (Rocco)
6734 - Added Alt-[-7,8 support for home/end keys. (Jeff Teunissen)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006735 signal_init()
6736 - Reorder sigaction calls, use sigfillset() to stop SIGTSTP and
6737 SIGCONT from being interrupted, allows suspending nano
6738 to work more reliably, esp. with mutt, etc.
6739 do_suspend()
6740 - Don't try to play with the handler inside the handler. Just
6741 raise a SIGSTOP. We also now write the "use "fg"" message to
6742 stdout instead of stderr.
6743 - Added _POSIX_VDISABLE macro to fully ignore suspend keystroke.
6744 Eliminates the possibility that nano can be suspended when
6745 it's not supposed to be. Many many many thanks to Jordi and
6746 Tom Lear for helping out finding and fixing this bug!
6747 do_cont()
6748 - Now just does a refresh call instead of playing with the SIGTSTP
6749 handler.
6750- nano.h:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006751 - Updated the BROWSER_LIST_LEN for the "Goto Directory" code. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006752- proto.h:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006753 - New shortcut list added: gotodir_list. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006754- search.c:
6755 do_gotoline()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006756 - Optimizations, remove "$" goes-to-last-line, less messages. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006757 do_replace()
6758 - If we manage to make it in somehow with VIEW_MODE on, abort
6759 nicely (fixes BUG #59).
6760- utils.c
6761 strcasestr()
6762 - Replaced by mutt's mutt_stristr function, because the thought
6763 of dynamically allocating memory and copying each line in a file
6764 to do a search or replace was causing me to lose sleep.
6765- winio.c:
6766 actual_x()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006767 - Remove inline from function decl. (Albert Chin)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006768- po/POTFILES.in:
6769 - Added utils.c to the list.
6770- po/es.po, po/ca.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006771 - Updated. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006772- po/gl.po:
6773 - Galician translation by Jacobo TarrĂ­o.
6774- po/uk.po, po/ru.po:
6775 - New Ukrainian and Russian translations by Sergey A. Ribalchenko
6776 <fisher@obu.ck.ua>, thanks!
6777- po/id.po:
6778 - Updated Indonesian translation by Tedi Heriyanto.
6779- po/it.po
6780 - Updated Italian translation by Marco Colombo.
6781- po/no.po:
6782 - New Norwegian translation by Eivind Kjørstad <ekj@vestdata.no>.
6783- po/sv.po:
6784 - New Swedish translation by Christian Rose <menthos@menthos.com>.
6785
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006786nano 1.0.1 - 2001.04.06
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006787- General:
6788 - added configure option --disable-wrapping. Does what it says,
6789 no wrapping or checks are done. Separate from --enable-tiny,
6790 some may want a bare-bones Pico clone that does wrap text.
6791 Affects configure, nano.c:do_char() and check_wrap() obviously,
6792 version(), and do_char().
6793- aclocal.m4:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006794 - Minor patch for intl check (really this time). (Albert Chin)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006795- faq.html:
6796 - Fixed typo in section 6.1 (discovered by Bob Farmer).
6797- files.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006798 - fix two typos in comments, one in ChangeLog. (Matthias Andree)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006799 diralphasort()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006800 - Stop abort on symlinks. (Matthias Andree)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006801 - use strcasecmp to sort directory if available, pilot does that
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006802 as well. (Matthias Andree)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006803 filestat(), do_browse()
6804 - Changed lstat calls to stat, which fixes the browser not
6805 following links to directories. We only use lstat() when
6806 printing the details of the file, and if it is a link, then
6807 check via lstat() for link to a directory. If it is
6808 a directory, display (dir), else use the normal "--".
6809 do_browser()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006810 - Fix broken size suffix off-by-one errors. (Matthias Andree)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006811 cwd_tab_completion(), do_browse_from()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006812 - Use PATH_MAX instead of 0 arg to getcwd. (Matthias Andree)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006813 - Changed above to use PATH_MAX only when defined on the
6814 system, as the HURD e.g. does not support it.
6815- intl/Makefile.in:
6816 distclean
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006817 - added intl/libintl.h to the rm -f rule, should fix the unresolved
6818 gettext symbols problem. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006819
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006820nano-1.0.0 - 2001.03.22
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006821- General
6822 - Added void to functions declared as () args, nano.c:do_mark()
6823 and search.c:regexp_cleanup(). (Christian Weisgerber).
6824 - Changed internal variables called "new" to "newnode" to avoid
6825 the "new" C++ reserved word, even though there is likely no way
6826 nano will EVER be compilable with a C++ compiler. (suggested by
6827 Rocco Corsi).
6828- ca.po, es.po:
6829 - Final tweaks for Nano 1.0.
6830- cs.po:
6831 - Czech translation from Vaclav Haisman.
6832- nano.info:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006833 - Added dir entry. (Albert Chin)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006834- winio.c:
6835 statusq()
6836 - Added NANO_BACK_KEY and NANO_FORWARD_KEY cases for left and right.
6837
Benno Schulenbergf8841f02017-01-04 12:50:22 +010068381.0-test prerelease - 2001.03.17
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006839- nano.c:
6840 do_wrap()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006841 - Added case for autoindenting text causing new line. (Adam)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006842 - Added SAMELINE case to above. Added checks to cases 1b and
6843 2b for placement of cursor.
6844- move.c:
6845 page_down()
6846 - Check for totlines < editwinrows in check for superfluous
6847 edit update (fixed BUG #57).
6848- search.c:
6849 print_replaced()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006850 - s/occurence/occurrence typos. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006851 search_init()
6852 - If using Pico mode and regex and same answer is entered, use
6853 last_search string instead of answer (fixes BUG #56).
6854- nano.texi:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006855 - Meta-Z correction and grammar in --enable-tiny desc. (Neil Parks)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006856
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006857nano-0.9.99pre3 - 2001.02.19
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006858- General
6859 GNU compliance issues:
6860 - Reworked shortcut list, put "Get Help" into default list,
6861 removed "Goto Line", aligned "Read File" with "Write Out" and
6862 "Replace" with "Where is" for consistency.
6863 - Added texinfo manual nano.texi. Added texi options to
Benno Schulenberg4a073a02017-01-04 13:48:25 +01006864 Makefile.am.
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006865- configure.in:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006866 - Autoconf compatibility fixes. (Pavel Roskin)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006867 - Added separate check for resizeterm().
6868 - ALL_LINGUAS: added hu and ca.
6869- cut.c:
6870 do_cut_text()
6871 - marked text cut fixes (Rocco) (Fixes bug #54).
6872- nano.c:
6873 do_delete()
6874 - Added check for current->next == fileptr, as we have a magic
6875 line code again, fixes silliness at the end of the last line
6876 before the magic line (reported by J.A. Neitzel).
6877 do_justify()
6878 - If the keystroke after the justify is not the unjustify key,
6879 blank the statusbar (bug reported by Neil Parks).
6880 main()
6881 - Added ENABLE_NLS check around gettext stuff.
6882- winio.c:
6883 do_yesno()
6884 - Added localized yes, no and all strings to function and rewrote
6885 handler for the new format.
6886- de.po:
6887 - Translation updates by Florian König.
6888- fi.po:
6889 - Translation updates by Pauli Virtanen.
6890- hu.po:
6891 - Hungarian translation by Horvath Szabolcs.
6892- id.po:
6893 - Translation updates by Tedi Heriyanto.
6894- es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006895 - Translation updates and grammatical/typo fixes. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006896- ca.po:
6897 - Catalan translation by Jordi Mallach :)
6898 - Miquel Vidal <miquel@sindominio.net> went over it and corrected
6899 many typos and completed bits that remained untranslated by error.
6900
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006901nano-0.9.99pre2 - 2001.01.31
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006902General
6903 - Removed center_x and center_y globals. center_y was
6904 completely unused and center_x was only used a few places,
6905 easily replaced with COLS / 2 (oops, not current_x & y (Rob)).
6906 - Deleted free_node, duplicate of delete_node, and changed all
6907 free_node calls to delete_node.
6908 - Fix for resizing the window in modes other than normal edit mode
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006909 Changes to handle_sigwinch(), main(). Fixes bug #52. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006910- files.c:
6911 write_file()
6912 - Don't free() realname on error, if it needs to be free()d later
6913 it will be (fixes crash on successful write after failed write,
6914 discovered by David Sobon).
6915 username_tab_completion()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006916 - Optimization and removal of useless vars. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006917 - Rewritten using getpwent (suggested by Rocco).
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006918 - Removed redundant conditional. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006919 real_dir_from_tilde()
6920 - Rewritten using getpwent (suggested by Adam, much optimized by
6921 Rocco).
6922- global.c:
6923 - Don't define toggles global or toggle_init_one if using --tiny.
6924- nano.c:
6925 do_justify()
6926 - Added restoration of totsize after unjustify command.
6927 usage()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006928 - Add arg to -T help. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006929 global_init(), handle_sigwinch()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006930 - Messy loops replaced with memset calls. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006931 do_alt_speller()
6932 - Added code to parse multi-word alt_speller strings.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006933 - Fix initialization before fork(). (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006934- proto.h:
6935 - Fix do_credits() proto (oops!)
6936- winio.c:
6937 nanogetstr()
6938 - Sanity check for x overrunning the string buffer len.
6939
Benno Schulenbergf8841f02017-01-04 12:50:22 +01006940nano 0.9.99pre1 - 2001.01.17
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006941General
6942 - Changed #ifdefs to check for both DISABLE_TABCOMP and
6943 NANO_SMALL, makes tiny option leave out tab completion, which
6944 should be left out in that circumstance. Saves at least 5k.
6945 - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
6946 back. (Rocco)
6947 - Various #ifdef & #ifndef cleanups. (Rocco)
6948 - Added message for when keypad goes awry. Added code in main and
6949 function print_numlock_warning() to notify user, and added an
6950 appropriate section in the faq to refer to this brokenness.
6951 - Added macros in nano.h for magic values that might be unclear in
6952 nano.c:global_init(). (Rocco)
6953- configure.in:
6954 - Fix for _use_keypad check breaking slang support (Christian
6955 Weisgerber).
6956 - Changed to automatically define the 5 DISABLE variables when
6957 NANO_SMALL (enable-tiny) is requested at configure.
6958- faq.html:
6959 - Added some info on making the binary smaller with the configure
6960 script.
6961 - Added section on keypad bugginess.
6962- files.c:
6963 real_dir_from_tilde()
6964 - Oops, fix case where buf ="~", silly crash (bug discovered by
6965 Neil Parks).
6966 do_browser()
6967 - Added space and - keys to do page up and down.
6968 cwd_tab_completion(), input_tab()
6969 - Changed bare malloc/calloc calls to nmalloc (found by Rocco).
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006970 - Added memset() to matchBuf to ensure sanity. (Rocco, Adam)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006971- nano.c:
6972 ABCD()
6973 - New function, figures out what kbinput to return given
6974 input common to several switch statements, allows us to
6975 support the default Konsole key settings.
6976 main()
6977 - Alternate speller option no longer valid if DISABLE_SPELLER is
6978 active. (Rocco)
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01006979 - Removed direct calls to usage() (#else) for -k (cut) or
6980 -s (speller) options when these have been disabled. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00006981 - Initialized kbinput to get around stupid compiler warning.
6982 nano_small_msg()
6983 - This function has been removed. All references now call
6984 nano_disabled_msg. (Rocco)
6985 version()
6986 - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE
6987 variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not
6988 reported as enabled when Nano is called with -V (--version)
6989 command line option. (Rocco)
6990 usage()
6991 - Alternate speller option no longer valid if DISABLE_SPELLER is
6992 active. (Rocco)
6993 window_init(), handle_sigwinch()
6994 - Added check for not having enough LINES to do anything useful,
6995 if so die with an error. (Rocco)
6996 die_too_small()
6997 - Function to print the window too small error message, avoids
6998 repeated string defs and globals.
6999 do_justify()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007000 - Small fix for totsize calculation. (Rob)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007001
7002- fi.po:
7003 - Update by Pauli Virtanen.
7004
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007005nano 0.9.25 - 2001.01.07
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007006General -
7007 - New file browser code. New functions in files.c:do_browser(),
7008 helper functions browser_init(), tail(), striponedir(),
7009 filestat(). New shortcut list browser_list. Some new
7010 strings to translate. Added function do_browse_from().
7011 - Keypad code has been changed slightly. Now checks for
7012 _use_keypad flag in window to see whether or not to turn
7013 the keypad() back off when finished (taken from aumix). Moved
7014 to winio.c where it should probably be anyway. New configure
7015 check for _use_keypad in window struct. This will have to do
7016 for now.
7017 - Moved keypad() calls for PDCurses from main() to window_init()
7018 so the keypad continues to work after a Meta-X, for example.
7019 Fixed bug #51.
7020- faq.html:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007021 - Fix typos and small mistakes. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007022- files.c:
7023 username_tab_completion()
7024 - Added the (char *) sizeof when allocating memory for the filename
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007025 array. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007026 cwd_tab_completion()
7027 - removed skipping . and .. when tabulating matches.
7028 - Added the (char *) sizeof when allocating memory for the filename
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007029 array. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007030 do_writeout()
7031 - Now takes an argument so the string typed in can be retained
7032 when calling the browser.
7033 do_browser()
7034 - Don't decrement longest by the length of path. Fixes crashes
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007035 on entering various dirs. (Rocco)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007036 - Don't ungetch() the exit key, unneeded, fixes inserting a file
7037 causes exit code.
7038- move.c:
7039 page_down()
7040 - Don't do an edit_update when there is only one page of text
7041 (fileage == edittop && filebot == editbot). Fixes Bug #50.
7042- nano.c:
7043 main()
7044 - Reorder the getopt options to be more or less alphabetical
7045 (suggested by Sven Guckes).
7046- winio.c:
7047 do_cursorpos()
7048 - Optimizations and cleanups by Rocco Corsi.
7049 do_credits()
7050 - Spell Erik Andersen's name right.
7051 titlebar()
7052 - Now takes an arg, needed for browser function.
7053 do_help()
7054 - Changed way of temporarily bringing up shortcuts at the
7055 bottom in the help screen (actually works).
7056- utils.c:
7057 mallocstrcpy()
7058 - Takes char pointers now instead of void (makes debugging a
7059 helluva lot easier)
7060 - Duh, don't do anything if src == dest!
7061- es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007062 - Updates for file browser. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007063
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007064nano 0.9.24 - 2000.12.18
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007065General
7066 - Added --disable-help option, affects acconfig.h, configure(.in),
7067 winio.c:do_help, nano.c:help_init,help_text_init,version.
7068 - Changed filename to no longer use PATH_MAX, so it can work on the
7069 HURD. Changes in files.c:write_file(), new function
7070 nano.c:clear_filename(), many changed in main(), a few other
7071 places. Please test this!
7072 - Added -b, -e, and -f flags, which we ignore as nano provides
7073 their functionality already.
7074- cut.c:
7075 do_uncut_text()
7076 - Fix renumbering bug when uncutting marked text at filebot.
7077 - Fix screen not being displayed when we are uncutting marked
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007078 text at editbot (bug discovered by Ken Tyler).
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007079 - Fix magic line not getting created when (you guessed it)
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007080 uncutting marked text at filebot. (Ryan Krebs)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007081- files.c:
7082 read_file()
7083 - If we encounter an error and insert is not set, run new_file().
7084 (bug discovered by Ben Roberts).
7085 write_file()
7086 - Change open call flags, basically copy joe's way of doing it so
7087 a more recent version will actually be included in (un)stable.
7088 - Remove useless fstat call.
7089 open_file()
7090 - Added check for S_ISBLK and S_ISCHR, don't open device files!
7091- nano.c:
7092 renumber()
7093 - Don't stupidly assign the value of prev->lineno if prev == NULL!
7094 main()
7095 - Added code to check for Alt-Alt (27-27) keystrokes and set the
7096 next keystroke as a control sequence. New variable
7097 modify_control_key. Removed #ifdef _POSIX_VDISABLE check
7098 around Control-S,Q,Z handlers because we need it now for
7099 the Alt-Alt-x code.
7100 - Added --view option to getopt_long() call. Bug discovered
7101 by Rocco Corsi.
7102 help_init()
7103 - Fix off by one error that was making ^G help in normal mode and
7104 ^_ in Pico mode not be displayed in the help (bug discovered by
7105 Rocco Corsi).
7106 do_toggle()
7107 - Added fix_editbot() call to fix improper redisplay of edit
7108 window when using nohelp toggle (bug discovered by Rocco Corsi).
7109- nano.1, nano.1.html:
7110 - Updated man page for -b, -e, -f and expanded explanation for -p.
7111- winio.c
7112 do_help()
7113 - Force keypad on so F-keys and PageUp/Down will work properly.
7114 Added check for NANO_EXIT_FKEY to loop.
7115- utils.c:
7116 new_magicline()
7117 - Increment totsize!! We decrement it when we've read a file,
7118 everywhere else it should automatically be incremented
7119
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007120nano 0.9.23 - 2000.12.08
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007121General
7122 - Changed --disable-spell to --disable speller. The term is
7123 "speller" for -s, so it should be --disable-speller.
7124- files.c:
7125 write_file()
7126 - Added tmp check to TMP_OPT section (how appropriate).
7127 - Added new consistency checking code from securityfocus
7128 article by Oliver Friedrichs, and use O_EXCL if tmp == 1.
7129 - We now run check on result of lstat(), not stat(), to be
7130 safer. New variable anyexists, we use still use realexists
7131 later in the program.
7132 - OOPS, line up link/unlink/rename check if conditional with
7133 top if conditional. Option -l has been broken for 9 versions,
7134 no one noticed?!
7135 - Added saving perms at end of link so we can apply them to the
7136 new file if --nofollow is used.
7137- winio.c:
7138 edit_add()
7139 - Off by one display error (fix by Rocco Corsi).
7140 do_replace_highlight()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007141 - New code to handle being past COLS. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007142 - Moved from search.c, as it's definitely a winio function now =)
7143 update_line()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007144 - More '$' display fixes. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007145
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007146nano 0.9.22 - 2000.12.02
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007147- General
7148 - Username tab completion code, and cleaned up existing tabcomp
7149 code. New functions real_dir_from_tide(), append_slash_if_dir(),
7150 username_tab_completion is more than a stub now =-).
7151 - Ignore key sequence 543 & 545, right control and alt keys in
7152 windows. Affects main() and winio.c:nanogetstr().
7153 - Took out help from spell_list and changed SPELL_LIST_LEN to 1.
7154 Is using a spell checker THAT difficult? =-)
7155 - New function nano_disabled_msg(), to alert that certain
7156 functions have been disabled, similar to nano_tiny feature.
7157- New configure options:
7158 - Added configure argument --disable-tabcomp. Affects
7159 bottom of files.c and write_file, utils.c:check_wildcard_match()
7160 and winio.c:nanogetstr().
7161 - New options --enable-extra. New code in nano.c:version() to
7162 print out various options from ./configure, function do_credits().
7163 - Added --disable-spell option for those who want to just disable
7164 the spell check feature. Affects the spelling functions
7165 do_spell, do_int_speller and do_alt_speller.
7166 - Added --disable-justify to get rid of the justify function.
7167 Affects do_justify() (not surprisingly).
7168- files.c:
7169 write_file()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007170 - Unsetting modified on temp files bug fixed. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007171 - Okay, if tmp == 1 and the file exists, we abort.
7172 do_insertfile()
7173 - Added call to real_name_from tilde, oops. Added check for
7174 DISABLE_TABCOMP.
7175 read_file()
7176 - Added check for fileptr == NULL.
7177- global.c:
7178 shortcut_init()
7179 - Now takes an argument as to whether to display the unjustify
7180 shortcut or the normal uncut text one. Needed to accommodate
7181 the kludgey unjustify code.
7182- nano.1, nano.1.html:
7183 - Updated date on pages because of -p changes.
7184 - Added "NOTES" section, where I explain what nano.save & friends
7185 are.
7186 - Added a copyright notice for the manpage, under the GPL.
7187 - Other minor changes.
7188- nano.c:
7189 do_justify()
7190 - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
7191 text there, then grabs the next keystroke and, if the unjustify
7192 key, gets rid of the justified text and calls do_uncut_text.
7193 Added macro NANO_UNJUSTIFY_KEY.
7194 do_int_spell*
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007195 - Various fixes. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007196 - Changed abort of program to aborting based on value of "edit a
7197 replacement" question, and not caring about the replace loop
7198 return value. That way the user can get out of the replace loop
7199 and continue spell checking (very important to me anyway).
7200 version()
7201 - Took out huge check for the various --disabled macros,
7202 eventually there will be too many to reasonably check for.
7203 nano_small_msg(), nano_disabled_msg()
7204 - Added checks for disabled functions to see whether or not to
7205 declare them.
7206 do_next_word()
7207 - Update the previous line as well as the current one in case we
7208 have moved beyond COLS or back from COLS, patch submitted
7209 by Ryan Krebs.
7210 die()
7211 - Now creates .save file using variable-length strings. Also
7212 calls write_file with tmp == 1, which happens to do exactly what
7213 we want (abort on save file exists and use mode 0600).
7214 handle_sighup()
7215 - Now calls die instead of writing on its own and exiting normally.
7216- search.c:
7217 do_replace_highlight()
7218 - New function, displays the currently selected word as highlighted
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007219 in the spell check. Called from do_replace_loop. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007220 - Added calls to curs_set(0) and (1) to disable the cursor when
7221 highlighting, looks much better.
7222- es.po:
7223 - Traditional Spanish strings updates.
7224
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007225nano 0.9.21 - 2000.11.23
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007226- AUTHORS
7227 - Added Rocco Corsi.
7228- nano.c:
7229 main()
7230 - Changed check for argc == 1 to argv[optind] == NULL to decide
7231 whether or not to display "New File" in the statusbar.
7232- search.c:
7233 findnextstr()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007234 - Fix current_x increment bug by using another variable. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007235 search_init()
7236 - Silly typo in our "one simple call" of statusq. Stopped
7237 previous search string from being displayed.
7238 do_replace()
7239 - Copy back the previous value of last_replace into answer if
7240 using PICO_MODE and answer == ""
7241- winio.c:
7242 do_up()
7243 - Deleted first update_line() call, screws up display when marker is
7244 set.
7245- nano.1, nano.1.html
7246 - Updated man page for new -p definition.
7247
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007248nano 0.9.20 - 2000.11.18
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007249- General
7250 - Ran source through indent -kr again. Make everything pretty.
7251 - Changed behavior of "search" and "replace" prompts to make all
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007252 previous values editable. This change was made so that you can
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007253 replace with the null string without needing a special key for it.
7254 changed code in search_init(), do_replace(), nanogetstr (see
7255 below).
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007256 - Added some missing gettext calls here and there. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007257 - Revamped nanogetstr() and calls to it to use variable length
7258 strings.
7259 MANY changes in nanogetstr(), many chances in search.c, new
7260 function mallocstrcpy which is sure to be a programmatic
7261 nightmare, changed last_search, last_replace, answer to
7262 pointers. New function not_found_msg in search.c for displaying
7263 truncated strings in statusbar when the string is not found
7264 (-pedantic fixes by Rocco Corsi). We disable this feature when
7265 using PICO_MODE (-p).
7266 - New spelling code by Rocco Corsi. New functions
7267 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
7268 New functions search_init_globals and do_replace_loop, changes
7269 to search_init(), do_replace, findnextstr, moved last_search and
7270 last_replace back to nano.c (*shrug*).
7271 - New tab completion code. Used check_wildcard_match, input_tab,
7272 cwd_tab_completion, username_tab_completion from busybox,
7273 hacked them a lot, changes to nanogetstr(). nanogetstr() and
7274 statusq() now take an arg for whether or not to allow tab
7275 completion.
7276 - Fixed value being input in statusbar during a search or replace
7277 and CASE_SENSITIVE or the other search is called and the
7278 string being typed in is blown away. Reported by Ken Tyler.
7279 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
7280 accordingly.
7281- files.c:
7282 do_writeout()
7283 - Change strcpy to answer to mallocstrcpy.
7284- global.c
7285 - New global replace_list_2, for 2nd half of the replace dialog
7286 ("Replace with:"), has fewer options than first half because
7287 they were inappropriate.
7288 toggle_init()
7289 - Added #ifdef around toggle_regex_msg to get rid of compiler
7290 warning.
7291
7292- nano.c:
7293 keypad_on()
7294 - New function, toggles turning the keypad on and off in edit and
7295 bottomwin(). Added call to this in finish(), fixes bug #45.
7296- search.c
7297 findnextstr()
7298 - New arg for begin_x variable, basically a rewrite that
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007299 makes a little more sense and isn't quite as messy. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007300 - Update the line we're checking if not the whole screen, because
7301 it's quite possible the search team could exist somewhere way
7302 to the right on the same line, for example.
7303 replace_abort()
7304 - Add reset of placewewant, stops cursor from jumping when moving
7305 cursor after a replace.
7306 do_replace()
7307 - Added code for Gotoline key after entering the search term.
7308 Fixes bug #46.
7309 - Removed redundant code involving processing replacement string.
7310 Converted if statements to switch statements.
7311 - Optimizations by Rocco Corsi.
7312 - Removed code for deleted shortcuts from in replace_list_2.
7313 do_search()
7314 - Converted if statements to one switch statement.
7315- winio.c
7316 nanogetstr()
7317 - Added check for 343 in while loop to get rid of getting "locked"
7318 into statusbar" bug in odd $TERMs like iris-ansi.
7319 - Changed check to return -2 on "enter" from answer == ""
7320 to answer == def.
7321 - Fixed fallthrough code because there was no break. Make much
7322 more sense now.
7323 - Added check for ASCII 54[124] when using PDCurses, ignore them
7324 if noticed.
7325 nanoget_repaint()
7326 - New function, removes about 30 lines of duplicate code in
7327 nanogetstr().
7328 - Black magic code to make $ appear in prompt if we're past
7329 COLS.
7330 blank_edit()
7331 - Removed wrefresh() call, much less choppy now. If there's a need
7332 for a wrefresh after a specific call, let me know.
7333- es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007334 - Updated translation for 0.9.20. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007335
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007336nano 0.9.19 - 2000.10.02
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007337- General
7338 - Added PDCurses support under cygwin, which allows building
7339 a nice stand-alone nano.exe for those poor Windows users.
7340 Extra check in configure.in for initscr() in -lcurses (as
7341 PDcurses has no tgetent), some #ifdef PDCURSES statements
7342 in main().
7343 - Changed web site and email to new nano-editor.org domain.
7344- nano.c
7345 - Added (int) casts to remove compile warnings with -Wall.
7346 main()
7347 - Added check for _POSIX_VDISABLE around term variable definition.
7348- search.c
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007349 - Added initializations for last_search and last_replace.
7350 (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007351
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007352nano 0.9.18 - 2000.09.18
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007353- General
7354 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
7355 added check for regex.h in configure.in.
7356- configure.in:
7357 - Added default case for cross-compiling to get rid of annoying
7358 AC_TRY_RUN warning.
7359- cut.c:
7360 do_cut_text()
7361 - Don't immediately abort if we're on filebot and the marker is
7362 set (fixes bug #42).
7363- files.c:
7364 open_file()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007365 - Fix for bug #44. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007366- global.c:
7367 shortcut_init()
7368 - Added in FKEYs that for some reason were left out. *boggle*
7369- nano.c:
7370 main()
7371 - Added check for _POSIX_VDISABLE and use raw mode if not
7372 available, allows nano to work with cygwin.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007373 - Added gettext calls to enable/disable strings. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007374 - Revamped a great deal of the F-key and keypad key handling,
7375 because we not longer use keypad() (see below).
7376 - Removed keypad() call because nano was not working with the
7377 keypad in many terms, which is very bad.
7378 - Made insert key call do_insertfile().
7379 do_toggle()
7380 - Rewrote function to allow NOHELP toggle to work on systems
7381 without a working resizewin(). New function window_init().
7382 mouse_init()
7383 - Add keypad only if mouse support is on, otherwise mouse doesn't
7384 work. I guess you have to choose between having the mouse and
7385 having a working keypad for the time being (thank god for Meta-M).
7386- winio.c:
7387 total_refresh()
7388 - Added titlebar() call.
7389 onekey()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007390 - Off-by-one error fix fix. ;-) (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007391
7392- search.c:
7393 findnextstr()
7394 - Reset starting at current for search instead of begin.
7395- es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007396 - Translated new strings and minor updates. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007397- de.po
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007398 - Revised translations by <floki@bigfoot.com>.
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007399
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007400nano-0.9.17 - 2000.09.04
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007401- General
7402 - New shortcuts to toggle certain options that are normally only
7403 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
7404 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
7405 called from shortcut_init(), and do_toggle in nano.c. Also
7406 moved the signal code into a separate function in nano.c called
7407 signal_init(). Moved "struct sigaction act"into a static in
7408 nano.c.
7409 - Changed from Alt-key symbol (@) which is completely nonstandard
7410 to the *nix "Meta" symbol (M-). Changed help_init to show
7411 the M-key usage and the help text to explain keys which generate
7412 Meta. Moved the toggle Meta keystrokes to the first column
7413 instead of the third as they are the primary keystrokes for the
7414 functions. Thanks Mini editor team :->
7415 - Changed last_search and last_replace vars to statically
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007416 allocated (hence nulled) and moved to search.c. (Matt Kraai)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007417- global.c:
7418 toggle_init()
7419 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
7420 "Help mode". See the change to do_toggle() below.
7421- nano.c:
7422 do_mouse()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007423 - Patch for handling lines w/tabs and mouse better. (Ben Roberts)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007424 do_wrap()
7425 - Made wrapping code less ambitious.
7426 do_toggle()
7427 - Added checks for no help and no wrap mode, and print opposite
7428 enable/disable message.
7429 do_suspend(), do_cont():
7430 - New functions, handle suspend signal in a Pico-like manner and
7431 work with Meta-Z.
7432- winio.c:
7433 total_refresh()
7434 - Added edit_refresh() call to actually update the screen if messy.
7435 edit_refresh_clearok()
7436 - New function, does a total update for edit refresh, needed to fix
7437 lack of reversed text on searching with MARK_ISSET.
7438 onekey()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007439 - Off-by-one error fix. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007440
7441 update_line()
7442 - Added check for binary data >= 1 and <= 26, and use ^+letter
7443 to display it. Should fix editing text files with binary
7444 data in them. Placing of the cursor seems to be a bit screwed
7445 though...
7446- search.c:
7447 search_abort()
7448 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
7449 ugliness bug (reported by Ken Tyler).
7450 findnextstr():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007451 - Added reset for placewewant. (Ben Roberts)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007452 - Fixed check for string that only occurs on the same line failing
7453 (discovered by Ken Tyler).
7454
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007455nano-0.9.16 - 2000.08.09
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007456- cut.c:
7457 do_cut_text()
7458 - Fixed getting locked into cutbuffer on cutting first line of file.
7459 - Added check_statblank().
7460 - Check for fileptr == filebot, if so return, we shouldn't bother
7461 cutting the magic line.
7462 do_uncut_text()
7463 - Added check_statblank().
7464- nano.c:
7465 main()
7466 - Changed tabsize long arg to actually accept an argument *sigh*.
7467- po/Makefile.in.in:
7468 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
7469 Christian Weisgerber)
7470- configure.in:
7471 - New (and severally revised =) slang test code (Albert Chin-A-Young)
7472
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007473nano-0.9.15 - 2000.08.03
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007474- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
7475 Affects many many functions. Removed functions edit_update_top and
7476 edit_update_bot.
7477- Added global variable tabsize, we no longer screw with the curses
7478 library in order to implement -T (suggested by Christian Weisgerber).
7479- configure.in:
7480 - Finally fixed check for slang to report "no" if not called
7481 with --with-slang or --without-slang
7482- nano.c:
7483 splice_node()
7484 - New function, abstracts linking in nodes. Fixes bug #36.
7485 null_at()
7486 - New function, nulls a string at a given index and realigns it.
7487 delete_buffer()
7488 - Removed, same as free_filestruct().
7489 do_backspace()
7490 - Now calls page_up_center instead of page_up (as it should?)
7491 do_enter()
7492 - Fixed typo (?) in check for inptr->next. Caused lots of
7493 grief for editing lines at filebot.
7494 main()
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007495 - Removed now useless usertabsize variable. (Christian Weisgerber)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007496- search.c:
7497 replace_abort()
7498 - redundant, now just calls search abort until it does something
7499 different.
7500- winio.c:
7501 edit_refresh()
7502 - Added check for current line "running" off the screen.
7503 Hopefully this will not cause any recursive lockups.
7504 (Who am I kidding, of course it will!)
7505 - Added check to stop infinite loop calling edit_update.
7506 edit_update()
7507 - Rewritten, hopefully this will remove a lot of the
7508 scrolling the cursor back and forth needlessly.
7509- move.c:
7510 page_down()
7511 - do an edit_update() at last case. Made function more like
7512 Pico's version, only move down to two lines before editbot.
7513 page_up()
7514 - Made function more like Pico's version, only move down to two
7515 lines after edittop.
7516
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007517nano-0.9.14 - 2000.07.27
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007518- nano.h:
7519 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
7520- cut.c:
7521 do_cut_text()
7522 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
7523 - Simplified check for freeing cutbuffer. Added checks for doing
7524 multiple cuts with -k, now sets marked_cut to 2 for later
7525 processing by do_uncut_text().
7526 do_uncut_text()
7527 - Added handler for uncutting with -k cuts.
7528- files.c:
7529 write_file()
7530 - Removed (redundant) check for writing out files with -t.
7531 do_writeout()
7532 - Changed check for filename to filename[0]. Added some code,
7533 overall fixes bug #30 =-)
7534- nano.c:
7535 do_justify() & do_wrap():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007536 - totsize-related fixes. (Rob)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007537- de.po
7538 - Revised translations by floki@bigfoot.com
7539
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007540nano-0.9.13 - 2000.07.23
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007541- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
7542 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
7543 depends on the marker code which is not available with that setting.
7544- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
7545 -t with an unwritable file causes users to get locked into editor).
7546- move.c
7547 page_down()
7548 - Don't edit_refresh() if the bottom of the file is in the edit
7549 buffer. (Adam)
7550- nano.c:
7551 main():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007552 - TABSIZE now set before first call to edit_refresh. (Bill Soudan)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007553 - Different ^C kill code (patch by Christian Weisgerber).
7554 die():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007555 - More intelligent emergency-save filename selection. (Rob)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007556 do_spell():
7557 - Changed exit semantics a bit so that aspell wouldn't get
7558 all screwy (bug discovered by Joshua Jensen.
7559- files.c:
7560 read_file():
7561 - Added init of buf variable, hopefully this will stop the
7562 "bleeding" of text seen with mutt and using i18n.
7563 write_file():
7564 - Added code to check to see if using -l and the file is not
7565 in fact a link. This should fix the behavior where a file
7566 that does not have write permission but could be removed and
7567 rewritten is saved without error. Please test this feature
7568 and give feedback.
7569- search.c:
7570 search_init():
7571 - Added " (to replace)" statement to end of search string if
7572 we are doing a replace. Manually converted all the translations
7573 from '%s' to '%s%s' to ensure they still work with the new code.
7574 Also put in the translation for " (replace)" in the .po's. Hope
7575 I didn't step on your toes doing this Jordi. (Chris)
7576 do_search(), do_replace():
7577 - Removed call to search_abort()/replace_abort() before call to
7578 the opposite function.
7579 - Fixed bug #28.
7580 findnextstr()
7581 - do not center string found if it is currently visible. (Adam)
7582- fr.po:
7583 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
7584- es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007585 - Updated strings to 0.9.13. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007586
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007587nano-0.9.12 - 2000.07.07
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007588- all:
7589 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
7590 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
7591 replace_line, replace_regexp in search.c, changes to
7592 search_init() and do_replace() and strstrwrapper().
7593 - Added _POSIX_VERSION check to regexp code. Better than nothing
7594 for non-POSIX systems...
7595 - Made search functions & keys more like Pico. Added goto line from
7596 search and replace function, changed wording to "No Replace" instead
7597 of "To Search", "To Replace" to simply "Replace", and changed to
7598 Pico's keystroke by default, ^R. Affects search_init(),
7599 do_search() in search.c, globals in nano.h and
7600 shortcut_init() in global.c.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007601 - changed 'sprintf' calls to safer 'snprintf'. (Rob)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007602- cut.c
7603 - further totsize update corrections
7604- files.c:
7605 - changed do_insertfile to call fix_editbot (Rob)
7606 - Magic Line code in read_file (Rob)
7607- nano.c:
7608 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007609 - Removed unnecessary do_oldspell function. (Rocco Corsi). Added
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007610 SMALL_NANO #ifdef around actual spell function.
7611 - Moved page_up() to move.c where is belongs.
7612 - Corrected FIXME in do_enter with explanation. (Rob)
7613 - Fixed FIXME in do_justify, resulted in creation of
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007614 fix_editbot [also fixed in do_enter] (winio.c). (Rob)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007615 help_init():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007616 - Moved newline out of if statement. (Rocco Corsi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007617 do_char():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007618 - Magic Line related code in do_char. (Rob)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007619 do_backspace(), do_delete():
7620 - Added magic line code here too.
7621
7622- de.po:
7623 - Revised translations by floki@bigfoot.com.
7624- fi.po:
7625 - Finnish translation by pauli.virtanen@saunalahti.fi.
7626- utils.c:
7627 - Added new_magicline()
7628- winio.c:
7629 - Added stdlib.h to includes, found by OpenBSD gcc.
7630 - lots of new commenting around display functions
7631 do_yesno(), nanogetstr():
7632 - Removed now unnecessary raw/cbreak combos.
7633 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
7634 we decide if those keybindings should be translated. (Jordi)
7635 clear_bottomwin():
7636 - Removed wrefresh(edit) call.
7637 edit_update_top():
7638 - Fixed a bug that caused nano to not update when
7639 current->next == NULL (e.g. paging down to the very bottom of
7640 ABOUT NLS wouldn't work).
7641 fix_editbot:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007642 - Added (should rebuild editbot from a valid edittop). (Rob)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007643 edit_add:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007644 - removal of redundant call to mvwaddnstr.
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007645
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007646nano-0.9.11 - 2000.06.20
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007647- New flag "-T" or "--tabsize" to specify how to display tab widths.
7648 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
7649 winio.c, and nano.h. Many hardcoded "8"s have been changed to the
7650 TABSIZE int. Added changes to nano.1 and nano.1.html.
7651- id.po:
7652 - Indonesian translation by Tedi Heriyanto.
7653- es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007654 - Updated translation. (Jordi Mallach)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007655- winio.c
7656 - Rewrite of display functions to correct the display problems
7657 we had been seeing. Affects: add_marked_sameline, edit_add,
7658 and many others. (Rob Siemborski)
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007659 - totsize fixes. (Rob Siemborski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007660 total_refresh():
7661 - Cut display_main_list call, as this function is only supposed to
7662 refresh what's already on the screen, not go through the process
7663 of adding the text again.
7664- cut.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007665 - totsize fixes. (Rob Siemborski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007666- nano.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007667 - experimental do_wrap and check_wrap. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007668 - Removed editwineob, as it was redundant for (editwinrows - 1).
7669 Changed all calls to editwinrows - 1 in nano.c and move.c.
7670 - Removed all functions that were split into other files.
7671 Affects LOTS of funcs.
7672 do_enter():
7673 - Added reset of placewewant to end.
7674 do_insertfile():
Benno Schulenberg4a073a02017-01-04 13:48:25 +01007675 - Fix display problem when using Ctrl-R to load a file
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007676 into the buffer. (Rob Siemborski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007677 handle_sigwinch():
7678 - Added titlebar(), edit_refresh() and display_main_list() calls
7679 because a resize wasn't picking up on possible different width
7680 correctly.
7681- utils.c:
7682 - Moved nmalloc() and nrealloc() here.
7683- move.c:
7684 - New file, contains movement functions (like do_home(), do_up(),
7685 do_down(), page_up(), etc...).
7686- files.c:
7687 - Contains functions for files (read_file, insert_file,
7688 do_writeout(), etc).
7689- search.c:
7690 - Contains all our searching and related functions, (do_search(),
7691 findnextstr(), do_replace(), do_gotoline()).
7692
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007693nano-0.9.10 - 2000.06.04
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007694- es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007695 - Translation updates. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007696- AUTHORS, nano.1.html, TODO, README:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007697 - Documentation and email address updates. (Jordi)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007698- nano.c:
7699 main():
7700 - Moved Adam's termio code down to after getopt() and before initscr()
7701 to stop people losing their SIGINT character when using args that
7702 exit nano before it runs (--version, --help, etc).
7703
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007704nano-0.9.9 - 2000.05.31
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007705- Makefile.am:
7706 - Added proper lines for defining LOCALEDIR.
7707- configure.in:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007708 - Spelling fixes. (Jordi Mallach)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007709 - Removed CFLAGS changes for gcc, reduces portability according to
7710 some, and it certainly doesn't seem to decrease exe size.
7711- es.po:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007712 - Spanish translation updates. (Jordi Mallach)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007713- POTFILES.in:
7714 - Added global.c file, was screwing up translations (i.e. they
7715 weren't getting done).
7716- cut.c:
7717 add_to_cutbuffer():
7718 - Added totsize increment.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007719 - Cut fixes and optimizations. (Rob Siemborski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007720 do_uncut_text():
7721 - Added totsize increment in several places.
7722- nano.c:
7723 headers:
7724 - Removed LOCALEDIR define.
7725 do_justify():
7726 - Added edit_refresh() call (bug discovered by Adam).
7727 page_down_center():
7728 - Added call to edit_update(current) for last case. Removed
7729 increment of current_y since it's now just wasteful.
7730 do_enter():
7731 - Added totsize increment.
7732 renumber(), renumber_all():
7733 - Removed totsize-- and totsize init in renumber_all.
7734 do_mouse():
7735 - Added edit_refresh() call to show highlight updates. Removed
7736 unnecessary wrefresh(edit).
7737 main():
7738 - Moved up locale calls so that translated --help messages would
7739 actually get translated.
7740 do_backspace(), do_delete():
7741 - Added decrement of totsize.
7742 init_help_msg():
7743 - New function, initializes help text if NANO_SMALL isn't set (fixes
7744 broken i18n).
7745 read_file():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007746 - malloc call changed to nmalloc. (Rob Siemborski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007747- winio.c:
7748 total_refresh():
7749 - Completely rewrote function, not quite so brain-damaged now.
7750
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007751nano-0.9.8 - 2000.05.18
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007752- nano.c:
7753 main():
7754 - Added awesome code that disables the CINTR and CQUIT
7755 character (Adam Rogoyski). Removed raw()/noraw() calls so that
7756 nano gets input in 'normal' mode, which is the Right Way(tm) to
7757 do it. ^S, ^Z and ^Q now work properly as a result, as well as
7758 ^C. New variable term, global variable oldterm to save previous
7759 term settings, and changes to finish() and die().
7760 - Added extra #ifdefs in getopt code, so that above code and
7761 flag init is run even if GETOPT_LONG is not #defined.
7762 - Added memset line before sigactions. (Adam Rogoyski)
7763 do_suspend():
7764 Removed function, see above for why.
7765- winio.c:
7766 update_line(), center_cursor():
7767 - Removed wrefresh(edit) from bottom of functions. wrefresh
7768 should now only be called once, at the bottom of the main()
7769 loop.
7770- global.c:
7771 shortcut_init():
7772 - Removed suspend sc_init call and suspend message because suspend
7773 is no longer needed in the shortcut list to work properly.
7774
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007775nano-0.9.7 - 2000.05.14
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007776- nano.c:
7777 do_home(), do_end():
7778 - Added calls to update_line for the current line, fixes
7779 lack of update (bug discovered by Alberto GarcĂ­a).
7780 main():
7781 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
7782 following symlinks even when -l isn't set, and "no changes"
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007783 error when nano is called from crontab -e. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007784- cut.c:
7785 do_cut_text():
7786 - Added edit_update_top to cut when mark is set, fixes lack of
7787 display update (bug discovered by Ken Tyler).
7788
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007789nano-0.9.6 - 2000.05.08
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007790- New Italian translation (it.po), by Daniele Medri.
7791- nano.c:
7792 page_up(), page_down():
7793 - Added reset of placewewant to 0, as it should be.
7794 do_up(), do_down():
7795 - Added call to update_line() for line we move from and line we
7796 move to, in order to keep the highlighting correct.
7797 do_wrap():
7798 - Added var chop, new code to wrap lines more like Pico, mostly.
7799 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
7800- winio.c:
7801 do_help():
7802 - Added edit_refresh() before exit.
7803 update_cursor():
7804 - Removed cursor updating which really wasn't needed anyway.
7805 edit_update():
7806 - Removed yucky code that didn't work, this function now just
7807 computes edittop and editbot and calls edit_refresh() to do the
7808 rest, which removes a lot of duplicate code...
7809
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007810nano-0.9.5 - 2000.05.01
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007811- Removed bytes from file struct because it was computationally wasteful.
7812- cut.c:
7813 do_uncut_text():
7814 - Added call to edit_refresh().
7815- nano.c:
7816 do_backspace():
7817 - Added reset of editbot when deleting the last line of the file
7818 (bug discovered by Adam).
7819 do_char():
7820 - Removed call to reset_cursor().
7821 do_delete():
7822 - Added similar check as to do_backspace().
7823 do_enter():
7824 - Added call to edit_refresh().
7825 do_left(), right():
7826 - Added call to update_line(), still redundant but better...
7827 do_up(), do_down():
7828 - Added refresh calls both for current line and line to which
7829 we are moving.
7830 main():
7831 - Removed inefficient call to edit_refresh() after every keystroke.
7832 It is now up each function to leave the screen in a good state.
7833- winio.c:
7834 do_cursorpos()
7835 - Rewritten to not use bytes from filestruct by an incremental sum.
7836 update_line(), reset_cursor():
7837 - Optimized calls to xplustabs() through a single variable.
7838 - update_line() now takes a new arg, an index into the string
7839 for where to update the line from. Needed for new update
7840 code.
7841- configure.in:
7842 - Better checks for slang, allows argument to --with-slang.
7843 (Albert Chin-A-Young)
7844 - Removed -Iintl from CFLAGS in gcc check.
7845- Makefile.am:
7846 - Addition of -Iintl for gettext (Albert Chin-A-Young)
7847
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007848nano-0.9.4 - 2000.04.25
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007849 - Fixed calls to no_help and changed them to the more consistent
7850 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
7851 not 1. Code to temporarily disable NO_HELP when in the
7852 help system. (Adam Rogoyski)
7853- cut.c:
7854 do_marked_cut(), do_cut(), do_uncut():
7855 - Commented out unnecessary bits when NANO_SMALL is being used.
7856- winio.c:
7857 xpt(), strlenpt(), actual_x():
7858 - Added check for value of data[i] & 0x80, if so do not make
7859 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
7860 edit_refresh():
7861 - New check for temp == NULL (bad thing), if so go back to the
7862 previous line. New filestruct var hold points to prev line.
7863 Fixes segfault when paging down to the end of a file.
7864- nano.c:
7865 write_file():
7866 - Added check for if file exists and is not equal to the current
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007867 filename, prompt for overwrite. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007868 do_down():
7869 - Removed check for current->next == NULL, now checks return value
7870 of do_down before setting current_x = 0 (discovered by Adam).
7871 do_justify():
7872 - Fixed segfault when reaching the last line (tried to assign
7873 current->next->data when current->next == NULL) (discovered
7874 by Adam).
7875- utils.c:
7876 - Removed extra macro defs that are now in nano.h.
7877- nano.h:
7878 - Changed macro SET() to use |= instead of ^=. Fixes bug in
7879 cut code when cutting more than one line, and cutbuffer gets
7880 blown away when it shouldn't.
7881
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007882nano-0.9.3 - 2000.04.29
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007883- cut.c:
7884 do_marked_cut():
7885 - Fixed off by one error in cut code for marked text.
7886 do_cut_text():
7887 - Removed check for being on the last line, part of
7888 magic line code.
7889 add_to_cutbuffer():
7890 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
7891 - Added inptr->prev = NULL for case where cutbuffer == NULL.
7892- nano.c:
7893 do_backspace(), do_char():
7894 - Removed "magic line" code. It was basically causing more bugs
7895 than it was helping for the sake of compatibility. This fixes
7896 at least one known segfault condition.
7897 do_enter():
7898 - Added setting editbot to new node if the new node is the last
7899 node in the file.
7900 write_file():
7901 - Changed writing file behavior. Now, if last line of the file
7902 has any data on it, we write a newline on it, else we don't.
7903- winio.c:
7904 add_marked_sameline():
7905 - New code that checks for whether the begin and end of the marker
7906 are on different lines. Missing previously.
7907 edit_add():
7908 - added some more checks for text length. Cleaned up some
7909 mvwaddnstrs that could be written more simply as waddnstrs.
7910 edit_refresh():
7911 - Removed check for temp == filebot, it is now treated like any other
7912 line. Fixes a bug where selected text on the last line shows
7913 normally.
7914 xpt():
7915 - Removed an extra computation for tabs variable that was incorrect.
7916 xplustabs():
7917 - Since xpt now actually works, this func is now just a wrapper for
7918 xpt(current, current_x)
7919- nano.1, nano.1.html:
7920 - Added -l option to man pages.
7921- configure.in:
7922 - New option --enable-tiny, #defines NANO_SMALL in config.h.
7923 Disables call to gettext in functions and other i18n stuff in
7924 nano.c, the detailed help mode, the resize functions, and the
7925 justify code which no one ever uses.
7926 - New option --with-slang. Enables slang libraries instead of
7927 ncurses, requires slcurses.h for wrapper functions. (Based
7928 on patches for 0.8.7 by Glenn McGrath).
7929
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007930nano-0.9.2 - 2000.04.15
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007931- This release just fixes the serious segfault problem if nano is
7932 invoked any way other than using the absolute path. The bug was
7933 in the new code for checking whether nano is invoked as 'pico'.
7934
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007935nano-0.9.1 - 2000.04.14
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007936- Added Pico compatibility for ^T when in search or switch to switch
7937 to the opposite function. Added one to REPLACE_LIST_LEN and
7938 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
7939 new strings that will have to be gettext()ed. New argument 'replacing'
7940 to search_init(). Handlers in do_replace and do_search().
7941- New write code, now follows symbolic links instead of replacing them
7942 with the new file. New option (-l, --nofollow) to enable the old
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007943 (incorrect, but secure) behavior. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007944- nano.c:
Benno Schulenberg4a073a02017-01-04 13:48:25 +01007945 do_wrap():
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007946 - Fixed another bug relating to wrapping, and which would cause
7947 a segfault *sigh*.
7948 do_replace():
7949 - Incremented current_x by the length of the replacement
7950 text inside the main replace loop. Fixes bug #15.
7951 add_marked_sameline():
7952 - New function, handles marked text when start & end of marker is
7953 on one line, also supports most marked text when cursor > COLS.
7954 main():
7955 - Code to check if nano is invoked as 'pico', and if so
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007956 automatically set pico_msgs. (Robert Jones)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007957
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007958nano-0.9.0 - 2000.04.07
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007959- nano.1, nano.1.html:
7960 - Updated man page with my email address and homepage.
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007961- winio.c:
Benno Schulenberg4a073a02017-01-04 13:48:25 +01007962 reset_cursor(), update_line():
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007963 - Changed update algorithm for x value to (COLS - 7) multiple when x
7964 value > (COLS - 2).
7965- edit_refresh():
7966 - Removed inner loop code, now calls update_line() for each line
7967 in question, MUCH nicer.
7968- xplustabs(), xpt():
7969 - Removed redundant increment of tabs when column no % 8 == 0.
7970 - Added check for data[i] < 32, most of such bits are 2 chars wide.
7971- update_line():
7972 - Fixed a stupid call to strlenpt with col when we should have
7973 been using actual_col. Ugh.
7974
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007975nano-0.8.9 - 2000.03.22
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007976- nano.c:
7977 empty_line(), no_spaces(), justify_format(), do_justify():
7978 Actually added these (screwup applying patch).
7979 do_justify(): Added call to set_modified().
7980
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007981nano-0.8.8 - 2000.03.12
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007982- Preliminary internationalization support. Many many functions modified
7983 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
7984 New dirs po/ and intl/, changes to configure.in and Automake.am to
7985 support i18n.
7986- nano.c:
7987 includes: Added sys/param.h and limits.h. (Adam Rogoyski).
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007988 statics: Changed some things that were not necessarily static
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007989 (Adam Rogoyski).
7990 nrealloc(): New function, similar to nmalloc(). Changed calls from
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007991 realloc() to nrealloc. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007992 empty_line(), no_spaces(), justify_format(), do_justify():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007993 New functions for justify function. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007994- winio.c:
7995 blank_edit(): Added wrefresh call to edit so that screen updates (like
7996 on ^L) actually work.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01007997 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00007998
Benno Schulenbergf8841f02017-01-04 12:50:22 +01007999nano-0.8.7 - 2000.03.01
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008000- main.c:
8001 do_wrap(): Better fix for segfaults, and fix for lines being wrapped
8002 to a single character on one line when no good place to
8003 break the line exists, and for wrapping lines longer than
8004 COLS.
8005- nano.1.html:
8006 Html version of man page, now included in dist. For
8007 the benefit of nano packages in Linux distributions.
8008
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008009nano-0.8.6 - 2000.02.24
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008010- global.c:
8011 shortcut_init():
8012 Added shortcuts for goto_line and do_replace when using
8013 pico_msgs. Oops.
8014- nano.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008015 statics: Changed fill back to 0 from 71 by default. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008016 do_wrap(): Added check for backing up past tabs, which we shouldn't do.
8017 Removed check for backing up past spaces first.
8018 main(): Added for loop to check for alt keys instead of hard list.
8019 do_enter(): Fix for bug #14, added call to reset_cursor and messed
8020 up do_char quite a bit.
8021 version(): Added time and date stamp for compile on version message.
8022 Added mail and web page info.
8023- README: Updated mailing list info.
8024
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008025nano-0.8.5 - 2000.02.18
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008026- nano.c:
8027 main(): Finally fixed tilde being input on page up/down keys in
8028 certain terminal types. Fix was input 26->91->5[34] check
8029 for 126, if so make the kbinput PAGE UP/DOWN, else unget
8030 the keystroke and continue. Added #include <ioctl.h> for
8031 ioctl call.
8032 handle_hup():
8033 Handler for hangup signal. Belated include of patch from
8034 Tim Sherwood.
8035- winio.c:
8036 edit_refresh():
8037 Temporary fix for selecting text when temp == current.
8038 edit_refresh() is now unmanageably complex, and must be
8039 revamped.
8040 check_statblank():
8041 Added check for constupdate, makes things less choppy
8042 (Adam Rogoyski)
8043
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008044nano-0.8.4 - 2000.02.11
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008045- Moved global variables that were only (or mostly) used in one file into
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008046 its proper file as a static. Affects cut.c, nano.c, global.c. (Andy Kahn)
Benno Schulenberg4a073a02017-01-04 13:48:25 +01008047- global.c:
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008048 shortcut_init():
8049 Removed redundant NANO_CONTROL_H from backspace shortcut,
8050 added char 127 which should have been there.
8051- nano.c:
8052 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008053 segfaults. (Adam Rogoyski)
8054- Makefile.am: Added all source filenames. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008055- nano.1: Fixed mail addressed and added mailing list address.
8056- README: Updated my email address and the nano web page.
8057
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008058nano-0.8.3 - 2000.02.08
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008059- New Pico mode (-p, --pico), toggles (more) compatibility with the
8060 Pico messages displayed in the shortcut list. Note that there are still
8061 small differences in this mode.
8062- nano.h: New shortcut struct format, for the benefit of i18n and
8063 our help menu. Removed shortcut message macros, they are
8064 now all in shortcut_init in global.c.
8065- nano.c:
8066 do_wrap(): Removed resetting of current_x when we are in fact
8067 wrapping to the next line, fixes a bug in -i mode.
8068 do_enter():
8069 Rewrote the autoindent mode code to be a lot less pretty,
8070 but a lot more magical.
8071 main():
8072 Removed case for ignoring char 126 (~). That's kind of
8073 important, we'll have to fix handling that sequence when
8074 paging up/down on a terminal some other way... Revamped
8075 main switch loop in much snazzier fashion based on the
8076 shortcut list.
8077- winio.c:
8078 New function display_main_list. Affects all functions
8079 that used to call bottombars() with main_list. Added
8080 because we now only call bottombars with the macro
8081 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
8082 changes to the main_list shortcut list (see global.c below).
8083 New function do_help, our preliminary dynamic help system.
8084- Many many funcs:
8085 Changed from int to void to allow one uniform type to call
8086 from the shortcut struct. Also a few functions that do
8087 not simple have void argument have new functions called
8088 funcname_void(void) to be called from the shortcut list.
8089 do_cut_text and do_uncut_text were changed to void
8090 arguments because they were never called with a filestruct
8091 other than *current anyway.
8092- global.c:
8093 Shortcut list main_list was expanded to cover all
8094 shortcuts that could be caught in the main loop.
8095 Consequently there is a new macro MAIN_VISIBLE which tells
8096 how many items in the main list to actually show.
8097
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008098nano-0.8.2 - 2000.02.02
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008099- Added initial mouse (-m, --mouse) support. New global variable
8100 use_mouse. (Adam Rogoyski)
8101
8102- nano.c: Set initial value of fill to COLS - 8 rather than just 72
8103 regardless. (Adam Rogoyski).
Benno Schulenberg4a073a02017-01-04 13:48:25 +01008104 do_delete():
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008105 Deleted call to do_backspace() when on the end of a line,
8106 because it won't update the line properly.
8107 do_backspace():
8108 Removed unnecessary pointer manipulation that was being
8109 handled by unlink_node().
8110 open_file():
8111 Added check for trying to open a directory (currently we
8112 segfault on this). Bug pointed out by Chad Ziccardi.
8113
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008114nano-0.8.1 - 2000.01.28
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008115- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
8116 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
8117 global.c and proto.h.
8118- nano.c:
8119write_file(): Added (incredibly) necessary check for EPERM when
8120 link() fails. This allows us to actually save
Benno Schulenberg4a073a02017-01-04 13:48:25 +01008121 files via rename() on filesystems that don't
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008122 support hard links (AIEEEEEE).
8123do_goto():
8124 Fixed a stupid mistake where we were calling
8125 bottombars() with replace_list instead of goto_list.
8126- nano.h:
8127 New char *help in shortcut structure for help
8128 feature. Added NANO_*_MSG and NANO_*_HELP #defines
8129 for help function and i18n.
8130- global.c:
8131 New functions shortcut_init (called in nano.c) and
8132 sc_init_one() to initialize the shortcuts without
8133 using {}s (for i18n).
8134
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008135nano-0.8.0 - 2000.01.25
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008136- View flag (-v, --view) implemented. Global variable view_mode, affects
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008137 main loop of nano.c and new_file(). (Chris)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008138- nano.c:
8139 split checks for TERMIOS_H and TERMIO_H up so we
8140 can (theoretically) include them both, which is good.
8141handle_sigwinch():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008142 Added check for ncurses.h. (Andy Kahn)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008143do_spell():
8144 We now only try ispell because we don't as of yet
8145 handle the 'spell' program the right way, now that
8146 I finally know what the right way is =-). Added
8147 call to edit_update(fileage) to stop segfaults.
8148global_init():
8149 Added initialization of edit* filestruct pointers
8150 to stop segfaults on spell check.
8151usage():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008152 Check for getopt_long, and if no leave out the GNU
8153 options everyone seems to love so much. (Andy Kahn)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008154main():
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008155 Added checks for getopt_long. (Andy Kahn)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008156 We ignore character 126 because it gets put into
8157 the buffer when we page up/down on a vt terminal.
8158write_file():
8159 Fixes for umask (Adam Rogoyski). Renamed tmpfile
8160 variable to tmp. Documented the tmp option
8161 better in the function comments. Fixed my
8162 stupidly commented out check for tmp on setting
8163 umask which I really like =>
8164- nano.h:
8165 Made desc variable in shortcut struct a pointer
8166 instead of a fixed-length string.
8167- utils.c:
8168 Fixed check for config.h before nano.h.
8169- configure.in:
8170 New checks for getopt_long, getopt.h, removed
8171 CFLAGS and LDFLAGS changes. Gonna have to run
8172 strip manually now =-) (Andy Kahn)
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008173 Added check for HAVE_WRESIZE, new file acconfig.h.
8174 (Chris)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008175
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008176nano-0.7.9 - 2000.01.24
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008177- New autoindent feature. Command flag 'i' or '--autoindent'. New
8178 function do_char() to clean up character output, global
8179 variable autoindent in global.c. (Graham Mainwaring)
8180- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
8181 files on exit without prompting. Affects do_writeout(). Also
8182 do_writeout() now takes a parameter for if exiting.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008183 Global variable temp_opt in global.c. (Graham Mainwaring)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008184- Preliminary spell program support. Added command flag '-s' or
8185 '--speller' for alternative speller command. Added function do_spell()
8186 and exit_spell() to nano.c. New global variable alt_speller.
8187- nano.c:
8188 main(): We now ignore input of decimal 410 because these get entered
8189 when we resize the screen. Sorted options in getopt()
8190 switch statement.
8191 usage(): Sorted options and changed tabs to make room for -s option.
8192 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
8193 doesn't print the number of lines written on the statusbar.
8194 global_init():
8195 Added more initializations to globals to support do_spell().
8196
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008197nano-0.7.8 - 2000.01.23
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008198- Stubbed justify function. Affects main() in nano.c and nano.h defines.
8199- Added Fkey equivalents for Pico compatibility. Affects nano.h defines
8200 and main() in nano.c
8201- Removed redundant reset_cursor() calls from the blank() routines.
8202- nano.c:
8203 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
8204 Removed check for isprint() characters in main while loop
8205 for people with odd character sets *shrug*. Added some X
8206 window F-key combos.
8207 read_line(): New function, consolidates of most of the special
8208 sections of the file reading code. (Rob Siemborski)
8209 do_replace(): Many scattered fixes. (Rob Siemborski)
8210 write_file(): Added check for empty filename.
8211- winio.c:
8212 nanogetstr(): Fixes for deleting at places other than the end of the
8213 buffer, cut support. (Adam Rogoyski)
8214 blank_edit(): New function, blanks edit buffer. Added call to it in
8215 total_refresh().
8216- configure: Checks for glib if snprintf or vsnprintf aren't available
8217 (Andy Kahn). Changed warning message when no termcap lib
8218 is found.
8219
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008220nano-0.7.7 - 2000.01.19
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008221- Option '-v' for version moved to '-V', because -v is Pico's "read only"
8222 mode (affects getopt() in main() and usage() function in nano.c
8223- New flag -c, always show cursor position. Affects main() in nano.c and
8224 statusbar() in winio.c
8225- Option '-x' doesn't show help window at the bottom of the editor.
8226 New variable no_help in nano.h and proto.h, affects main(), usage(),
8227 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
8228 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
8229 hand =P) (Adam Rogoyski)
8230- nano.c:
8231 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
Benno Schulenberg4a073a02017-01-04 13:48:25 +01008232 page_up(), page_down():
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008233 - New functions. We now set the cursor at the top right corner,
8234 not at the center line, and page up and down a full screen
8235 rather than a half screen. Original functions renamed to
8236 page_up_center() and page_down_center().
8237 main():
8238 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
8239 in main while loop because suspend mode was broken. This should
8240 fix it, at least for now.
8241 - Added long option support (By popular harassment ;-) - Added
8242 #include for getopt.h, changed getopt() to getopt_long().
8243 Options added so far: --version (-V), --nowrap (-w), --suspend
8244 (-z), --help (-h), --nohelp (-x).
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008245 - Rewrote signal statements. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008246
Benno Schulenbergf8841f02017-01-04 12:50:22 +01008247nano 0.7.6 - 2000.01.15
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008248- New ChangeLog format
8249- nano.c:
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008250 main(): Bound CONTROL_H to backspace (oops).
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008251 Added more Alt-[-key combinations, for page up & down.
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008252 read_bytes(): New function. (Adam Rogoyski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008253 read_file(): Optimizations - malloc()s *buf a little at a time rather
8254 than one huge buffer, and replaced the strcat at the end
8255 with an index variable. Added call to read_bytes().
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008256 do_next_word(): New function, binding is Ctrl-Space (0). (Chris)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008257
8258- winio.c:
8259 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
8260 (formula is extra space needed = COLS / 6 - 13).
Benno Schulenberg4a073a02017-01-04 13:48:25 +01008261 actual_x() & strlenpt():
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008262 Added bug#9 fix - when tabs % 8 == 0, we should only
8263 increment tabs by 1.
8264 titlebar(): Fixed overrun in titlebar on very long filenames.
8265
82660.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
8267 writing a newline at EOF. do_cursorpos and do_replace are now not
8268 directly bound to signals but picked up as their control sequences
8269 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
82700.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008271 available memory, align bug fixed. (Big Gaute)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00008272
8273--- As of version 0.7.4 TIP is renamed to nano.
8274
82750.7.3 Fixed a double blank_statusbar() when jumping to first and last
8276 lines. Took out unnecessary updates in load_file. Bug fix in
8277 do_left. Missing updates to totlines, fixed bug #7 (last line not
8278 having a newline at the end doesn't get read, bugfix in do_replace
Benno Schulenberg7c1dfea2017-01-04 15:48:04 +01008279 with replace all, more/better comments. (Robert Siemborski)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +000082800.7.2 Our first patch accepted into the source! configure fixes
8281 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
8282 Bug fix in update_line for editing long lines. Fixed arguments
8283 being put into the filename when none is specified. Preliminary
8284 +line command argument function.
82850.7.1 configure tweak for better FreeBSD support. Removed refresh() from
8286 edit_refresh to stop cursor "jumping" during screen updates. This
8287 will probably cause a bug or two. Replace is now Alt-R (@R) and
8288 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
8289 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
8290 Control-G will become the Help key, but for now is stubbed out.
82910.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
8292 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
8293 length file. Added Esc-[-A,B,C,D cursor key sequences.
82940.6.9 Preliminary cursor position function. Split up tip.c more, made
8295 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
8296 that was leaving out a character.
82970.6.8 By request, optchr in main() is now an int. Removed unneeded
8298 globals. Bound functions for next/prev page, and wrote functions
8299 do_home and do_end.
83000.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
8301 created read_file. Implemented Insert File. Fixes in tipgetstr
8302 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
83030.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
8304 aborted searches and more Pico-compatible messages. statusq() now
8305 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
83060.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
8307 regarding buffers with filebot in them. Fixins in do_backspace
8308 and do_enter. Removed unused variables. Removed strip_newline.
83090.6.4 Took out the awful newlines from each string buffers. This will
8310 certainly cause more bugs. Fixes in do_exit(). Better empty file
8311 handling (I hope).
83120.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
8313 do_enter() rewritten.
83140.6.2 Better default file permissions. Complete rewrite of do_wrap().
8315 Better handling of editing with cursor near COLS - 1.
83160.6.1 Starting to implement wrapping toggle. Fix for unhandled control
8317 codes being entered into the buffer. Bug fix in actual_x; more
8318 > COLS - 1 functionality, especially on lines with TABs. Fixed being
8319 locked into cutbuffer when cutting more than one marked screen of
8320 text.
83210.6.0 We have TABs!!! To do this, placewewant is now set to the actual
8322 width on the screen we want to be, not an index of current->data.
8323 New functions xplustabs and actual_x convert the actual place
8324 the cursor should be on the screen to and from the place in the
8325 string.
83260.5.5 Changed do_right to test do_down before setting current_x to 0,
8327 eliminating the "looping" on the last line when holding the right
8328 arrow. Preliminary support for longer than COLS - 1 lines.
8329 Wrote do_delete.
83300.5.4 Fixed a bug in total_update that wasn't repainting the screen
8331 properly. tipgetstr is much more messy but text is now more
8332 editable ;) Fixed crash on entering a new file, hopefully. Awful
8333 stub for tab handling, only in do_right() to save me some sanity.
83340.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
8335 Fixed a few bugs in do_uncut when not uncutting from marked text.
8336 I would not trust your data with the mark code right now, but then
Benno Schulenberg4a073a02017-01-04 13:48:25 +01008337 we're not at version 1.0 yet so don't trust anything ;)
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +000083380.5.2 Added reset_cursor() before end of update_line so cursor doesn't
8339 jump after each keystroke entered. Select text stubbed. Fixed
8340 a bug in total_refresh(). Setting a mark will highlight properly,
8341 but does not actually affect what gets put in the cutbuffer (yet).
83420.5.1 Writing a file out causes modified to be set back to 0. Good.
8343 Set_modified function written. Cut and uncut text now set
8344 modified when called.
83450.5.0 Half way there! Implemented write out, save function seems
8346 stable. Changed statusbar blank routing to not refresh, a separate
8347 program calls it and then refreshes. Made the program not clear
8348 the screen on exit, just the bottom two lines (like Pico).
83490.4.2 Implemented replace all in replace function. Crude exit function
8350 (asks yes or no if modified but does not write to file).
83510.4.1 Implementing search & replace. Fixed crash on deleting at top of
8352 edit buffer. Implemented "timeout" of statusbar messages.
8353 Implemented ^A and ^E (beginning and end of line).
83540.4.0 Split code into global.c and proto.h to allow for better multiple
8355 file handling. Added #defines for the majority of the shortcut
8356 keys in tip.h for easy modification.
83570.3.1 Write edit_refresh which doesn't move the screen around, just
8358 updates what's there already. do_wrap() and do_enter() added.
83590.3.0 Preliminary cutbuffer (cut and uncut) support.
83600.2.7 Check for Modification added. do_search() works.
83610.2.5 Rewrite of file data struct.
83620.2 Read in data to buffer, bound keystrokes to stub functions,
8363 initial cursor movement on screen. Initial autoconf support.
83640.1 Initial program setup w/ncurses