blob: 47b40b1f55a3aeda1f1a142c99d4e151487ccb78 [file] [log] [blame]
David Lawrence Ramsey962202e2004-11-22 17:58:06 +00001CVS code -
David Lawrence Ramsey93c84052004-11-23 04:08:28 +00002- General:
David Lawrence Ramsey1b9d3f92005-02-11 20:09:11 +00003 - More int -> bool conversions. (DLR and David Benbennick)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +00004 - Overhaul the cutting and uncutting routines to use the
5 partitioning code, as it greatly simplifies how they work.
6 New functions move_to_filestruct(), copy_from_filestruct(),
7 cut_line(), cut_marked(), and cut_to_eol(); changes to
8 add_to_cutbuffer(), do_cut_text(), do_uncut_text(), etc.;
9 removal of functions get_cutbottom(), add_to_cutbuffer(), and
10 cut_marked_segment(). (DLR)
11 - Overhaul the justify-related routines to back up and restore
12 unjustified text to use the partitioning code, as it greatly
13 simplifies how they work, and to store such text in its own
14 buffer rather than the cutbuffer. Changes to backup_lines(),
15 do_justify(), etc. (DLR)
David Lawrence Ramsey5b3dd0f2004-11-25 04:39:07 +000016 - Overhaul the multibuffer routines to increase efficiency, most
17 importantly making them use a doubly linked list for the open
18 files so that switching between them is no longer O(N), and
19 only including free_openfilestruct() when --enable-debug is
20 used. Also use some of the same efficiency tweaks when
21 dealing with filestruct nodes. New function
22 open_prevnext_file(); changes to make_new_opennode(),
23 splice_opennode(), unlink_opennode(), delete_opennode(),
24 free_openfilestruct(), add_open_file(), load_open_file(),
25 close_open_file(), shortcut_init(), die(), make_new_node(),
26 copy_node(), splice_node(), delete_node(), and
27 free_filestruct(); removal of open_prevfile() and
28 open_nextfile(). (David Benbennick, minor tweaks and additions
29 by DLR)
David Lawrence Ramsey3ece0b92004-12-01 15:11:27 +000030 - Change references to "open files" to "open file buffers", for
31 consistency. (DLR)
David Lawrence Ramsey9ec76e52004-12-23 19:55:57 +000032 - Add flag to disable UTF-8 sequence interpretation, so that
33 people using single-byte encodings such as KOI8-R can type
34 properly again. (DLR, found by Arthur Ivanov)
David Lawrence Ramsey74835712004-12-04 17:41:52 +000035 - Massively overhaul the input and output routines to support
David Lawrence Ramsey78ea5e42004-12-12 19:04:56 +000036 buffered input and output, the first steps toward
David Lawrence Ramseyf0a53f02005-01-03 19:56:56 +000037 wide/multibyte character input and output, and verbatim input
38 of double-byte Unicode characters instead of single-byte ASCII
David Lawrence Ramsey9b95ca82005-01-14 06:02:10 +000039 characters. New functions is_byte(), get_buffer(),
David Lawrence Ramseyf0a53f02005-01-03 19:56:56 +000040 get_buffer_len(), buffer_to_keys(), unget_input(),
41 get_input(), parse_kbinput(), and parse_verbatim_kbinput();
42 new macro charcpy(); changes to do_char() (renamed to
43 do_output()), get_edit_input() (renamed to do_input() and
44 moved to nano.c), get_edit_mouse() (renamed do_mouse() and
45 moved to nano.c), do_verbatim_input(), do_tab(), main(), and
David Lawrence Ramseyf647c482005-01-03 20:07:26 +000046 get_ascii_kbinput() (renamed to get_byte_kbinput()). The wide
David Lawrence Ramseyf0a53f02005-01-03 19:56:56 +000047 version of ncurses is required in order for wide/multibyte
48 input and output to work properly. (DLR; buffered input/output
49 based on ideas from mutt 1.4.2.1; input of Unicode characters
50 in hexadecimal suggested by Michael Piefel)
David Lawrence Ramseyfc693212004-12-23 17:43:27 +000051 - More steps toward wide character/multibyte character support.
David Lawrence Ramsey40e211b2005-03-19 21:15:30 +000052 New functions control_rep(), parse_char(), move_left(), and
53 move_right(); changes to do_left(), do_right(), do_delete(),
54 breakable(), break_line(), do_output(), get_buffer(),
55 unget_input(), actual_x(), strnlenpt(), display_string(),
56 titlebar(), statusbar(), onekey(), edit_add(),
57 do_replace_highlight(), and do_credits(). (David Benbennick
58 and DLR)
David Lawrence Ramseyc13b7f02005-01-01 07:28:15 +000059 - Overhaul the high-level input routines for the statusbar to
60 make them read the shortcut lists for functions instead of
61 manually running them, to make nanogetstr() less complex, and
62 to increase flexibility. Note that currshortcut is now used
David Lawrence Ramseyb3aeb132005-01-14 21:19:06 +000063 regardless of #ifdefs, and that cutting text at the statusbar
64 now respects the CUT_TO_END flag. Changes to shortcut_init()
65 and nanogetstr(); new functions do_statusbar_input(),
David Lawrence Ramseyc13b7f02005-01-01 07:28:15 +000066 do_statusbar_mouse(), do_statusbar_home(), do_statusbar_end(),
67 do_statusbar_right(), do_statusbar_left(),
68 do_statusbar_backspace(), do_statusbar_delete(),
69 do_statusbar_cut_text(), and do_statusbar_output(). (DLR)
70 - Even more steps toward wide character/multibyte character
David Lawrence Ramsey08cd7ef2005-01-02 20:30:15 +000071 support. Movement and cursor display at the statusbar prompt
David Lawrence Ramsey68e30162005-01-03 22:23:00 +000072 should now (mostly) work properly with a string containing
73 multibyte characters, and text display of such strings should
74 now (mostly) work properly as well. Changes to search_init(),
David Lawrence Ramsey08cd7ef2005-01-02 20:30:15 +000075 nanoget_repaint(), do_statusbar_right(), do_statusbar_left(),
David Lawrence Ramseyc13b7f02005-01-01 07:28:15 +000076 do_statusbar_backspace(), and do_statusbar_delete(). (David
77 Benbennick and DLR)
David Lawrence Ramsey295d1722005-01-01 07:43:32 +000078 - Implement cutting from the current position to the end of the
79 file, using Ctrl-X from the search prompt and Meta-T from the
80 edit window. New function do_cut_till_end(). Note that this
81 is disabled when NANO_SMALL is defined. (DLR, based on ideas
82 from a patch for Pico by Eduardo Chappa, suggested by Ryan
83 Dlugosz and Paul Adams)
David Lawrence Ramsey11c83d32005-01-02 21:26:53 +000084 - Implement verbatim input for the statusbar prompt. Changes to
David Lawrence Ramseyd9ad76b2005-01-02 22:35:31 +000085 do_statusbar_input() and do_statusbar_output(); new functions
86 keys_to_buffer(), unparse_kbinput(), and
David Lawrence Ramsey11c83d32005-01-02 21:26:53 +000087 do_statusbar_verbatim_input(). (DLR)
David Lawrence Ramseyb54155c2005-01-12 03:25:57 +000088 - Yet more steps toward full wide character/multibyte character
89 support. Overhaul the functions that already have support for
90 them to work with multibyte strings as much as possible, add
91 support to a few more functions as well, and move multibyte
92 character-specific functions to their own source file. New
David Lawrence Ramsey1fe2eeb2005-01-14 21:33:47 +000093 file chars.c; new functions is_alnum_char(),
David Lawrence Ramseyefec6412005-03-17 03:52:08 +000094 is_alnum_mbchar(), is_alnum_wchar(), is_blank_mbchar(),
95 is_blank_wchar(), is_cntrl_mbchar(), is_cntrl_wchar(),
96 control_mbrep(), control_wrep(), mbwidth(), mb_cur_max(),
97 make_mbchar(), mbstrlen(), mbstrnlen(), mbstrcasecmp(),
98 mbstrncasecmp(), mbstrcasestr(), and mbrevstrcasestr();
David Lawrence Ramsey40e211b2005-03-19 21:15:30 +000099 changes to help_init(), do_wrap(), break_line(), is_byte()
100 (moved to chars.c), is_blank_char() (moved to chars.c),
101 is_cntrl_char() (moved to chars.c), nstricmp() (renamed
102 nstrcasecmp() and moved to chars.c), nstrnicmp() (renamed
103 nstrncasecmp() and moved to chars.c), nstristr() (renamed
104 nstrcasestr() and moved to chars.c), revstrstr() (moved to
105 chars.c), revstristr() (renamed revstrcasestr() and moved to
106 chars.c), nstrnlen() (moved to chars.c), parse_char() (renamed
107 parse_mbchar() and moved to chars.c), move_left() (renamed
108 move_mbleft() and moved to chars.c), move_right() (renamed
109 move_mbright() and moved to chars.c), do_home(),
110 do_verbatim_input(), do_delete(), do_tab(), do_enter(),
111 indent_length(), do_next_word(), do_prev_word(), do_wrap(),
112 do_input(), do_output(), is_whole_word(), strstrwrapper(),
113 get_buffer(), unget_input(), unget_kbinput(), get_input(),
114 parse_kbinput(), unparse_kbinput(), parse_verbatim_kbinput(),
David Lawrence Ramsey5f9acfe2005-03-04 17:09:41 +0000115 do_statusbar_input(), do_statusbar_home(),
David Lawrence Ramsey9bd56202005-03-18 21:29:33 +0000116 do_statusbar_verbatim_kbinput(), do_statusbar_output(),
117 do_help(), help_line_len(), and display_string(); removal of
118 buffer_to_keys() and keys_to_buffer(). (DLR)
David Lawrence Ramsey637b8bb2005-01-17 05:06:55 +0000119 - Add -O/--morespace command line option, plus a corresponding
120 Meta-O toggle and a "morespace" rcfile option. When these are
121 used, the normally-unused blank line below the titlebar will
122 be treated as part of the edit window. New functions
123 no_more_space() and blank_topbar(); changes to global_init(),
David Lawrence Ramsey7c60eab2005-01-27 06:35:56 +0000124 window_init(), handle_sigwinch(), do_toggle(), do_mouse(),
David Lawrence Ramsey798e67e2005-01-28 19:11:51 +0000125 get_mouseinput(), etc. (DLR; suggested by Mike Frysinger,
126 Rocco, and Robert Schultz)
David Lawrence Ramseyb80077d2005-01-18 21:25:38 +0000127 - Add support for moving to the next or previous word at the
128 statusbar prompt. New functions do_statusbar_next_word() and
129 do_statusbar_prev_word(); changes to do_statusbar_input().
130 (DLR)
David Lawrence Ramsey50406662005-01-19 19:52:42 +0000131 - Make resizing more flexible. We now can work with as few as
132 one row, and with no limit on the number of columns (except of
133 course the curses-imposed limit that it be greater than zero).
134 New function resize_variables(); changes to die_too_small()
135 (renamed check_die_too_small()), global_init(), window_init(),
David Lawrence Ramsey122ae842005-01-19 20:55:42 +0000136 and handle_sigwinch(). (David Benbennick)
David Lawrence Ramsey50406662005-01-19 19:52:42 +0000137 - Use void instead of RETSIGTYPE, as signal handlers are
138 supposed to return void anyway. Also, the value of RETSIGTYPE
139 is sometimes misdetected as int, leading to compilation
David Lawrence Ramsey42abfe02005-01-22 18:24:16 +0000140 warnings or errors. Changes to cancel_fork(),
David Lawrence Ramseyb6e79fd2005-02-25 19:17:57 +0000141 handle_hupterm(), do_suspend(), and do_cont(). (David
David Lawrence Ramsey42abfe02005-01-22 18:24:16 +0000142 Benbennick)
David Lawrence Ramsey23c44502005-01-27 20:49:07 +0000143 - Change flags to an unsigned long, and totsize to a size_t.
144 (DLR)
145 - Store the number of multibyte characters instead of the number
146 of single-byte characters in totsize, and use get_totals() to
147 get the value of totsize in a few more places. Changes to
148 read_line(), read_file(), do_delete(), do_input(),
149 get_totals(), and do_cursorpos(). (DLR)
David Lawrence Ramsey7d367712005-02-14 05:00:15 +0000150 - Overhaul the tab completion code, the file browser code, and
151 related functions to increase efficiency and support multibyte
David Lawrence Ramseyad96aff2005-02-22 23:22:37 +0000152 characters. New function is_dir(); changes to
David Lawrence Ramsey7d367712005-02-14 05:00:15 +0000153 get_full_path(), check_writable_directory(), safe_tempnam(),
154 diralphasort(), username_tab_completion(),
155 cwd_tab_completion(), input_tab(), tail(), striponedir(),
156 browser_init(), do_browser(), and do_browse_from(); removal of
157 append_slash_if_dir(), readable_dir(), and
158 check_wildcard_match(). (David Benbennick) DLR: Move the
David Lawrence Ramsey65e6ecb2005-02-08 20:37:53 +0000159 routine to get the current user's home directory into the new
160 function get_homedir(), and use it where necessary. Also add
161 a few miscellaneous tweaks.
David Lawrence Ramsey202d3c22005-03-10 20:55:11 +0000162 - Overhaul the rcfile parsing code to make it simpler and more
163 accurate, remove now-redundant checks from the color code,
164 change the COLOR_SYNTAX toggle to the NO_COLOR_SYMTAX toggle,
165 and improve various debugging messsages. Changes to
166 set_colorpairs(), do_colorinit(), parse_next_word(),
167 parse_argument(), colortoint(), parse_next_regex(),
168 parse_syntax(), parse_colors(), parse_rcfile(), do_rcfile(),
169 etc. (David Benbennick) DLR: Rename colortoint() to
170 color_to_int(), and add a few miscellaneous tweaks.
David Lawrence Ramseyff4a4872005-03-13 21:12:25 +0000171 - Overhaul the paragraph-searching code to make it use the
172 paragraph-searching utility functions when possible instead of
173 duplicating code. Also overhaul the justify code to make it
174 leave the right number of spaces at the ends of the lines of a
David Lawrence Ramsey38156d42005-03-15 05:44:03 +0000175 paragraph, to make it support multibyte characters, and to
176 make it simpler. Also, don't remove a space after a duplicate
177 character in punct anymore, as it doesn't really make us more
178 compatible with Pico. New functions mbstrchr(),
179 do_para_begin_void(), and do_para_end_void(); changes to
180 justify_format(), do_para_begin(), inpar(), do_para_end(),
David Lawrence Ramsey9389ca22005-03-14 06:14:02 +0000181 break_line(), do_para_search() (renamed find_paragraph()), and
182 do_justify(); removal of breakable(). (DLR)
David Lawrence Ramsey6e60db62005-03-10 22:52:21 +0000183 - Still more steps toward full wide/multibyte character support.
David Lawrence Ramseyf0195a82005-03-14 18:47:21 +0000184 Make sure all rcfile arguments are valid multibyte strings,
185 make whitespace display mode work with multibyte characters,
David Lawrence Ramseye0fb4d52005-03-11 04:03:32 +0000186 and add a few related documentation updates. New function
David Lawrence Ramseyf0195a82005-03-14 18:47:21 +0000187 make_mbstring(); changes to make_mbchar(), make_mbstring(),
David Lawrence Ramsey9bd56202005-03-18 21:29:33 +0000188 main(), parse_rcfile(), display_string(), and do_help(). (DLR)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +0000189- cut.c:
David Lawrence Ramsey4d6ec372004-11-23 17:59:32 +0000190 do_cut_text()
191 - If keep_cutbuffer is FALSE, only blow away the text in the
192 cutbuffer if the cutbuffer isn't empty. (DLR)
David Lawrence Ramseyeeec9992004-11-24 20:12:57 +0000193 do_uncut_text()
194 - No longer duplicate Pico's adding an extra magicline to the
195 file if uncutting leaves the cursor on the current one. This
196 behavior appears to be a bug, as inserting a file in the same
197 manner doesn't add an extra magicline. (DLR)
David Lawrence Ramseyca018c32004-11-26 20:14:19 +0000198- files.c:
199 get_full_path()
200 - Remove unneeded NANO_SMALL #ifdef, so that it's included
201 whenever its prototype is, and so it can compile when
202 DISABLE_OPERATINGDIR isn't defined and NANO_SMALL is. (DLR)
David Lawrence Ramseyb349c802005-03-17 19:10:29 +0000203 do_browser()
204 - Refresh the screen when Ctrl-L is pressed in the file browser,
205 as Pico does. (DLR)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +0000206- global.c:
David Lawrence Ramsey30412932004-11-23 20:42:35 +0000207 shortcut_init()
208 - Fix misplaced #endif keeping the "Full Justify" shortcut in
209 the search shortcut list from being included when NANO_SMALL
210 is defined but DISABLE_JUSTIFY isn't. (DLR)
David Lawrence Ramsey35e97132005-01-08 06:04:19 +0000211 - Use NULL instead of 0 when a shortcut has no associated
212 function. (DLR)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +0000213 thanks_for_all_the_fish()
214 - Free the justify buffer if it isn't empty. (DLR)
David Lawrence Ramseyb5a7a5a2004-11-23 03:42:43 +0000215- nano.c:
David Lawrence Ramseyf647c482005-01-03 20:07:26 +0000216 help_init()
217 - Clarify the text describing double-escape character input.
218 Since ASCII is technically only seven bits wide, characters
219 128-255 aren't ASCII. (DLR, suggested by Michael Piefel)
David Lawrence Ramsey846658e2004-12-05 04:18:26 +0000220 do_toggle()
221 - When we get the whitespace display toggle, update the titlebar
222 as well as the edit window, in case the filename displayed on
223 the titlebar contains spaces or tabs. (DLR)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +0000224 handle_sigwinch()
225 - If the justify buffer isn't empty, blow it away and don't
226 display "UnJustify" in the shortcut list anymore. (DLR)
David Lawrence Ramsey45edf362005-02-14 05:38:06 +0000227 usage()
228 - Typo fix. (DLR)
David Lawrence Ramseyb5a7a5a2004-11-23 03:42:43 +0000229 do_wrap()
230 - Make wrap_loc and word_back ssize_t's, to match fill. (DLR)
David Lawrence Ramseyfc54d6e2004-12-02 17:37:09 +0000231 break_line()
232 - Fix compilation problem caused by its returning int when it
233 should return ssize_t according to its prototype. (Jeremy
234 Huddleston)
David Lawrence Ramsey22a35642005-03-18 05:26:54 +0000235 indent_length()
236 - Make the #ifdef around it match that of its prototype to avoid
237 compilation problems when compiling with --enable-tiny and
238 without DISABLE_JUSTIFY's being defined. (DLR)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +0000239 do_justify()
240 - For consistency, preserve placewewant if we didn't unjustify
241 instead of setting it to 0. (DLR)
David Lawrence Ramsey68ebb612004-12-04 17:36:14 +0000242 - When justifying the entire file, properly break out of the
David Lawrence Ramsey102d01d2005-03-17 04:48:14 +0000243 loop if we've found at least one paragraph, there are no more
244 paragraphs after the current one, and the paragraph search
245 left us on the magicline. This avoids a segfault. (DLR)
David Lawrence Ramseyc13b7f02005-01-01 07:28:15 +0000246 do_input()
247 - Add finished parameter, used to indicate when we run or try to
248 run a function associated with a shortcut. (DLR)
David Lawrence Ramseyfc693212004-12-23 17:43:27 +0000249 main()
250 - Try to automatically detect whether UTF-8 support is needed by
251 setting the NO_UTF8 flag if setlocale() returns a string that
David Lawrence Ramseyd456bfa2005-03-18 19:07:25 +0000252 doesn't contain "UTF8" or "UTF-8", case insensitively. When
253 using slang 2.x, enable UTF-8 support with SLutf8_enable().
254 (DLR, string checks beyond case-sensitive "UTF-8" adapted from
255 Debian's UTF-8 patch for slang)
David Lawrence Ramsey2bd22762005-01-18 16:43:18 +0000256- nano.h:
257 - Remove now-unneeded #defines for functions that now have
258 multibyte equivalents. (DLR)
David Lawrence Ramsey50406662005-01-19 19:52:42 +0000259 - Remove now-unneeded MIN_EDITOR_COLS. (David Benbennick)
David Lawrence Ramsey1307aae2005-01-07 19:02:47 +0000260- utils.c:
261 regexec_safe()
262 - Remove redundant regexec #define, and move the regexec #undef
263 to nano.h. (DLR)
264 is_blank_char()
265 - Rewrite to use ctype functions instead of checking directly
266 for spaces and tabs. (DLR)
David Lawrence Ramsey116c8282005-01-14 03:22:54 +0000267 revstrstr(), revstristr()
268 - Add asserts. (DLR)
David Lawrence Ramsey698263c2004-11-25 05:05:41 +0000269- winio.c:
David Lawrence Ramseyc275dc52005-03-08 17:45:36 +0000270 get_buffer()
271 - If we get ERR when using blocking input, it means that the
272 input source that we were using is gone. In this case, call
273 handle_hupterm(), so that nano dies gracefully instead of
274 going into an infinite loop. (DLR, found by Jim Uhl)
David Lawrence Ramseyf326ed72004-12-05 05:42:46 +0000275 titlebar()
David Lawrence Ramsey2c70a4e2004-12-05 06:03:46 +0000276 - Rename some variables for consistency, make space an int
277 instead of a size_t, properly handle the case where the prefix
278 length plus the path length is greater than the amount of
279 space available, and fix a typo in an assert. (DLR)
David Lawrence Ramseyc1095492004-11-27 15:18:34 +0000280 unget_kbinput()
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +0000281 - Remove the wide character handling, as it didn't work properly
282 with respect to function keys. (DLR)
David Lawrence Ramsey698263c2004-11-25 05:05:41 +0000283 get_kbinput(), get_translated_kbinput(), get_ascii_kbinput(),
284 get_untranslated_kbinput()
285 - Make the ascii_digits variables ints instead of size_t's,
286 since they will only hold very small values. (DLR)
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +0000287 get_kbinput()
288 - Remove the wide character handling, as it didn't work properly
289 with respect to adding multiple wide characters at once, and
290 ungetting them just caused other problems elsewhere. (DLR)
291 get_translated_kbinput()
292 - Remove the wide character handling, as it didn't work properly
293 with respect to adding multiple wide characters at once, and
294 ungetting them just caused other problems elsewhere. (DLR)
295 - Use if statements instead of switch/case statements to handle
296 ASCII character sequence mode, as they take up less room.
297 get_ascii_kbinput()
298 - Use if statements instead of switch/case statements to handle
299 ASCII character sequence mode, as they take up less room.
David Lawrence Ramseyc82997d2004-11-27 15:00:18 +0000300 get_verbatim_kbinput()
301 - Don't pass v_kbinput in as a parameter, since we're
302 dynamically allocating it and then returning it. (DLR)
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +0000303 - Remove v_first parameter, and go back to the old behavior of
304 putting back the first character of the escape sequence, as it
305 worked just as well and was less complicated. (DLR)
David Lawrence Ramseyf4a799a2005-01-08 06:16:19 +0000306 get_mouseinput()
307 - Return TRUE instead of FALSE only when we have a control key,
308 a prinary meta key sequence, or both. (DLR)
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +0000309 get_shortcut()
David Lawrence Ramseybfcba162004-12-05 06:11:01 +0000310 - Add a debug message. (DLR)
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +0000311 - Take kbinput as a reference instead of a value, so that it's
312 translated when the key is translated to its equivalent
313 control key or meta key shortcut. (DLR)
David Lawrence Ramseyf4a799a2005-01-08 06:16:19 +0000314 - Return s instead of NULL only when we have a control key, a
315 prinary meta key sequence, or both. (DLR)
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +0000316 get_toggle()
David Lawrence Ramseybfcba162004-12-05 06:11:01 +0000317 - Add a debug message. (DLR)
David Lawrence Ramseyf4a799a2005-01-08 06:16:19 +0000318 bottombars()
319 - Initialize foo, in case a keystroke meets none of the handled
320 cases. (DLR)
David Lawrence Ramsey637b8bb2005-01-17 05:06:55 +0000321 total_refresh()
322 - Refresh bottomwin using the value of currshortcut, and change
323 the code around do_refresh() calls to accommodate this. (DLR)
David Lawrence Ramsey85616c42005-03-17 18:11:08 +0000324 - Split out the code that updates the screen before refreshing
325 it into the new function total_update().
David Lawrence Ramseyb9ddb802005-03-17 17:56:48 +0000326 do_help()
327 - Refresh the screen when Ctrl-L is pressed in the help browser,
328 as Pico does. (DLR)
David Lawrence Ramsey6ecbdd32004-11-27 21:39:01 +0000329- configure.ac:
330 - Remove specific references to control key shortcuts. (DLR)
David Lawrence Ramsey78ea5e42004-12-12 19:04:56 +0000331 - Check for the wide version of ncurses, without which multibyte
David Lawrence Ramsey4fd76ba2004-12-24 18:11:53 +0000332 strings don't seem to be displayed properly, and associated
333 wide character functions. (DLR)
334 - Check for wchar.h, for those systems that need it for the
335 wcwidth() prototype. (DLR)
336 - Remove checks for all include files that we include
337 unconditionally. (DLR)
338 - Remove references to termio.h here and elsewhere, since it's
339 obsolete and it defines a struct termio that we don't use
340 anywhere. (DLR)
341 - Typo fixes. (DLR)
David Lawrence Ramsey496488c2005-03-16 15:34:22 +0000342 - Add checks for isascii(), iswalnum(), iswblank() or
343 iswspace(), mblen(), and wctype.h. (DLR)
David Lawrence Ramsey11c83d32005-01-02 21:26:53 +0000344- doc/faq.html:
345 - Remove now-inaccurate note about verbatim input's not working
David Lawrence Ramseyf0a53f02005-01-03 19:56:56 +0000346 at prompts, and update its description to mention that it
347 handles hexadecimal values now. (DLR)
David Lawrence Ramsey256a8902005-03-09 22:53:11 +0000348 - Add question about opening files with names beginning with
349 '+'s, and add a few more miscellaneous cosmetic fixes.
David Lawrence Ramsey5cc14f22005-01-17 05:24:26 +0000350- nanorc.sample:
David Lawrence Ramsey9c3edc02004-12-04 18:14:12 +0000351 - Add return to the "c-file" regexes. (DLR)
David Lawrence Ramseyf647c482005-01-03 20:07:26 +0000352 - Clarify the text describing good values for whitespace
353 display. Since ASCII is technically only seven bits wide,
354 characters 128-255 aren't ASCII. (DLR, suggested by Michael
355 Piefel)
David Lawrence Ramsey5cc14f22005-01-17 05:24:26 +0000356 - Add the "morespace" option. (DLR)
David Lawrence Ramsey159bdfd2005-01-20 16:40:24 +0000357 - Add support for characters to the "c-file" regexes. (DLR)
David Lawrence Ramsey6e60db62005-03-10 22:52:21 +0000358 - Add the hexadecimal equivalents of the decimal values
359 suggested for whitespace display, now that it can handle
360 multibyte characters. (DLR)
David Lawrence Ramseybca59d62005-03-11 20:22:48 +0000361 - Add "manpage" regex. (Mike Frysinger, minor tweaks by DLR)
David Lawrence Ramsey5cc14f22005-01-17 05:24:26 +0000362- nano.1. nanorc.5, nano.texi:
363 - Add the "morespace" option, and sync with the descriptions in
364 nanorc.sample in a few places. (DLR)
David Lawrence Ramseybca59d62005-03-11 20:22:48 +0000365 - Miscellaneous wording tweaks. (DLR)
David Lawrence Ramseyb54155c2005-01-12 03:25:57 +0000366- src/Makefile.am:
367 - Add chars.c to nano_SOURCES. (DLR)
David Lawrence Ramseye3013e32005-01-14 18:47:42 +0000368 - If we're installing and the "rnano" symlink already exists,
369 remove it so that we can create it again without an error.
370 (DLR)
David Lawrence Ramsey543ecf62005-03-19 21:20:20 +0000371- AUTHORS:
372 - Updated to mention UTF-8 support.
David Lawrence Ramsey962202e2004-11-22 17:58:06 +0000373
David Lawrence Ramsey2c86dc62004-11-22 17:55:17 +0000374GNU nano 1.3.5 - 2004.11.22
David Lawrence Ramseya0b5ba22004-08-25 15:39:10 +0000375- General:
376 - Convert more ints that hold only TRUE and FALSE values to
377 bools. (DLR)
David Lawrence Ramseyc7ca28a2004-09-07 21:51:49 +0000378 - Consolidate the code for finding and running a shortcut in a
379 shortcut list, the code for finding and toggling a toggle in a
380 toggle list, and the code for doing both of those and
381 interpreting mouse clicks in the edit window. Also move the
382 code for do_mouse() to get_edit_mouse() and tweak it to
383 properly handle cases where a shortcut isn't clicked. New
384 functions get_shortcut(), get_toggle(), get_edit_input(), and
385 get_edit_mouse(); changes to do_browser(), do_justify(),
386 do_help(), and main(). (DLR)
David Lawrence Ramseyd1322102004-08-26 04:22:54 +0000387 - Simplify a few more translated messages. (DLR)
Jordi Mallachcc79a9a2004-08-31 00:23:16 +0000388 - Translation updates (see po/ChangeLog for details).
David Lawrence Ramsey8bf08092004-09-01 22:08:57 +0000389 - Remove reference to @includedir@ in src/Makefile.am, as it's
390 unneeded and can break cross-compilation. (DLR, found by Mike
391 Frysinger)
David Lawrence Ramsey02517e02004-09-05 21:40:31 +0000392 - Overhaul the file opening, reading, and loading operations to
393 increase efficiency, avoid problems on invalid filenames
394 specified on the command line, and eliminate corner cases that
395 erroneously leave edittop or current NULL when they shouldn't
396 be. Also split out the code to execute a command into a
397 separate function, eliminate a workaround for one of the
398 aforementioned corner cases, handle files with a mix of DOS
399 and Mac format lines, and remove the code to turn on the
400 NO_CONVERT flag when opening a binary file, as it's not always
401 reliable and will cause problems with UTF-8 text files. New
402 functions open_file(), execute_command(), and mallocstrassn();
403 changes to read_line(), load_file(), read_file(), open_file(),
404 get_next_filename(), do_insertfile(), do_insertfile_void(),
405 do_alt_speller(), and edit_refresh(). (David Benbennick) DLR:
406 Add a few minor fixes to make sure that current is set
407 properly in all cases, indicate on the statusbar when the file
408 has a mix of DOS and Mac format lines, move the test for DOS
409 line endings from read_line() to read_file() to avoid
410 inaccurate statusbar messages and to reduce fileformat to a
411 local variable in read_file(), eliminate another workaround in
412 edit_update(), rename open_the_file() to open_file() since the
413 latter has been removed, and rename load_a_file() to
414 load_buffer().
David Lawrence Ramseye5d8f322004-09-30 22:07:21 +0000415 - Add alternative shortcuts to the main and search shortcut
416 lists for moving to the beginning and end of a paragraph and
417 justifying the entire file: Meta-( (Meta-9), Meta-) (Meta-0),
418 and Meta-J, respectively. Do this because Pico's practice of
419 putting these shortcuts only in the search shortcut list is
420 rather odd. (DLR)
David Lawrence Ramsey013344c2004-09-22 22:45:08 +0000421 - Turn off extended input processing (the IEXTEN termios flag)
422 as nano 1.2.x does. New function disable_extended_input();
423 changes to terminal_init(). (DLR)
David Lawrence Ramseyf3ca80e2004-09-23 21:52:58 +0000424 - Remove redundant include of limits.h from nano.c. nano.c
425 includes nano.h and nano.h includes limits.h. (DLR)
David Lawrence Ramseyeb16f432004-09-27 01:04:50 +0000426 - Add a func_key flag to the low-level input functions and the
427 currently existing high-level input functions, to indicate
428 extended keypad values. This is needed for UTF-8 support.
David Lawrence Ramseyc59979f2004-10-23 02:47:39 +0000429 Changes to unget_kbinput(), get_kbinput(),
430 get_translated_kbinput(), get_shortcut(), get_edit_input(),
431 etc. (DLR)
David Lawrence Ramsey04a8d1c2004-09-28 22:14:58 +0000432 - Add a multibuffer mode toggle to the "Execute Command" prompt,
433 for consistency with the "Read File" prompt. Changes to
434 do_insertfile() and shortcut_init(). (DLR)
David Lawrence Ramseye5d8f322004-09-30 22:07:21 +0000435 - Add an ^X toggle to the "Execute Command" prompt to go back to
436 the "Insert File" prompt, and add a ^T toggle to the "Go To
437 Line" prompt to go back to the "Where Is" prompt. Changes to
438 do_insertfile(), shortcut_init(), do_gotoline(), etc.
439 - Make sure a few uninitialized static variables are initialized
440 to sane values. (DLR)
David Lawrence Ramsey7c1f17a2004-10-03 13:47:26 +0000441 - After reading in a file and detecting the format it's in, set
442 the file format flags (DOS_FILE and MAC_FILE) to match, and
443 preserve them across multiple file buffers. Changes to
444 read_file(), add_open_file(), and load_open_file(). (DLR,
445 suggested by Bill Soudan)
David Lawrence Ramsey28caf142004-10-07 20:54:52 +0000446 - Remove the -D/--dos and -M/--mac command line options, as they
David Lawrence Ramseycfa4a9c2004-10-24 17:20:31 +0000447 aren't much use with the new file format autodetection. Also
448 remove the global versions of the toggles, so that they can
449 only be used at the "Write File" prompt as similar options
450 can. Finally, change the Mac format toggle to Meta-M, since
451 that no longer conflicts with the global -m/--mouse toggle.
452 (DLR)
David Lawrence Ramseyfc965a42004-10-15 01:51:36 +0000453 - Add support for reading in UTF-8 sequences to the low-level
454 input routines. Changes to get_kbinput() and
David Lawrence Ramsey4e8e4952004-10-14 21:59:45 +0000455 get_translated_kbinput(). (DLR)
David Lawrence Ramseye5e88fd2004-10-31 13:20:30 +0000456 - Reduce search_last_line to a static variable in search.c, and
457 allow it to be set to FALSE via a function. New function
458 findnextstr_wrap_reset(); changes to do_int_spell_fix(),
459 findnextstr(), do_search(), do_research(), do_replace_loop(),
460 do_replace(), and do_find_bracket(). (DLR, problem with making
461 search_last_line local to findnextstr() found by Rocco)
David Lawrence Ramsey2eb74592004-10-21 16:25:44 +0000462 - When saving or changing file positions, be sure not to ignore
463 placewewant. Changes to do_int_spell_fix(), findnextstr(),
464 do_replace_loop(), and do_replace(). (DLR)
David Lawrence Ramsey687776b2004-10-30 01:16:08 +0000465 - Convert current_x and mark_beginx to size_t's, and convert
466 some functions that use them as a parameter to use size_t as
467 well. Also change some related assertions to handle them.
468 (David Benbennick and DLR)
David Lawrence Ramsey40bdb682004-11-03 22:03:41 +0000469 - Add code to partition a filestruct between a set of arbitrary
470 coordinates. Given the coordinates of the beginning and end
471 of the mark, this allows proper and easier handling of saving
472 marked selections, replacing text only in marked selections
473 (suggested by Joseph Birthisel), and spell-checking marked
474 selections using either the internal or alternate spell
475 checker. Do all these using a global partition structure.
476 New functions partition_filestruct(),
477 unpartition_filestruct(), remove_magicline(), and
478 get_totals(); changes to write_marked(), do_int_spell_fix(),
479 do_alt_speller(), handle_sigwinch(), and do_replace_loop().
480 (DLR)
David Lawrence Ramsey84d0d592004-11-04 03:53:11 +0000481 - Remove most redundant includes of sys/stat.h. It's included
482 in nano.h, so it doesn't need to be included in files that
483 include nano.h. (DLR)
David Lawrence Ramsey3e0c8a62004-11-04 04:08:18 +0000484 - Remove the DOS_FILE and MAC_FILE flags, as they're only used
485 in files.c, and replace them with a static file_format enum.
486 Change the openfilestruct structure accordingly in order to
David Lawrence Ramseybe246c02004-11-04 13:40:58 +0000487 handle this. (DLR)
David Lawrence Ramsey00cca052004-11-06 20:33:43 +0000488 - Convert some ints with predefined boundaries to enums. (DLR)
Jordi Mallach55381aa2004-11-17 23:17:05 +0000489 - Include config.h only if HAVE_CONFIG_H. (Jordi)
David Lawrence Ramsey07e25892004-11-04 13:47:28 +0000490- cut.c:
David Lawrence Ramsey649b4312004-11-13 01:32:17 +0000491 cut_marked_segment()
492 - Respect concatenate_cut, as we need to use it if we do a
493 marked cut and immediately follow it with a cut-to-end (which
494 uses this function). (DLR)
David Lawrence Ramseybfb98f82004-11-12 21:46:14 +0000495 do_cut_text()
496 - Set concatenate_cut to TRUE unconditionally when doing a
497 marked cut. This fixes an incompatibility with Pico where an
498 extra line is uncut if we do a marked cut that includes the
499 magicline and immediately follow it with an unmarked cut.
500 (DLR)
David Lawrence Ramsey00cca052004-11-06 20:33:43 +0000501 do_uncut_text()
502 - Maintain current_y's value when uncutting blocks so that
503 smooth scrolling works correctly. (DLR)
David Lawrence Ramsey146bb602004-08-27 21:02:38 +0000504- files.c:
David Lawrence Ramsey3e0c8a62004-11-04 04:08:18 +0000505 read_file()
506 - Rename variable fileformat to format, to avoid confusion with
507 the file_format enum type. (DLR)
David Lawrence Ramsey78d644a2004-11-05 16:24:35 +0000508 load_buffer()
509 - Don't change the file format when we insert another file into
510 the current one. (DLR)
David Lawrence Ramsey146bb602004-08-27 21:02:38 +0000511 do_insertfile()
David Lawrence Ramseybe908f62004-10-01 18:34:30 +0000512 - Simplify by reusing variables whereever possible, and add a
513 parameter execute to indicate whether or not to be in "Execute
514 Command" mode. (DLR)
David Lawrence Ramsey045883a2004-10-05 20:11:31 +0000515 - Rework so that goto is no longer needed, using do_writeout()
516 as a model. (DLR)
517 - If file browsing succeeds, call statusq_abort() so that the
518 cursor position at the statusbar is reset. (DLR)
David Lawrence Ramsey487149e2004-10-05 20:24:48 +0000519 - Add missing #ifdefs around the wrap_reset() call so that nano
520 compiles with wrapping disabled again. (DLR)
David Lawrence Ramseyb73c0c02004-11-05 15:25:53 +0000521 - If we're not inserting a file into a new buffer, partition the
522 current buffer so that it's effectively a new buffer just
523 before inserting the file, and only restore placewewant
524 afterwards. This is the same behavior we would get if we
David Lawrence Ramsey3d67c112004-11-05 15:39:36 +0000525 opened the file, added all of it to the cutbuffer, closed the
526 file, and uncut at the current cursor position. (DLR)
David Lawrence Ramsey97b90462004-11-15 23:10:56 +0000527 - Maintain current_y's value when inserting so that smooth
528 scrolling works correctly. (DLR)
David Lawrence Ramsey045883a2004-10-05 20:11:31 +0000529 do_writeout()
530 - Restructure if blocks for greater efficiency, using
531 do_insertfile() as a model. (DLR)
532 - Simplify where possible, and use an int retval to hold the
533 return value instead of i. (DLR)
534 - If file browsing succeeds, call statusq_abort() so that the
535 cursor position at the statusbar is reset. (DLR)
536 - Remove unneeded calls to display_main_list(). (DLR)
537 do_writeout_void()
538 - Call display_main_list(), for consistency with
539 do_insertfile_void(). (DLR)
David Lawrence Ramseyca92bec2004-10-22 03:33:54 +0000540 write_file()
541 - If we've tried to write to an unwritable file and we're not
542 prepending, tempname is NULL when it's passed to unlink().
543 This can cause problems if unlink() can't handle NULL, so
544 don't call it in that case. (David Benbennick)
David Lawrence Ramsey4b7e3c32004-10-15 16:25:56 +0000545 write_marked()
546 - Remove check for MARK_ISSET's not being set. (DLR)
David Lawrence Ramseyf1c395d2004-10-03 19:26:13 +0000547 open_prevfile(), open_nextfile()
David Lawrence Ramsey3e189a82004-10-03 19:18:48 +0000548 - Translate the "New Buffer" string when displaying "Switched
549 to" messages on the statusbar. (DLR)
David Lawrence Ramsey8091d332004-11-16 02:23:10 +0000550 input_tab()
551 - Fix snprintf() call so that we don't segfault when trying to
David Lawrence Ramseya98fd752004-11-16 13:09:43 +0000552 complete a filename containing %'s. (Ulf Härnhammar)
David Lawrence Ramseya16b27f2004-08-26 01:29:25 +0000553- global.c:
554 shortcut_init()
555 - Remove redundant NANO_SMALL #ifdef. (DLR)
David Lawrence Ramsey1e729712004-09-28 15:17:47 +0000556 - Change an erroneous _() around the "New Buffer" string to
557 N_(). (DLR)
David Lawrence Ramsey8381fdd2004-11-01 22:40:02 +0000558 - Add new key aliases: F15 for "Mark Text" (DLR) and F16 for
559 "Where Is Next" (Chris).
David Lawrence Ramsey4b4b6082004-11-01 22:54:40 +0000560 - Leave "Mark Text" and "Where Is Next" out entirely when
561 NANO_SMALL is defined. Since they aren't in the visible main
562 list, there's no point in having them in but disabled. (DLR)
David Lawrence Ramsey02085d72004-11-07 16:04:18 +0000563 - In the search prompt shortcut list, move "Full Justify" to
564 after "History", so that the latter is visible onscreen
565 again. (DLR)
David Lawrence Ramsey50c7f2d2004-08-27 17:02:05 +0000566- nano.c:
David Lawrence Ramsey02517e02004-09-05 21:40:31 +0000567 die_save_file()
568 - Clarify the error message when there are too many backup files
569 and the current one can't be written. (DLR)
David Lawrence Ramseydb6015c2004-09-11 21:41:13 +0000570 help_init()
571 - Rework to be a bit more flexible. Only add tabs for shortcut
572 key entries if those entries exist, and if there's only one
573 entry left but there's room for more than one, add enough tabs
David Lawrence Ramseyd402e712004-11-01 22:37:36 +0000574 to put that entry at the end. Also, make sure a function key
575 is displayed in the middle if it's the first entry. These
576 changes allow e.g. the miscellaneous meta key sequence to be
577 displayed in a shortcut that has a control key, a primary meta
578 key sequence, and a miscellaneous meta key sequence, but no
579 function key. (DLR)
David Lawrence Ramsey381d4832004-10-18 01:51:43 +0000580 - Update the help text to mention replacing and spell checking
581 only selected text, and also add a few cosmetic fixes to it.
582 (DLR)
David Lawrence Ramseyfdd3bec2004-11-07 21:30:55 +0000583 - Update the help text to mention how to get a blank buffer at
584 the "Execute Command" prompt. (DLR)
David Lawrence Ramsey7a97e182004-10-30 01:03:15 +0000585 do_prev_word()
586 - Tweak to avoid an infinite loop, since current_x is now a
587 size_t and hence is unsigned. (DLR)
David Lawrence Ramseyd93ee682004-10-09 16:59:43 +0000588 do_int_spell_fix()
589 - Move the REVERSE_SEARCH flag toggling into the NANO_SMALL
590 #ifdef, since the tiny version of nano doesn't support reverse
David Lawrence Ramsey49d5c1b2004-10-11 13:55:33 +0000591 searching. Move the CASE_SENSITIVE flag toggling out in order
David Lawrence Ramsey646bf912004-10-11 14:00:46 +0000592 to allow the internal spell checker to work properly when
593 NANO_SMALL is defined and DISABLE_SPELLER isn't. Also, turn
594 the USE_REGEXP flag off during spell checking in order to
595 avoid a potential segfault. (DLR)
David Lawrence Ramsey410efe92004-10-26 16:54:19 +0000596 - Fix a problem where if the cursor is in the middle of a file,
597 the spell checker will sometimes only correct the misspelled
598 word instances that appear before the cursor position and then
599 stop. (Rocco)
David Lawrence Ramsey9bf486f2004-10-26 20:58:30 +0000600 - Use do_replace_loop()'s canceled parameter in order to ensure
601 that the spell checking stops if we canceled at the replace
602 prompt. (DLR)
David Lawrence Ramsey439fbe32004-10-16 04:56:34 +0000603 do_alt_speller()
604 - Call terminal_init() unconditionally after running the
605 alternate spell checker, so that the terminal state is
606 properly restored in all cases. (DLR)
David Lawrence Ramseyfd73c462004-09-11 21:28:36 +0000607 justify_format()
608 - For more compatibility with Pico, remove extra space after a
609 character in punct if that character is the same as the one
610 before it. For example, with the default values of punct and
611 brackets, only one space will be left after "...". (DLR)
David Lawrence Ramsey50c7f2d2004-08-27 17:02:05 +0000612 do_para_begin(), do_para_end()
David Lawrence Ramseyc5100422004-08-27 20:28:34 +0000613 - Maintain current_y's value when moving up or down lines so
614 that smooth scrolling works correctly. (DLR)
David Lawrence Ramseyd08348b2004-09-18 22:02:21 +0000615 breakable(), break_line()
616 - Make goal a ssize_t instead of an int, since fill is now a
617 ssize_t, and the position at which a line is broken can be
618 greater than COLS. (DLR)
David Lawrence Ramseybf1346f2004-10-22 20:25:56 +0000619 main()
620 - Tweak the command line parsing routine so that multiple +LINE
621 flags are properly interpreted in multibuffer mode. (DLR)
David Lawrence Ramsey02517e02004-09-05 21:40:31 +0000622- nano.h:
623 - Add WIDTH_OF_TAB #define, containing the default width of a
624 tab. (DLR)
David Lawrence Ramseybe246c02004-11-04 13:40:58 +0000625 - Move the PATH_MAX #define here from files.c.
David Lawrence Ramsey3e0c8a62004-11-04 04:08:18 +0000626 - Remove unused COPYFILEBLOCKSIZE #define. (DLR)
David Lawrence Ramsey50af6ea2004-11-07 15:29:40 +0000627- proto.h:
628 - Add missing NANO_SMALL #ifdef around the cut_marked_segment()
629 prototype. (DLR)
David Lawrence Ramsey19420aa2004-08-18 16:14:18 +0000630- rcfile.c:
631 parse_rcfile()
632 - Add missing brackets around an if statement block so that
633 parsing the numeric argument after "tabsize" works properly
634 again. (DLR, found by Mike Frysinger)
David Lawrence Ramsey02517e02004-09-05 21:40:31 +0000635 - Since flag values are longs, use "%ld" instead of "%d" in the
636 debugging messages indicating when a flag is set or unset.
637 (DLR)
David Lawrence Ramseyc5100422004-08-27 20:28:34 +0000638- search.c:
David Lawrence Ramsey49d5c1b2004-10-11 13:55:33 +0000639 regexp_init()
640 - If NANO_SMALL is defined, don't bother checking the
641 CASE_SENSITIVE flag or using its value when compiling a list
642 of matching regular expressions. (DLR)
David Lawrence Ramseyd532f192004-10-04 22:37:56 +0000643 search_init()
644 - Add parameter use_answer. When it's TRUE, only set
645 backupstring to answer. This is needed to preserve the text
646 of the statusbar when switching to the search prompt from
647 the "Go To Line" prompt. Also, set backupstring before doing
648 anything else, add one minor efficiency tweak, and preserve
649 the text of the statusbar no matter what when switching from
650 the search prompt to the "Go To Line" prompt, since the
651 toggling works both ways now and non-numeric text shouldn't be
652 lost when going only one of those ways. (DLR)
David Lawrence Ramseye1ee22f2004-11-03 23:05:11 +0000653 - When we're replacing and the mark is on, display a prompt
654 indicating that we're replacing text only in the selection
655 instead of the usual prompt. (DLR)
David Lawrence Ramsey2eb74592004-10-21 16:25:44 +0000656 findnextstr()
657 - Take the no_sameline parameter after can_display_wrap and
658 wholewords, not after all other parameters. (DLR)
659 - Maintain current_y's value when moving up or down lines so
660 that smooth scrolling works correctly. (DLR)
661 - Fix handling of the wholewords flag so that it works with
662 regular expressions and in conjunction with the no_sameline
David Lawrence Ramsey85f8f462004-10-31 13:13:19 +0000663 flag, and add new parameter needle_len (used to return the
664 length of the match). (DLR)
David Lawrence Ramsey491cad32004-10-08 23:06:01 +0000665 do_replace_loop()
David Lawrence Ramsey3de81bc2004-11-22 17:08:41 +0000666 - Miscellaneous cleanups: treat real_current as current and
667 real_current_x as current_x, only turn the mark off and call
David Lawrence Ramsey491cad32004-10-08 23:06:01 +0000668 edit_refresh() if the mark was originally on, and make
669 length_change a ssize_t. (DLR)
David Lawrence Ramsey53752e82004-10-18 22:19:22 +0000670 - Return ssize_t instead of int. (DLR)
David Lawrence Ramsey9bf486f2004-10-26 20:58:30 +0000671 - Add new parameter canceled, set to TRUE if we canceled at the
672 prompt and FALSE otherwise. (DLR)
David Lawrence Ramsey381d4832004-10-18 01:51:43 +0000673- utils.c:
674 regexp_bol_or_eol()
675 - Don't assume any longer that string will be found if
676 REG_NOTBOL and REG_NOTEOL are not set. (DLR)
David Lawrence Ramsey4a1fc552004-11-02 15:18:30 +0000677 mallocstrncpy()
678 - New function, used as a malloc()ing equivalent of strncpy().
679 (DLR)
680 mallocstrcpy()
681 - Refactor to be a wrapper for mallocstrncpy(). (DLR)
David Lawrence Ramsey90e59c12004-11-05 23:03:03 +0000682 mark_order()
683 - Add new parameter right_side_up. Set it to TRUE If the mark
684 begins with (mark_beginbuf, mark_beginx) and ends with
685 (current, current_x), or FALSE otherwise. (DLR)
David Lawrence Ramseya0b5ba22004-08-25 15:39:10 +0000686- winio.c:
David Lawrence Ramseydfca1c42004-08-25 16:37:06 +0000687 unget_kbinput()
688 - New function used as a wrapper for ungetch(). (DLR)
David Lawrence Ramsey6da969e2004-08-28 15:51:07 +0000689 get_kbinput()
690 - When reading an escape sequence, set get_verbatim_kbinput()'s
691 new first parameter to the first character of the sequence
692 instead of putting that character back and reading the entire
693 sequence afterwards. (DLR)
David Lawrence Ramsey5780b242004-10-14 20:48:38 +0000694 get_escape_seq_kbinput()
695 - Make the escape_seq parameter a const int*, since it's never
696 modified. (DLR)
David Lawrence Ramsey8381fdd2004-11-01 22:40:02 +0000697 - Support the escape sequences for F15 and F16. (DLR)
David Lawrence Ramsey6da969e2004-08-28 15:51:07 +0000698 get_verbatim_kbinput()
699 - Add new parameter first. If first isn't ERR, make it the
700 first character in the returned sequence instead of reading
701 the first character in via blocking input. (DLR)
David Lawrence Ramseya0b5ba22004-08-25 15:39:10 +0000702 get_mouseinput()
703 - Consolidate two if statements to increase efficiency. (DLR)
David Lawrence Ramseyfe0d3662004-08-26 01:43:16 +0000704 - Check kbinput against metaval instead of (erroneously) ctrlval
705 when putting back a meta sequence. (DLR)
706 - If there are more than MAIN_VISIBLE shortcuts available, only
707 register clicks on the first MAIN_VISIBLE shortcuts, since
708 bottombars() only shows that many shortcuts. (DLR)
David Lawrence Ramseye5d8f322004-09-30 22:07:21 +0000709 check_statblank()
710 - Rename to check_statusblank(), and rename its associated
711 global int statusblank too. (DLR)
David Lawrence Ramsey72d8e542004-09-25 00:45:07 +0000712 nanogetstr()
713 - Refresh the screen when Ctrl-L is pressed at the statusbar
714 prompt, as Pico does. (DLR)
David Lawrence Ramseye5d8f322004-09-30 22:07:21 +0000715 - Always return the key pressed by the user. (DLR)
716 statusq()
717 - Rework slightly to reset the cursor position when the user
718 hits Enter as well as Cancel. This means that resetstatuspos
719 no longer needs to be global. (DLR)
David Lawrence Ramsey045883a2004-10-05 20:11:31 +0000720 statusq_abort()
721 - New function to set resetstatuspos to FALSE when we don't
722 properly exit the statusbar prompt, e.g. when we get a file
723 from the file browser). (DLR)
David Lawrence Ramsey0ff01a92004-10-25 15:00:38 +0000724 bottombars()
725 - For efficiency, no longer dynamically allocate space for each
726 visible shortcut, as they're all of a constant short length.
727 (David Benbennick)
David Lawrence Ramsey02517e02004-09-05 21:40:31 +0000728 reset_cursor()
729 - If this is called before any files have been opened, as it can
730 be by statusbar(), put the cursor at the top left corner of
731 the edit window before getting out. (DLR)
David Lawrence Ramsey50c7f2d2004-08-27 17:02:05 +0000732 edit_refresh()
733 - Call edit_update() with NONE instead of CENTER when smooth
734 scrolling is on, for consistency with the movement routines.
735 (DLR)
David Lawrence Ramsey20b83502004-08-26 18:07:58 +0000736 edit_update()
737 - Simplify so as not to require the fileptr parameter anymore,
738 since it's set to current in all calls. (DLR)
David Lawrence Ramsey50c7f2d2004-08-27 17:02:05 +0000739 - Add comments better explaining what the update actually does,
David Lawrence Ramsey4aece062004-08-28 16:34:28 +0000740 and avoid an infinite loop when location is NONE and current_y
741 is greater than (editwinrows - 1). (DLR)
David Lawrence Ramseya0b5ba22004-08-25 15:39:10 +0000742 do_yesno()
743 - Don't bother assigning the value of get_mouseinput() to
744 anything. Since allow_shortcuts is FALSE, its return value
745 will always be FALSE. (DLR)
David Lawrence Ramsey1a5c4c62004-09-07 00:48:49 +0000746- configure.ac:
747 - When calling AC_TRY_RUN() to test for a broken regexec()
748 function, set the fourth parameter to default to "no" (since
749 it apparently only occurs on glibc 2.2.3-based systems) so
750 that cross-compiling will work. (DLR, found by Mike Frysinger)
David Lawrence Ramseya870ca22004-10-14 21:59:00 +0000751 - Simplify the curses library tests by only checking for
752 initscr(), which ncurses, curses, and pdcurses should all
753 have, and not tgetent(), which is a termcap-specific function.
754 (DLR)
David Lawrence Ramseydb85ac72004-10-18 14:13:28 +0000755 - Check only for glib 2.x, as it's much more common than
756 glib 1.2.x now, and it has a better v?snprintf()
757 implementation. (DLR, suggested by Jordi)
Jordi Mallach1fabded2004-08-31 18:26:28 +0000758- nanorc.sample:
David Lawrence Ramsey2a60ea82004-08-29 14:42:03 +0000759 - Remove specific references to control key shortcuts other than
760 XON and XOFF. (DLR)
David Lawrence Ramseybe908f62004-10-01 18:34:30 +0000761 - Add continue and goto to the "c-file" regexes. (DLR)
David Lawrence Ramseyfe656572004-10-21 17:11:40 +0000762 - Change the included speller value to "aspell -x -c". The -x
763 option makes aspell not create backup files, and this is
764 consistent with the internal spell checker's behavior. (DLR)
Jordi Mallach1fabded2004-08-31 18:26:28 +0000765- doc/man/fr/nano.1, doc/man/fr/nanorc.1:
766 - Updated manpage translations by Jean-Philippe Guérard.
David Lawrence Ramseydb85ac72004-10-18 14:13:28 +0000767- README.CVS:
768 - Mention the requirement for glib 2.x on systems lacking
769 v?snprintf(), and add minor formatting changes.
David Lawrence Ramsey188f1692004-11-20 16:16:47 +0000770 - Mention the requirement for groff in order to create html
771 versions of the manpages. (DLR)
David Lawrence Ramsey831c6402004-11-21 18:44:23 +0000772 - Update the given cvs commands so that they work again, and
773 mention the need for ssh to do cvs checkouts. (DLR)
David Lawrence Ramseye56d9362004-11-21 18:51:30 +0000774 - List sh as an example of a Bourne shell. (DLR)
David Lawrence Ramsey0432e702004-11-05 17:09:11 +0000775- faq.html:
776 - Fixed inaccuracy: Pico compatibility mode was made the default
777 in nano 1.1.99pre1, not 1.2.2. (DLR)
David Lawrence Ramsey93eb2932004-11-05 18:01:33 +0000778 - Added question about how to type F13-F16 on terminals lacking
779 keys past F12 (suggested by Chris), question about how to
780 select text for the clipboard in X terminals with nano's mouse
781 support turned on (answer found by Joseph Birthisel), and
782 miscellaneous fixes and link updates. (DLR)
David Lawrence Ramseycfa4a9c2004-10-24 17:20:31 +0000783- nano.1:
David Lawrence Ramseye93e03e2004-10-24 16:47:54 +0000784 - Eliminate references to the now removed -D/--dos and -M/--mac
785 command line options. (DLR)
David Lawrence Ramseycfa4a9c2004-10-24 17:20:31 +0000786- nano.texi:
787 - Eliminate references to the now removed -D/--dos and -M/--mac
788 command line options, and their corresponding toggles. (DLR)
David Lawrence Ramseye3016d92004-11-11 14:35:31 +0000789- m4/Makefile.am:
790 - Add glib-2.0.m4 to EXTRA_DIST, so that nano builds from CVS
791 with automake 1.7.x again. For some reason, automake 1.9.x
792 didn't have a problem with its (erroneously) being left out.
793 (DLR, problem found by Chris)
David Lawrence Ramseyb802e702004-10-18 19:28:10 +0000794- m4/glib-2.0.m4:
795 - New file imported from glib 2.4.7. This is needed to detect
796 glib 2.x on systems that may not have it installed. (DLR,
797 suggested by Jordi)
Jordi Mallachd7b63252004-11-18 00:05:14 +0000798- src/Makefile.am:
799 - Don't use DEFS to define things. Use INCLUDES instead. (Jordi)
David Lawrence Ramsey013e8d12004-08-17 20:44:31 +0000800
David Lawrence Ramseyc6718cf2004-08-17 20:38:44 +0000801GNU nano 1.3.4 - 2004.08.17
David Lawrence Ramseyebd0d7c2004-07-01 18:59:52 +0000802- General:
803 - More minor comment cleanups. (DLR)
David Lawrence Ramseyce62e822004-08-05 22:10:22 +0000804 - Convert more ints and functions using 0 and 1 to bools using
805 TRUE and FALSE. (David Benbennick and DLR)
David Lawrence Ramsey86e851b2004-07-28 20:46:25 +0000806 - Change more instances of ints that have large enough upper
807 bounds and which can never be negative to size_t's, and
808 convert nano to handle them properly. (DLR)
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +0000809 - Convert the shortcut list functions and most related functions
David Lawrence Ramseyedab0cc2004-07-03 03:09:12 +0000810 to return void instead of int, as the return values of all
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +0000811 those functions are essentially unused. Changes to
812 sc_init_one(), shortcut_init(), etc. (David Benbennick and
813 DLR)
David Lawrence Ramseyedab0cc2004-07-03 03:09:12 +0000814 - Make flags and all variables meant to store the value of flags
815 longs for consistency. (David Benbennick)
816 - Rename the TEMP_OPT flags to TEMP_FILE, as it's more
817 descriptive. (DLR)
David Lawrence Ramseya5dda842004-07-08 15:27:04 +0000818 - Remove unused global variable search_offscreen. (David
819 Benbennick)
David Lawrence Ramsey576bf332004-07-12 03:10:30 +0000820 - Add new N_() macro to mark strings that aren't translated
821 immediately, and convert nano to use it in cases where the
David Lawrence Ramsey76f63ff2004-08-05 15:45:09 +0000822 translated string is stored in a const char*. Changes
823 to sc_init_one(), print1opt(), help_init(), rcfile_error(),
824 do_credits(), etc. (David Benbennick) DLR: Do this for
825 toggle_init_one() too.
826 - Minor tweaks and clarifications to some option descriptions.
827 (DLR)
David Lawrence Ramsey576bf332004-07-12 03:10:30 +0000828 - Overhaul the shortcut list and toggle list initialization
829 code for efficiency. Changes to shortcut_init() and
830 toggle_init(). (David Benbennick) DLR: Move "Cancel" to just
831 after "Get Help" in the file browser list, for consistency
832 with all the other lists, have the replace list accept all the
833 same function keys as the search list, and clarify a few
834 shortcut descriptions.
David Lawrence Ramsey49c3f242004-07-12 16:07:14 +0000835 - Convert nano to use the new parse_num() function to read in
836 numeric values at the command line and in the rcfile, and
837 duplicate the messages used in the rcfile in the command line
David Lawrence Ramseyc53ab2a2004-08-04 18:24:53 +0000838 for consistency. (David Benbennick) DLR: Tweak parse_num() to
839 parse ssize_t values instead of ints and to return a bool
840 indicating whether parsing succeeded. Convert tabsize,
David Lawrence Ramsey49c3f242004-07-12 16:07:14 +0000841 wrap_at, and fill to ssize_t in order to work with
842 parse_num() properly and also to increase their capacity
843 while keeping the ability to hold negative numbers in case of
844 errors. Also exit instead of calling usage() in the event of
845 an invalid fill value, for consistency with how an invalid
David Lawrence Ramsey36dd87b2004-07-18 17:43:43 +0000846 tabsize value is handled. Finally, handle invalid tabsize
David Lawrence Ramsey04419b92004-07-18 18:13:54 +0000847 entries in the rcfile the same way as on the command line,
848 and reset tabsize and wrap_at to their default values if
849 invalid rcfile entries are specified for them.
David Lawrence Ramseyaea4dab2004-07-13 17:09:24 +0000850 - Remove several unnecessary reset_cursor() calls. (David
851 Benbennick)
David Lawrence Ramseyfd3039a2004-07-17 19:49:12 +0000852 - Include <sys/types.h> in proto.h. (David Benbennick) DLR:
853 Remove some redundant inclusions of <sys/types.h> elsewhere.
David Lawrence Ramsey8aaf0302004-07-27 16:46:35 +0000854 - Move the main terminal initialization functions, aside from
855 initscr(), into a new terminal_init() function, and convert
856 nano to use it. (DLR)
David Lawrence Ramsey86e851b2004-07-28 20:46:25 +0000857 - Convert placewewant to a size_t, and convert some functions
858 that use it as a parameter to use size_t as well. (David
859 Benbennick and DLR)
David Lawrence Ramsey819c7f02004-07-30 03:54:34 +0000860 - Overhaul the paragraph searching code and some of the justify
861 code to clarify it and fix a bug where searches from the
862 previous paragraph would move up too far. Also make
863 quotestr-related variables global so that they only have to be
864 compiled once, and remove the no-longer-needed IFREG() macro.
865 New functions begpar() and inpar(); changes to quote_length(),
866 quotes_match(), do_para_search(), do_para_begin(),
867 do_para_end(), and do_justify(). (David Benbennick)
David Lawrence Ramseya6d26d02004-07-30 22:52:44 +0000868 - Readded the errors flag and moved the ending prompt from
869 rcfile_error() to parse_rcfile() so that we only get prompted
870 once for all errors instead of separately for each error.
David Lawrence Ramsey7dfec432004-08-12 15:20:14 +0000871 (DLR) David Benbennick: Make sure that no rcfile error
872 messages end in newlines, and show the ending prompt if we
873 can't read the .nano_history file while starting nano.
David Lawrence Ramseyb8c479a2004-07-31 14:10:23 +0000874 - Don't treat the return value of strn?(case)?cmp() as boolean.
875 (DLR and David Benbennick)
David Lawrence Ramsey76fb3ec2004-08-01 16:09:15 +0000876 - Automatically install a symlink "rnano" pointing to nano.
877 Changes to src/Marefile.am. (DLR)
David Lawrence Ramsey22fac782004-08-05 15:16:19 +0000878 - Move the static int pid to the beginning of nano.c with all
879 the other static variables. (DLR)
David Lawrence Ramsey00d77982004-08-07 21:27:37 +0000880 - Consolidate some if blocks to remove some redundant code.
881 (David Benbennick)
David Lawrence Ramsey73cd1a52004-08-05 21:57:48 +0000882 - Fix warnings when compiling with ENABLE_NLS undefined and with
David Lawrence Ramseybe908f62004-10-01 18:34:30 +0000883 the fwritable-strings option. (David Benbennick)
David Lawrence Ramsey00d77982004-08-07 21:27:37 +0000884 - Add various #ifdefs to fix warnings and compilation problems
885 when compiling with every option manually turned on, including
886 NANO_SMALL. (David Benbennick)
David Lawrence Ramsey6420d442004-08-11 05:13:08 +0000887 - Simplify some of the rcfile and statusbar error messages, and
888 make some of them more consistent. (David Benbennick and DLR)
889 - Change some functions to take const char*'s instead of char*'s
890 where possible. (David Benbennick)
David Lawrence Ramseybb50b302004-08-12 21:43:00 +0000891 - Tweak some #ifdefs around indent_length() and references to
892 fill_flag_used to avoid warnings when compiling with
David Lawrence Ramseydf13e3b2004-08-12 19:48:21 +0000893 --disable-wrapping, --disable-justify, or a combination of the
894 two. (DLR)
David Lawrence Ramseya27bd652004-08-17 05:23:38 +0000895 - Overhaul the routines used to read the rcfiles and history
896 files for efficiency, make them work properly on lines over
897 1023 characters long and on lines containing nulls, and make
898 them properly handle the case where the user's home directory
899 changes in the middle of a session. New functions
900 histfilename() and writehist(); changes to
901 thanks_for_all_the_fish(), load_history(), save_history(), and
902 do_rcfile(). (David Benbennick)
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +0000903- files.c:
David Lawrence Ramsey049e4a52004-08-10 23:05:59 +0000904 get_next_filename()
905 - Tweak for efficiency, and add the ".save" suffix to the file
906 here. (David Benbennick)
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +0000907 close_open_file()
908 - Tweak to no longer rely on the return values of
909 open_(prev|next)file(). (DLR)
David Lawrence Ramseyc8c69d52004-07-03 03:22:23 +0000910 write_file()
911 - For consistency with nano 1.2.x and with other editors, make
912 the mode of newly created files 666 instead of 600 before
David Lawrence Ramseyadd65082004-10-31 14:40:40 +0000913 it's modified by the umask. (DLR, found by Toni Suokas)
David Lawrence Ramseyf7b5d932004-07-05 14:27:29 +0000914 do_writeout()
David Lawrence Ramsey6420d442004-08-11 05:13:08 +0000915 - If we're in restricted mode and the current filename isn't
David Lawrence Ramseyf7b5d932004-07-05 14:27:29 +0000916 blank, we can't change it, so disable tab completion in that
917 case. (DLR)
David Lawrence Ramsey1536f862004-07-24 16:50:20 +0000918 - Fix spacing problem in the "Save Under Different Name"
919 prompt. (DLR)
David Lawrence Ramseya539fce2004-06-29 00:43:56 +0000920- global.c:
921 shortcut_init()
922 - Fix erroneous #ifdef so that nano compiles with
David Lawrence Ramseya27bd652004-08-17 05:23:38 +0000923 --disable-justify again. (DLR, found by Mike Frysinger)
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +0000924 - Change the Cancel shortcut in the file browser to an Exit
925 shortcut, to be more compatible with the current version of
926 Pico. (DLR)
David Lawrence Ramsey576bf332004-07-12 03:10:30 +0000927 thanks_for_all_the_fish()
928 - Delete topwin, edit, and bottomwin. (David Benbennick)
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +0000929- nano.c:
David Lawrence Ramsey049e4a52004-08-10 23:05:59 +0000930 die()
931 - Don't add the ".save" suffix to a saved file here anymore,
932 since get_next_filename() does that now. (David Benbennick)
933 die_save_file()
934 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramseyce62e822004-08-05 22:10:22 +0000935 help_init()
936 - Fix the display of the translated key descriptions "Up" and
937 "Space" under all circumstances, and make the help browser
938 work properly when there are fewer than 24 columns available.
939 (David Benbennick)
David Lawrence Ramsey22fac782004-08-05 15:16:19 +0000940 usage()
941 - Don't translate the option strings for -Z/--restricted.
942 (David Benbennick)
David Lawrence Ramsey9ef3adb2004-07-30 17:30:17 +0000943 do_enter()
944 - Don't treat it as a special case when the user presses Enter
945 on the last line of the screen and smooth scrolling is on, for
946 consistency. (DLR)
David Lawrence Ramsey8aaf0302004-07-27 16:46:35 +0000947 do_alt_speller()
948 - When reloading the newly spell-checked temporary file, call
949 terminal_init() to make sure that all the original terminal
950 settings are restored, as a curses-based alternative spell
951 checker (e.g. aspell) can change them. (DLR)
David Lawrence Ramseyb8c479a2004-07-31 14:10:23 +0000952 quote_length()
953 - Fix problem where quoted justify wouldn't work if HAVE_REGEX_H
954 wasn't set. (David Benbennick)
David Lawrence Ramsey01a6bf42004-07-03 05:23:19 +0000955 do_justify()
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +0000956 - Add allow_respacing flag, used to indicate when we've moved to
David Lawrence Ramsey46938642004-07-03 14:15:58 +0000957 the next line after justifying the current line, and only run
958 the respacing routine when it's true. This keeps the
959 respacing routine from erroneously being run more than once on
960 the same line. (DLR)
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +0000961 - Check for first_par_line's not being NULL and only run the
962 renumbering and cutbuffer-splicing routines depending on that
963 if that's the case. This fixes a segfault occurring when
964 trying to do full justification on a file with no paragraphs
965 (in which case there are no normal lines to renumber and no
966 backed-up lines to be stored in the cutbuffer or spliced back
967 in during unjustify). (DLR)
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +0000968 do_exit()
969 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramseyaea4dab2004-07-13 17:09:24 +0000970 main()
971 - Move the reset_cursor() call to the beginning of the main
972 input loop, and remove the apparently unnecessary wrefresh()
973 call. (David Benbennick)
David Lawrence Ramseyad1fd0d2004-07-27 15:46:58 +0000974 - Call setlocale() outside the ENABLE_NLS #ifdef, since UTF-8
975 support won't work properly if the locale isn't set, whether
976 NLS is enabled or not. (Junichi Uekawa)
David Lawrence Ramsey6b248562004-08-07 22:33:14 +0000977 - Add titlebar() calls before all open_file() calls and remove
978 the titlebar() call after them, so that the titlebar is
David Lawrence Ramsey69a28122004-08-12 04:34:00 +0000979 displayed properly for all file(s) loaded. Also call
980 display_main_list() after adding the first file to open_files,
981 so that "Close" is properly displayed then instead of "Exit".
982 (DLR)
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +0000983- nano.h:
984 - Reassign the key for full justification to Ctrl-U, for
985 compatibility with the current version of Pico. (DLR)
David Lawrence Ramsey819c7f02004-07-30 03:54:34 +0000986 - Remove justbegend enum, as it's no longer needed. (DLR)
David Lawrence Ramseyebd0d7c2004-07-01 18:59:52 +0000987- proto.h:
David Lawrence Ramseyf7080372004-07-08 17:15:10 +0000988 - Change the variables in the prototypes for do_justify(),
989 get_verbatim_kbinput(), and get_mouseinput() to match the ones
990 used in the actual functions. (DLR)
David Lawrence Ramseyedab0cc2004-07-03 03:09:12 +0000991 - Remove unused declaration of temp_opt. (David Benbennick)
David Lawrence Ramsey819c7f02004-07-30 03:54:34 +0000992 - Add missing copy_file() prototype. (David Benbennick)
David Lawrence Ramsey6420d442004-08-11 05:13:08 +0000993 - Move the load_history() and save_history() prototypes up to
994 match their corresponding location in files.c. (DLR)
David Lawrence Ramseydb357a12004-06-29 12:36:25 +0000995- rcfile.c:
David Lawrence Ramsey576bf332004-07-12 03:10:30 +0000996 rcfile_msg()
David Lawrence Ramseya27bd652004-08-17 05:23:38 +0000997 - Removed and replaced with calls to rcfile_error(). (David
998 Benbennick)
David Lawrence Ramsey576bf332004-07-12 03:10:30 +0000999 - Removed the reference to "starting nano" in the statusbar
1000 message, as it may be called when we exit if the history file
1001 can't be saved. (DLR)
David Lawrence Ramseydb357a12004-06-29 12:36:25 +00001002 parse_rcfile()
1003 - Have whitespace display default to off instead of on. (Mike
1004 Frysinger)
David Lawrence Ramseyedab0cc2004-07-03 03:09:12 +00001005 nregcomp()
1006 - Rename the variable flags to eflags so as not to conflict with
1007 the global flags. (DLR)
David Lawrence Ramseyf56cc9e2004-07-29 14:32:17 +00001008- search.c:
1009 do_replace_loop()
1010 - Make sure old_pww is updated to the current value of
1011 placewewant when a new match is found, so that edit_redraw()
1012 will redraw the screen properly when only placewewant changes.
1013 (DLR, found by Mike Frysinger)
David Lawrence Ramsey90625792004-07-30 20:21:34 +00001014 do_replace()
1015 - Instead of using edit_update() to redraw the screen with
1016 edittop at the top, set edittop beforehand and call
1017 edit_refresh(). (DLR)
1018 do_gotoline()
1019 - Use parse_num() to interpret a line entered by the user, and
1020 start the search for a line from current instead of fileage.
1021 (DLR)
David Lawrence Ramsey6420d442004-08-11 05:13:08 +00001022 do_gotopos(), find_node(), free_history()
David Lawrence Ramsey90625792004-07-30 20:21:34 +00001023 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramsey6420d442004-08-11 05:13:08 +00001024 free_history()
1025 - Only include when DEBUG is defined. (David Benbennick)
David Lawrence Ramsey49c3f242004-07-12 16:07:14 +00001026- utils.c:
1027 parse_num()
1028 - New function to parse numeric values, so that we don't have to
1029 duplicate code that calls strtol() all over the place. (David
1030 Benbennick) DLR: Renamed from parse_int() to parse_num() and
1031 converted to use ssize_t instead of int.
David Lawrence Ramsey6420d442004-08-11 05:13:08 +00001032 nstrnicmp()
1033 - Remove code chacking for n's being less than 0 that will never
1034 be run, since n is a size_t and is hence unsigned. (David
1035 Benbennick)
David Lawrence Ramseya27bd652004-08-17 05:23:38 +00001036 ngetdelim(), ngetline()
1037 - New functions equivalent to getdelim() and getline(), which
1038 are both GNU extensions. (DLR, adapted from GNU mailutils
David Lawrence Ramseyb4041d62004-08-17 16:04:48 +00001039 0.5 with minor changes to better integrate with nano and
1040 increase efficiency)
David Lawrence Ramseycff55582004-06-30 12:28:15 +00001041- winio.c:
David Lawrence Ramsey86e851b2004-07-28 20:46:25 +00001042 get_kbinput()
David Lawrence Ramseya27bd652004-08-17 05:23:38 +00001043 - Since the only valid values for escapes are 0, 1, and 2,
David Lawrence Ramsey86e851b2004-07-28 20:46:25 +00001044 convert it to an int. (DLR)
David Lawrence Ramseycff55582004-06-30 12:28:15 +00001045 get_control_kbinput()
1046 - Fix erroneous debugging statement so that nano compiles with
1047 --enable-debug again. (Jon Oberheide)
David Lawrence Ramsey0fb841a2004-07-01 17:04:23 +00001048 nanogetstr()
1049 - Tweak the code to update the edit window just before getting
1050 statusbar input for efficiency, and update bottomwin just
1051 before then too. (David Benbennick)
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +00001052 - Don't delete the statusbar line on UnCut, since the current
1053 version of Pico doesn't. (DLR)
David Lawrence Ramsey86e851b2004-07-28 20:46:25 +00001054 do_cursorpos()
1055 - Add assert to check whether totsize is correct. (David
1056 Benbennick)
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +00001057 line_len()
1058 - Rename to help_line_len() so as not to conflict with the
1059 line_len variable used elsewhere, and move inside the
1060 DISABLE_HELP #ifdef surrounding do_help() since it's only
1061 called in do_help(). (DLR)
1062 do_help()
1063 - Have help_line_len() properly return an int again, since its
1064 value can't be larger than COLS. (DLR)
1065 - Allow the user to exit the help browser via Ctrl-C as well as
1066 Ctrl-X, for consistency with the file browser. (DLR)
David Lawrence Ramsey76fb3ec2004-08-01 16:09:15 +00001067- configure.ac:
1068 - Add AC_PROG_LN_S, so that we can portably create symlinks.
1069 (DLR)
David Lawrence Ramseya27bd652004-08-17 05:23:38 +00001070 - Check for getdelim() and getline(), which are both GNU
1071 extensions. (DLR)
David Lawrence Ramsey7d3817f2004-07-28 13:03:06 +00001072- nanorc.sample:
1073 - Add sample regexes for patch files. (Mike Frysinger)
David Lawrence Ramsey2d140c22004-07-28 13:50:43 +00001074 - Various improvements to the "c-file" regexes. Add double,
1075 typedef, extern, union, unsigned, inline, and long to the
1076 green list. (Mike Frysinger) DLR: Also add signed, short, and
1077 enum to the green list.
David Lawrence Ramsey8bf9ba02004-08-01 22:00:29 +00001078- nano.spec.in:
1079 - Tweak to include all files in %{_bindir} instead of just nano,
1080 so that the "rnano" symlink will be properly packaged. (DLR)
David Lawrence Ramseyd36715e2004-06-28 13:23:37 +00001081
David Lawrence Ramseye1151562004-06-28 13:17:33 +00001082GNU nano 1.3.3 - 2004.06.28
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00001083- General:
1084 - Minor comment cleanups. (DLR)
David Lawrence Ramsey604caf32004-04-19 02:44:13 +00001085 - Convert more ints used as boolean values to use TRUE and
1086 FALSE. (David Benbennick)
David Lawrence Ramsey5520e852004-04-07 00:44:35 +00001087 - Make sure the special control keys are handled the same way
1088 after the window is resized or we come out of suspend mode.
1089 Changes to do_cont() and handle_sigwinch(). (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001090 - Change some instances of ints that can never be negative to
1091 size_t's. (DLR)
David Lawrence Ramsey0a258082004-04-23 18:02:37 +00001092 - Add better explanations for and in the "Terminal breakage"
1093 comments, and handle missing key #ifdefs inside the functions
1094 that use those keys. (DLR)
David Lawrence Ramseyd893fa92004-04-30 04:49:02 +00001095 - Add restricted mode, accessible via the -Z/--restricted
1096 command line option or by invoking nano with any name
1097 beginning with 'r' (e.g. "rnano"). In restricted mode, nano
1098 will not read or write to any file not specified on the
1099 command line, read any nanorc files, allow suspending, or
1100 allow a file to be appended to, prepended to, or saved under a
1101 different name if it already has one. (IO ERROR) DLR: Also
1102 disable backup files and spell checking (since the latter can
1103 leave a pre-spell-checked version of the file in a temporary
1104 directory), use tail() to get the program name so that the
1105 check for its beginning with 'r' will work when a path is
1106 specified, disable toggles that are only useful with options
1107 that are disabled in restricted mode, call nano_disabled_msg()
1108 when trying to read or spell check a file instead of leaving
1109 the shortcuts out of the main list, and instead of acting as
1110 though TEMP_OPT is enabled when exiting with a modified file
1111 (which caused problems if the filename was blank), only allow
1112 a filename to be modified at the writeout prompt if it's blank
1113 beforehand. Changes to do_writeout(), toggle_init(),
1114 shortcut_init(), die_save_file(), and nanogetstr().
1115 - Call nano_disabled_msg() directly from the shortcut list
1116 instead of inside the disabled functions. (David Benbennick)
David Lawrence Ramsey0381c212004-05-01 01:21:38 +00001117 - Clarifications to comments explaining exactly what control
1118 characters and escape sequences are supported. (DLR)
David Lawrence Ramsey5aa39832004-05-05 21:36:50 +00001119 - Disable "Where Is Next" in tiny mode. (DLR)
David Lawrence Ramsey8d3e7f32004-05-13 17:28:03 +00001120 - Added the ability to justify the entire file at once, which
David Lawrence Ramsey91bc83a2004-06-25 01:52:10 +00001121 Pico has via ^W^J. Changes to backup_lines() and
1122 do_justify(); new functions do_justify_void() and
1123 do_full_justify(). (DLR)
David Lawrence Ramsey1cadddd2004-05-17 20:32:51 +00001124 - Modify the justification algorithm to work the same way as in
1125 the current version of Pico, i.e, add a space at the end of
David Lawrence Ramseya9a6ce02004-06-05 22:09:56 +00001126 each line of the justified paragraph except for the last one,
1127 and if there was a space at the end of the last one, remove
David Lawrence Ramsey2b6c3012004-06-10 01:35:02 +00001128 it. Changes to justify_format() and do_justify(). Note that
1129 we can no longer reliably detect the first modified line in a
1130 paragraph, since a line unmodified by justify_format() may get
1131 a space tacked onto the end of it or removed from the end of
1132 it later. The entire original paragraph is now always backed
1133 up, and justify_format() no longer has a non-modifying mode,
1134 so it's now only called in backup_lines(). (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001135 - Wrap the long jump code in NANO_SMALL #ifdefs, since we only
1136 use it if we're resizing the window, which is disabled when
1137 NANO_SMALL is defined. (DLR)
David Lawrence Ramseyc7acf692004-05-22 20:15:20 +00001138 - Add smart home key option, accessible via -A/--smarthome on
1139 the command line, "set smarthome" in the rcfile, and the
1140 Meta-H toggle in the edit window. Smart home works as
1141 follows: When Home is pressed anywhere but at the very
1142 beginning of non-whitespace characters on a line, the cursor
1143 will jump to that beginning (either forwards or backwards).
1144 If the cursor is already at that position, it will jump to the
1145 true beginning of the line. This option is disabled in tiny
1146 mode. Changes to do_home(), nanogetstr(), etc. (DLR;
1147 suggested by Stephan T. Lavavej)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001148 - Minor tweaks to the punctuation in some statusbar messages.
1149 (DLR)
David Lawrence Ramsey48ae9862004-05-28 17:23:33 +00001150 - Overhaul the low-level input routines into main routines that
1151 actually get the input and state machines that interpret the
1152 input. This allows better handling of the input (e.g. ignored
1153 keys are now always ignored instead of just being ignored when
1154 there are no escapes prefixing them) and will make it easier
1155 to port to interfaces that don't have blocking input. New
1156 functions reset_kbinput(), get_translated_kbinput(),
1157 get_control_kbinput(), and get_untranslated_kbinput(); changes
1158 to do_verbatim_input(), handle_sigwinch(), get_kbinput(),
1159 get_ascii_kbinput(), get_escape_seq_kbinput(), and
David Lawrence Ramsey7ea39ef2004-06-04 22:36:42 +00001160 get_verbatim_kbinput(); removal of get_ignored_kbinput() and
1161 get_accepted_kbinput(). (DLR)
David Lawrence Ramsey2ed225f2004-05-28 20:44:09 +00001162 - Overhaul all the movement functions in order to avoid
1163 redundant screen redraws (and regexec()s when color support is
1164 available) whenever possible during ordinary cursor movement
1165 when the text doesn't change. Do the same for moving in
1166 do_char(), do_delete(), do_next_word(), do_prev_word(),
1167 do_search(), do_research(), and do_replace_loop. Changes to
1168 do_first_line(), do_last_line(), do_home(), do_end(),
1169 do_page_up(), do_page_down(), do_up(), do_down(), do_left(),
1170 do_right(), do_delete(), do_backspace(), do_search(),
1171 do_research(), do_replace_loop(), do_find_bracket(), and
1172 edit_refresh(). New functions do_left_void(),
1173 do_right_void(), need_horizontal_update(),
David Lawrence Ramseyc21790d2004-05-30 03:19:52 +00001174 need_vertical_update(), edit_scroll(), and edit_redraw(). All
1175 of these functions but the first two require the previous
David Lawrence Ramseyce1d7652004-06-01 18:32:36 +00001176 versions of current and/or placewewant as parameters, so that
1177 they can redraw properly when the location has changed. Also
David Lawrence Ramseyc21790d2004-05-30 03:19:52 +00001178 rename the int refresh in do_delete() and do_backspace() to
1179 do_refresh so as not to conflict with refresh(). (DLR)
David Lawrence Ramsey32e3b882004-05-29 01:20:17 +00001180 - Add some comments better explaining what is disabled in
1181 restricted mode and why. (DLR)
David Lawrence Ramseyc833d9e2004-05-29 15:36:58 +00001182 - Since KEEP_CUTBUFFER is only used in cut.c, make it a static
1183 variable in cut.c instead of a flag, and unset it in other
1184 files via the new function cutbuffer_reset(). (DLR)
David Lawrence Ramsey483ea322004-05-29 16:25:30 +00001185 - Add the ability to change the characters used to display the
1186 beginning characters of tabs and spaces via the rcfile entry
1187 "whitespace". This is disabled if nanorc support is disabled
David Lawrence Ramseyf521b602004-05-30 03:56:52 +00001188 or if we're in tiny mode. Displaying the new characters is
David Lawrence Ramsey4a80fcf2004-05-30 04:19:27 +00001189 toggled on and off by Meta-P; the default is on. (Mike
David Lawrence Ramseyf521b602004-05-30 03:56:52 +00001190 Frysinger; minor changes and adaptations by DLR)
David Lawrence Ramsey2c62b072004-05-29 16:38:57 +00001191 - Add the ability to change the closing punctuation and closing
1192 brackets used to control justification, via the rcfile
1193 entries "punct" and "brackets". (DLR)
Jordi Mallach0675c2f2004-06-01 15:29:31 +00001194 - Translation updates (see po/ChangeLog for details).
David Lawrence Ramsey85529b32004-06-22 15:38:47 +00001195 - Make the former flag same_line_wrap use TRUE and FALSE
1196 instead of 1 and 0. (DLR)
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00001197- files.c:
1198 add_open_file()
1199 - Rearrange the NANO_SMALL #ifdef so that the code to set the
1200 MODIFIED flag in open_files->flags is included only once.
1201 (DLR)
David Lawrence Ramsey2f0d03b2004-05-28 00:15:28 +00001202 write_marked()
1203 - Call write_file() with nonamechange set to TRUE so that we
1204 don't erroneously change the current filename when writing a
1205 selection, and don't take a nonamechange parameter anymore
1206 since we don't use it. (DLR)
David Lawrence Ramseyd893fa92004-04-30 04:49:02 +00001207 do_writeout()
1208 - Refactor so that no recursion is needed if we try to exit with
1209 a modified file that has no name when TEMP_OPT is set. (DLR)
David Lawrence Ramsey28260472004-05-30 03:23:39 +00001210 - Add spaces to the ends of the "Overwrite" and "Different Name"
1211 prompts, for consistency. (DLR)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001212 do_browser()
1213 - Call check_statblank() instead of blanking the statusbar
1214 unconditionally, for consistency. (David Benbennick)
David Lawrence Ramseybe265612004-05-29 20:38:08 +00001215- global.c:
1216 shortcut_init()
1217 - Don't assign any handler functions to the help browser keys,
1218 as the help browser handles them all internally. (David
1219 Benbennick)
David Lawrence Ramsey4be15f02004-05-23 21:33:23 +00001220- move.c:
1221 do_first_line(), do_last_line()
1222 - Move these functions here from winio.c. (DLR)
David Lawrence Ramsey604caf32004-04-19 02:44:13 +00001223- nano.c:
David Lawrence Ramseyda141062004-05-25 19:41:11 +00001224 finish()
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001225 - Call blank_statusbar() and blank_bottombars() to blank out
1226 the statusbar and shortcut list in bottomwin. (DLR)
David Lawrence Ramseyda141062004-05-25 19:41:11 +00001227 - Since all of the calls to finish() use 0 for the value of
1228 sigage, and the return value of finish() is never used, make
1229 it accept and return void. (David Benbennick)
David Lawrence Ramsey2f0d03b2004-05-28 00:15:28 +00001230 die_save_file()
1231 - Call write_file() with nonamechange set to TRUE since we don't
1232 need to change the current filename if we're writing emergency
1233 backup files. (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001234 do_early_abort()
1235 - Removed, as it's no longer called anywhere. (David Benbennick)
David Lawrence Ramsey45251372004-06-09 08:36:46 +00001236 usage()
1237 - Add missing "[dir]" and two missing _()'s around the strings
1238 describing the -E [dir]/--backupdir=[dir]" option. (CHAO
1239 Wei-Lun)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001240 open_pipe()
1241 - Call enable_signals() at the beginning and disable_signals()
1242 at the end, so that we get a SIGINT when Ctrl-C is pressed
1243 during wait() and can then call cancel_fork() properly. (DLR)
David Lawrence Ramsey228148b2004-05-27 20:09:52 +00001244 do_delete(), do_enter()
David Lawrence Ramsey604caf32004-04-19 02:44:13 +00001245 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramsey1b525e92004-05-24 02:35:02 +00001246 do_prev_word()
1247 - Switch the last test (current != NULL or not) around to match
1248 the order of the same test in do_next_word() (current ==
1249 NULL). The results are the same either way. (DLR)
David Lawrence Ramsey9a527f52004-05-31 14:58:59 +00001250 do_wrap()
1251 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001252 do_spell()
1253 - Tweak for efficiency. (David Benbennick)
1254 - Change the statusbar entries used in cases of failure so that
1255 they all display the actual error that occurred. (David
1256 Benbennick and DLR)
1257 do_int_speller(), do_alt_speller()
1258 - Make these functions return const char*'s instead of char*'s.
1259 (David Benbennick)
David Lawrence Ramseyd4693cb2004-05-14 01:17:25 +00001260 justify_format()
1261 - Remove redundant assignment. (DLR)
David Lawrence Ramsey1cadddd2004-05-17 20:32:51 +00001262 do_para_search()
1263 - Remove unneeded edit_update() calls. (David Benbennick)
David Lawrence Ramsey2e3aeae2004-05-24 05:52:35 +00001264 - Convert to use an enum to specify the search type: JUSTIFY,
1265 BEGIN, or END. (DLR)
David Lawrence Ramseydbde9d72004-06-27 00:54:08 +00001266 - Refactor to properly do searches for beginnings of paragraphs
1267 in the same way as searches for endings of paragraphs, without
1268 needing the old (and somewhat inaccurate) recursive approach.
1269 (DLR)
David Lawrence Ramsey1cadddd2004-05-17 20:32:51 +00001270 do_justify()
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001271 - Remove unneeded edit_update() calls, and add a few minor
1272 efficiency tweaks. (David Benbennick)
David Lawrence Ramsey7097d7b2004-05-17 16:11:18 +00001273 - Simplify an if statement. (DLR)
David Lawrence Ramseyd893fa92004-04-30 04:49:02 +00001274 do_exit()
1275 - Refactor so that no recursion is needed if we try to exit with
1276 a modified file that has no name when TEMP_OPT is set. (DLR)
David Lawrence Ramsey0a258082004-04-23 18:02:37 +00001277 print_numlock_warning()
1278 - Removed, as it's no longer needed and was never called
1279 anywhere after the input overhaul. (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001280 signal_init()
1281 - Don't use termios and _POSIX_VDISABLE to disable keys anymore,
1282 as there's no real equivalent of it when the latter isn't
1283 defined. (DLR)
1284 handle_sigwinch()
1285 - Call resetty() to get the original terminal settings back.
1286 (DLR)
1287 - Rework so that nano properly redraws the screen on systems
1288 that don't have resizeterm() and/or wresize(). In curses, we
1289 now leave and immediately reenter curses mode via endwin() and
1290 refresh(), and then reinitialize all windows via
1291 window_init(). In slang, the above routine will only work if
1292 the resize made the window smaller, so we now leave and
1293 immediately reenter screen management mode via
1294 SLsmg_reset_smg() and SLsmg_init_smg(), and then reinitialize
1295 all windows via window_init(). (DLR, adapted from code in
1296 Minimum Profit 3.3.0 and mutt 1.4.2.1, respectively)
David Lawrence Ramseyda141062004-05-25 19:41:11 +00001297 do_toggle()
1298 - Call blank_statusbar() and blank_bottombars() to blank out
1299 the statusbar and shortcut list in bottomwin. (DLR)
David Lawrence Ramseyd4693cb2004-05-14 01:17:25 +00001300 do_verbatim_input()
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001301 - If PRESERVE is set, disable flow control characters before
1302 getting input and reenable them after getting input. (DLR)
1303 disable_signals(), enable_signals(), disable_flow_control(),
1304 enable_flow_control()
1305 - New functions that allow more fine-grained control of the
1306 terminal: disabling and enabling signals without having to use
1307 _POSIX_VDISABLE and disabling and enabling flow control
1308 characters. (DLR)
David Lawrence Ramsey97133f52004-05-14 17:39:19 +00001309 main()
1310 - Don't open the first file in quiet mode, since if we do, an
1311 error message won't be shown if it's unreadable. (DLR; found
1312 by Jaap Eldering)
David Lawrence Ramsey1d43db82004-05-14 17:57:00 +00001313 - If we've specified multiple files on the command line and
1314 multibuffer support is compiled in, turn multibuffer mode on
1315 when reading those files and turn it off afterward if it was
1316 off before. This allows us to open multiple files without
1317 having to turn multibuffer mode on at the command line or in
1318 the nanorc first, both of which are unintuitive. Multibuffer
1319 mode should only affect how the "Read File" command behaves
1320 anyway. (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001321 - Remove the disabling of implementation-defined input
David Lawrence Ramseye608f942004-05-19 16:04:27 +00001322 processing, as cbreak mode appears to turn it off anyway.
1323 (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001324 - After noecho(), call disable_signals() and
1325 disable_flow_control(), the latter only if PRESERVE is not
1326 set. (DLR)
1327 - Move the savetty() call down from just after initscr() to just
1328 after the terminal is properly set up, so that we can restore
1329 it easily after a resize. (DLR)
David Lawrence Ramsey570ea892004-05-28 21:02:32 +00001330 - Add missing cast to char when calling do_char(). (DLR)
David Lawrence Ramseydd7cc722004-05-28 23:45:25 +00001331 - Don't initialize the backup directory if we're in restricted
1332 mode, since backups are disabled then. (DLR)
David Lawrence Ramsey3aedb362004-05-28 22:42:41 +00001333 - Check $SPELL for an alternative spell checker if we didn't get
David Lawrence Ramseydd7cc722004-05-28 23:45:25 +00001334 one from the command line and/or rcfile, as Pico does. Don't
1335 do this if we're in restricted mode, since spell checking is
1336 disabled then. (DLR)
David Lawrence Ramsey74af3a72004-06-12 21:03:14 +00001337 - Add some cleanups for greater readability, and remove a few
1338 bits of redundant code. (DLR and David Benbennick)
David Lawrence Ramsey4b741b92004-04-30 19:40:03 +00001339- nano.h:
1340 - Since REGEXP_COMPILED is only used in search.c, convert it
1341 from a flag to a static int there. (DLR)
David Lawrence Ramsey2e3aeae2004-05-24 05:52:35 +00001342 - Add justbegend enum, used in do_para_search(). (DLR)
David Lawrence Ramsey2ed225f2004-05-28 20:44:09 +00001343 - Add updown enum, used in edit_scroll(). (DLR)
David Lawrence Ramseyf38230a2004-04-21 22:25:16 +00001344- proto.h:
David Lawrence Ramseyd62b6342004-04-28 21:49:30 +00001345 - Remove unused xpt() and add_marked_sameline() prototypes.
1346 (DLR)
David Lawrence Ramsey14bf8032004-05-22 20:19:15 +00001347 - Add missing #ifdefs around the nstristr() and get_mouseinput()
1348 prototypes. (DLR)
David Lawrence Ramseyf38230a2004-04-21 22:25:16 +00001349- rcfile.c:
1350 - Move "rebinddelete" up in the list of options so that the list
1351 is in alphabetical order. (DLR)
David Lawrence Ramseyb6a4b102004-05-29 17:20:01 +00001352 - Cosmetic reorganization of the order in which some options are
1353 interpreted. (DLR)
David Lawrence Ramsey8d911992004-05-29 17:05:52 +00001354 - Explicitly check for rcopts[i].name's being "tabsize" to avoid
1355 a spurious error under some circumstances about tabsize's
1356 being 0 when there's no tabsize entry in the rcfile. (DLR)
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00001357- search.c:
David Lawrence Ramsey4b741b92004-04-30 19:40:03 +00001358 regexp_init()
1359 - Overhaul for efficiency. Also check if regcomp() failed, and
1360 if so, display "Bad regex" message on the statusbar, so that
1361 we don't have to display it separately after every call to
1362 this function. (David Benbennick)
1363 search_init()
1364 - Only check whether USE_REGEXP is set, and hence whether or not
1365 to display "[Regexp]" on the search prompt, if HAVE_REGEX_H is
1366 defined. (DLR)
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00001367 not_found_msg()
1368 - Convert to properly handle strings generated by
1369 display_string() that have been used in the search prompt
1370 since 1.3.0. (David Benbennick)
David Lawrence Ramsey483ea322004-05-29 16:25:30 +00001371 - Use display_string() directly to display the text that we
1372 didn't find instead of relying on statusbar() to do it
1373 indirectly, since the latter won't display its text with the
1374 user-specified whitespace characters and the former will.
1375 (DLR)
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00001376- utils.c:
David Lawrence Ramsey9830d752004-05-13 17:19:54 +00001377 is_blank_char()
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001378 - New function used as an isblank() equivalent, since isblank()
1379 is a GNU extension. (DLR)
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00001380 nstricmp(), nstrnicmp()
1381 - Add extra blank lines for greater readability, and remove
1382 unneeded test for n's being less than zero (since it's already
1383 been tested for being greater than zero or equal to zero at
1384 that point) from nstrnicmp(). (DLR)
1385 stristr()
1386 - Rename to nstristr() to avoid a potential conflict with an
1387 existing stristr() function, and move up to just after
1388 nstrnicmp(). (DLR) David Benbennick: Tweak for efficiency.
David Lawrence Ramsey9830d752004-05-13 17:19:54 +00001389 - Include and use only when strcasestr() is unavailable, since
1390 strcasestr() is a GNU extension. (DLR)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001391 nstrnlen()
1392 - New function used as a strnlen() equivalent, since strnlen()
1393 is a GNU extension. (DLR)
David Lawrence Ramseye1e7cb22004-04-15 06:15:55 +00001394- winio.c:
1395 get_verbatim_kbinput()
1396 - Refactor the output in the DEBUG #ifdef. It didn't work
1397 properly ever since this function was changed to use an int*
1398 instead of a char*. (DLR)
David Lawrence Ramsey805547f2004-04-22 03:41:04 +00001399 - When reading characters from input, properly reallocate
1400 verbatim_kbinput via (int*)nrealloc() instead of an uncast
1401 realloc(). (DLR)
David Lawrence Ramsey0a258082004-04-23 18:02:37 +00001402 get_accepted_kbinput()
1403 - Add proper support for the keypad values and escape sequences
David Lawrence Ramsey16eb5182004-06-03 20:26:12 +00001404 generated by the NumLock glitch and by certain keys on the
1405 numeric keypad. (DLR)
David Lawrence Ramseyd8974452004-06-04 22:28:55 +00001406 - Add an extra break and move an #endif down to fix a potential
1407 problem when NANO_SMALL is defined or KEY_RESIZE isn't, and
1408 when PDCURSES isn't defined. (DLR)
David Lawrence Ramsey805547f2004-04-22 03:41:04 +00001409 get_escape_seq_kbinput()
David Lawrence Ramsey0a258082004-04-23 18:02:37 +00001410 - Add proper support for the keypad values and escape sequences
1411 generated by the NumLock glitch. (DLR)
David Lawrence Ramseye65e6392004-06-04 18:18:17 +00001412 - Add ignore_seq parameter. If a sequence is recognized but
1413 ignored, we will now return ERR and set ignore_seq to TRUE, and
1414 if a sequence is unrecognized, we will now return ERR and set
1415 ignore_seq to FALSE. Also, here and elsewhere, don't bother
1416 assigning ERR to retval when that's its initial value. (DLR)
David Lawrence Ramsey973a96b2004-06-22 14:30:18 +00001417 - Fix problem where the escape sequence for F3 on the FreeBSD
1418 console would not be interpreted properly. (DLR)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001419 get_mouseinput()
1420 - Don't ungetch() anything if there's no control key and no meta
1421 key defined in the shortcut we clicked. (DLR)
David Lawrence Ramsey8d3e7f32004-05-13 17:28:03 +00001422 bottombars()
1423 - Don't display any more than MAIN_VISIBLE shortcuts. Adding
1424 justification of the entire file above made the search
1425 shortcut list longer than this and hence made the shortcuts in
1426 it so short as to be almost incomprehensible. (DLR)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001427 - Tweak for efficiency and to better handle shorter screen
1428 widths. (David Benbennick)
1429 - Restructure the if block used for the sentinel key values,
1430 dynamically allocate keystr based on the number of columns
1431 available, and make sure we can display shortcuts even when
1432 the number of available columns is too short for any complete
1433 one. (DLR)
1434 onekey()
1435 - Don't bother padding the displayed shortcuts with spaces.
1436 (David Benbennick)
1437 - Convert len to a size_t. (DLR)
David Lawrence Ramseye5b2f832004-04-29 06:30:36 +00001438 edit_add()
1439 - Minor cosmetic reformatting. Also remove unused int
1440 searched_later_lines. (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001441 blank_bottomwin()
1442 - Removed, as it does the same thing as blank_bottombars().
1443 (David Benbennick)
1444 blank_titlebar()
1445 - New function used to blank the titlebar in topwin. (DLR)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001446 blank_statusbar_refresh()
1447 - Removed, as it's now unnecessary. (David Benbennick)
1448 titlebar()
1449 - Overhaul to use display_string() to display the filename, and
1450 to better handle shorter screen widths. Also remove
1451 now-unneeded wrefresh(topwin) calls. (David Benbennick)
David Lawrence Ramsey8328fc22004-05-25 23:34:43 +00001452 DLR: Tweak to reserve enough space for "Modified", plus
1453 padding, in all cases, to make sure that the version message
1454 takes up no more more than 1/3 of the available width, minus
1455 padding, and to include a reset_cursor() call so that the
1456 cursor is always in the right place.
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001457 bottombars()
1458 - Call blank_bottombars() instead of blank_bottomwin(). (David
1459 Benbennick)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001460 check_statblank()
1461 - Overhaul for efficiency, (David Benbennick) DLR: Add
1462 reset_cursor() call to ensure that the cursor is always in the
1463 right place.
David Lawrence Ramsey228148b2004-05-27 20:09:52 +00001464 update_cursor()
1465 - Removed, as it's no longer called anywhere. (David Benbennick)
David Lawrence Ramsey07d3feb2004-04-16 05:15:11 +00001466 edit_refresh()
1467 - Remove apparently unneeded leaveok() calls. (David Benbennick)
David Lawrence Ramseyc279a632004-05-25 01:49:58 +00001468 edit_refresh_clearok(), center_cursor()
1469 - Removed, as they are now unnecessary. (David Benbennick)
David Lawrence Ramseyd12fd4b2004-05-28 15:05:56 +00001470 statusq()
1471 - Don't allow "Full Justify" when in view mode. (DLR)
David Lawrence Ramsey4b741b92004-04-30 19:40:03 +00001472 statusbar()
1473 - Call reset_cursor() just before refreshing the edit window, so
1474 that slang and other non-ncurses versions of curses will
1475 properly place the cursor back in the edit window instead of
1476 leaving it at the end of the statusbar. (DLR)
David Lawrence Ramseybe265612004-05-29 20:38:08 +00001477 do_help()
1478 - Overhaul for efficiency, and allow scrolling through the help
1479 via the arrow keys as well as the paging keys. (David
David Lawrence Ramseyae064bf2004-06-01 20:38:00 +00001480 Benbennick) DLR: Revert the use of the return value of
1481 curs_set() to restore the previous state of the cursor, as
1482 some curses implementations (including slang) get it wrong,
1483 and explicitly turn the cursor off where needed instead.
David Lawrence Ramseydc35cb82004-04-24 18:30:23 +00001484 do_credits()
1485 - Use napms() instead of nanosleep(), as it does the same thing
1486 (aside from taking an argument in milliseconds instead of
1487 microseconds) and curses includes it. (DLR)
David Lawrence Ramsey837a02b2004-05-18 15:23:31 +00001488 - Overhaul for efficiency, and make sure the xlcredits
1489 translations are done after initialization in order to avoid
1490 an error when compiling with -pedantic. (David Benbennick)
Jordi Mallach21ad7622004-06-25 22:43:09 +00001491 do_yesno()
1492 - Add a comment to encourage translators to use both native and
1493 English shortcuts, if possible. (Jordi)
David Lawrence Ramsey9830d752004-05-13 17:19:54 +00001494- configure.ac:
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00001495 - Add tests for isblank(), strcasestr(), and strnlen(), and
1496 define _GNU_SOURCE so that the tests work properly. Increase
1497 the minimum required autoconf version to 2.54. (DLR)
David Lawrence Ramsey1122c852004-05-13 17:46:57 +00001498 - Reformat the test programs so that they aren't packed into
1499 fewer lines than usual, so as to make them easier to read, and
1500 remove unnecessary inclusion of stdio.h in the slang test
1501 programs. (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00001502 - Remove the checks for resizeterm() and wresize(), as they're
1503 no longer needed. (DLR)
Jordi Mallachd3507272004-06-25 22:34:18 +00001504- config.rpath:
1505 - Replace usage of egrep with grep -E, avoiding a XSI:ism (David
1506 Weinehall)
David Lawrence Ramsey2c4c7882004-05-07 18:00:20 +00001507- faq.html:
1508 - Removed question about the NumLock glitch, as it's no longer
1509 needed. (DLR)
David Lawrence Ramseyd893fa92004-04-30 04:49:02 +00001510- nano.1:
1511 - Document restricted mode. (IO ERROR) DLR: Add minor
1512 modifications to account for the above changes.
David Lawrence Ramseyc7acf692004-05-22 20:15:20 +00001513 - Document the smart home key option. (DLR)
David Lawrence Ramsey498e13d2004-06-01 22:56:34 +00001514 - Document the use of the SPELL environment variable. (DLR)
David Lawrence Ramsey12e066f2004-05-29 14:13:02 +00001515- nanorc.5:
1516 - Document the smart home key option. (DLR)
David Lawrence Ramsey483ea322004-05-29 16:25:30 +00001517 - Document the whitespace option. (DLR, adapted from
1518 documentation by Mike Frysinger)
David Lawrence Ramsey2c62b072004-05-29 16:38:57 +00001519 - Document the punct and brackets options. (DLR)
David Lawrence Ramsey9be546b2004-04-20 19:19:21 +00001520- nano.texi:
David Lawrence Ramsey2c4c7882004-05-07 18:00:20 +00001521 - Fix toggle inaccuracies: Meta-L now toggles line wrapping, and
1522 Meta-< and Meta-> aren't toggles. (DLR)
David Lawrence Ramseyd893fa92004-04-30 04:49:02 +00001523 - Document restricted mode. (IO ERROR) DLR: Add minor
1524 modifications to account for the above changes.
David Lawrence Ramsey2c4c7882004-05-07 18:00:20 +00001525 - Fix version number inaccuracies: Search/replace history and
1526 sorting/uniqueness filtering for the internal spell chacker
1527 were added in nano 1.1.99pre1. (DLR)
David Lawrence Ramseyc7acf692004-05-22 20:15:20 +00001528 - Document the smart home key option. (DLR)
David Lawrence Ramsey498e13d2004-06-01 22:56:34 +00001529 - Document the use of the SPELL environment variable. (DLR)
David Lawrence Ramsey71d0a1f2004-05-08 00:06:15 +00001530- nanorc.sample:
1531 - Add missing mouse entry, and update the nanorc sample regexes
1532 to account for the backupdir and mouse options. (DLR)
David Lawrence Ramseyc7acf692004-05-22 20:15:20 +00001533 - Add smarthome description. (DLR)
David Lawrence Ramsey483ea322004-05-29 16:25:30 +00001534 - Document the whitespace option. (DLR, adapted from
1535 documentation by Mike Frysinger)
David Lawrence Ramsey9830d752004-05-13 17:19:54 +00001536- README.CVS:
1537 - Increase the minimum required autoconf version to 2.54, and
1538 change the recommended automake version 1.7 to the minimum
1539 required automake version. Note that autoconf 2.54 will
1540 technically also work with automake 1.6c, but that is a CVS
1541 version as opposed to a stable release version, and automake
1542 1.7 requires at least autoconf 2.54 in any case. (DLR)
David Lawrence Ramsey8d3e7f32004-05-13 17:28:03 +00001543- TODO:
1544 - Added entry for justifying the entire file at once, since Pico
1545 can do it, and with "[DONE]" since it's already been
1546 implemented. (DLR)
David Lawrence Ramseybefb25a2004-03-31 18:53:07 +00001547
David Lawrence Ramseyf70f0cf2004-03-31 18:42:52 +00001548GNU nano 1.3.2 - 2004.03.31
David Lawrence Ramsey760a2dc2004-01-14 06:38:00 +00001549- General:
1550 - Change instances in the code that refresh the entire edit
1551 window when color support is enabled (in order to properly
1552 handle multi-line color regexes) to only do so when
1553 it's necessary, i.e, when COLOR_SYNTAX is set. (DLR)
David Lawrence Ramseyc2c5a512004-01-23 19:26:17 +00001554 - Minor cosmetic tweaks to the code involving direction keys.
1555 NANO_UP_KEY and NANO_DOWN_KEY are now NANO_PREVLINE_KEY and
1556 NANO_NEXTLINE_KEY, and the help messages for them have been
1557 changed accordingly. Also remove extraneous references to
1558 NANO_DOWN_KEY in the search history shortcut entries. (DLR)
David Lawrence Ramseyc91696e2004-01-29 04:16:23 +00001559 - Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the
1560 shortcut list, and tweak the unjustify routine to use it.
David Lawrence Ramseyd7f5ad92004-03-04 19:30:53 +00001561 Also add NANO_FIRSTLINE_FKEY and NANO_LASTLINE_FKEY, and tweak
1562 the statusbar input routines to handle them and NANO_HELP_FKEY
1563 properly. (DLR)
David Lawrence Ramsey369732f2004-02-16 20:32:40 +00001564 - Block SIGWINCH after setting up its handler, and only unblock
1565 and handle it when we're in a stable state, i.e, when we're
1566 waiting for input from the user. New function
1567 allow_pending_sigwinch(); changes to signal_init(),
1568 get_kbinput(), and get_verbatim_kbinput(). (DLR)
David Lawrence Ramsey281e0562004-02-27 18:54:04 +00001569 - Decouple the paragraph searching code and the justifying code.
1570 Removed function do_para_operation(); new function
1571 do_para_search(); changes to do_justify(). (DLR)
David Lawrence Ramsey04e42a62004-02-28 16:24:31 +00001572 - Add -E/--backupdir option. When used with -B/--backup, backup
1573 files will be saved in the specified directory with their
1574 canonical pathnames encoded in their names (all '/'s replaced
1575 with '!'s). Changes to write_file(). (Martin Ehmsen) DLR:
1576 Add function init_backup_dir() to handle relative paths
1577 correctly, use get_full_path() to get the canonical pathname,
1578 and use tail() to get the filename if get_full_path() fails.
David Lawrence Ramseya619ae62004-03-04 06:33:52 +00001579 - Port to the Tandem NonStop Kernel (nsr-tandem-nsk). (Tom
1580 Bates; minor tweaks by DLR)
David Lawrence Ramsey6aec4b82004-03-15 20:26:30 +00001581 - Change some instances of boolean 0 and 1 to TRUE and FALSE.
1582 (David Benbennick)
1583 - Fix memory corruption problem occurring when answer is used as
1584 the value of def; if the realloc() of answer leads to its
1585 pointing to a different memory block, there will be a segfault
David Lawrence Ramsey79475442004-03-19 20:47:57 +00001586 when the value of def is copied into it via strcpy().
David Lawrence Ramseyb8823402004-04-27 21:06:11 +00001587 (bort@alltel.net, Christian Weisgerber, David Benbennick, and
David Lawrence Ramsey79475442004-03-19 20:47:57 +00001588 DLR)
David Lawrence Ramseyb9775152004-03-19 02:15:42 +00001589 - Remove the last editbot references, to avoid any potential
1590 segfaults related to them. Also remove fix_editbot(), as it's
1591 no longer needed. (David Benbennick)
David Lawrence Ramsey1576d532004-03-19 21:46:34 +00001592 - Rename several variables to make their use clearer and to
1593 avoid conflicts. (DLR)
David Lawrence Ramseyce991bb2004-03-29 18:36:39 +00001594 - Set the input mode before turning the keypad on. (DLR)
David Lawrence Ramsey44e7f822004-03-30 04:17:10 +00001595- cut.c:
1596 add_to_cutbuffer()
1597 - Add parameter allow_concat to determine whether we're allowed
1598 to concatenate strings in the cutbuffer. (DLR)
David Lawrence Ramsey35961c42004-01-23 19:34:03 +00001599- files.c:
David Lawrence Ramseyda352512004-03-05 20:04:44 +00001600 do_insertfile()
1601 - Wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef.
1602 (DLR)
David Lawrence Ramseyc6908f22004-03-11 02:20:25 +00001603 - Save the already-typed answer when switching from "Insert
1604 File" to "Execute Command" mode via Ctrl-X, just in case we
1605 started typing a command before switching. (DLR)
David Lawrence Ramseycb34a672004-02-06 21:20:05 +00001606 add_open_files()
1607 - Make the saving of marked status in open_files->file_flags
1608 work properly again; a tweak to the ISSET() macro in 1.3.0
1609 to make it only return 0 or 1 broke it. (DLR)
David Lawrence Ramsey35961c42004-01-23 19:34:03 +00001610 write_marked()
1611 - New function used to write the current marked selection to a
1612 file, split out from do_writeout(). (DLR)
David Lawrence Ramsey6aec4b82004-03-15 20:26:30 +00001613 do_writeout()
1614 - Tweak for efficiency. (David Benbennick) DLR: Modify to have
1615 the current answer preserved between toggles again.
David Lawrence Ramsey3af54d32004-02-25 04:43:27 +00001616 filestat()
1617 - Removed, as it is only called in one place and is
1618 redundant. (DLR)
1619 do_browser()
1620 - Replace the filestat() call with an equivalent stat() call.
1621 (DLR)
David Lawrence Ramsey00c20542004-02-01 06:27:59 +00001622- global.c:
1623 shortcut_init()
1624 - Only allow verbatim input when we're not in view mode. (DLR)
David Lawrence Ramseyba7b1682004-02-29 20:07:14 +00001625 - Set the associated function for unjustify to 0 instead of
1626 do_uncut_text(), since it's currently unused. (DLR)
David Lawrence Ramseyc53a92d2004-01-12 03:28:06 +00001627- nano.c:
David Lawrence Ramseya7c93642004-02-25 03:19:29 +00001628 usage()
1629 - Clarify the description for -T/--tabsize a bit. (DLR)
David Lawrence Ramseyd03216a2004-01-28 18:21:21 +00001630 do_verbatim_input()
1631 - Remove the now-unneeded code to disable XON, XOFF, and
1632 suspend, since we now go into raw mode in
1633 get_verbatim_kbinput() and bypass them. (DLR)
David Lawrence Ramseybf3c93e2004-03-13 19:42:58 +00001634 do_next_word()
1635 - Simplify and remove references to editbot so as to avoid a
1636 segfault. (David Benbennick)
David Lawrence Ramseyb6aa4282004-03-14 01:42:17 +00001637 do_prev_word()
1638 - Simplify and remove references to edittop. (David Benbennick)
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00001639 do_int_speller(), do_alt_speller(), do_spell()
David Lawrence Ramsey35961c42004-01-23 19:34:03 +00001640 - Modify to write only the current selection from a file to the
1641 temporary file used for spell checking when the mark is on,
1642 and add a few miscellaneous cosmetic cleanups. (DLR)
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00001643 do_int_spell_fix()
1644 - Store the value of current_x in a size_t instead of an int,
1645 and add a few minor efficiency tweaks. (David Benbennick)
1646 - Remove comment explaining why findnextstr() is called with
1647 bracket_mode set to TRUE even though we aren't doing a bracket
1648 search, since after the above efficiency tweaks, it's now more
1649 accurately called can_display_wrap. (DLR)
David Lawrence Ramsey44e7f822004-03-30 04:17:10 +00001650 indent_length()
1651 - Remove unneeded #ifdef. (David Benbennick)
1652 do_justify()
1653 - Remove references to the now-unneeded JUSTIFY_MODE flag. (DLR)
David Lawrence Ramsey2897d2b2004-01-26 20:56:20 +00001654 signal_init()
1655 - Trap SIGQUIT in addition to turning it off via termios in
1656 main(). This is consistent with SIGINT, which we trap here
1657 and turn off via termios in main(), as well as with the
1658 associated comment. (DLR)
David Lawrence Ramsey273d2ce2004-01-30 04:20:28 +00001659 handle_sigwinch()
David Lawrence Ramsey53809442004-01-30 04:29:52 +00001660 - Set keypad() to TRUE and switch to cbreak mode just before
1661 calling siglongjmp(), in case we resized during verbatim
1662 input. (DLR)
David Lawrence Ramseyc53a92d2004-01-12 03:28:06 +00001663 main()
1664 - Move the call to raw() on systems that don't define
1665 _POSIX_VDISABLE outside the main input/output loop, as it
David Lawrence Ramseyd03216a2004-01-28 18:21:21 +00001666 doesn't need to be called every time through the loop. Call it
1667 instead of cbreak() on such systems, as it overrides cbreak()
1668 anyway. (DLR)
David Lawrence Ramsey369732f2004-02-16 20:32:40 +00001669 - Add more descriptive comments explaining the termios and
1670 curses setup routines, and turn the keypad on before setting
1671 the input mode. (DLR)
David Lawrence Ramseyaca5d042004-03-19 01:35:57 +00001672 - Remove stray HAVE_GETOPT_LONG #ifdefs. (DLR)
David Lawrence Ramseyce991bb2004-03-29 18:36:39 +00001673 - Don't call keypad() before initializing the windows it needs
1674 via window_init().
David Lawrence Ramsey24ae56c2004-02-27 03:06:28 +00001675- nano.h:
1676 - Move the NANO_H include guard up before the first #include.
1677 (DLR)
David Lawrence Ramsey44e7f822004-03-30 04:17:10 +00001678 - Remove the now-unneeded JUSTIFY_MODE flag. (DLR)
David Lawrence Ramsey41151ac2004-01-15 05:47:03 +00001679- search.c:
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00001680 regexp_cleanup()
1681 - Only do anything if REGEXP_COMPILED is set. (David Benbennick)
1682 search_abort()
1683 - Only test if the mark is set when NANO_SMALL isn't defined.
1684 (David Benbennick)
1685 search_init()
1686 - Add some more comments and comment tweaks, don't indicate that
1687 the search has been canceled when we enter a blank string in
1688 replace mode, only call regexp_init() when USE_REGEXP is set,
1689 and return -1 instead of -3 since a canceled search and a
1690 canceled replace should be mostly equivalent. (David
1691 Benbennick) DLR: Tweak to use the old behavior if we try to
1692 search for invalid regexes.
1693 findnextstr()
1694 - Refactor to use a loop invariant, and tweak for greater
1695 efficiency and simplicity. Also modify so that all searches
1696 start one character after (or before, if we're doing a
1697 backwards search) the current one, as opposed to all searches
1698 except for regex searches for "^" and the like, for
1699 consistency with other searches. (David Benbennick)
1700 do_search()
1701 - Handle search_init()'s no longer returning -3 above. (David
1702 Benbennick)
1703 - Port the code from do_replace_loop() to skip the current line
1704 if we're searching for a regex with "^" and/or "$" in it and
1705 end up on the same line to this function. This fixes a
1706 problem where doing a forward search for "^" on a file with
1707 more than one line would erroneously stop at the magicline and
1708 indicate that that was the only occurrence. (DLR)
1709 do_research()
1710 - Port David Benbennick's efficiency tweaks and the
1711 aforementioned code ported from do_replace_loop() to this
1712 function. (DLR)
1713 replace_regexp()
1714 - Completely refactor for increased efficiency. (David
1715 Benbennick)
1716 replace_line()
1717 - Use a char* parameter for the replacement string instead of
1718 last_search, and add minor efficiency tweaks. (David
1719 Benbennick)
David Lawrence Ramsey41151ac2004-01-15 05:47:03 +00001720 do_replace_loop()
1721 - Fix segfault when doing a regex replace of a string that
1722 matches inside a line (e.g. replace the "b" in "abc" with
1723 anything). (David Benbennick)
David Lawrence Ramsey1122c852004-05-13 17:46:57 +00001724 - If the mark is on at the beginning of the function, turn it
1725 off and turn it back on just before returning. Also overhaul
1726 to rely on the return value of findnextstr() instead of a loop
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00001727 invariant, to not need to take an int* parameter, and store
1728 the beginning x-coordinate in a size_t instead of an int.
1729 (David Benbennick)
1730 do_replace()
1731 - Handle search_init()'s no longer returning -3 above, and add
1732 efficiency tweaks. (David Benbennick) DLR: Tweak to follow
1733 the old behavior of adding non-blank strings entered at the
1734 "Replace: " prompt to the search history. (DLR)
David Lawrence Ramseyc6908f22004-03-11 02:20:25 +00001735 do_gotoline()
1736 - Simplify the edit_update() call depending on the value of
1737 save_pos. (David Benbennick)
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00001738 do_bracket()
1739 - Add efficiency tweaks. (David Benbennick) DLR: Remove
1740 reliance on the hardcoded bracket string length; instead, only
1741 require that the bracket string length be even.
1742- utils.c:
1743 regexec_safe()
1744 - Wrap in HAVE_REGEX_H #ifdefs. (DLR)
1745 regexp_bol_or_eol()
1746 - New function used to check if a regex contains "^" and/or "$",
1747 assuming that the regex would be found if the REG_NOT(BOL|EOL)
1748 flags aren't used in the regexec() call; it replaces the
1749 direct regexec()s used before. (DLR)
1750 strstrwrapper()
1751 - Refactor for increased efficiency, and eliminate the need for
1752 the line_pos parameter. (David Benbennick)
David Lawrence Ramsey6aec4b82004-03-15 20:26:30 +00001753 mallocstrcpy()
1754 - Tweak so that when src is "", "" is allocated and returned
1755 instead of NULL. (David Benbennick)
David Lawrence Ramseye97c8d52004-01-14 19:26:29 +00001756- winio.c:
David Lawrence Ramsey58f6d832004-01-27 07:12:47 +00001757 get_verbatim_kbinput()
David Lawrence Ramseyd03216a2004-01-28 18:21:21 +00001758 - Set keypad() to FALSE and switch to raw mode while reading
David Lawrence Ramsey273d2ce2004-01-30 04:20:28 +00001759 input, and set it back to TRUE and go back into cbreak mode
1760 mode afterwards. (Note that if _POSIX_VDISABLE isn't defined,
1761 we don't need to change to or from raw mode since we're
1762 already in it exclusively.) This ensures that we don't end up
1763 reading in extended keypad values that are outside the ASCII
1764 range or having to deal with interrupt-generating key values.
1765 Also, with keypad() set to TRUE, xterm generates KEY_BACKSPACE
1766 when the user hits Ctrl-H, which, when cut down to ASCII
1767 range, ends up being Ctrl-G, which can be confusing. (DLR)
David Lawrence Ramseyee383db2004-02-06 03:07:10 +00001768 - For consistency with get_kbinput(), use an int* to store and
1769 return the input instead of a char*, and tweak the functions
1770 that call it to handle this. (DLR)
David Lawrence Ramsey25061362004-01-16 19:12:46 +00001771 get_accepted_kbinput()
1772 - Don't use "kbinput = wgetch(win)" as a switch value. (DLR)
David Lawrence Ramseyc2c5a512004-01-23 19:26:17 +00001773 get_escape_seq_kbinput()
1774 - Add support for the escape sequences for F1-F14 whenever
1775 possible (i.e, whenever a conflict doesn't occur), some
1776 additional comments, and a few cosmetic cleanups. (DLR)
David Lawrence Ramseyee383db2004-02-06 03:07:10 +00001777 - Use switch statements instead of strncmp() to read in the long
1778 xterm sequences for Ctrl-[arrow key] and Shift-[arrow key].
1779 (DLR)
David Lawrence Ramseyc2c5a512004-01-23 19:26:17 +00001780 get_escape_seq_abcd()
1781 - A resurrected version of the old abcd() function, readded in
1782 order to simplify get_escape_seq_kbinput(). (DLR)
David Lawrence Ramsey0b047c52004-03-29 23:09:08 +00001783 get_mouseinput()
David Lawrence Ramsey1576d532004-03-19 21:46:34 +00001784 - Interpret shortcut key values slightly more stringently when
1785 ungetch()ing them. (DLR)
David Lawrence Ramsey0b047c52004-03-29 23:09:08 +00001786 strlenpt()
1787 - Properly cast the second parameter of the strnlenpt() call to
1788 size_t. (DLR)
David Lawrence Ramsey66081d42004-01-22 07:25:31 +00001789 get_page_start()
1790 - For consistency, tweak so that scrolling always occurs when we
1791 try to move onto the "$" at the end of the line, as opposed to
1792 (a) when we move onto the "$" at the end of the line on the
1793 first page and (b) when we move onto the character just before
1794 the "$" on subsequent pages. (DLR)
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00001795 reset_cursor()
1796 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00001797 edit_refresh()
1798 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramsey6aec4b82004-03-15 20:26:30 +00001799 statusq()
1800 - Rename "tabs" to "allowtabs". (David Benbennick)
David Lawrence Ramseye97c8d52004-01-14 19:26:29 +00001801 do_credits()
1802 - Use nanosleep() instead of usleep(). The latter is only
1803 standard under BSD, whereas the former is POSIX compliant.
David Lawrence Ramseyf5300af2004-02-24 20:48:12 +00001804 Accordingly, only include time.h if we use this function, i.e,
1805 if NANO_EXTRA is defined. (DLR)
David Lawrence Ramseyfdece462004-01-19 18:15:03 +00001806 - Add explanatory comment. (DLR)
David Lawrence Ramsey35557c52004-03-07 15:14:56 +00001807- configure.ac:
1808 - Change instances of "int main ()" to "int main(void)". (DLR)
David Lawrence Ramseybe66a6b2004-01-30 21:31:57 +00001809- faq.html:
1810 - Fixed inaccuracy: multibuffer mode was first in nano 1.1.0,
1811 not 1.1.12. (DLR)
David Lawrence Ramsey475a2a72004-02-25 03:58:46 +00001812- nano.1, nanorc.5, nano.texi
1813 - Clarify the description for -T/--tabsize a bit. (DLR)
David Lawrence Ramsey04e42a62004-02-28 16:24:31 +00001814 - Add -E/--backupdir description. (Martin Ehmsen; minor cosmetic
1815 fixes by DLR)
1816- nanorc.sample:
1817 - Add backupdir description. (Martin Ehmsen; minor cosmetic
1818 fixes by DLR)
David Lawrence Ramseyf0b30092004-01-10 06:02:05 +00001819- README:
1820 - Reformat to 72 characters per line, fix wording in one spot,
David Lawrence Ramseyce364e22004-03-03 01:25:46 +00001821 and fix spacing and capitalization in several spots. (DLR)
David Lawrence Ramsey1eadebe2004-01-25 21:36:38 +00001822- NEWS:
1823 - Capitalization fix. (DLR)
David Lawrence Ramsey5ae684f2004-03-04 23:48:26 +00001824- TODO:
1825 - Clarify the paragraph searching item, and add item for
1826 filename searches in the file browser. (DLR)
David Lawrence Ramsey606dfda2004-01-09 23:26:54 +00001827
David Lawrence Ramseyfa1497b2004-01-09 23:22:02 +00001828GNU nano 1.3.1 - 2004.01.09
David Lawrence Ramseya593f532003-11-28 19:47:42 +00001829- General:
1830 - Minor overhaul and abstraction of the lowest level of mouse
1831 input, mostly adapted from the code in do_mouse() that handles
1832 clicking on the shortcut list. New function do_mouseinput();
1833 changes to do_mouse(). (DLR) David Benbennick: Add a few
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00001834 efficiency/extensibility tweaks.
David Lawrence Ramseya593f532003-11-28 19:47:42 +00001835 - Modify the shortcut structure so that instead of having two
1836 miscellaneous key values (misc1 and misc2), there is one key
1837 value reserved for function keys (func_key) and one
1838 miscellaneous key value (misc), and tweak the
1839 shortcut-handling code to deal with this. These changes allow
1840 NANO_OPEN(PREV|NEXT)_ALTKEY to work properly when added to the
1841 shortcut entries for NANO_OPEN(PREV|NEXT)_KEY. Also remove
David Lawrence Ramseyd2914602003-11-30 02:22:22 +00001842 the values in the shortcut list and elsewhere that were made
1843 redundant by the low-level input overhaul, use toupper()
1844 instead of subtracting 32 from values for greater code
1845 readability, and eliminate use of adding 32 to values when
1846 testing for toggles, as get_kbinput_accepted() converts toggle
1847 values to lowercase before returning them. (DLR)
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00001848 - Remove the workarounds for missing KEY_UP and KEY_DOWN, as
1849 they appear to be holdovers of the old way of denoting the
1850 search history shortcuts; if they aren't defined, KEY_LEFT and
1851 KEY_RIGHT probably shouldn't work either, and all four appear
1852 to be standard keys in termcap/terminfo in any case. Add new
1853 special sentinel key values NANO_NO_KEY (for no shortcut key)
1854 and NANO_HISTORY_KEY (for search history keys, both Up and
1855 Down), modify the shortcut list to use them, and modify the
1856 shortcut display routines to handle them. Also modify the
1857 shortcut list code to not treat non-control character values
1858 of val as Meta-sequences, and fix dependencies on that
David Lawrence Ramsey82138502003-12-24 08:03:54 +00001859 behavior. Also rename several variables: "alt" -> "meta",
1860 "altval" -> "metaval". (DLR)
David Lawrence Ramseya593f532003-11-28 19:47:42 +00001861 - Hook up the verbatim input functions so that verbatim input
1862 can be used in the edit window. New function
1863 do_verbatim_input(); changes to do_char(). (DLR) Additional
1864 minor tweaks to do_char() by David Benbennick.
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00001865 - Clarify the description of the --rebinddelete option. (DLR)
David Lawrence Ramsey6481c3f2004-01-09 23:06:54 +00001866 - Miscellaneous comment tweaks, and copyright year updates in
1867 the comments and in do_credits(). (DLR)
David Lawrence Ramsey82138502003-12-24 08:03:54 +00001868- cut.c:
1869 - Overhaul to increase efficiency and add various cleanups.
1870 Changes to add_to_cutbuffer(), cut_marked_segment(), and
1871 do_uncut_text(). (David Benbennick)
David Lawrence Ramsey71278572003-10-31 17:58:44 +00001872- files.c:
David Lawrence Ramsey82138502003-12-24 08:03:54 +00001873 check_operating_dir()
1874 - Add an assert to ensure that full_operatingdir isn't NULL,
1875 a fix for reporting nonexistent (incomplete) directory names
1876 as being outside the operating directory when tab completion
1877 is being used, and cosmetic cleanups. (David Benbennick)
1878 copy_file()
David Lawrence Ramsey3e3fab52004-01-15 05:12:41 +00001879 - New function used to create a copy of a file, split out from
David Lawrence Ramseyc2946fb2003-12-24 21:47:28 +00001880 do_writeout(). (David Benbennick)
David Lawrence Ramsey3e3fab52004-01-15 05:12:41 +00001881 write_file()
1882 - Completely overhauled to properly ignore appending/prepending
1883 to symlinks when NOFOLLOW_SYMLINKS is defined, to properly
1884 support writing a selection to a file under the changed
1885 cutting code, to have more concise error messages, to add
1886 various cleanups, and so on. (David Benbennick)
David Lawrence Ramsey71278572003-10-31 17:58:44 +00001887 do_writeout()
David Lawrence Ramseybc503c82003-11-19 23:59:14 +00001888 - Prompt the user if we're trying to save an existing file (and
1889 not just a selection of it) under a different name. (DLR;
1890 suggested by Jean-Philippe Guérard)
David Lawrence Ramsey3e3fab52004-01-15 05:12:41 +00001891 - Overhaul the code used to write a selection of a file to
1892 temporarily set fileage and filebot to the top and bottom of
1893 the selection and then call write_file(), instead of following
1894 the old hackish behavior with cut_marked_segment() (which
1895 won't work after the cutting code changes anyway). (David
David Lawrence Ramsey70bd6e02004-01-15 16:08:42 +00001896 Benbennick) DLR: Tweak to not add an extra blank line to the
1897 end of the written selection if the cursor is at the beginning
1898 of the last line of the selection.
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00001899 open_prevfile(), open_nextfile()
1900 - For consistency with the rest of the multibuffer code, change
1901 "No more open files" to "No more open file buffers". (DLR)
1902 do_browser()
1903 - Allow '?' to open the help browser, and readd the ability of
1904 'G'/'g' to open the "Go to Directory" prompt (which was
1905 erroneously removed before), for compatibility with Pico.
1906 (DLR)
David Lawrence Ramsey8fa19762003-11-03 00:13:21 +00001907- global.c:
1908 shortcut_init()
1909 - Allow WHEREIS_NEXT_KEY to be used in view mode. (DLR)
David Lawrence Ramsey32559292003-12-28 03:56:04 +00001910- nano.c:
1911 do_int_spell_fix()
1912 - Add comment explaining why findnextstr() is called with
1913 bracket_mode set to TRUE even though we aren't doing a bracket
1914 search. (DLR)
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00001915 do_para_operation()
1916 - Convert to use the new low-level input functions. (DLR)
1917 main()
1918 - Remove unused variable option_index. (DLR)
David Lawrence Ramsey82138502003-12-24 08:03:54 +00001919 - Fix omission of NANO_NO_KEY in the shortcut list scanning
1920 code. (DLR)
David Lawrence Ramseyf8ddf312004-01-09 22:38:09 +00001921 - Remove now-unnecessary initialization of kbinput. (DLR)
David Lawrence Ramsey82138502003-12-24 08:03:54 +00001922- nano.h:
1923 - Comment additions and cosmetic tweaks. (DLR)
David Lawrence Ramsey71278572003-10-31 17:58:44 +00001924- search.c:
David Lawrence Ramsey45cfbec2003-11-28 16:04:24 +00001925 findnextstr(), do_replace_loop()
David Lawrence Ramsey18394ac2003-12-24 03:13:44 +00001926 - Fix potential infinite loops and other misbehavior when doing
David Lawrence Ramseye190ff32004-01-03 21:42:25 +00001927 beginning-of-line or end-of-line regex replacements ("^", "$",
1928 and "^$"). Add a no_sameline parameter to findnextstr(), and
1929 set it in the calls in do_replace_loop() when such regexes are
1930 found, so that such regexes are only found once per line.
1931 Also change length_change from a long to an int; size_t is
1932 unsuitable due to its being unsigned. (DLR; found by Mike
1933 Frysinger and DLR) David Benbennick: Add a few minor cleanups
1934 to do_replace_loop().
David Lawrence Ramsey7776ef92003-11-04 18:32:35 +00001935- winio.c:
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00001936 get_kbinput(), get_accepted_kbinput()
1937 - Don't pass in the value of the REBIND_DELETE flag anymore.
1938 Instead, handle it directly inside the functions. (DLR)
David Lawrence Ramsey7776ef92003-11-04 18:32:35 +00001939 get_accepted_kbinput()
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00001940 - Translate Ctrl-8 into NANO_DELETE_KEY (or NANO_BACKSPACE_KEY
1941 if REBIND_DELETE is set), since it apparently is generated
1942 sometimes even when keypad() is TRUE. (DLR)
1943 - Translate KEY_SLEFT into NANO_BACK_KEY and KEY_SRIGHT into
1944 NANO_FORWARD_KEY, since they are sometimes generated by
1945 Shift-Left and Shift-Right. (DLR)
1946 get_ascii_kbinput()
1947 - Tweak to make it slightly more readable. (DLR)
1948 get_verbatim_kbinput()
1949 - Modify to take an extra parameter indicating if we should
1950 interpret ASCII codes or not. (DLR)
1951 get_escape_seq_kbinput()
1952 - Expand to deal with more broken terminals that don't generate
1953 keypad values. Support the escape sequences for Insert,
1954 Delete, Home, End, PageUp, and PageDown, [arrow key],
1955 Ctrl-[arrow key], and Shift-[arrow key] when needed in the
1956 Linux console, the FreeBSD console, the Hurd console, xterm,
1957 rxvt, and Eterm. Also, use get_verbatim_kbinput(), with ASCII
1958 interpretation disabled, to read in the sequences. (DLR)
1959 get_skip_tilde_kbinput()
1960 - Removed, as it is unneeded due to the expansion of
1961 get_escape_seq_kbinput(). (DLR)
1962 get_mouseinput()
1963 - Modify to take an extra parameter indicating if we should
1964 ungetch() the key equivalents of shortcuts we click on or not.
1965 (DLR)
David Lawrence Ramsey82138502003-12-24 08:03:54 +00001966 nanogetstr()
1967 - Properly interpret the Meta key value in misc if we hit it at
1968 the statusbar prompt. (DLR)
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00001969 do_yesno()
1970 - Add a few efficiency/extensibility tweaks. (David Benbennick)
1971 - Convert to use the new low-level input functions, and remove
1972 two last hardcoded widths left after the above tweaks. (DLR)
David Lawrence Ramsey76c4b332003-12-24 08:17:54 +00001973 do_replace_highlight()
1974 - Display a highlighted space if the word length is zero, so
1975 that we can see zero-length regexes we're replacing. (DLR;
1976 suggested by Mike Frysinger)
David Lawrence Ramsey4dca76f2003-11-20 00:15:52 +00001977- configure.ac:
1978 - Check for glib 2.x and then 1.2.x if we need glib. (DLR)
David Lawrence Ramsey47162bc2004-01-05 19:01:53 +00001979- faq.html:
1980 - Add question explaining how verbatim input works, as well as a
1981 few minor fixes. (DLR)
David Lawrence Ramsey9e45a472004-01-06 17:12:28 +00001982- nano.1, nanorc.5:
1983 - Add nano version numbers (minus any "-cvs" suffixes). (DLR)
David Lawrence Ramsey637f6e52003-11-04 18:34:44 +00001984- nano.spec.in:
1985 - Update for the 1.3 branch of nano. (DLR)
David Lawrence Ramsey9e45a472004-01-06 17:12:28 +00001986- NEWS:
1987 - Reformat so all lines are limited to 72 columns, add a few
1988 typo fixes, and make a few minor cosmetic cleanups. (DLR)
Jordi Mallacha5d8e542003-11-06 10:47:44 +00001989- THANKS:
1990 - Add Danilo Segan, for the Serbian translation.
1991
David Lawrence Ramsey133f7b12003-10-22 17:15:12 +00001992GNU nano 1.3.0 - 2003.10.22
David Lawrence Ramsey4d7c2602003-08-17 02:48:43 +00001993- General:
1994 - Complete overhaul and abstraction of the lowest level of
1995 keyboard input, mostly rewritten but incorporating a few bits
1996 from the old functions and adding support for Pico's Esc Esc
1997 [three-digit decimal ASCII code] input method. New functions
1998 get_kbinput(), get_verbatim_kbinput(), get_ignored_kbinput(),
1999 get_accepted_kbinput(), get_ascii_kbinput(),
2000 get_escape_seq_kbinput(), and get_skip_tilde_kbinput(). These
2001 should work properly on FreeBSD (due to code and input
2002 provided by Lee Nelson and Wouter van Hemel, respectively).
2003 (DLR)
2004 - The -K/--keypad command line/rcfile option has been removed,
2005 and keypad() is now always TRUE. keypad_on() in winio.c and
2006 the check for _use_keypad in configure.ac have both been
2007 removed. (DLR)
2008 - The -d/--rebinddelete command line/rcfile option, equivalent
2009 to Pico's -d, has been added. It is intended to work around
2010 the problem with Backspace/Delete confusion on some terminals,
2011 notably FreeBSD; if your Backspace key acts like Delete, this
2012 option will fix that. (DLR)
David Lawrence Ramseya9cebd82003-08-17 03:31:57 +00002013 - Remove unneeded breaks at the ends of default: clauses. (DLR)
David Lawrence Ramseye0497062003-08-23 21:11:06 +00002014 - Add the ability to repeat the last search without prompting
2015 via Meta-W, and move the line wrapping toggle to Meta-L. New
2016 function do_research(). (Wouter van Hemel)
David Lawrence Ramsey8faf3052003-09-04 20:25:29 +00002017 - Added the ability to move to the beginning or end of the
2018 paragraph, which Pico has via ^W^W (previous paragraph)
David Lawrence Ramsey45108342004-04-21 23:04:55 +00002019 and ^W^O (next paragraph). Changes to do_justify(); new
2020 functions do_para_operation(), do_para_begin(), and
David Lawrence Ramsey8faf3052003-09-04 20:25:29 +00002021 do_para_end(). Note that the last three functions are
2022 disabled if justification is disabled. (DLR)
David Lawrence Ramsey417b03a2003-09-06 21:44:37 +00002023 - Make sure the "historylog" option isn't included at all if
2024 NANO_SMALL is defined. (DLR)
Jordi Mallach3a420872003-10-19 23:30:48 +00002025 - Source reorganization: move code to src/, docs to doc/.
2026 (Jordi)
Jordi Mallach298b9752003-09-07 00:44:12 +00002027 - Translation updates (see po/ChangeLog for details).
David Lawrence Ramseyc97acfb2003-09-10 20:08:00 +00002028 - Since SAMELINEWRAP is only used in nano.c, make it a static
2029 variable in nano.c instead of a flag, and surround all
David Lawrence Ramsey1356a0a2003-09-10 20:31:02 +00002030 wrap_reset() calls with DISABLE_WRAPPING #ifdefs. (DLR)
2031 - Change enum "topmidbotnone" to "topmidnone", as there's no
2032 BOTTOM option anymore. (DLR)
David Lawrence Ramsey5ffbec52003-09-16 01:16:49 +00002033 - Split out the string-displaying routine from update_line()
2034 into a separate function; convert the edit window, statusbar
2035 display, and statusbar prompt to use it, so that they can all
2036 properly display control characters and tabs; free and NULL
2037 the backup search string in one place in the search code
2038 instead of several; and do some other minor refactoring of
2039 related display functions to simplify them. New functions
2040 mark_order() and display_string(); changes to actual_x(),
David Lawrence Ramsey2dd7ed12003-09-29 05:15:24 +00002041 strnlenpt(), blank_bottombars(), blank_edit(),
2042 get_page_start(), edit_add(), update_line(), statusbar(), and
2043 do_replace_highlight(). (David Benbennick) DLR: Add minor
2044 cosmetic tweaks, add missing NANO_SMALL #ifdef around the text
2045 for a backwards search in the refactored code, and enclose
2046 dump_buffer() and dump_buffer_reverse() in one ENABLE_DEBUG
2047 #ifdef instead of two.
David Lawrence Ramsey9eff7462003-09-16 02:04:00 +00002048 - Convert memmove() function calls to charmove() macro calls, as
2049 the former all work on char*'s. (DLR)
David Lawrence Ramseyf5b256b2003-10-03 20:26:25 +00002050 - Miscellaneous #define cleanups: only include the prototype for
2051 and definition of wrap_at if wrapping and/or justification are
2052 enabled, remove duplicate wrap_at prototype, and define
2053 DISABLE_MOUSE if NCURSES_MOUSE_VERSION isn't defined in nano.h
2054 instead of all over the code. (DLR)
Jordi Mallach3a420872003-10-19 23:30:48 +00002055 - Autogenerate the html versions of the manpages in the
2056 Makefile.am's in doc/man/, make sure that they're properly
2057 installed via "make dist", and make sure that "make distcheck"
David Lawrence Ramsey13dfdb22003-10-22 15:37:13 +00002058 works too. Also be sure to set EXTRA_DIST properly. (Jordi,
2059 DLR and Jeff Bailey)
David Lawrence Ramsey4d7c2602003-08-17 02:48:43 +00002060- files.c:
David Lawrence Ramsey7bf00de2003-09-23 04:25:05 +00002061 read_file()
2062 - After we've read in a file and possibly converted it from
2063 DOS/Mac format, set fileformat back to 0 to prevent erroneous
2064 conversion messages when we read other files in. (DLR)
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002065 do_browser()
David Lawrence Ramsey4d7c2602003-08-17 02:48:43 +00002066 - Some of the Pico compatibility options in the file browser
David Lawrence Ramsey10187612003-08-17 05:40:45 +00002067 that don't work properly for current Pico have been removed.
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002068 Backspace, 'g', 'l', 'q', and 'u' are invalid. 'd' deletes
2069 the highlighted file, and 'r' renames the highlighted file;
2070 neither of these are implemented. (DLR)
David Lawrence Ramseyba6fd422003-08-23 21:16:02 +00002071- global.c:
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002072 toggle_init()
David Lawrence Ramseyba6fd422003-08-23 21:16:02 +00002073 - Change the message for the line wrapping toggle from "Auto
2074 wrap" to "Auto line wrap", to more clearly associate it with
2075 Meta-L. (DLR)
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002076 shortcut_init()
David Lawrence Ramseycb7ee0e2003-08-31 17:08:59 +00002077 - Change multibuffer-enabled references to
2078 opening/closing/toggling the previous/next loaded file to
2079 toggling/switching to/closing the previous/next file buffer,
2080 for consistency with other references. (DLR)
David Lawrence Ramsey27863662003-08-29 21:31:37 +00002081- nano.c:
2082 window_init()
2083 - Set keypad() to TRUE regardless of whether PDCurses is being
2084 used, as Meta-X apparently turns it off even under ncurses.
2085 (DLR)
David Lawrence Ramseyd91ab6e2003-09-07 23:57:24 +00002086 do_backspace()
2087 - Vastly simplify, and remove dependency on page_up(). (David
2088 Benbennick)
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002089 help_init()
2090 - Document the support for Esc Esc [character]'s being
2091 interpreted as Ctrl-[character], and the support for Pico's
2092 Esc Esc [three-digit decimal ASCII code] input method. (DLR)
David Lawrence Ramseyf03c78b2003-09-28 21:26:49 +00002093 do_mark()
David Lawrence Ramseycb34a672004-02-06 21:20:05 +00002094 - Toggle MARK_ISSET at the beginning of the function instead of
2095 setting it in one place and unsetting it in another place.
David Lawrence Ramseyf03c78b2003-09-28 21:26:49 +00002096 (David Benbennick)
David Lawrence Ramsey99bede32003-09-29 07:21:11 +00002097 do_suspend()
2098 - Use handle_hupterm() to handle SIGHUP and SIGTERM so we can
2099 properly deal with them while nano is suspended. (DLR; problem
2100 found by David Benbennick)
David Lawrence Ramseyf0b7dca2003-09-22 15:46:21 +00002101 abcd()
2102 - Removed, as it's unneeded due to the low-level input overhaul.
2103 (DLR)
David Lawrence Ramsey4d7c2602003-08-17 02:48:43 +00002104- nano.h:
David Lawrence Ramseye0a9f502003-09-07 05:32:24 +00002105 - Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as
2106 slang has no equivalent of either. When nano is compiled with
2107 slang support, resizing the window doesn't generate
2108 KEY_RESIZE, and pressing Ctrl-Z to suspend nano at the Linux
2109 console with keypad(TRUE) generates Ctrl-Z instead of
2110 KEY_SUSPEND, both unlike ncurses. (DLR)
David Lawrence Ramsey25307252003-10-10 04:42:48 +00002111 - Define KEY_RESIZE as -1 if it isn't defined, as it isn't in
David Lawrence Ramseyc1f630e2003-10-18 20:21:52 +00002112 the curses library included with SunOS 5.7-5.9. Also define
David Lawrence Ramsey25307252003-10-10 04:42:48 +00002113 KEY_SUSPEND as -1 if it isn't defined, in case it isn't in
2114 more than just Slang. (DLR)
David Lawrence Ramseyf6cf4a72003-10-22 16:20:47 +00002115 - Define all potentially missing keys as different negative
2116 values (ERR is -1, so use -2, -3, etc.) so as to avoid having
2117 duplicate case values when keys are missing. (DLR)
David Lawrence Ramseyd91ab6e2003-09-07 23:57:24 +00002118- move.c:
2119 - Remove unneeded inclusion of stdio.h, make various cleanups,
2120 and preserve the cursor's coordinates when paging up and down.
2121 (David Benbennick) DLR: Readd the ability to behave the old
2122 way while paging, make it so the new behavior is only used in
2123 smooth-scrolling mode, and modify page_down() to always go
2124 down a full page (even when there's less than one page of text
2125 left) for consistency.
2126 page_up()
2127 - Removed due to rewrite of movement functions. (David
2128 Benbennick)
David Lawrence Ramseyc97acfb2003-09-10 20:08:00 +00002129- proto.h:
2130 - Surround the do_prev_word() and do_next_word() prototypes with
2131 NANO_SMALL #ifdefs, since the actual functions aren't included
2132 in tiny mode. (DLR)
David Lawrence Ramsey3bd96282003-09-06 05:09:32 +00002133- rcfile.c:
2134 parse_colors()
2135 - Generate an error if we try to use a bright background color
2136 in a nanorc file. (DLR; found by Brand Huntsman)
2137 - Make sure all rcfile error messages are capitalized, for
2138 consistency. (DLR)
David Lawrence Ramseyec290f22003-08-30 19:05:40 +00002139- winio.c:
David Lawrence Ramseyda8fd8f2003-09-16 01:22:31 +00002140 get_verbatim_kbinput()
2141 - Fix a silly memory corruption bug that would occur when trying
2142 to read a sequence of more than one key verbatim. (DLR)
2143 get_accepted_kbinput()
2144 Handle Ctrl-{ to Ctrl-~ correctly, and drop support for
2145 converting Esc ` to Esc Space, since making Meta-[key]
2146 correspond to Ctrl-[key] in all cases is inconsistent due to
2147 the different natures of Contol and Meta key sequences. (DLR)
David Lawrence Ramseyd91ab6e2003-09-07 23:57:24 +00002148 do_first_line()
2149 - Call edit_update() with TOP instead of CENTER; both do the
2150 same thing, but it works faster with TOP. (DLR)
David Lawrence Ramsey7f47d422003-09-08 18:01:49 +00002151 nanogetstr()
2152 - Don't let the user type in ASCII 127 at the statusbar prompt.
2153 (DLR)
David Lawrence Ramseyec290f22003-08-30 19:05:40 +00002154 titlebar()
2155 - Fix problem with the available space for a filename on the
2156 titlebar's being short by one. (DLR)
David Lawrence Ramsey4dcd0702003-10-03 04:20:28 +00002157 edit_add()
2158 - Fix problems with the marking highlight's being drawn
2159 improperly in some cases. (DLR)
David Lawrence Ramseyd91ab6e2003-09-07 23:57:24 +00002160 edit_update()
2161 - Tweak for efficiency and remove the fix_editbot() call. (David
2162 Benbennick)
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002163 do_credits()
2164 - Update the copyright years to "1999-2003", to match those
2165 given in the rest of the code. (DLR)
David Lawrence Ramseya3831ab2003-09-22 16:26:40 +00002166- configure.ac:
2167 - Change instances of "GNU Nano" to "GNU nano" for consistency.
2168 (DLR)
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002169- nano.1, nanorc.5, nano.texi:
2170 - Change all instances of $SYSCONFDIR to SYSCONFDIR, since
2171 SYSCONFDIR is set at compile time and can't be overridden by
2172 setting SYSCONFDIR in the environment. (David Benbennick)
2173 - Remove -K/--keypad, and document -d/--rebinddelete. (DLR)
2174 - Document the support for Esc Esc [character]'s being
2175 interpreted as Ctrl-[character], and the support for Pico's
2176 Esc Esc [three-digit decimal ASCII code] input method, if
2177 applicable. (DLR)
Jordi Mallach298b9752003-09-07 00:44:12 +00002178 - French translation by Jean-Philippe Guérard.
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002179- nano.1.html, nanorc.5.html:
2180 - Regenerated. (DLR)
2181- nanorc.sample:
2182 - Remove duplicate "historylog" entry, remove "keypad" entry,
2183 and add "rebinddelete" entry. (DLR)
David Lawrence Ramseydc9c40a2003-09-07 23:54:57 +00002184 - Update and add comments to the regexes for nanorc files.
2185 (Brand Huntsman)
David Lawrence Ramsey21cc5502003-09-06 19:04:02 +00002186 - Fix an attempt at a bright background color in the sample Java
2187 source regexes. (DLR)
2188 - Since tabs are shown as groups of spaces, they are interpreted
2189 as such when parsed by color regexes. Accordingly, simplify
2190 regexes that handle both spaces and tabs to just handle
2191 spaces, as the results are the same. (DLR)
Chris Allegrettaf3fee5d2003-08-12 02:40:47 +00002192- AUTHORS
2193 - Updated to show 1.2/1.3 maintainers.
2194
Chris Allegretta6954f052003-08-12 02:34:03 +00002195- 1.3 tree forks here
2196
Chris Allegretta33642142003-08-12 01:49:20 +00002197GNU nano 1.2.2 - 2003.08.11
Jordi Mallach5b63eaf2003-06-11 10:17:20 +00002198- General:
2199 - Translation updates (see po/ChangeLog for details).
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00002200 - Change uncast nrealloc()s assigned to char pointers/arrays to
2201 charealloc()s, and cast all other nrealloc()s and all
2202 nmalloc()s. (David Benbennick and DLR)
Jordi Mallachf9390af2003-08-05 19:31:12 +00002203 - Remove gettext marks from all debug messages. Good for developers,
2204 better for translators. (Jordi)
2205 - Add translator comments on strings that should be short, like in
2206 status bar strings, etc. (Jordi)
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00002207- utils.c:
2208 align()
2209 - Tweak to avoid a potential problem when strp is non-NULL but
2210 *strp is NULL. (David Benbennick)
Chris Allegretta4f5335d2003-08-04 02:51:12 +00002211 nstricmp(), nstrnicmp()
2212 - Add these functions, equivalent to strcasecmp() and
2213 strncasecmp(), and convert nano to use them when strcasecmp()
2214 and/or strncasecmp() are unavailable. (DLR)
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00002215- winio.c:
Chris Allegretta653d6142003-08-04 02:12:03 +00002216 do_help()
2217 - Get rid of keypad_on() call for bottomwin, which should not be
2218 needed (DLR).
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00002219 nanogetstr()
2220 - Fix problem with search history where a temporary string
2221 added at the bottom of the history (but which was not in the
2222 history) would not be preserved after scrolling down to the
2223 blank bottom entry and then scrolling back up. (DLR)
Chris Allegrettac30fc242003-08-11 00:32:45 +00002224 - Fix problem where pressing down,up,down does not blank the
2225 search prompt but keeps the previous search (DLR).
Chris Allegretta653d6142003-08-04 02:12:03 +00002226 - Handle Alt-[-F and H (DLR, fixed home and end not working with
2227 -K in statusbar).
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00002228- configure.ac:
2229 - Change the program used to detect a broken regexec() function
2230 so that it works properly, using information found at
2231 http://sources.redhat.com/ml/libc-hacker/2001-06/msg00015.html.
2232 (DLR)
2233- nanorc.sample:
2234 - Revised comment explaining the non-escaping of quotes to cover
2235 non-escaping of all shell-interpreted characters. (DLR)
2236 - Fixes to the descriptions and examples in the comments, and
2237 changes to some default values. (David Benbennick and DLR)
2238 - Add regexes for Perl syntax. (Richard Smith, tweaked for
2239 greater efficiency by David Benbennick)
2240 - Add regexes for Java source syntax. (David Benbennick)
2241 Regex for C++-style comments (colored the same way as C-style
2242 comments) added by DLR.
Jordi Mallach2e6d0ca2003-04-24 18:23:56 +00002243- THANKS:
2244 - Added Laurentiu Buzdugan, for Romanian.
Jordi Mallach9e74ade2003-06-11 15:52:34 +00002245 - Added Geir Helland, for Norwegian Bokmål.
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00002246- TODO:
2247 - Move the items for nano 1.2 to the "Old Requests" section,
2248 and mark color syntax highlighting as done. (David Benbennick)
David Lawrence Ramsey6d97d182003-07-02 14:20:11 +00002249- faq.html:
2250 - Added question about nano's not showing color when it's
2251 compiled with color support. (DLR; suggested by Jordi)
Jordi Mallachd995e9a2003-06-11 16:38:35 +00002252- nano.1, nanorc.5:
Jordi Mallach5b63eaf2003-06-11 10:17:20 +00002253 - Formatting improvements by Jean-Philippe Guérard.
David Lawrence Ramseyb764eb62003-06-29 02:25:46 +00002254 - Minor fixes by DLR.
2255- nano.1.html, nanorc.5.html:
2256 - Regenerated from nano.1 and nanorc.5. (DLR)
Chris Allegrettaffe575f2003-04-20 16:25:46 +00002257
Chris Allegrettaaa459312003-04-20 16:20:15 +00002258GNU nano 1.2.1 - 2003.04.19
Jordi Mallach723399a2003-02-23 19:12:54 +00002259- General:
2260 - Translation updates (see po/ChangeLog for details).
Chris Allegrettad8451932003-03-11 03:50:40 +00002261 - Work around broken regexec() on some systems that segfaults
David Lawrence Ramsey1a5c4c62004-09-07 00:48:49 +00002262 when passed an empty string. This is known to be in glibc
2263 2.2.3. New function regexec_safe(). (David Benbennick)
Chris Allegrettad8451932003-03-11 03:50:40 +00002264 - Fix various bugs with search string history logging: don't
2265 print a broken error message and freeze if ~/.nano_history is
2266 unreadable, actually show an error message in save_history()
2267 if ~/.nano_history is unwritable, and prevent ~/.nano_history
2268 from being completely overwritten by save_history() if it's
2269 unreadable but writable. (David Benbennick)
Chris Allegrettae1e0fd62003-04-15 01:15:09 +00002270 - Only unset KEEP_CUTBUFFER in main() when we do something other
2271 than cut text in the main input loop, instead of unsetting it
2272 all over the place (which, as written, didn't handle cases
2273 like a cut followed by M-Space properly). Also, instead of
2274 checking for keyhandled's not being set inside the for loops,
2275 do it in if blocks surrounding the for loops to increase
2276 efficiency. (David Benbennick) DLR: Also unset KEEP_CUTBUFFER
2277 if we hit a shortcut key other than the one for cutting text.
2278 - Make it so a marked cut immediately followed by an unmarked
2279 cut tacks the latter's text onto the end of the former's text
2280 instead of putting it on a new line, as Pico does. (DLR)
2281 - Convert instances of "(char *)nrealloc()" to the macro
2282 charealloc(), which does the same thing. (DLR)
Chris Allegretta8151ba52003-04-19 19:34:05 +00002283 - Change justify_mode from a boolean int to a flag (DLR).
Chris Allegrettae1e0fd62003-04-15 01:15:09 +00002284- cut.c:
2285 do_cut_text()
2286 - Tweak where KEEP_CUTBUFFER is set so that a marked cut
2287 immediately followed by an unmarked cut preserves the
2288 cutbuffer between the two. (David Benbennick) DLR: Also
2289 properly set KEEP_CUTBUFFER in tiny mode.
2290 do_uncut_text()
2291 - If we're about to uncut on the magicline, always make a new
2292 magicline in advance, as Pico does. (DLR)
Chris Allegrettad8451932003-03-11 03:50:40 +00002293- global.c:
2294 shortcut_init()
2295 - Simplify the #ifdef used to enable file insertion in view mode
2296 if multibuffer support has been compiled in. (DLR)
2297- nano.c:
2298 justify_format()
2299 - If we shave spaces off the end of the line, make sure totsize
2300 is properly updated. (DLR; much simplified by David
2301 Benbennick)
2302- nano.h:
2303 - Simplify #ifdefs relating to HAVE_STRCASECMP and
2304 HAVE_STRNCASECMP. (David Benbennick)
Chris Allegrettae1e0fd62003-04-15 01:15:09 +00002305- search.c:
2306 goto_abort()
2307 - Removed, with all instances replaced with display_main_list(),
2308 since with the removal of all the scattered calls to
2309 SET(KEEP_CUTBUFFER), that function was all that was left of
2310 it. (DLR)
2311 do_find_bracket()
2312 - If a matching bracket wasn't found, call update_line() after
2313 setting current and current_x back to their original values,
2314 in case current_x's original value is greater than the width
2315 of the screen. (DLR)
Chris Allegretta4b376a42003-04-16 02:08:23 +00002316- winio.c:
2317 nanogetstr()
2318 - Remove a few unnecessary breaks occurring immediately after
2319 gotos, and properly interpret the up and down arrow keys when
2320 ALT_KEYPAD is set. (DLR)
Chris Allegrettad8451932003-03-11 03:50:40 +00002321- configure.ac:
2322 - Enable autodetection of broken regexec(). (DLR) Re-added
2323 regex.h check to ensure compile under Debian w/autoconf 1.6.
Jordi Mallachdb469d82003-03-24 13:08:16 +00002324- README:
2325 - Update obsolete 1.1.x information.
Chris Allegrettad8451932003-03-11 03:50:40 +00002326- TODO:
2327 - Fix typo. (David Benbennick)
2328- faq.html:
2329 - Update RPM links for nano 1.2.x. (DLR)
Chris Allegrettadbc3ec72003-02-20 03:14:37 +00002330
Chris Allegretta2b4ead92003-02-20 01:56:02 +00002331GNU nano 1.2.0 - 2003.02.19
Jordi Mallach07e20002003-02-14 22:10:14 +00002332- General:
2333 - Translation updates (see po/ChangeLog for details).
Chris Allegretta33ac7b92003-02-16 03:13:47 +00002334- files.c:
2335 read_file()
2336 - If the file we're loading has already been detected as a DOS
2337 or Mac formatted file, don't turn on NOCONVERT if we find
2338 binary chars in it. This is because if it's detected as
2339 DOS/Mac format, at least one line has already been converted,
2340 so setting NOCONVERT (which is supposed to signal that none
2341 of the file should be converted) makes no sense. (DLR)
Chris Allegrettaa7a78de2003-02-19 22:27:53 +00002342- nano.c:
2343 justify_format()
2344 - Fix ugly behavior when wrapping spaces at the end of long
2345 words (David Benbennick).
Jordi Mallach07e20002003-02-14 22:10:14 +00002346- nanorc.5:
2347 - Fix formatting error and update copyright year (Jordi).
Jordi Mallachfc71eb52003-02-15 13:34:03 +00002348 - Several enhancements (David Benbennick).
Chris Allegretta3d332512003-02-14 03:10:12 +00002349
Chris Allegretta7ba32792003-02-14 03:09:35 +00002350GNU nano 1.1.99pre3 - 2003.02.13
Jordi Mallacha577d5a2003-02-04 14:13:36 +00002351- General:
2352 - Translation updates (see po/ChangeLog for details).
Chris Allegretta201f1d92003-02-05 02:51:19 +00002353 - Fix globals and externs such that nano will compile with
2354 DISABLE_SPELLER (David Benbennick).
Chris Allegrettaf8f2d582003-02-10 02:43:48 +00002355 - Fix unreasonable fill values by wrapping at length 0 instead
2356 of erroring out, and don't start up if the window size is too
2357 small but fill is set reasonably. Changes to
2358 nano.c:global_init(), window_init(), and handle_sigwinch().
2359 New macro MIN_EDITOR_COLS replaces MIN_FILL_LENGTH
2360 (David Benbennick).
Chris Allegrettad8451932003-03-11 03:50:40 +00002361 - Change ngettext macro to P_(), to avoid a clash with the
2362 reserved C __ identifier (Jordi).
Chris Allegrettafdcb9e92003-02-12 02:52:04 +00002363 - Memory leak fixes for files.c:do_insertfile(),do_browser(),
Chris Allegrettad8451932003-03-11 03:50:40 +00002364 nano.c:do_spell(), and search.c:do_replace() (David
2365 Benbennick).
Chris Allegrettabcc86882003-02-13 01:54:41 +00002366 - Remove do_preserve_msg, as using -p still gives Pico-style
2367 string behavior, so an annoying message every invocation is
2368 probably unneeded (all cheer).
Chris Allegrettad8451932003-03-11 03:50:40 +00002369 - Change resetpos function to be global (now called
Chris Allegretta65f075d2003-02-13 03:03:49 +00002370 resetstatuspos. Fixes annoying but small odd problem with
Chris Allegrettad8451932003-03-11 03:50:40 +00002371 cursor placement when inserting a file. This needs to be done
2372 better in 1.3 (originally by David Lawrence Ramsey). Added
2373 this issue to TODO.
Chris Allegretta3cdf6ff2003-02-08 02:02:02 +00002374- files.c:
Chris Allegrettabcaeeb42003-02-08 02:03:26 +00002375 cwd_tab_completion()
2376 - Memory leak fix (David Benbennick).
David Lawrence Ramsey9591ee52004-01-14 16:51:06 +00002377 input_tab()
Chris Allegrettad8451932003-03-11 03:50:40 +00002378 - Fix assumption that matches is null terminated (David
Chris Allegretta3cdf6ff2003-02-08 02:02:02 +00002379 Benbennick).
Chris Allegrettaa0449d92003-02-12 23:58:01 +00002380 load_history()
Chris Allegrettad8451932003-03-11 03:50:40 +00002381 - Fix segfault on loading huge strings from history file
Chris Allegrettaa0449d92003-02-12 23:58:01 +00002382 (David Benbennick).
Chris Allegretta1debce22003-02-13 22:00:19 +00002383 load_history(), save_history()
2384 - Changed to look at $HOME before getpwuid(geteuid()), see
2385 details in comment for rcfile.c:do_rcfile().
Chris Allegrettad8451932003-03-11 03:50:40 +00002386 real_dir_from_tilde()
Chris Allegretta1debce22003-02-13 22:00:19 +00002387 - Change check for the running user's home dir to use
2388 getpwuid(geteuid()) rather than a getpwent() loop
2389 (suggested by Jordi).
Chris Allegretta5ec68622003-02-05 02:39:34 +00002390- nano.c:
Chris Allegretta428f6202003-02-12 03:21:45 +00002391 breakable()
2392 - Fix incorrect return value on short lines (David Benbennick).
Chris Allegretta4640fe32003-02-10 03:10:03 +00002393 do_help()
2394 - Fix line lengths not being computed properly, causes display
2395 glitches most noticeable with < 20 rows. New function
2396 nano.c:line_len(). (David Benbennick).
Chris Allegretta428f6202003-02-12 03:21:45 +00002397 do_justify()
2398 - Add regfree() to quote regex (David Benbennick).
Chris Allegrettad8451932003-03-11 03:50:40 +00002399 - Only copy previous indent if AUTOINDENT is set (David
Chris Allegretta428f6202003-02-12 03:21:45 +00002400 Benbennick).
Chris Allegretta76417082003-02-12 23:54:34 +00002401 do_suspend()
2402 - Fix untranslated message (David Benbennick).
Chris Allegrettad127c712003-02-12 23:20:45 +00002403 do_wrap()
2404 - Fix isspace() call to operate on int.
Chris Allegretta428f6202003-02-12 03:21:45 +00002405 help_init()
2406 - Fix crashing in do_help when COLS < 23 (David Benbennick).
2407 main()
2408 - Fix nano not compiling with ENABLE_RCFILE and DISABLE_TABCOMP
2409 (David Benbennick).
Chris Allegrettafe1d0722003-02-13 00:52:49 +00002410 - Silence annoying compiler messages about clobbering and
2411 uninitialized variables by moving variable inits to the top
2412 of main() and re-initializing them after the sigsetjmp().
Chris Allegrettad6e84362003-02-07 00:02:00 +00002413- rcfile.c:
2414 colortoint()
2415 - Don't bomb after invalid color and print bad color name
2416 (David Benbennick).
Chris Allegretta17ec14b2003-02-07 00:19:05 +00002417 colortoint, parse_colors()
2418 - Don't add strings with invalid fg colors at all.
Chris Allegretta2e39c1c2003-02-13 03:36:15 +00002419 do_rcfile()
2420 - Revert (somewhat) previous behavior of looking at
2421 $HOME, and only run getpw* if it is NULL. Most *nix programs
2422 seem to only care about $HOME, and at the user-level
2423 getpw* may not be reliable (and its slower).
Chris Allegrettaa90d0cf2003-02-10 02:55:03 +00002424- search.c:
2425 do_gotoline()
2426 - Only goto_abort() if we *didnt* abort the command, making
2427 the function seem horribly misnamed ;-) (David Benbennick).
Chris Allegrettabfc8b2a2003-02-08 21:49:13 +00002428- winio.c:
Chris Allegrettae9b5c6f2003-02-12 23:49:56 +00002429 browser_init(), striponedir(), do_browse_from()
2430 - Various memory leak fixes (David Benbennick).
Chris Allegrettab2cd2482003-02-12 23:18:19 +00002431 do_yesno(), do_help()
2432 - Add defined(NCURSES_MOUSE_VERSION) to macro so systems that
2433 don't understand MEVENT will compile.
Chris Allegrettabfc8b2a2003-02-08 21:49:13 +00002434 nanogetstr()
2435 - Remove unnecessary reset of x since it is now handled
2436 elsewhere (David Lawrence Ramsey).
Chris Allegrettaa90d0cf2003-02-10 02:55:03 +00002437 statusq()
2438 - Always blank the statusbar on exit (David Benbennick).
Chris Allegretta5ea694e2003-02-04 14:24:54 +00002439- nano.1, nano.1.html:
2440 - Add initialization file comments, change some options from
2441 bracketed to underlined to emphasize that they are not
2442 optional.
Jordi Mallacha66a8f72003-02-09 01:28:40 +00002443 - Add SEE ALSO section (Jordi).
Chris Allegretta4f989fa2003-02-13 04:01:49 +00002444 - Moved nano.1 color and syntax sections to nanorc, pointed
2445 nano.1 to nanorc.5 for initialization file. Changed
2446 nanorc.5 variables to be italics to match nano.1. Added
2447 nanorc.5.html to CVS tree.
Jordi Mallacha66a8f72003-02-09 01:28:40 +00002448- nanorc.5:
2449 - Add nanorc manpage, with descriptions of all available commands
2450 (Jordi).
Chris Allegrettaa3daf3a2003-02-07 00:11:55 +00002451- nanorc.sample:
2452 - Make nanorc entry less tolerant of invalid colors.
Chris Allegretta97e10b52003-02-08 22:05:50 +00002453- nano.spec.in:
2454 - Change default flags to --enable-all.
Jordi Mallach2ddd75e2003-02-09 23:51:17 +00002455- THANKS:
2456 - Add Kalle Kivimaa and Kalle Olavi Niemitalo, for Finnish (Jordi).
Jordi Mallachaebfac82003-02-13 12:50:53 +00002457- UPGRADE:
2458 - Add upgrading information document for 1.0 users (Jordi).
Chris Allegrettacddbfd02003-02-03 15:29:56 +00002459
Chris Allegretta5c8c2762003-02-03 15:21:27 +00002460GNU nano 1.1.99pre2 - 2003.02.03
Jordi Mallacha577d5a2003-02-04 14:13:36 +00002461- General:
Chris Allegretta0e86e602003-01-23 04:27:23 +00002462 - Changed some translatable debug messages to use %s
2463 instead of the function name, and removed gettext from
2464 two strings that had no actual words in them that
2465 should be translated. Suggested originally by
2466 Christian Rose.
Chris Allegretta9090f2e2003-01-26 04:45:05 +00002467 - Fix subexpression replacement to work consistently.
2468 Affects search.c:replace_regexp() and
2469 utils.c:strstrwrapper() (David Benbennick).
Chris Allegretta47fcfe52003-01-26 21:01:16 +00002470 - Fix cursor position being saved when escaping out
2471 of nanogetstr with keys like ^Y and ^V. New arg
2472 resetpos to nanogetstr(), added static int
2473 resetpos in statusq() (bug found by DLR).
Chris Allegrettad26ab912003-01-28 01:16:47 +00002474 - Fix constant curos updates from obliterating other
2475 system messages, and fix statusbar message length.
2476 Affects files.c:load_open_file(), nano.c:main(),
2477 search.c:findnextstr(), winio.c:statusbar() and
2478 do_cursorpos() (David Benbennick).
Chris Allegretta5d715142003-01-29 04:18:37 +00002479 - Fix nano crashing when searching/replacing an invalid
2480 regex (try "^*"). Changed regexp_init() to return
2481 1 or 0 based on regcomp()'s return value and search_init
Chris Allegrettad89eb912003-02-03 07:07:40 +00002482 to exit with an error message (sorry Jordi!). Added
2483 another check when using last_search instead of answer.
Chris Allegrettace452fb2003-02-03 02:56:44 +00002484 - Move regcomp into rcfile.c rather than each display refresh
2485 of winio.c. New function rcfile.c:nregcomp().
2486 This fixes much of nano's resource hogging behavior
2487 in syntax higlighting. (David Benbennick).
Chris Allegrettacff6e6f2003-02-03 03:22:02 +00002488 - Fix justify failing for certain lines, new function
2489 nano.c:breakable() (David Benbennick).
Chris Allegrettaa0d89972003-02-03 03:32:08 +00002490 - Fix screen getting trashed on signals nano can catch
2491 (TERM and HUP). New global variable curses_ended,
Chris Allegrettadbfc56c2003-02-03 03:33:04 +00002492 changes to winio.c:statubar() and nano.c:die()
2493 (David Benbennick).
Chris Allegretta149781d2003-01-26 03:54:00 +00002494- cut.c:
2495 do_cut_text()
2496 - Fix incorrect cursor location when cutting long lines
2497 (David Benbennick).
Chris Allegretta54c1f792003-01-26 04:11:09 +00002498- files.c:
Chris Allegretta858d9d92003-01-30 00:53:32 +00002499 - Set a default PATH_MAX for getcwd() etc calls (David
2500 Benbennick).
2501 do_browse_from()
2502 - Fix path checking to fix bad paths, escaping
2503 the operating directory, new function readable_dir() (David
2504 Benbennick).
Chris Allegrettab698c352003-01-26 22:05:07 +00002505 do_browser()
2506 - Fix incorrect path check for check_operating_dir()
2507 (David Benbennick).
Chris Allegrettaf80a59c2003-01-30 00:57:33 +00002508 - Fix goto directory operating dir check and tilde expansion
2509 (David Benbennick).
Chris Allegretta0eab2362003-02-03 03:39:05 +00002510 - Even more checks and operating dir fixes (David Benbennick).
Chris Allegretta434d6862003-02-03 04:55:17 +00002511 do_insertfile()
2512 - Add some more checks and fix recursion when toggling
2513 multibuffer (David Benbennick).
Chris Allegretta54c1f792003-01-26 04:11:09 +00002514 open_file()
2515 - Fix FD leak with file load error (David Benbennick).
Chris Allegretta5c63f272003-02-02 04:26:54 +00002516 add_open_file()
2517 - Revert the fix for the supposed minor logic error from before;
2518 it was keeping some updates from happening when they should,
2519 which was leading to segfaults with both multibuffer and view
2520 mode on. (DLR; found by David Benbennick)
Chris Allegretta77e726d2003-01-26 19:36:08 +00002521 save_history()
2522 - Fix nrealloc return value being ignored (David Benbennick).
Chris Allegrettac4533572003-02-03 05:04:09 +00002523 - Fix off-by-one bug causing write to unallocated memory
2524 (David Benbennick).
Chris Allegrettace452fb2003-02-03 02:56:44 +00002525- global.c:
2526 thanks_for_all_the_fish()
2527 - Fix compiling with DEBUG and multibuffer (David Benbennick).
Jordi Mallacheeb50042003-01-18 22:42:34 +00002528- nano.c:
Chris Allegrettaa3407662003-01-26 21:13:03 +00002529 do_char()
2530 - Remove unneeded check_statblank() (David Benbennick).
Chris Allegretta64fc78c2003-01-26 19:57:44 +00002531 do_int_spell_fix(), do_int_speller()
2532 - Fix crashes with mark position, current_x position,
2533 and edit_update args (David Benbennick).
Chris Allegretta2a7b8b22003-01-30 00:42:20 +00002534 do_justify()
2535 - Unset KEEP_CUTBUFFER so nano won't crash with subsequent
2536 ^K cuts and justifies (David Benbennick).
Chris Allegrettae92a7bc2003-01-28 01:36:38 +00002537 do_mouse()
2538 - Fix the mouse code to work with lines longer than COLS and
2539 with the proper positioning, including special characters
2540 (David Benbennick).
2541 do_preserve_msg():
2542 - Unsplit error message into a single fprintf call (Jordi).
Chris Allegretta3d459ad2003-01-22 01:09:40 +00002543 main()
2544 - Call load_file with arg 0 for insert, as we aren't really
2545 doing an insert, allows new_file() to run if we open a
2546 non-file at startup.
2547 usage()
Jordi Mallacheeb50042003-01-18 22:42:34 +00002548 - Remove gettext markings from -p/--preserve (Jordi).
Chris Allegretta36fec722003-01-22 01:13:25 +00002549 - Revamp -H option message to fit in 80 column terminal.
Chris Allegretta1a128af2003-01-26 04:15:56 +00002550 window_init()
2551 - Fix leaking *WINDOWs (no pun intended) (David Benbennick).
Chris Allegretta1939c352003-01-26 04:26:25 +00002552- search.c:
Chris Allegretta8a85aa02003-01-26 20:02:15 +00002553 do_search(), do_replace_loop()
2554 - Fix edit_update call to use CENTER instead of current_x
2555 (related to David Benbennick's fixes for spelling).
Chris Allegretta1939c352003-01-26 04:26:25 +00002556 do_replace_loop()
2557 - Fix various bugs having to do with replace string length
2558 and positioning (David Benbennick).
Chris Allegretta63d0b482003-01-26 19:47:10 +00002559 edit_refresh()
2560 - Fix cursor being above as well as below the current screen
2561 (David Benbennick).
Chris Allegretta3bbc4162003-01-23 00:46:12 +00002562- winio.c:
2563 bottombars()
2564 - Change strcpy of gettext() "Up" string to strncpy of max
2565 width 8, to stop stupid strcpy crash.
Chris Allegrettadb28e962003-01-28 01:23:40 +00002566 do_yesno()
2567 - Fix mouse interaction bugs with yes/no prompt (David Benbennick).
Chris Allegrettaf22e8bf2003-01-23 01:21:26 +00002568- nanorc.sample:
2569 - Change comment to say magenta instead of purple.
2570
Chris Allegrettad46f5442003-01-17 21:47:33 +00002571GNU nano 1.1.99pre1 - 2003.01.17
David Lawrence Ramseydc60b722002-10-25 16:08:53 +00002572- General:
Chris Allegrettad46f5442003-01-17 21:47:33 +00002573 - New date format for NEWS and ChangeLog.
Chris Allegretta7662c862003-01-13 01:35:15 +00002574 - Completely removed PICO_MODE, as with the search/replace
2575 history patch we should have the extended functionality we can
2576 without being incompatible with Pico. Removed all code for
2577 different search/replace string editing and alternate shortcut
2578 list. I'm sure I won't even have to ask for feedback on this
2579 one :-)
2580 - Add in Pico's -p flag, (-p, --preserve). To preserve the XON
2581 and XOFF keys (^Q and ^S). Add warning if we invoke -p and
2582 add checks for using --preserve (to skip warning) and --pico
2583 (to force showing it). New flag PRESERVE, function
2584 do_preserve_msg(), changes to main(), signal_init().
2585 - Search history and replace history up/down cursor arrows,
2586 w/history tab completion, not available w/NANO_SMALL. Changes
2587 to statusq(), others (Ken Tyler). Added shortcut to
2588 search/replace shortcuts so people will know it's there,
2589 forced KEY_UP and KEY_DOWN defs in nano.h (Chris, in case
2590 blame needs to be placed later). Minor fixes by DLR: allow ^P
2591 and ^N as alternatives to the up and down arrows, make sure
2592 the "Up" shortcut is displayed properly in the help menu,
2593 remove a few bits of unneeded and/or warning-generating code,
2594 and fix some missing statusq() prompts with --enable-tiny.
Chris Allegrettaf3de8b52003-01-16 23:44:46 +00002595 - Added search/replace history log. Flag -H, --historylog.
2596 Flags HISTORY_CHANGED and HISTORYLOG (only room for one more
2597 flag!), added entries in nanorc.sample, new functions
2598 log_history and save_history (Ken Tyler).
Jordi Mallach5e4b8cf2002-10-26 15:02:14 +00002599 - Translation updates (see po/ChangeLog for details).
David Lawrence Ramseydc60b722002-10-25 16:08:53 +00002600 - Forward-ported Chris' --disable-wrapping-as-root option from
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00002601 1.0.9. Per Jordi's suggestions, have it override
2602 $SYSCONFDIR/nanorc but not ~/.nanorc. (DLR)
2603 - Change all references to /etc/nanorc in the documentation to
2604 $SYSCONFDIR/nanorc. (DLR)
David Lawrence Ramsey99519ae2002-11-04 16:12:19 +00002605 - Minor cosmetic tweaks to the ngettext() macro, and fix to
2606 properly detect systems lacking ngettext() and correctly
2607 compile on them; the previous fix didn't work. (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002608 - Fix problems with some code sections' not being #ifdef'ed out
2609 when they should be, or being #ifdef'ed out improperly. (David
2610 Benbennick and DLR)
2611 - Change FOLLOW_SYMLINKS to NOFOLLOW_SYMLINKS, and rework the
2612 associated logic accordingly, throughout the code. (David
2613 Benbennick)
2614 - Rework #ifdefs to not include mouse_init() at all if
2615 DISABLE_MOUSE is defined or NCURSES_MOUSE_VERSION isn't. (DLR)
2616 - For consistency, change many references of (!x) to (x == NULL)
2617 and (x) to (x != NULL). (DLR)
2618 - Define KEY_IC properly (and KEY_DC more portably) when slang
2619 support is enabled, and remove the hack to work around the
2620 former's not being defined. (David Benbennick and DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00002621 - Miscellaneous tweaks to update_color() calls, to make sure
2622 they're called at the right times and that refreshes are done
2623 afterwards only when needed. (David Benbennick)
2624 - Renamed [have_]past_editbuff [have_]search_offscreen. (DLR)
2625 - Add the "preserve" option to the nanorc file, to match
2626 nanorc.sample. (DLR)
Chris Allegretta0e7a3f52003-01-15 03:06:25 +00002627 - Fixed awful scrolling in do_int_speller. Problem was
2628 findnextstr() calling edit_update(), though screen updating
2629 is not its business. Added checks in do_search() and
2630 do_replace_loop() to do the checks. It really should not be
2631 done here, as some function in winio.c should handle this,
2632 but I can't seem to find a good place to put this check.
Chris Allegrettad757e252003-01-15 19:33:27 +00002633 - Updated all copyright notices to say 2003 rather than 2002, as
2634 nearly all the source files have been worked on this year
2635 (DLR).
Jordi Mallach3e5ad632002-12-14 22:15:35 +00002636- configure.ac:
Jordi Mallacha0e829c2003-01-15 17:43:59 +00002637 - Added tr and eu to ALL_LINGUAS (Jordi).
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002638 - Fix now inaccurate description of --enable-tiny's effects; it
2639 no longer disables NLS support. (DLR)
2640 - Fix typo. (David Benbennick)
2641 - Check for strcasecmp() and strncasecmp(), since they are
2642 apparently only standard under BSD. (DLR)
Jordi Mallach631ee1f2003-01-15 17:40:35 +00002643 - Small cleanups. Add copyright header, add autopoint support and
2644 define bug report address and full package name in AC_INIT. Move
2645 ALL_LINGUAS to po/LINGUAS, recommended place for gettext 0.11.
Chris Allegrettad957f592003-01-17 00:17:45 +00002646 - Added --enable-all option to compile in all the extra stuff
2647 we'd normally need extra flags for.
Chris Allegretta7662c862003-01-13 01:35:15 +00002648- color.c:
2649 update_color():
2650 - Remove an unneeded edit_refresh() call after do_colorinit().
2651 (David Benbennick)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002652- cut.c:
2653 do_cut_text()
2654 - Fix a memory corruption problem caused by accessing edittop
2655 after it was freed but before it was reset to a sane value
2656 from current. (David Benbennick)
2657 do_uncut_text()
2658 - If uncutting more than one line of unmarked text at editbot,
2659 don't center the screen, since Pico doesn't. (DLR)
Chris Allegretta688c8eb2003-01-14 23:36:11 +00002660 - If uncutting previously unmarked text, uncut to end if we're
2661 not at the beginning of the line, and set placewewant to 0 if
2662 we are. This matches Pico's behavior. (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002663- files.c:
Chris Allegretta7662c862003-01-13 01:35:15 +00002664 load_file()
2665 - Remove unneeded wmove() call. (David Benbennick)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002666 read_line()
2667 - Miscellaneous cleanups. (David Benbennick)
Chris Allegretta7662c862003-01-13 01:35:15 +00002668 open_file()
2669 - If we're in multibuffer mode and there's an error opening the
2670 file in read-only mode, display the error message on the
2671 statusbar regardless of the value of quiet. (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002672 read_file()
2673 - Miscellaneous cleanups. (David Benbennick)
2674 - Fix len's being off by one when reading in Mac-format files,
2675 exposed by one of David Benbennick's cleanups. (DLR)
2676 - If NO_CONVERT isn't set when we first enter, and it gets set
2677 while reading in the file, unset it again afterwards. (DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00002678 do_insertfile()
2679 - If we're in multibuffer mode and there's an error opening the
2680 file that we're trying to insert, close the new buffer that we
2681 made to hold it and reload the buffer we had open before.
2682 (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002683 add_open_file()
2684 - Fix minor logic error when determining when to resave fileage
2685 and filebot. (DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00002686 load_open_file()
2687 - If switching between files when CONSTUPDATE is set, only force
2688 a cursor position display update if DISABLE_CURPOS isn't set.
2689 This will ensure that the "Switching to [file]" messages are
2690 shown. (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002691 write_file()
2692 - Change lineswritten from a long to an int, to match
2693 filestruct->lineno. (DLR; mismatch found by David Benbennick)
Chris Allegretta7662c862003-01-13 01:35:15 +00002694 real_dir_from_tilde()
2695 - Since this is needed for proper interpretation of paths
2696 containing tildes and not just for tab completion, include and
2697 use it regardless of whether tab completion is disabled.
2698 (David Benbennick and DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002699 input_tab()
2700 - Variable name change: matchBuf -> matchbuf. (DLR)
2701 diralphasort()
2702 - Remove the HAVE_STRCASECMP #ifdef block; see the changes to
2703 configure.ac and nano.h for why. (DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00002704- global.c:
2705 thanks_for_all_the_fish()
2706 - Miscellaneous cleanups. (David Benbennick)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002707- move.c:
2708 do_page_down()
2709 - If there's a page or less of text, do an edit_update() if the
2710 mark is on; otherwise, the highlight won't be displayed. (DLR)
David Lawrence Ramsey9e050ad2002-11-04 16:18:52 +00002711- nano.c:
Chris Allegretta7662c862003-01-13 01:35:15 +00002712 - Added free_history() list calls clean up, added init of list
2713 headers, and modified statusq() calls (Ken Tyler).
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002714 do_prev_word()
2715 - Make the assert match that in do_next_word(). (DLR)
2716 do_enter()
2717 - If smooth scrolling is on, and Enter is pressed on the
2718 magicline, don't center the screen. (DLR)
2719 do_justify()
2720 - Fix memory corruption problem triggered when edittop and
2721 current->next pointed to the same value and current->next was
2722 destroyed during justification. (DLR)
2723 - Center the screen when justification moves the cursor entirely
2724 off the bottom of the screen, instead of when it moves the
2725 cursor near the bottom of the screen, to more closely match
2726 Pico's behavior. (DLR)
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00002727 version()
2728 - Remove obsolete reference to --enable-undo. (David Benbennick)
Chris Allegrettae6600372003-01-17 03:39:41 +00002729 - Move up check for --disable-nls as it's independent of
2730 --enable-tiny now (DLR).
Chris Allegretta5ad92ac2002-12-09 00:58:51 +00002731 do_int_speller()
Chris Allegretta5af58892003-01-17 21:07:38 +00002732 - Make internal spell program use sort -f and uniq to create a
2733 less redundant word list. [The only reason this is going in
2734 during feature freeze is because the int speller is useless as
2735 is and should either be improved or removed. I chose
2736 improved].
Chris Allegretta3f1b6852003-01-12 23:54:05 +00002737 - Change all child error checks to use one goto (gasp!) called
2738 close_pipes_and_exit, so we don't leak FDs.
Chris Allegretta2d5fc3a2003-01-16 03:11:23 +00002739 - Fix FD leaks which occur outside of errors (David Benbennick).
Chris Allegretta334a9402002-12-16 04:25:53 +00002740 do_int_speller(), do_alt_speller()
2741 - Programs now return char *, NULL for successful completion,
2742 otherwise the error string to display. This allows us to give
2743 more useful feedback to the user when spell checking fails.
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002744 ABCD()
2745 - Renamed abcd(). (DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00002746 main()
2747 - Remove an unneeded do_colorinit() call, do major cleanups, and
2748 allow loading of multiple files on the command line when
2749 multibuffers are used. (David Benbennick)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002750- nano.h:
2751 - Make sure NO_RCFILE and COLOR_SYNTAX aren't set to the same
2752 value. (DLR; discovered by Ken Tyler)
2753 - If strcasecmp() and/or strncasecmp() aren't available, use
Chris Allegretta7662c862003-01-13 01:35:15 +00002754 strcmp() and/or strncmp() instead. (DLR)
2755- proto.h:
2756 - Fix the #ifdef block for DISABLE_TABCOMP's being undefined
2757 so that functions only used with tab completion are properly
2758 #ifdef'ed out. (DLR)
2759- search.c:
Chris Allegretta2ad0f6c2003-01-16 03:51:02 +00002760 do_gotoline()
2761 - Don't call blank_statusbar_refresh() so if there's an error
2762 returned in multibuffer mode, we can actually see it.
Chris Allegretta688c8eb2003-01-14 23:36:11 +00002763 do_search()
2764 - Remove erroneously introduced near-duplicate call to
2765 update_history(). (DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00002766 print_replaced()
2767 - Remove and replace with an equivalent ngettext() call. (DLR)
2768 do_replace_loop()
2769 - Fix bug where if text on the magicline was replaced (which can
2770 be done via a regexp replace of "^$" with something other than
2771 ""), a new magicline wouldn't be created. (DLR)
Chris Allegrettaca7113a2003-01-14 23:35:24 +00002772 - Remove check for answer being a blank string, presumed to be
2773 a PICO_MODE holdover, but it stops us from doing a blank
2774 spelling replacement.
Chris Allegretta7662c862003-01-13 01:35:15 +00002775 do_replace()
2776 - For greater Pico compatibility, when an attempt to replace a
2777 string results in 0 replacements due to the string's not being
2778 found, display "[string] not found" instead of "Replaced 0
2779 occurrences". (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002780- utils.c:
Chris Allegretta09fc4302003-01-16 22:16:38 +00002781 is_cntrl_char()
2782 - Rework to fix a problem with displaying certain high-bit
2783 characters. (David Benbennick; reported by Andrzej Marecki)
Chris Allegretta7662c862003-01-13 01:35:15 +00002784 align()
2785 - Don't just assert that the string passed in isn't NULL; check
2786 that it isn't and only do the alignment when it isn't. (David
2787 Benbennick)
2788 nmalloc(), nrealloc()
2789 - If the size passed to nmalloc() or nrealloc() is zero, don't
2790 die with an erroneous out-of-memory error. Also, change
2791 their dying messages to "nano is out of memory!". (David
2792 Benbennick)
2793 charalloc()
2794 - Removed and redefined as a macro that calls nmalloc(). (David
2795 Benbennick)
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00002796- winio.c:
Chris Allegretta09fc4302003-01-16 22:16:38 +00002797 nanogetstr()
2798 - Tweak to make the cursor stay in the same place if we hit a
2799 prompt-changing toggle while it's in the middle of the string.
Chris Allegretta5af58892003-01-17 21:07:38 +00002800 Reset it to -1 (so next time we come here, it'll be set to the
2801 end of the string) if we leave the prompt via Enter or Cancel.
Chris Allegretta09fc4302003-01-16 22:16:38 +00002802 Also fix minor problem with search history where the current
2803 search item could be at the bottom of the history twice in a
2804 row under certain conditions. (DLR)
Chris Allegretta327abda2003-01-17 05:04:17 +00002805 - Remove parens in NANO_CONTROL_I check so nano won't complain if
2806 just NANO_SMALL is defined (David Benbennick).
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00002807 edit_refresh()
2808 - Miscellaneous cleanups that fix a bug where the screen
2809 isn't updated after uncutting chunks of upwardly marked cut
2810 text that are over a page in length. (David Benbennick)
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00002811 do_credits()
2812 - Add David Benbennick to credits. (DLR)
2813- nanorc.sample:
2814 - Added comment to explain the non-escaping of quotes in
2815 color regexes, based on info provided by David Benbennick.
2816 (DLR)
Chris Allegrettaed4fb2c2003-01-11 01:14:07 +00002817 - Added some examples for groff and the nanorc courtesy of
2818 Robert D. Goulding.
2819 - Added double hash marks to comment lines, so people who
2820 uncomment the beginning of every line won't get syntax errors.
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00002821- faq.html:
Chris Allegretta7662c862003-01-13 01:35:15 +00002822 - Miscellaneous fixes and updates for typos, broken links, and
2823 slashes at the end of directories. It is now fully compliant
2824 with HTML 4.01 Transitional. (DLR and David Benbennick)
Chris Allegretta3f8a63c2003-01-17 02:49:23 +00002825 - Added docs about the new unified search string interface and
2826 search histories, and added --enable-all into configure docs.
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00002827- nano.texi:
2828 - Typo fixes and updates. (David Benbennick)
Chris Allegretta9fa5fbd2003-01-13 02:56:29 +00002829 - Updates for the most recent and not so recent changes.
Chris Allegrettaf9ab3f72003-01-17 03:06:28 +00002830- nano.1, nano.1.html
2831 - Updated for the --preserve and --historylog options.
Chris Allegretta916a8ec2003-01-05 21:51:16 +00002832- TODO
2833 - Added some wishlist stuff.
Jordi Mallach3e5ad632002-12-14 22:15:35 +00002834- THANKS:
Jordi Mallacha0e829c2003-01-15 17:43:59 +00002835 - Added Doruk Fisek and Peio Ziarsolo (Jordi).
Chris Allegrettae8ad5ed2002-10-25 03:15:48 +00002836
Chris Allegretta22578932002-10-25 03:14:11 +00002837GNU nano 1.1.12 - 10/24/2002
Jordi Mallachdab02992002-10-06 23:35:19 +00002838- General:
2839 - Translation updates (see po/ChangeLog for details).
Chris Allegretta1dd0bc92002-10-13 18:43:45 +00002840 - Remove malloc.h, as it's unneeded and just causes annoyances on
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00002841 *BSD systems. Added stdlib.h to global.c.
Chris Allegretta1dd0bc92002-10-13 18:43:45 +00002842 - Added Meta-Y toggle to disable/enable color syntax highlighting
2843 completely. This may eventually be per-buffer, but that's too
2844 complicated for a feature freeze.
Chris Allegrettae42df732002-10-15 00:27:55 +00002845 - Disable VSTOP keystroke. Stops people accidentally locking up
2846 nano (suggested by David Benbennick).
David Lawrence Ramsey2ab03f62002-10-17 02:19:31 +00002847 - Pluralize messages with ngettext() where needed. (David
Chris Allegrettad45c5992002-10-25 01:41:31 +00002848 Benbennick) Tweaked to compile on systems lacking ngettext()
2849 by DLR (problem found by Ken Tyler).
David Lawrence Ramsey2ab03f62002-10-17 02:19:31 +00002850 - Update nano.1 and nano.1.html to show that nano now does an
2851 emergency save on receiving SIGHUP or SIGTERM. (DLR)
2852 - Don't include "nowrap" in the long options if
2853 DISABLE_WRAPPING is defined. (DLR)
2854- files.c:
2855 read_file()
2856 - Minor efficiency fixes, some of which fit in with the change
2857 to ngettext() usage mentioned above. (David Benbennick)
2858 do_browser()
2859 - Make sure the value of path is mallocstrcpy()ed into retval
2860 and not just assigned to it, to avoid memory corruption
2861 problems. (DLR)
2862- nano.c:
Chris Allegretta2a15c582002-10-25 01:51:13 +00002863 version()
2864 - If ENABLE_NLS isn't defined, display "--disable-nls"
2865 (suggested by Ken Tyler). (DLR)
David Lawrence Ramsey2ab03f62002-10-17 02:19:31 +00002866 justify_format()
2867 - Make sure the double space maintained after sentence-ending
2868 punctuation is done when that punctuation is immediately
2869 followed by a bracket-type character, so justifying e.g.
2870 sentences in parentheses works properly. (David Benbennick)
2871 handle_hup()
2872 - Renamed handle_hupterm() to show that it now handles SIGTERM
2873 as well as SIGHUP. (DLR)
2874 signal_init()
2875 - Do an emergency save on receiving either SIGHUP or SIGTERM,
2876 not just SIGHUP. (David Benbennick)
2877 main()
2878 - Fix a problem where control key commands were printed
2879 literally instead of interpreted after a failed search of a
2880 one-line file. (David Benbennick)
2881- proto.h:
2882 handle_hup()
2883 - Renamed handle_hupterm(); see above for why. (DLR)
2884- winio.c:
2885 edit_add()
2886 - Fix a potential infinite loop occurring with certain
2887 zero-length regexes. (David Benbennick)
Chris Allegretta71fb1f52002-10-02 00:21:31 +00002888
Chris Allegretta136a38a2002-10-02 00:05:40 +00002889GNU nano 1.1.11 - 10/01/2002
Jordi Mallach25daa052002-07-29 00:16:38 +00002890- General:
2891 - Translation updates (see po/ChangeLog for details).
Jordi Mallach1f1022f2002-08-21 18:19:53 +00002892 - Upgraded to gettext 0.11.5 (Jordi).
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00002893 - Updated nano.1, nano.1.html, and nano.texi to fix an
2894 inaccuracy in the description of -Q/--quotestr. (DLR)
2895 - Set REG_EXTENDED in all regcomp() calls. (DLR)
2896 - Minor cosmetic code cleanups. (DLR)
Chris Allegrettaf7c68112002-09-03 22:58:40 +00002897 - Changed do_insertfile to (a) report multibuffer status at the
2898 prompt and allowing it to be toggled, taking into account the
2899 need to keep the translatable strings, and (b) added a
2900 variable inspath to keep track of what the string was before
2901 toggling. I'm sure there's bugs, have at it.
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00002902 - Make sure all functions have prototypes in proto.h, and swap
2903 some functions around to put similar functions closer
2904 together (for this, rename clear_bottombars() to
2905 blank_bottombars()). (DLR; suggested by David Benbennick)
David Lawrence Ramseye21adfa2002-09-13 18:14:04 +00002906 - More changes of char *'s to const char *'s when possible.
2907 (David Benbennick)
2908 - Fix various minor memory leaks in files.c. (David Benbennick)
2909 - Fix minor problems with the operating directory code: set the
2910 operating directory properly if it's specified only in a
2911 nanorc file, and handle an operating directory of "/"
2912 properly. New function init_operating_dir() to handle
2913 setting it both on the command line and in the nanorc file.
2914 (David Benbennick)
David Lawrence Ramsey1f28b8f2002-09-27 14:21:59 +00002915 - Major rewrite of color and screen update routines to fix
2916 minor bugs and increase efficiency. New function
2917 set_colorpairs() for the former. (David Benbennick)
Jordi Mallachcb7c8d82002-07-27 02:49:46 +00002918- configure.ac:
2919 - Added pt_BR to ALL_LINGUAS (Jordi).
Chris Allegretta82559b32002-08-22 01:12:41 +00002920 - Changed --enable-color warning to be slightly less severe.
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00002921 - Put the configure options in more or less alphabetical order,
2922 and remove --enable-undo, since it doesn't do anything. (DLR)
Chris Allegrettad865da12002-07-29 23:46:38 +00002923- files.c:
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00002924 open_file()
2925 - String change: "File "x" is a directory" -> ""x" is a
2926 directory". (Jordi)
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00002927 do_insertfile()
2928 - Disallow multibuffer toggling at the "Insert File" prompt if
2929 we're in both view and multibuffer mode, so as to keep proper
2930 integration between the two, and make sure the toggle
David Lawrence Ramseye21adfa2002-09-13 18:14:04 +00002931 actually works all the time otherwise. Also, make sure
2932 TOGGLE_LOAD_KEY isn't referenced when NANO_SMALL and
2933 ENABLE_MULTIBUFFER are both defined. (DLR)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00002934 open_prevfile_void(), open_nextfile_void()
2935 - Return the return values of open_prevfile() and
2936 open_nextfile(), respectively, instead of (incorrectly)
2937 calling them and returning 0. (DLR)
Chris Allegrettad865da12002-07-29 23:46:38 +00002938 real_dir_from_tilde()
2939 - Rework to use getpwent() exclusively and end reliance on
2940 $HOME. Adapted from equivalent code in do_rcfile(). (DLR)
2941 input_tab()
2942 - Most likely fixed the check marked with FIXME, so that tab
2943 completion works properly when we're trying to tab-complete a
2944 username and the string already contains data. (DLR)
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00002945- global.c:
2946 shortcut_init()
David Lawrence Ramseye21adfa2002-09-13 18:14:04 +00002947 - Disable the new multibuffer toggle at the file insertion
2948 prompt when NANO_SMALL and ENABLE_MULTIBUFFER are both
2949 defined. (DLR)
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00002950 thanks_for_all_the_fish()
2951 - Make sure the reference to help_text is #ifdefed out when
2952 --disable-help is used. (DLR)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00002953- move.c:
2954 page_up()
2955 - Fix bug where current is moved up two lines when the up arrow
2956 is pressed on the top line of the edit window; this causes a
2957 segfault is the top line in the edit window is the second
2958 line of the file, as the line current ends up on doesn't
David Lawrence Ramsey768e8f02002-08-22 04:03:45 +00002959 exist. (Jeff DeFouw)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00002960 do_down()
2961 - Fix bug where, if the last line in the edit window is the
2962 line before the magicline, and smooth scrolling is turned
2963 off, pressing the down arrow on that last line centers the
2964 cursor without updating the edit window. (Jeff DeFouw)
Chris Allegrettad865da12002-07-29 23:46:38 +00002965- nano.c:
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00002966 version()
2967 - Put the listed configure options in more or less alphabetical
2968 order. (DLR)
2969 open_pipe()
2970 - If we're in view mode here (in which case we're also in
2971 multibuffer mode), don't set the modification flag. (DLR)
Chris Allegrettad865da12002-07-29 23:46:38 +00002972 do_next_word(), do_prev_word()
2973 - If we're on the last/first line of the file, don't center the
2974 screen; Pico doesn't in the former case. (DLR)
2975 do_backspace()
2976 - Rework to call edit_refresh() regardless of the value of
2977 current_x if ENABLE_COLOR is defined, so that multiple-line
2978 color regexes are properly updated onscreen as they are in
2979 do_delete(). (DLR)
2980 do_delete()
2981 - Rework to only call edit_refresh() unconditionally if
2982 ENABLE_COLOR is defined; if it isn't, and we're not deleting
2983 the end of the line, only call update_line(). (DLR)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00002984 do_wrap()
2985 - Make sure wrapping is done properly when the number of
2986 characters on the line is exactly one over the limit. (David
2987 Benbennick)
Chris Allegretta0ae5c722002-09-19 23:20:26 +00002988 - Restore the previous wrapping point behavior (pre 1.1.10)
Chris Allegretta43000922002-09-21 15:41:33 +00002989 (David Benbennick). Minor fix by DLR to prevent spaces from
2990 being added to the ends of lines ending in spaces or lines
2991 ending in tabs (the latter case found by David Benbennick).
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00002992 do_alt_speller()
2993 - Readd DLR's fix to preserve marking when using the alternate
2994 spell checker; it was accidentally dropped. (David
2995 Benbennick)
2996 do_justify()
2997 - Fix cosmetic problems caused when justifying on the
David Lawrence Ramseye21adfa2002-09-13 18:14:04 +00002998 magicline, and a minor problem where the cursor would
2999 sometimes be moved to the wrong line after justification.
3000 (David Benbennick)
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00003001 main()
3002 - When searching through the main shortcut list looking for a
3003 shortcut key, stop searching after finding one; this avoids a
3004 rare segfault. (DLR)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003005- nano.h:
3006 - Change search toggles for case sensitive searching and regexp
3007 searching to M-C and M-R, respectively. (DLR; suggested by
3008 Chris)
Chris Allegretta515ba322002-09-14 21:16:40 +00003009 - Add support for HP-UX's curses, which doesn't seem to support
3010 KEY_HOME and KEY_END.
Chris Allegretta79cdfdc2002-08-22 02:58:55 +00003011- nanorc.sample:
3012 - Fix the c-file regex for all caps words to be extended regex
3013 format ({} instead of \{\}) (found by DLR).
Chris Allegretta3f9c3bf2002-09-18 00:00:12 +00003014 - Add a better string matching sequence that includes escaped
3015 quotes (thanks to Carl E. Lindberg, who doesn't even know he
David Lawrence Ramsey1f28b8f2002-09-27 14:21:59 +00003016 helped ;-). Some unneeded \'s in that sequence removed, and
3017 a new sequence to handle multi-line quotes added, by David
3018 Benbennick.
Chris Allegretta136a38a2002-10-02 00:05:40 +00003019 - Add some examples for HTML and TeX files (David Benbennick).
Chris Allegrettade852622002-09-18 00:28:57 +00003020- rcfile.c:
3021 parse_colors()
3022 - Stop infinite loop when syntax doesn't begin with " char.
David Lawrence Ramseye21adfa2002-09-13 18:14:04 +00003023- utils.c:
3024 charalloc()
3025 - Switch from using calloc() to using malloc(). (David
3026 Benbennick)
David Lawrence Ramsey605165e2002-09-11 01:48:14 +00003027- faq.html:
3028 - Typo fix. (DLR)
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003029- AUTHORS:
3030 - Add David Benbennick. (Jordi and Chris)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003031- TODO:
3032 - Add entry in the 1.4 section for Pico's paragraph searching
3033 ability (at the search prompt, ^W goes to the paragraph's
3034 beginning, and ^O goes to the paragraph's end). (DLR)
Chris Allegretta52069c62002-07-25 22:27:50 +00003035
Chris Allegretta720a9e02002-07-25 22:26:33 +00003036GNU nano 1.1.10 - 07/25/2002
Jordi Mallachcb7c8d82002-07-27 02:49:46 +00003037- General:
Jordi Mallach1f226872002-05-13 15:05:38 +00003038 - Translation updates (see po/ChangeLog for details).
Jordi Mallach790d3622002-06-03 12:44:05 +00003039 - Upgraded to gettext 0.11.2 (Jordi).
Jordi Mallachbd338652002-06-03 12:32:28 +00003040 Removed intl/ entirely, and a few more tweaks by gettextize.
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003041 - i18nized a few strings used in DEBUG mode. (DLR)
3042 - Some chars being assigned 0 are now assigned '\0'. (DLR)
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00003043 - Put header file #includes in a more consistent order. (DLR)
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003044 - Remove some unneeded blank lines and spaces, and make some
3045 spacing more consistent. (DLR)
3046 - When possible, use iscntrl() to determine whether a character
3047 is a control character or not. (DLR)
3048 - Miscellaneous typo fixes. (DLR)
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00003049 - Many fixes to the help browser and shortcut lists: efficiency
3050 updates, consistency fixes, help text fixes and improvements,
3051 and spacing improvements. (David Benbennick)
Chris Allegretta6df90f52002-07-19 01:08:59 +00003052 - Make some functions use const variables when possible, and
3053 also make them static when necessary. (David Benbennick,
3054 necessary redefined by Chris ;-)
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003055 - Add Carl Drinkwater's backup file option (-B or --backup on the
3056 command line, M-B in nano's global shortcuts). If the original
3057 file is unchanged from when it was loaded, it is backed up to
3058 filename~; if the original file has been changed or deleted
3059 since it was originally loaded, it isn't backed up. The backup
3060 file retains the permissions, owner/group, and
3061 access/modification times of the original file. This option is
3062 disabled when --enable-tiny is used. It will not back up
3063 temporary files. Minor fixes to it by David Benbennick and
3064 DLR. Changes to open_file(), add_open_file(),
3065 load_open_file(), write_file(), and do_writeout().
3066 - Add \n's to the ends of "filename is %s" debugging strings.
3067 (Carl Drinkwater)
3068 - Add the long option --quotestr as an alternative for -Q, and
3069 --regexp as an alternative for -R; they were listed in nano's
3070 usage information, but weren't actually in nano. Also, display
3071 "-?" as an alternative for "-h" in nano's usage information,
Chris Allegretta6df90f52002-07-19 01:08:59 +00003072 put the command line options in a more consistent (i.e. mostly
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003073 alphabetical) order in nano, put the long options in a more
3074 consistent order in rcfile.c and nanorc.sample, don't include
3075 rcfile options if their equivalent command line options are
3076 disabled, and remove obsolete relative option from
3077 nanorc.sample. (DLR)
3078 - Change "File Name to Append/Prepend" to "File Name to
3079 Append/Prepend to". The original prompt could confusingly
3080 imply that we are appending/prepending another file to the
3081 current file, when we are actually appending/prepending the
3082 current file to another file. (DLR)
Chris Allegretta6df90f52002-07-19 01:08:59 +00003083 - Put nano.1, nano.1.html, and nano.texi up to date, and fix a
3084 few inconsistencies in them. (DLR)
3085 - Typo fixes for the ChangeLog. (David Benbennick and DLR)
3086 - Complete rewrite of justification code to fix some bugs and
3087 improve its functionality. (David Benbennick)
3088 - If a variable isn't going to be used in tiny mode, #define it
3089 out when possible. (David Benbennick)
3090 - Major reworking of the cutting/screen-updating code in cut.c,
3091 some functions in utils.c, the cursor placement code in
3092 winio.c, and many, many other areas to increase efficiency.
3093 (David Benbennick)
3094 - Rework handling of prompts when there's a list of partial
3095 filename matches on the screen: remove kludgy case-by-case
3096 handling (which didn't even handle every case), and have
3097 statusq() handle it directly for all cases. (David Benbennick
3098 and DLR)
3099 - Fix some warnings and errors that show up when using gcc's
3100 -pedantic option. (DLR)
3101 - Add a comment to nanorc.sample warning that an out-of-range
3102 negative value for fill can make nano die complaining that
3103 the screen is too small (which may not be immediately
Chris Allegrettad865da12002-07-29 23:46:38 +00003104 obvious). (DLR)
Chris Allegretta6df90f52002-07-19 01:08:59 +00003105 - There were some opendir() calls in files.c without
3106 corresponding closedir() calls; add them. (DLR)
3107 - Move align() and null_at() from nano.c to utils.c, and move
3108 the openfilestruct handling functions from nano.c to files.c.
3109 (DLR)
3110 - In color.c, start the "#ifdef ENABLE_COLOR" block after
3111 including all the header files, as rcfile.c does; this fixes
3112 a warning about ANSI C'S inability to handle blank files.
3113 (DLR)
Chris Allegrettacf287c82002-07-20 13:57:41 +00003114 - Add new function is_cntrl_char() as a wrapper for iscntrl();
3115 this is needed to treat ASCII 0x80-0x9f as control characters
3116 consistently. (Without this, they will only be treated as
3117 such when gettext is used; when it isn't used, they will be
3118 printed as-is and be interpreted as commands by xterm, which
3119 will corrupt the display.) (DLR)
Chris Allegretta6df90f52002-07-19 01:08:59 +00003120 - Add command line option -I/--ignorercfiles to ignore
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003121 $SYSCONFDIR/nanorc and ~/.nanorc. (Carl Drinkwater). Fix to
3122 parsing getopt args (DLR).
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003123 - Fix minor bugs with importing certain text files in Mac
3124 format. (DLR)
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003125- files.c:
Chris Allegrettadffa2072002-07-24 01:02:26 +00003126 append_slash_if_dir(), input_tab()
3127 - Changed variable names: lastWasTab -> lastwastab, matchBuf ->
3128 matchbuf. (DLR)
3129 check_operating_dir()
3130 - Memory leak fix. (David Benbennick)
3131 check_writable_directory()
3132 - Optimizations (David Benbennick).
3133 cwd_tab_completion()
3134 - Changed a variable name: dirName -> dirname. (DLR)
3135 do_browser()
3136 - Optimizations and mouse selection fixes (David Benbennick).
3137 do_writeout()
3138 - Fix problem with formatstr's being defined as NULL when
3139 --enable-tiny is used. Since formatstr isn't ever used in tiny
3140 mode, don't bother even creating the variable. (David
3141 Benbennick and DLR)
3142 do_insertfile()
3143 - Memory leak fix (accidentally dropped 1st time).
3144 (David Benbennick).
3145 get_full_path()
3146 - Memory leak fix. Also, make it properly interpret ~/ notation
3147 so, among other things, the option "--operatingdir ~" works.
3148 (David Benbennick)
3149 - More optimizations (David Benbennick).
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003150 new_file()
Chris Allegretta6df90f52002-07-19 01:08:59 +00003151 - Make sure current_x is zero; this fixes a problem where the
3152 current cursor position wasn't reset when reading in a file in
3153 multibuffer mode. (David Benbennick)
Chris Allegrettadffa2072002-07-24 01:02:26 +00003154 - Use make_new_node rather than setting up fileage by hand
3155 (David Benbennick).
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003156 read_file(), read_line()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003157 - Rework to properly handle nulls in the input file, fix
3158 detection of binary files to properly mark a file as binary if
3159 the only binary characters it contains are ASCII 127's, and
3160 after reading the last line of a file that doesn't end in a
3161 newline, increment totsize. Remove previous kludge to set
3162 totsize properly. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003163 write_file()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003164 - Rework to properly handle nulls in the input file. When
3165 appending/prepending, don't change the current file's name to
3166 the name of the file it's being appended/prepended to. When
3167 writing a marked selection to a file, save and restore totsize
3168 so it isn't decreased by the size of the selection afterward.
3169 (DLR)
Chris Allegrettadffa2072002-07-24 01:02:26 +00003170 - Optimizations (David Benbennick).
Chris Allegretta6fe98d72002-05-16 23:30:14 +00003171- global.c:
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003172 free_toggles()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003173 - Only include if we're not using tiny mode. (David Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003174 toggle_init()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003175 - Remove global entries for search toggles, as they aren't really
3176 global. (DLR)
3177 - Don't reinititialize the toggles if they've already been
3178 initialized; it's unnecessary and even causes a segfault in
3179 do_toggle() if Pico emulation mode is the toggle in question.
3180 Don't free the toggles here, either; it's unnecessary after the
3181 above change. (David Benbennick)
Chris Allegretta6df90f52002-07-19 01:08:59 +00003182 - If wrapping is disabled, don't include the toggle for it.
3183 (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003184 shortcut_init()
Chris Allegretta6fe98d72002-05-16 23:30:14 +00003185 - Rework IFHELP macro (David Benbennick).
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003186- move.c
3187 page_down(), page_up()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003188 - Put sanity checks for current_x back in, to avoid rare
3189 segfaults (oops). Now, however, they are only called when
3190 placewewant is zero instead of being called unconditionally;
3191 see changes to winio.c:actual_x_from_start() below. (DLR)
Jordi Mallach790d3622002-06-03 12:44:05 +00003192- nanorc.sample:
Chris Allegretta5c6379d2002-05-18 03:13:03 +00003193 - Put in much less crappy example regex rules for c-file.
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003194- nano.c:
Chris Allegrettadffa2072002-07-24 01:02:26 +00003195 clear_filename()
3196 - Remove this function, as it has unneeded functionality, is
3197 short enough to be inlined, and is only called in two spots
3198 anyway. (DLR)
3199 die()
3200 - Rework slightly to remove redundant printing of last message
3201 and print all messages after resetting the terminal. (DLR)
3202 do_backspace()
3203 - Make sure placewewant is set properly, and that the mark is
3204 moved backwards. (David Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003205 do_char()
Chris Allegretta6df90f52002-07-19 01:08:59 +00003206 - Fix a problem where, if ENABLE_COLOR wasn't used, typing
3207 characters on a marked line before the beginning of the mark
3208 would make the highlight short by one. (David Benbennick)
Chris Allegrettadffa2072002-07-24 01:02:26 +00003209 do_cont()
3210 - Handle the case where the window was resized while we were
3211 stopped. (David Benbennick)
3212 do_delete()
3213 - Make sure placewewant is set properly, to match Pico's
3214 behavior. (DLR)
3215 do_int_spell(), do_alt_spell()
3216 - Rework to save the marked selection before doing spell checking
3217 and restore it afterward. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003218 do_next_word(), do_prev_word()
Chris Allegretta6df90f52002-07-19 01:08:59 +00003219 - Fix a problem where highlighting isn't done properly after
3220 calling either of these, and another problem where the cursor
3221 would move back too far in certain cases with do_prev_word().
3222 (David Benbennick)
Chris Allegrettadffa2072002-07-24 01:02:26 +00003223 do_toggle()
3224 - Since the search mode toggles aren't global anymore, we don't
3225 need to explicitly block them here anymore (which will end up
3226 blocking the global backup mode toggle, which is the same as
3227 the backwards search toggle). (DLR)
3228 do_wrap()
3229 - fill fixes and 'two short word wrap' bug (David Benbennick).
3230 global_init()
3231 - Call die_too_small() when fill is 0. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003232 handle_sigwinch()
Chris Allegretta6df90f52002-07-19 01:08:59 +00003233 - Make sure we adjust fill when the window is resized. (David
3234 Benbennick)
3235 - Call die_too_small() when fill is 0. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003236 help_init()
Chris Allegretta6df90f52002-07-19 01:08:59 +00003237 - Since the return value of snprintf() isn't well defined, use
3238 sprintf() instead. (David Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003239 main()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003240 - Rework to blank out filename manually before doing anything
3241 with it, instead of calling clear_filename() in two places.
3242 Make startline an int instead of a long, since it's supposed to
3243 hold a line number. (DLR)
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00003244 - Properly handle multiple -r settings on the command line. (Carl
3245 Drinkwater)
Chris Allegretta6df90f52002-07-19 01:08:59 +00003246 - Fix a bug that prevented file insertion via the Insert key
3247 from working at all when --enable-multibuffer wasn't used
3248 (oops). (DLR)
3249 - Adapt David Benbennick's fix to get fill to accept negative
3250 numbers properly in parse_rcfile() (see below) to the
3251 handlers for the -r and -T options as well, so that -r/-T 0
3252 can be treated separately from -r/-T string. (DLR)
Chris Allegrettacf287c82002-07-20 13:57:41 +00003253 - Fix so that Esc-Esc-Space is properly treated as Ctrl-Space.
3254 (DLR)
Chris Allegrettadffa2072002-07-24 01:02:26 +00003255 usage()
3256 - List the options that are ignored for the purpose of Pico
3257 compatibility, and make some minor consistency fixes. (DLR)
Chris Allegrettac46337b2002-07-23 00:34:48 +00003258- nano.h:
3259 - Fix some space/tab formatting for flags (DLR).
Chris Allegretta6df90f52002-07-19 01:08:59 +00003260- proto.h:
3261 - Remove external declaration of the global int fill, since
3262 it's now static. (DLR)
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003263- rcfile.c:
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003264 parse_rcfile()
Chris Allegretta6df90f52002-07-19 01:08:59 +00003265 - Add David Benbennick's fix that allows fill to accept
3266 negative numbers properly. Specifically, use strtol() there
3267 instead of atoi() so that errors can be detected. Also
3268 adapted for tabsize by DLR.
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003269 parse_next_regex(), colortoint()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003270 - Only include if ENABLE_COLOR is defined. (DLR)
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003271- search.c:
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003272 search_init()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003273 - Since the search mode toggles aren't global anymore, rework the
3274 part of this function referencing them so that they still work.
3275 (DLR)
3276 - Remove unneeded toggles variable. (David Benbennick)
Chris Allegretta6df90f52002-07-19 01:08:59 +00003277 - Fix a problem where the first character of buf was overwritten
3278 if the last search string was one third the number of columns
3279 plus one. (David Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003280 findnextstr()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003281 - Update the current line at current_x if we don't find a match.
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00003282 Also, pass current_x_find to strstrwrapper() so we know whether
3283 we're at the beginning of a string or not (see changes to
3284 strstrwrapper() below), and reset it between lines. (DLR)
3285 do_gotoline():
3286 - Make sure placewewant is zero after we go to a line. (David
3287 Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003288 do_gotopos()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003289 - Simplify the sanity check to only put x within the range of the
3290 current line; don't call actual_x() anymore. (DLR)
3291- utils.c:
3292 - Add sunder() and unsunder(). These functions convert nulls
3293 other than the terminating null in strings to newlines and
3294 back; they're used to handle null characters in files properly.
3295 (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003296 lowercase()
Chris Allegretta6df90f52002-07-19 01:08:59 +00003297 - Remove, since it isn't actually used anywhere. (David
3298 Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003299 strstrwrapper()
3300 - Set REG_NOTBOL when we're not at the beginning of a
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00003301 string, to avoid false positives when searching for regular
3302 expressions prefixed with ^. Make it take a new parameter,
3303 line_pos, to determine where we are in the string. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003304 check_wildcard_match()
Chris Allegretta6df90f52002-07-19 01:08:59 +00003305 - Changed variable names: retryPat -> retrypat, retryText ->
3306 retrytext. (DLR)
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003307- winio.c:
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003308 actual_x_from_start()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003309 - Overhaul to make cursor placement more like that of Pico: add
3310 sanity check for i, and then place i as close to the value of
3311 xplus column as possible. This change is most noticeable when
3312 moving down through binary files. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003313 do_credits()
3314 - Fix for the i18ned credits so it will compile with -pedantic
3315 (DLR & Chris).
Chris Allegretta079b5492002-09-19 23:54:53 +00003316 do_help()
3317 - Add support for the handled keyboard escape sequences in the
3318 help menu, as they are needed with some terminals (e.g. xterm
3319 with TERM=ansi). (DLR)
3320 edit_refresh()
3321 - Turn on leaveok() so the cursor doesn't bounce around the
3322 screen while we're updating it (most noticeable when using
3323 color syntax over a very slow connection).
3324 do_replace_highlight()
3325 - When using regexps, make sure the highlight is the length of
3326 the search result and not the regexp string. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003327 nanogetstr()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003328 - After the user presses Enter at the prompt, refresh the edit
3329 window in case there's a list of possible filename matches
3330 (left over from attempted tab completion) on it. (DLR)
Chris Allegretta079b5492002-09-19 23:54:53 +00003331 statusbar()
3332 - Limit statusbar display to the number of columns less four, and
3333 don't allow it to go over its original row. (David Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003334 titlebar()
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00003335 - Tweak text spacing and printing so that the titlebar text looks
3336 better on smaller terminals. (Carl Drinkwater)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003337 update_line()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003338 - When marking control characters, make sure the mark moves
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003339 forward by two characters instead of one. Rework control
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003340 character display routine to display newlines within the line
3341 (which should never occur under normal circumstances; they will
3342 only be there if the line had nulls in it and was unsunder()ed
3343 beforehand) as ^@'s. (DLR)
Chris Allegrettacf287c82002-07-20 13:57:41 +00003344 - Fix to properly treat ASCII 128-159 as control characters.
3345 (DLR)
Jordi Mallach7d401342002-07-05 23:46:31 +00003346- configure.ac:
3347 - Added ms to ALL_LINGUAS (Jordi).
3348 - Merged acconfig.h in (Jordi).
Chris Allegretta6df90f52002-07-19 01:08:59 +00003349 - Fixed so that --enable-debug defines DEBUG and undefines
3350 NDEBUG. (Carl Drinkwater)
Jordi Mallach790d3622002-06-03 12:44:05 +00003351- THANKS:
3352 - Completed a bit (Jordi).
Chris Allegretta6df90f52002-07-19 01:08:59 +00003353 - Fixed David Benbennick's email address. (David Benbennick)
3354 - Typo fix. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00003355
Chris Allegretta8b75a782002-05-13 00:09:30 +00003356GNU nano 1.1.9 - 05/12/2002
Chris Allegretta7162e3d2002-04-06 05:02:14 +00003357- General:
3358 - Typos n misspellings all over the place (David Benbennick).
3359 - Allow --tiny and --multibuffer to cooperate (who the heck
3360 would want this is beyond me but ;-). Changes to
3361 configure.ac, global.c, , (David Benbennick).
Chris Allegrettaf2387fb2002-04-10 02:31:20 +00003362 - Change to openfilestruct for multibuffer mode by DLR.
3363 New functions nano.c:make_new_opennode(), free_openfilestruct(),
3364 delete_opennode(), unlink_opennode(), splice_opennode(),
3365 new struct openfilestruct in nano.h.
Chris Allegretta0e9b7aa2002-04-16 03:15:47 +00003366 - Preliminary prepend code. This may be a bad idea, but I've
3367 been wanting it for awhile now and we'll see how bad it messes
3368 everything up. Changes to files.c:do_writeout(), write_file().
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003369 Fixes for O_CREAT & append compatibility by David Benbennick.
Chris Allegretta0547eb32002-04-22 23:52:34 +00003370 - Change from read() and write() to file streams by Jay Carlson.
3371 Allows OS to implement read and write ahead rather than making
3372 us do it. Hopefully merged properly.
Chris Allegrettadab017e2002-04-23 10:56:06 +00003373 - More cleanups with DISABLE flags, better free_shortcutage and
3374 free_toggle, and get rid of unnecessary variable decls with
3375 NANO_SMALL in shortcut_init() by David Benbennick.
Chris Allegrettab6c5dc22002-05-04 03:47:33 +00003376 - Added "syntax" command to .nanorc file, to allow multiple
3377 syntaxes. New function color.c:update_color(), calls in various
3378 files.c places, syntaxtype struct, global variables syntaxes,
Chris Allegretta21c433d2002-05-04 04:24:29 +00003379 syntaxfile_regexp and synfilematches. Global flag -Y ,--syntax
Chris Allegretta09900ff2002-05-04 04:23:30 +00003380 to specify the type on the command line, if there's no good
3381 filename regex to use. Global variable syntaxstr.
Chris Allegretta4dc03d52002-05-11 03:04:44 +00003382 - Changed many strcmp()s and strcpy()s to their equivalent
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003383 '\0' counterparts (David Lawrence Ramsey).
3384 - Many changes to allow marked cutting to work with multiple
Chris Allegretta4dc03d52002-05-11 03:04:44 +00003385 file buffers: changes to openfilestruct type in nano.h and
3386 files.c (David Lawrence Ramsey).
Chris Allegretta6232d662002-05-12 19:52:15 +00003387 - Changed NANO_SMALL to ENABLE_NLS for gettext disabling
3388 (David Benbennick).
3389 - Move next_key and pev_key definitions out of main() and into
3390 global.c where they belong (David Benbennick).
Chris Allegretta5e76fe92002-05-12 20:54:16 +00003391- color.c:
3392 update_color()
3393 - Add regfree call here to avoid memory leaks.
Chris Allegretta7162e3d2002-04-06 05:02:14 +00003394- configure.ac:
3395 - Define NDEBUG to silence asserts (David Benbennick).
3396- files.c:
3397 get_next_filename()
3398 - Optimizations (David Benbennick).
3399- global.c:
3400 shortcut_init()
3401 - Add missing free_shortcutage()s (David Benbennick).
Chris Allegretta6232d662002-05-12 19:52:15 +00003402 thanks_for_all_the_fish()
3403 - Only defined when using DEBUG, makes sense (David Benbennick).
Chris Allegretta7162e3d2002-04-06 05:02:14 +00003404- nano.c:
3405 die_save_file()
3406 - Add missing free (David Benbennick).
3407 do_justify()
3408 - Optimizations (David Benbennick).
3409 do_wrap()
3410 - Complete rewrite (David Benbennick).
Chris Allegretta6232d662002-05-12 19:52:15 +00003411 help_init()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003412 - A little less readable, a lot shorter :-) (David Benbennick).
Chris Allegretta6232d662002-05-12 19:52:15 +00003413 - Fix Meta-A not getting capitalized, and convert the ASCII
3414 #s to their character equivalent.
Chris Allegretta7c27be42002-05-05 23:03:54 +00003415 main()
3416 - Changed charalloc(), strcpy()s to mallocstrcpy()s.
Chris Allegretta66f373f2002-04-05 23:33:09 +00003417- nano.h:
3418 - NANO_ALT_COMMAND and NANO_ALT_PERIOD were reversed (lol)
3419 (David Benbennick).
Chris Allegretta8902eba2002-03-30 18:02:54 +00003420- nano.spec.in:
3421 - Don't put Chris' name as the Packager in the distribution
3422 by default (Im an idiot).
Chris Allegretta4dc03d52002-05-11 03:04:44 +00003423 - Fixed Source line (David Lawrence Ramsey).
Jordi Mallach42c64052002-04-30 02:33:14 +00003424- nano.1:
3425 - Changed references to Debian GNU/Linux to Debian GNU (Jordi).
Chris Allegretta4dc03d52002-05-11 03:04:44 +00003426- nano.1.html:
3427 - Updated for -Y option (David Lawrence Ramsey).
Chris Allegretta6232d662002-05-12 19:52:15 +00003428- rcfile.c:
Chris Allegretta7c27be42002-05-05 23:03:54 +00003429 - Made some rc file errors less fatal.
Chris Allegretta4dc03d52002-05-11 03:04:44 +00003430 - Added in my patch for getpwent instead of relying on $HOME
3431 (David Lawrence Ramsey).
Chris Allegretta7c27be42002-05-05 23:03:54 +00003432- winio.c:
3433 edit_add()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003434 - Changed some syntax highlight computations for the sake of COLS.
Chris Allegretta3674c1d2002-05-12 20:43:49 +00003435 - Add in the necessary regfree() calls to stop nano from leaking
3436 memory like a sieve when using color syntax highlighting :-)
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003437 bottombars(), onekey()
Chris Allegretta6232d662002-05-12 19:52:15 +00003438 - Cleanups (David Benbennick).
Jordi Mallach0ab011f2002-04-05 11:25:00 +00003439- po/gl.po:
3440 - Galician translation updates (Jacobo Tarrio).
3441- po/de.po:
3442 - German translation updates (Michael Piefel).
3443- po/fr.po:
3444 - French translation updates (Jean-Philippe Guérard).
3445- po/ca.po, po/es.po:
3446 - Catalan and Spanish translation updates (Jordi).
Jordi Mallachb18bc692002-04-10 16:26:17 +00003447- po/sv.po:
3448 - Swedish translation updates (Christian Rose).
Jordi Mallachd301e102002-04-13 14:46:26 +00003449- po/nl.po:
3450 - Dutch translation updates (Guus Sliepen).
Jordi Mallach7f80e662002-04-13 16:31:03 +00003451- po/it.po:
3452 - Italian translation updates (Marco Colombo).
Jordi Mallach0417a7b2002-04-19 21:59:35 +00003453- po/ru.po, po/uk.po:
3454 - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
Jordi Mallach934b76b2002-04-25 22:24:48 +00003455- po/id.po:
3456 - Indonesian translation updates (Tedi Heriyanto).
Jordi Mallachca76fa92002-05-05 15:04:26 +00003457- po/sv.po:
3458 - Swedish translation updates (Christian Rose).
David Lawrence Ramsey233f3362004-10-27 02:15:44 +00003459
Chris Allegretta06d62372002-03-30 16:51:38 +00003460GNU nano 1.1.8 - 03/30/2002
Chris Allegrettabef12972002-03-06 03:30:40 +00003461- General
3462 - Type misalignments and mem leaks in renumber_all, do_justify
3463 and do_spell (Rocco & Steven Kneizys).
Chris Allegrettabb88ece2002-03-25 13:40:39 +00003464 - New "External Command" code, originally by Dwayne Rightler,
Chris Allegretta77777d42002-03-29 16:31:29 +00003465 various fixes and changes by Chris, Rocco and David Benbennick.
3466 New function nano.c:open_pipe() and signal handler cancel_fork(),
3467 changes to do_insertfile(), new list extcmd_list, cmd is
3468 ^X after ^R.
Chris Allegretta3533a342002-03-24 23:19:32 +00003469 - Added separate regex variable (color_regex and colormatches)
3470 so that color syntax and regex search/replace can coexist.
Chris Allegretta06d62372002-03-30 16:51:38 +00003471 - Added new nano.spec file from Brett <brett@bad-sports.com>,
3472 added because maintaining the spec file is getting to be a large
3473 hassle ;)
Chris Allegretta564535a2002-03-06 15:32:17 +00003474- files.c:
3475 check_writable_directory()
3476 - Stat full_path, not path (Steven Kneizys).
Chris Allegretta2598c662002-03-28 01:59:34 +00003477 open_pipe()
3478 - I18nize the pipe error (DLR).
Chris Allegrettae3739092002-03-29 15:06:05 +00003479 do_insertfile()
3480 - Handle cancel from ExtCmd properly (David Benbennick).
Chris Allegretta52c5a6e2002-03-21 05:07:28 +00003481 read_file()
3482 - Abort if we read a file of 0 lines (num_lines == 0), fixes BUG #70.
Chris Allegrettaf6cba642002-03-26 13:05:54 +00003483 - Reverse tests to stop segfault on editing a new file of 0
3484 lines (David Benbennick)
3485 - Change input var to one char instead of array (David Benbennick).
Chris Allegretta2598c662002-03-28 01:59:34 +00003486 - Move NO_CONVERT check up so chars get read in properly (DLR).
Chris Allegretta40ecbad2002-03-06 15:27:44 +00003487- nano.c:
Chris Allegrettacf1d8122002-03-21 19:53:36 +00003488 do_justify()
3489 - More fixes for indented justify (David Benbennick).
Chris Allegrettaf21f3fc2002-03-25 03:26:27 +00003490 do_int_speller()
3491 - Fix zombie processes and spelling buffer issues (Rocco Corsi).
Chris Allegretta5902f962002-03-07 12:40:39 +00003492 help_init()
3493 - Capitalize Meta altkeys.
Chris Allegrettab479c892002-03-09 20:03:10 +00003494 - Various fixes and string changes.
Chris Allegretta40ecbad2002-03-06 15:27:44 +00003495 main()
3496 - Put NANO_SMALL defines around toggle pointer (noticed by Jordi);
Chris Allegretta97e6fe62002-03-09 17:38:47 +00003497 usage()
Chris Allegretta3fc5d572002-03-09 18:51:58 +00003498 - Rewritten to encompass systems with and without GETOPT_LONG.
3499 New function print1opt does most of the dirty work, stops
3500 duplication of effort and eases translator's jobs. Also
3501 breaks all the current translations ;-)
Chris Allegretta45329a12002-03-10 01:22:21 +00003502- proto.h:
3503 - Missing externs (Rocco).
Chris Allegretta1596d382002-03-07 00:46:17 +00003504- rcfile.c:
Chris Allegretta78f0fc62002-03-29 19:41:57 +00003505 do_rcfile()
3506 - Reset lineno between system and local .nanorc file.
3507 - Fix errno->strerror(errno) mismatch.
Chris Allegrettae8e10342002-03-07 00:47:22 +00003508 parse_rcfile()
3509 - Don't use i for both for loop and atoi(), fixes lots of
Jordi Mallach4951c662002-03-07 14:12:53 +00003510 potential crashes, 1st reported by Jean-Philippe Guérard.
Chris Allegretta78f0fc62002-03-29 19:41:57 +00003511 rcfile_error()
3512 - Don't print out the file name if we haven't opened the file
3513 yet (lineno == 0).
Chris Allegretta45329a12002-03-10 01:22:21 +00003514- search.c:
3515 search_init()
3516 - Fix a missing free (Rocco).
Chris Allegrettad1c2c1c2002-03-26 17:58:42 +00003517 do_gotoline()
3518 - Set placewewant if we actually move to a different line.
Chris Allegretta40ecbad2002-03-06 15:27:44 +00003519- utils.c:
Chris Allegrettadce44ab2002-03-16 01:03:41 +00003520 stristr()
3521 - Defined regardless of NANO_SMALL (noticed by Jordi).
Chris Allegretta77777d42002-03-29 16:31:29 +00003522 nperror()
3523 - New wrapper for perror (David Benbennick).
Chris Allegrettadce44ab2002-03-16 01:03:41 +00003524- winio.c:
3525 do_credits()
3526 - Add Thomas Dickey.
Chris Allegrettaf3a07b22002-03-29 15:15:38 +00003527 do_cursorpos()
3528 - Make col numbering start from 1 (suggested by Andrew Ho).
Chris Allegretta2598c662002-03-28 01:59:34 +00003529 update_line(), xpt()
3530 - Add check for 127 (DLR).
Jordi Mallach4951c662002-03-07 14:12:53 +00003531- po/sv.po:
3532 - Swedish translation updates (Christian Rose).
3533- po/de.po:
3534 - German translation updates (Michael Piefel).
Jordi Mallach4e803aa2002-03-09 18:05:53 +00003535- po/id.po:
3536 - Indonesian translation updates (Tedi Heriyanto).
Chris Allegretta2598c662002-03-28 01:59:34 +00003537- po/it.po:
Chris Allegretta06d62372002-03-30 16:51:38 +00003538 - Serious typo.
Jordi Mallach4e803aa2002-03-09 18:05:53 +00003539- po/ca.po, po/es.po:
3540 - Catalan and Spanish translation updates (Jordi).
Chris Allegretta2598c662002-03-28 01:59:34 +00003541 - Typo (DLR).
Jordi Mallach558b5d82002-03-11 13:23:33 +00003542- po/fr.po:
3543 - French translation updates (Jean-Philippe Guérard).
Jordi Mallach5477e102002-03-12 16:15:50 +00003544- po/gl.po:
3545 - Galician translation updates (Jacobo Tarrio).
Jordi Mallach057c3c42002-03-14 11:00:56 +00003546- po/uk.po, po/ru.po:
3547 - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
Jordi Mallachb83e61a2002-03-15 15:15:13 +00003548- po/pl.po:
3549 - Polish translation updates (Wojciech Kotwica).
Jordi Mallach7fa082d2002-03-17 00:35:41 +00003550- po/fr.po:
3551 - French translation updates (Jean-Philippe Guérard).
Jordi Mallach7afc6d92002-03-27 16:34:46 +00003552- po/it.po:
3553 - Italian translation updates (Marco Colombo).
Jordi Mallach465a0ff2002-03-29 00:46:05 +00003554- po/da.po:
3555 - Danish translation updates (Keld Simonsen).
Chris Allegrettabef12972002-03-06 03:30:40 +00003556
Chris Allegretta97489d22002-03-05 23:47:44 +00003557GNU nano 1.1.7 - 03/05/2002
Chris Allegrettaa8c22572002-02-15 19:17:02 +00003558- General
3559 - malloc->calloc, etc cleanups (DLR).
3560 - New option, noconvert (-N, --noconvert) to completely stop
3561 the translation of files from DOS or Mac format (DLR).
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003562 - New functions check_writable_directory() and safe_tempnam()
Chris Allegrettabc72e362002-02-16 20:03:44 +00003563 to get around the tempnam warning. More improvements (DLR)
Chris Allegretta48b06702002-02-22 04:30:50 +00003564 Still needs testing.
Chris Allegrettaa8c22572002-02-15 19:17:02 +00003565 - Added DOS and Mac format options to write file routine.
3566 Changes to shortcut_init() and do_writeout().
3567 - Removed stupid static definitions of toggles and shortcut
3568 lists. Many changes to shortcut_init(), toggle_init(),
3569 statusq(), nanogetstr(), main(), and many other places.
Chris Allegretta48b06702002-02-22 04:30:50 +00003570 - Multibuffer mode now allows multiple empty filenames.
3571 Changes to add_open_files(), removed open_file_dup_search(),
3572 open_file_dup_fix(), etc (DLR).
3573 - New code to handle multiple .save files. Changes to
3574 die_save_file(), new function files.c:get_next_filename()
3575 and utils.c:num_of_digits(). (Dwayne Rightler, DLR & Chris)
Chris Allegrettaf5de33a2002-02-27 04:14:16 +00003576 - Many malloc() cleanups and files.c tweaks by Steven Kneizys,
3577 new functions utils.c:free_shortcutage() (got to love that
3578 name!) & free_toggles(), and big cleanup program
3579 thanks_for_all_the_fish() (originally
3580 thanks_for_the_memories()). Mods to shortcut_init() by Chris.
Chris Allegrettae4f940d2002-03-03 22:36:36 +00003581 - Preliminary quoting support for justify. New arg -Q, --quotestr,
3582 changes to do_justify(), global variable quotestr().
Chris Allegretta8dbfb5c2002-01-28 15:56:15 +00003583- Makefile.am:
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003584 - Add SYSCONFDIR to DEFS, so we can have an $SYSCONFDIR/nanorc.
Chris Allegretta40b85e72002-02-09 21:56:09 +00003585 - Change localedir line to 1.0's version.
Jordi Mallach3c5653d2002-02-23 18:23:43 +00003586 - Moved m4/ stuff to its own m4/Makefile.am.
Jordi Mallach87435d92002-03-05 17:58:34 +00003587- m4/aclocal_inc.m4:
3588 - New macro AM_ACLOCAL_INCLUDE, tells configure.ac where to look for
3589 macros (Gergely Nagy).
Jordi Mallach3c5653d2002-02-23 18:23:43 +00003590- configure.in:
3591 - Renamed to configure.ac.
3592- configure.ac:
3593 - Moved to autoconf 2.52 (Jeff Bailey).
Jordi Mallach87435d92002-03-05 17:58:34 +00003594 - Added call to AM_ACLOCAL_INCLUDE.
Chris Allegrettaa8c22572002-02-15 19:17:02 +00003595- files.c:
3596 read_byte()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003597 - Added check for control characters (indicative of a binary
Chris Allegretta48b06702002-02-22 04:30:50 +00003598 file), set NO_CONVERT if found (fixes by DLR).
Chris Allegrettaf5de33a2002-02-27 04:14:16 +00003599 do_insertfile()
3600 - Added support for -o in prompt (Steven Kneizys).
Chris Allegrettaa8c22572002-02-15 19:17:02 +00003601- global.c:
3602 - Move openprev and opennext functions to shortcuts, they really
3603 aren't toggles (DLR).
Chris Allegrettaf27c6972002-02-12 01:57:24 +00003604- rcfile.c:
Chris Allegrettaa8c22572002-02-15 19:17:02 +00003605 parse_next_regex()
Chris Allegretta3d8e7592002-02-02 07:13:02 +00003606 - Allow " symbol to be in regex without leading \ by checking
3607 for *ptr+1 is not the end of the regex.
Chris Allegrettaff8a68c2002-02-16 20:34:57 +00003608 do_rcfile()
3609 - Parse rcfile in $SYSCONFDIR as well (Dwayne Rightler).
Chris Allegretta48b06702002-02-22 04:30:50 +00003610- nano.1:
3611 - Added Noconvert option to man page (DLR).
Chris Allegrettaa8c22572002-02-15 19:17:02 +00003612- nano.c:
Chris Allegrettad4fa0d32002-03-05 19:55:55 +00003613 justify_format(), do_justify()
3614 - Various fixes for starting blank spaces, spaces after
3615 punctuation, & segfault with quoting strings (David Benbennick).
Chris Allegretta46c1b9e2002-03-05 19:58:45 +00003616 do_justify()
3617 - Don't continue to justify string if it's indented more
3618 (quoting wise) than the beginning of the justification.
Chris Allegrettaa8c22572002-02-15 19:17:02 +00003619 help_init()
3620 - Added message re: having multiple blank buffers (DLR).
Chris Allegretta9caa1932002-02-15 20:08:05 +00003621 main()
3622 - Add 407 as equiv of 26, this seems to be sent when using
3623 ^Z in linux console with keypad() enabled.
Chris Allegrettabc72e362002-02-16 20:03:44 +00003624- rcfile.c:
3625 - Get rid of unneeded relativechars from rcopts (DLR).
3626- search.c
3627 do_replace(), findnextstr()
3628 - Fixes for various search issues (Ken Tyler)
Chris Allegrettaf27c6972002-02-12 01:57:24 +00003629- winio.c:
3630 do_cursorpos()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003631 - Rewritten to show col place as well as character place, without
Chris Allegrettaf27c6972002-02-12 01:57:24 +00003632 needing an entirely separate flag.
Chris Allegrettaa8c22572002-02-15 19:17:02 +00003633 bottombars(), onekey()
3634 - Make bottom list dynamic with screen size (Guus Sliepen & Chris).
Chris Allegrettabc72e362002-02-16 20:03:44 +00003635 - More cleanups w/width of shortcut.
Chris Allegretta8dbfb5c2002-01-28 15:56:15 +00003636- utils.c:
Chris Allegretta99ed9dc2002-02-28 00:57:18 +00003637 strcasestr(),revstrcasestr()
3638 - Renamed to stristr and revstristr since strcasestr has not
3639 been confirmed to be detected properly on various Linux
3640 systems.
Chris Allegrettad4fa0d32002-03-05 19:55:55 +00003641 strstrwrapper()
3642 - NANO_SMALL test was backwards (Ken Tyler).
3643- winio.c:
3644 strlenpt()
3645 - Changed main function to strnlenpt() for new justify changes,
3646 original function now just a stub.
Chris Allegretta3c597d02002-01-26 03:42:14 +00003647- nanorc.sample
3648 - Mention unset in the sample nanorc.
Jordi Mallach83ffefb2002-01-25 21:00:18 +00003649- po/ca.po, po/es.po:
3650 - Catalan and Spanish translation updates (Jordi).
Jordi Mallach9c34a162002-01-26 00:46:47 +00003651- po/sv.po:
3652 - Swedish translation updates (Christian Rose).
3653- po/fr.po:
3654 - French translation updates (Jean-Philippe Guérard).
Jordi Mallach8636f7b2002-01-26 19:23:37 +00003655- po/nn.po:
3656 - Norwegian nynorsk translation updates (Kjetil Torgrim Homme).
3657- po/de.po:
3658 - German translation updates (Michael Piefel).
Chris Allegretta8dbfb5c2002-01-28 15:56:15 +00003659- po/it.po:
3660 - Italian translation updates (Marco Colombo).
Jordi Mallach94def062002-02-06 12:14:25 +00003661- po/cs.po:
3662 - Partial Czech translation updates (Vaclav Haisman).
Jordi Mallach8bfd3112002-02-06 20:53:04 +00003663- po/hu.po:
3664 - Hungarian translation updates, or to be precise, rewrite
3665 (Gergely Nagy).
Jordi Mallachb3b28c12002-02-07 13:51:00 +00003666- po/uk.po, po/ru.po:
Jordi Mallach507c3612002-02-14 18:57:23 +00003667 - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
3668- po/da.po:
3669 - Danish translation updates (Keld Simonsen).
Jordi Mallache46d43d2002-02-15 17:13:11 +00003670- po/nb.po:
3671 - Norwegian bokmål translation updates (Stig E Sandoe).
Jordi Mallach62d21712002-02-20 16:21:27 +00003672- po/nl.po:
3673 - Dutch translation updates (Guus Sliepen).
Jordi Mallacha3322fd2002-03-05 11:23:17 +00003674- po/pl.po:
3675 - Polish translation updates (Wojciech Kotwica).
Jordi Mallach83ffefb2002-01-25 21:00:18 +00003676
Chris Allegretta491029e2002-01-25 17:02:32 +00003677nano-1.1.6 - 01/25/2002
Chris Allegretta044d1b12002-01-08 00:33:32 +00003678- General
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003679 - Add Meta-A as alternate keystroke for ^^ for people with
Chris Allegretta044d1b12002-01-08 00:33:32 +00003680 non-US keyboards.
Chris Allegretta967a1e22002-01-10 00:50:38 +00003681 - Add Alt-G (NANO_ALT_GOTO_KEY) as alternate for goto dir in
3682 browser.
Chris Allegretta1bc0c7e2002-01-08 15:00:24 +00003683 - Better partial word checking code. New function
3684 search.c:is_whole_word(), changes to findnextstr(),
3685 and nano.c:do_int_spell_fix() (Rocco Corsi).
Chris Allegretta6c1e6612002-01-19 16:52:34 +00003686 - Added multiple-line regex support. Format in .nanorc is
3687 start="regex" end="regex". Cleaned up nanorc:parse_colors(),
3688 added parse_next_regex(), changes to edit_add in winio.c(),
3689 changes to colortype, cleaning up some old cruft.
Chris Allegretta15b23f42002-01-19 19:15:18 +00003690 - Upgrade to gettext 0.10.40, probably broke everything again :)
Chris Allegretta24e48d82002-01-23 01:06:20 +00003691 - Upgraded to and then downgraded from automake 1.5, as there
3692 are severe security implications.
Chris Allegrettaea250e82002-01-16 01:09:11 +00003693- color.c:
3694 do_colorinit()
3695 - Moved some comments and braces around so color can work
3696 w/slang (DLR).
Chris Allegrettaf478f832002-01-18 21:54:35 +00003697- global.c:
3698 shorcut_init()
3699 - Replace hard coded ALT_G and ALT_H values in the replace
3700 and goto shortcuts with their macro counterparts NANO_ALT_*_KEY.
Jordi Mallach345a8462002-01-07 11:35:16 +00003701- nano.c:
3702 usage()
3703 - Remove extra \n in --keypad description (Jordi).
Chris Allegrettaf7dee922002-01-07 16:43:25 +00003704 main()
3705 - Check that alt value is an alpha char before comparing to
3706 val - 32, fixes Alt-R calling doprev instead of replace.
Chris Allegrettab2cd10d2002-01-20 00:54:42 +00003707 do_char()
3708 - Run edit_refresh() if ENABLE_COLOR is defined so adding
3709 multi-liners will update (e.g. /* in C).
Chris Allegretta23b74b22002-01-21 20:32:22 +00003710 do_int_spell_fix()
3711 - Temporarily unset REVERSE_SEARCH if it's set (Rocco Corsi).
Chris Allegretta7b0667f2002-01-10 12:44:21 +00003712 do_suspend()
3713 - Call tcsetattr() to restore the old terminal settings, so
Chris Allegretta5bbce6a2002-01-10 12:48:16 +00003714 tcsh can use ^C after suspend for example (fixes BUG #68).
Chris Allegretta438f7132002-01-16 00:54:47 +00003715 do_wrap()
3716 - Move "right" increment to part where new line is created,
3717 should change (fix?) some wrapping problems with autoindent.
Jordi Mallach5285ca92002-01-17 12:40:33 +00003718 version()
3719 - Show --enable-multibuffer independently of --enable-extra being
3720 compiled in (Jordi).
Chris Allegrettaf478f832002-01-18 21:54:35 +00003721- nano.h:
3722 - Changed color struct slightly, because of previous issue with
3723 applying color painting in order, the "str" portion was
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003724 useless. Renamed "val" in colortype to "start", added "end"
Chris Allegrettaf478f832002-01-18 21:54:35 +00003725 for multi-line color strings.
3726- rcfile.c:
3727 General
3728 - Took silly variables being passed everywhere like lineno and
3729 filename and made them static variables.
Chris Allegretta6c1e6612002-01-19 16:52:34 +00003730 - Re-indented.
Chris Allegretta34f80982002-01-22 20:09:20 +00003731 - Added stdarg.h to includes.
Chris Allegrettaf478f832002-01-18 21:54:35 +00003732 rcfile_error()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003733 - Now automatically prepends the "error in line blah at foo"
Chris Allegrettaf478f832002-01-18 21:54:35 +00003734 message to error messages.
3735 parse_colors()
3736 - Added section for computing "end" section.
3737 parse_next_word()
3738 - Added support for "\ ", in word parsing.
Chris Allegrettae29697d2002-01-14 03:31:10 +00003739- search.c:
Chris Allegretta1c2fddc2002-01-21 20:40:14 +00003740 do_search()
3741 - Check position of cursor and return value of findnextstr and
3742 tell user if search string only occurs once (Rocco & Chris).
Chris Allegrettae29697d2002-01-14 03:31:10 +00003743 findnextstr()
3744 - Fix off by one in check for wrap around (Rocco Corsi).
Chris Allegretta3d0739c2002-01-07 14:41:32 +00003745- winio.c:
3746 edit_refresh()
3747 - Rename lines to nlines to fix AIX breakage (reported by
3748 Dennis Cranston, re-reported by arh14@cornell.edu).
Chris Allegrettaf478f832002-01-18 21:54:35 +00003749 edit_add()
3750 - Refuse to honor regex matches of 0 characters when applying
3751 color highlighting, and say so on the statusbar. Otherwise
3752 we go into an infinite loop, the error message should clue
3753 users into the fact that their regex is doing something bad.
Jordi Mallachd6481e42002-01-17 12:14:23 +00003754- THANKS:
3755 - Oops, correct Eivind's entry. His translation was Norwegian nynorsk,
Jordi Mallach83d5ced2002-01-17 12:06:49 +00003756 not bokmål as we claimed (Jordi).
Chris Allegretta9963b0e2002-01-19 19:35:12 +00003757- .cvsignore
3758 - Added config.guess config.sub install-sh missing & mkinstalldirs
Jordi Mallach3da91392002-01-07 11:50:13 +00003759- po/ca.po, po/es.po:
Jordi Mallache36a1522002-01-07 15:12:48 +00003760 - Catalan and Spanish translation updates (Jordi).
3761- po/sv.po:
3762 - Swedish translation update (Christian Rose).
Jordi Mallachd39698f2002-01-07 15:16:26 +00003763- po/de.po:
3764 - German translation update (Michael Piefel).
Jordi Mallachbf1a1e82002-01-08 14:07:39 +00003765- po/fr.po:
3766 - French translation update (Jean-Philippe Guérard).
3767- po/ru.po, po/uk.po:
3768 - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
Jordi Mallach83d5ced2002-01-17 12:06:49 +00003769- po/no.po:
3770 - Moved to po/nn.po, which is the correct name for Norwegian nynorsk.
3771- po/nn.po:
3772 - Norwegian nynorsk translation updates (Kjetil Torgrim Homme).
3773- po/nb.po:
3774 - New Norwegian bokmål translation (Stig E Sandoe <stig@ii.uib.no>).
Jordi Mallach3a23a552002-01-18 23:04:16 +00003775- po/da.po:
3776 - Danish translation update (Keld Simonsen).
Chris Allegrettad1751932002-01-05 20:01:53 +00003777
Chris Allegretta110927b2002-01-05 19:49:06 +00003778nano-1.1.5 - 01/05/2002
Chris Allegretta32da4562002-01-02 15:12:21 +00003779- General
3780 - Better integration of View mode (-v) and multibuffer.
3781 Fixes to new_file(), do_insertfile_void(), shortcut_init()
3782 (David Lawrence Ramsey).
Chris Allegretta48bd3782002-01-03 21:26:34 +00003783 - The keypad handling has changed (again). We now use
3784 the keypad() function by default. New flag -K, --keypad
3785 allows the old behavior for those using the keypad arrow keys
3786 and rxvt-based terminals.
Jordi Mallach8ae57892002-01-04 17:57:40 +00003787 - Updated copyright notices to 2002 (Jordi).
Chris Allegretta0bb70dc2001-12-17 04:34:23 +00003788- nano.c:
Chris Allegretta32da4562002-01-02 15:12:21 +00003789 die()
3790 - Only save files that were modified (David Lawrence Ramsey).
Chris Allegretta0bb70dc2001-12-17 04:34:23 +00003791 do_cont()
3792 - Run signal_init() after doupdate() so ^Y wont suddenly
3793 start suspending after returning from ^Z suspend in Hurd.
3794 signal_init()
3795 - Unconditionally disable VDSUSP if it exists, stops ^Y
3796 suspending nano on the Hurd.
Jordi Mallach11f39e72001-12-25 19:17:32 +00003797 help_init()
Chris Allegretta64dd95d2001-12-27 20:53:54 +00003798 - Typo fixes in help strings (Jordi).
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003799 - New variable helplen needed cause currslen is not always
Chris Allegretta13fd44b2002-01-02 13:59:11 +00003800 the length we want (bug found by David Lawrence Ramsey).
Chris Allegretta180a5692002-01-02 14:30:33 +00003801 - Typo in file switch string (found by David Lawrence Ramsey).
3802 main()
3803 - Handle Alt prev/next file keys (,.), as well as normal ones (<>).
Chris Allegretta32da4562002-01-02 15:12:21 +00003804 - Handle OS-specific insert keys by jump to do_insertkey (David
3805 Lawrence Ramsey).
Chris Allegretta64dd95d2001-12-27 20:53:54 +00003806- files.c:
3807 read_file()
3808 - Make conversion message less confusing (suggested by Jordi).
Chris Allegretta13fd44b2002-01-02 13:59:11 +00003809- rcfile.c:
3810 parse_next_word()
3811 - Get rid of ptr == \n check to abort, screws up option
3812 parsing (bug found by David Lawrence Ramsey)
Chris Allegretta52db7a22001-12-17 23:39:36 +00003813- winio.c:
3814 update_line()
Chris Allegretta3c57e502001-12-19 16:20:43 +00003815 - set realdata check to >= 1 && <= 31, lack of > 0 check screwed
3816 high ascii characters.
Jordi Mallach9335f912001-12-23 00:03:18 +00003817 titlebar()
3818 - gettextized a pair of strings.
Chris Allegrettae5b9eac2002-01-05 01:52:02 +00003819 bottombars()
3820 - Get rid of that annoying reversed line when color is on! :)
Chris Allegretta1bf8f5e2002-01-05 03:30:10 +00003821 edit_add()
3822 - Little fixes to let color highlights not bleed onto the next line.
Chris Allegrettaa16e4e92002-01-05 18:59:54 +00003823 statusq()
3824 - Initialize "list".
Chris Allegrettacf680712001-12-18 14:59:20 +00003825- m4/gettext.m4:
3826 - Back down to 1.1.3 version.
Jordi Mallachcf9f7832001-12-26 12:33:01 +00003827- faq.html:
3828 - Various link updates and other fixes (Aaron S. Hawley).
3829 - Typo fixes (David Lawrence Ramsey).
Chris Allegrettafae0dce2002-01-04 13:30:42 +00003830- AUTHORS
3831 - Add DLR.
Jordi Mallach77b12322001-12-22 23:23:40 +00003832- po/sv.po:
3833 - Swedish translation update (Christian Rose).
Jordi Mallach3da91392002-01-07 11:50:13 +00003834- po/ru.po, po/uk.po:
Jordi Mallach32793982001-12-28 16:35:28 +00003835 - Russian and Ukrainian translations updates (Sergey A. Ribalchenko).
Jordi Mallach3da91392002-01-07 11:50:13 +00003836- po/ca.po, po/es.po:
Jordi Mallach414acab2001-12-26 00:15:16 +00003837 - Catalan and Spanish translations updates (Jordi).
Jordi Mallacha4ffccb2001-12-26 00:31:17 +00003838- po/pl.po:
3839 - New Polish, partial translation, by Cezary Sliwa <sliwa@cft.edu.pl>.
Jordi Mallach65f3e422002-01-04 17:48:58 +00003840 - Wojciech Kotwica <wkotwica@post.pl> completed it and is the new
3841 official maintainer.
Jordi Mallach1a58fb42001-12-27 16:00:23 +00003842- po/fr.po:
3843 - French translation update (Michel Robitaille).
Jordi Mallach05d8ce92001-12-27 20:34:42 +00003844- po/gl.po:
3845 - Galician translation update (Jacobo Tarrío).
Jordi Mallach78e2c9d2001-12-27 22:06:38 +00003846- po/it.po:
3847 - Italian translation update (Marco Colombo).
Jordi Mallach32793982001-12-28 16:35:28 +00003848- po/de.po:
3849 - German translation update (Michael Piefel).
Jordi Mallach13f30172002-01-02 18:45:58 +00003850- po/fr.po:
3851 - French translation update (Jean-Philippe Guérard).
Chris Allegretta5fd6cac2001-12-12 13:55:19 +00003852
Chris Allegretta7bf25092001-12-12 02:44:40 +00003853nano-1.1.4 - 12/11/2001
Chris Allegretta08893e02001-11-29 02:42:27 +00003854- General
3855 - Preliminary syntax highlighting support. New functions
3856 colortoint() and parse_color() in rcfile.c, new code in
3857 edit_add() in winio.c to actually do the highlighting. It's
3858 not even close to pretty yet :P
Chris Allegretta2084acc2001-11-29 03:43:08 +00003859 - Many int/long alignments (David Lawrence Ramsey).
Chris Allegretta0567bfe2001-10-28 14:42:18 +00003860- files.c:
Chris Allegretta2084acc2001-11-29 03:43:08 +00003861 - Fixes for tab completion and screen refresh (David Lawrence
3862 Ramsey).
Chris Allegretta0567bfe2001-10-28 14:42:18 +00003863 add_open_file()
3864 - Get rid of unsetting MARK_ISSET because otherwise writing
3865 marked text will automatically unset the marker with
3866 multibuffer enabled.
Chris Allegretta22ec59a2001-10-28 04:56:08 +00003867- global.c:
3868 - Define currshortcut and currslen when either DISABLE_MOUSE
Chris Allegretta8c8d3702001-10-28 05:00:39 +00003869 or DISABLE_HELP or DISABLE_BROWSER is not defined (Silvan
3870 Minghetti).
Chris Allegretta7bf72742001-10-28 04:29:55 +00003871- nano.c:
3872 main()
Chris Allegrettaf3e80ad2001-10-28 04:49:10 +00003873 - Add Esc-[-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert).
Chris Allegretta9b8b3702001-11-19 05:09:15 +00003874 - Added better Hurd support for function keys (Alt-V,U,9,@,F).
3875 signal_init()
3876 - do SIG_IGN for the SIGTSTP sigaction regardless of whether
3877 we have _POSIX_VDISABLE or not (more Hurd fixes)
Jordi Mallach773623c2001-10-28 21:00:49 +00003878 help_init()
3879 - Typo fixes and additions to the new help texts.
Chris Allegretta2084acc2001-11-29 03:43:08 +00003880 do_curpos()
3881 - Now takes arg for constant updating to always show the cursor
3882 position (David Lawrence Ramsey).
3883 do_wrap()
3884 - Many fixes (David Lawrence Ramsey).
Chris Allegretta80838272001-12-02 06:03:22 +00003885 do_spell()
3886 - Dont prompt for replace if we don't change the word in
3887 question (Rocco Corsi).
Jordi Mallach8c9c5722001-10-31 13:02:12 +00003888- po/de.po:
3889 - German translation updates (Karl Eichwalder).
3890- po/ru.po:
3891 - Russian translation updates (Sergey A. Ribalchenko).
3892- po/sv.po:
3893 - Swedish translation updates (Christian Rose).
Jordi Mallachfeebeb92001-11-19 12:09:51 +00003894- po/da.po:
3895 - Danish translation updates (Keld Simonse).
3896- po/es.po:
3897 - Spanish translation updates (Jordi).
Jordi Mallachdf59ae62001-12-07 14:00:56 +00003898- po/fr.po:
3899 - French translation updates (Michel Robitaille).
Chris Allegretta9c23a442001-12-12 01:45:01 +00003900- m4/gettext.m4:
3901 - diff against mutt 1.2.5's gettext.m4.
Chris Allegretta7b409bd2001-10-26 16:15:58 +00003902
Chris Allegrettadc57bba2001-10-26 16:14:45 +00003903nano-1.1.3 - 10/26/2001
Chris Allegrettab3655b42001-10-22 03:15:31 +00003904- General
3905 - Finally wrote function-specific help mode. Changes to
3906 nano.c:help_init() and winio.c:do_help(). Changed
3907 currshortcut and currslen #ifdefs to depend on both
3908 DISABLE_HELP and DISABLE_MOUSE being defined to not
3909 include. Changed all the shortcuts and lengths.
Chris Allegrettafa0c6962001-10-22 23:22:19 +00003910 - Fixed null_at to ACTUALLY DO SOMETHING with its arg. Again,
3911 this was causing nasty errors if the call to nrealloc moved
3912 where the data was located.
Chris Allegretta3a24f3f2001-10-24 11:33:54 +00003913 - Changed header comments to say "version 2" instead of "version
3914 1" as the COPYING file is actually version 2 of the GPL (bug
3915 noticed by Jordi Mallach).
Chris Allegrettab3655b42001-10-22 03:15:31 +00003916- cut.c:
3917 do_cut_text()
3918 - Check to see whether marked text is contained within edit
3919 window and if so only do an edit_refresh (variable dontupdate
3920 replaces cuttingpartialline).
3921 do_uncut_text()
3922 - Similar display fixes (David Lawrence Ramsey).
Chris Allegrettabeead282001-10-18 14:15:28 +00003923- faq.html
3924 - Removed nano-editor.org FTP site address [deprecated] and added
3925 the GNU one.
Chris Allegretta76e291b2001-10-14 19:05:10 +00003926- files.c:
3927 - Added status messages for converted DOS and Mac files.
Chris Allegrettab3655b42001-10-22 03:15:31 +00003928 People should know that their file wasnt normally formatted.
3929 load_file()
3930 - Status message when trying to load an already loaded file with multiple
3931 buffers (David Lawrence Ramsey).
3932 read_file()
3933 - Get rid of useless linetemp variable and name num_lines int
3934 (David Lawrence Ramsey).
Chris Allegretta76e291b2001-10-14 19:05:10 +00003935- nano.c:
3936 - New function do_prev_word, similar to do_next_word. Hard coded as
Chris Allegretta878ced32001-10-22 20:05:34 +00003937 Alt-space, as next word is hard coded as control-space. Fixed
3938 goofy logic setting x pos to value of last line when hitting the
Chris Allegrettaabf22a82001-10-24 00:58:19 +00003939 beginning of first line, prog should simply abort. Added
3940 the #ifdefs around the code in main().
Chris Allegretta10786402001-10-24 17:27:46 +00003941- nano.h:
3942 - Additional #define, SMALL_TOO to determine how long
3943 MAIN_LIST_LEN is. We need this because of the find matching
3944 bracket code.
Chris Allegretta48ebb812001-10-24 01:34:15 +00003945 main()
Chris Allegretta347c1842001-10-24 01:37:13 +00003946 - Moved #ifndef NANO_SMALL down past the case 0: line so
3947 control-space doesn't insert a \0 (ack!)
Chris Allegrettab3655b42001-10-22 03:15:31 +00003948- rcfile.c:
3949 - Fix incorrect number of rc options (David Lawrence Ramsey).
Jordi Mallach482d1652001-10-06 02:36:25 +00003950- po/sv.po:
3951 - Updated Swedish translation (Christian Rose).
Chris Allegretta2084acc2001-11-29 03:43:08 +00003952- po/da.po:
Jordi Mallach2476ebd2001-10-07 00:26:26 +00003953 - Updated Danish translation (Keld Simonsen).
Jordi Mallach26f46032001-10-07 15:53:27 +00003954- po/es.po:
3955 - Style updates to Spanish translation (Santiago Vila).
Jordi Mallach3da91392002-01-07 11:50:13 +00003956- po/ru.po, po/uk.po:
Jordi Mallacheb94b9e2001-10-15 14:26:48 +00003957 - Updated Russian and Ukrainian translation (Sergey A. Ribalchenko).
Chris Allegretta9a397892001-10-04 01:25:43 +00003958
Chris Allegretta03260b42001-10-04 01:24:07 +00003959nano-1.1.2 - 10/03/2001
Chris Allegrettac1049ac2001-08-17 00:03:46 +00003960- General
3961 - Added BUGS #63 & 64. Fixes in search_init() and nanogetstr(),
3962 new flag CLEAR_BACKUPSTRING because there's no easy way to
3963 clear the backupstring without making it global (messy), so we
3964 use a flag instead (just as messy?)
Chris Allegrettaff989832001-09-17 13:48:00 +00003965 - --enable-tiny now leaves out the Auto Indent code, do you really
3966 need that on a bootdisk? =-)
Chris Allegrettae1f14522001-09-19 03:19:43 +00003967 - New flag -o, --operatingdir, similar to Pico's -o mode. New
3968 function check_operating_dir(), changes to load_file (arg),
Chris Allegrettae09cd1d2001-09-19 03:22:52 +00003969 open_file_dup_search (arg), new function do_gotopos for -F
Chris Allegrettace78c1e2001-09-23 01:18:03 +00003970 (David Lawrence Ramsey).
Chris Allegretta91841892001-09-21 02:37:01 +00003971 - Code to read/write dos formatted files. Massive amounts of
Chris Allegretta7004c282001-09-22 00:42:10 +00003972 new code in read_line and write_file. New cmdline flag
3973 (-D --dos) to automatically write the file in DOS format,
3974 regardless of the original format.
Chris Allegretta995177f2001-09-22 04:34:23 +00003975 - Mac file writing supported too. Flag -M, --mac. Toggle
3976 Meta-O (MacOS? OS-X? =-)
Chris Allegretta3e3ae942001-09-22 19:02:04 +00003977 - New smooth scroll code by Ken Tyler. New flag -S, --smooth,
Chris Allegrettad948edc2001-10-02 00:38:56 +00003978 changes to page_up() and page_down(). Many fixes to paging by
Chris Allegretta5050d352001-09-27 00:44:58 +00003979 David Lawrence Ramsey.
Chris Allegretta8d990b52001-09-22 22:14:25 +00003980 - Bracket (brace, parens, etc) matching code by Ken Tyler.
3981 New functions do_find_bracket(), changes to findnextstr(),
3982 command is Meta-] (hope you dont mind since I already sold off
Chris Allegretta2bef1822001-09-28 19:53:11 +00003983 Meta-O to the MacOS file code Ken...) Fixes to bracket_msg
3984 by DLR.
Chris Allegretta1b3381b2001-09-28 21:59:01 +00003985 - Call do_gotopos from do_alt_spell() to keep position
3986 consistent when invoking alt speller (DLR).
Chris Allegretta7fdbd052001-10-02 00:55:38 +00003987 - Readded DISABLE_CURPOS because in certain instances (like
Chris Allegretta03260b42001-10-04 01:24:07 +00003988 all the "Search Wrapped" lines) the cursor position will
Chris Allegretta7fdbd052001-10-02 00:55:38 +00003989 be different yet we don't want the cursor position displayed.
Chris Allegrettae10f3892001-10-02 03:54:40 +00003990 - Take control-space out of -tiny build, unneeded.
Chris Allegretta222a0862001-10-02 00:24:37 +00003991- cut.c:
3992 cut_marked_segment()
3993 - Add magic line when cutting a selection including filebot
Chris Allegretta31b2b812001-10-03 01:51:33 +00003994 (discovered by DLR, fixed by DLR & Chris, fixes BUG #66).
Chris Allegrettadc2ca882001-10-02 23:55:09 +00003995 do_cut_text()
Chris Allegretta5e4b1082001-10-03 00:45:06 +00003996 - Don't recenter the line when cutting one line (DLR) (Bug #65).
Jordi Mallachf57b8862001-10-03 12:45:22 +00003997- faq.html:
3998 - Notes about the Free Translation Project.
3999 - Debian additions.
Chris Allegretta9519eb02001-09-27 20:46:25 +00004000- files.c:
4001 do_writeout()
4002 - Expanded strings to not use %s and ?: to determine
4003 write/append string to be nice to translators.
Chris Allegretta1b3381b2001-09-28 21:59:01 +00004004 new_file()
4005 - Initialize totsize (DLR).
Chris Allegretta0357c4d2001-09-19 02:59:25 +00004006- nano.c:
4007 main()
Chris Allegrettab516d8e2001-10-03 00:01:36 +00004008 - Added var constcheck as a CRC-like check of whether cursor
Chris Allegretta0357c4d2001-09-19 02:59:25 +00004009 pos has changed and if so update the pos with -c.
Chris Allegrettace78c1e2001-09-23 01:18:03 +00004010 - Many tweaks and changes from numerics to char equivs
4011 (David Lawrence Ramsey).
Chris Allegretta92f5fdc2001-10-02 02:58:07 +00004012 - Fix the KEY_IC being undefined when using slang.
Chris Allegretta6414b402001-09-21 03:21:11 +00004013 do_mouse()
4014 - Send 27 when the menu item clicked is an alt key seq... The
4015 lines aren't lined up since the menu width changed though,
4016 this breakage depends on whether the new widths will be kept
4017 or not (FEEDBACK!!)
Chris Allegrettaa951f212001-09-27 21:07:39 +00004018 - Change k based on currslen to allow the new widths in
4019 bottombars().
Chris Allegretta56214c62001-09-27 02:46:53 +00004020 do_wrap()
4021 - Fixes for Pico incompatibility in cases 2b and 2c.
4022 (David Lawrence Ramsey).
4023 global_init()
4024 - New arg save_cutbuffer, allows cutbuffer to not be lost when
4025 using multibuffer.
Jordi Mallachf57b8862001-10-03 12:45:22 +00004026- nano.1:
4027 - Added new features, fixed some typos (Jordi).
Jordi Mallach372b1a02001-08-08 19:35:23 +00004028- nano.texi:
Jordi Mallachf57b8862001-10-03 12:45:22 +00004029 - Corrected the Mouse Toggle section, noticed by Daniel Bonniot.
4030 - Added many command line options, toggles and other additions
4031 (Jordi).
Chris Allegrettabeb54972001-09-22 23:54:45 +00004032- rcfile.c:
4033 - NUM_RCOPTS fix (DLR).
Chris Allegretta66c33b82001-10-02 23:57:31 +00004034 - Add tabsize support to rc file (Nathan Heagy).
Chris Allegrettaca1a82e2001-10-03 15:18:41 +00004035 - Fix incorrect argument in fill and tabsize error message
4036 (Nathan Heagy)
Chris Allegretta759d3522001-09-27 13:04:10 +00004037- search.c:
4038 - Changed search prompt to "Search" followed by a list of
4039 bracketed, free-standing modifiers that do not imply a grammar,
4040 and the (to replace) string separately. Hopefully this resolves
4041 the i18n problems that this provoked.
Chris Allegretta7fdbd052001-10-02 00:55:38 +00004042 findnextstr()
4043 - Various fixes that need testing (Ken Tyler).
Chris Allegretta9b3c7e82001-08-25 16:00:53 +00004044- winio.c:
4045 - Add David Lawrence Ramsey to credits.
Chris Allegretta96eef732001-08-25 16:41:37 +00004046 bottombars()
4047 - Spread out the menu items, feedback definitely needed on this.
Chris Allegrettace78c1e2001-09-23 01:18:03 +00004048 nanogetstr()
4049 - More key fixes (David Lawrence Ramsey)
Chris Allegretta92f5fdc2001-10-02 02:58:07 +00004050 - Don't be clever and wasteful, just repaint every iteration.
Jordi Mallach2cde0a22001-09-05 13:23:53 +00004051- po/nl.po:
Jordi Mallachc6c35ea2001-09-09 11:04:43 +00004052 - New Dutch translation, by Guus Sliepen <guus@nl.linux.org>.
Jordi Mallachc1917e72001-09-28 13:06:29 +00004053- po/ca.po, po/es.po:
4054 - Updated Catalan and Spanish translation (Jordi).
Jordi Mallachd1625cd2001-09-10 11:36:45 +00004055- po/gl.po:
4056 - Updated Galician translation (Jacobo Tarrío).
Jordi Mallach90bbdd32001-09-12 19:06:59 +00004057- po/da.po:
4058 - New Danish translation, by Keld Simonsen <keld@dkuug.dk>.
Jordi Mallach6c49b3f2001-09-15 22:47:05 +00004059- po/sv.po:
4060 - Updated Swedish translation (Christian Rose).
Jordi Mallach1e36fd82001-10-01 17:24:24 +00004061- po/it.po:
4062 - Updated Italian translation (Marco Colombo).
Jordi Mallach780f3202001-10-03 20:47:47 +00004063- po/fi.po:
4064 - Updated Finnish translation (Pauli Virtanen).
Chris Allegretta47a26862001-07-29 01:17:38 +00004065
Chris Allegretta0e8c8d82001-07-29 01:16:27 +00004066nano-1.1.1 - 07/28/2001
Chris Allegrettaef8f98d2001-07-19 12:24:17 +00004067- General
4068 - Reverted included gettext from 0.10.38 to 0.10.35 in intl/ dir.
4069 - Added m4/ directory to allow rebuilding using only the internal
4070 version of gettext.m4 (Albert Chin).
Chris Allegretta307d4c82001-07-15 20:25:33 +00004071- nano.c:
4072 main()
Chris Allegretta0e8c8d82001-07-29 01:16:27 +00004073 - Change the multibuffer getopt option to 'F' (David Lawrence
4074 Ramsey)
Chris Allegretta41ed0162001-07-24 00:21:03 +00004075 do_mark()
4076 - Temporarily disable cursorpos when enabled to be able to see
4077 the mark (un)set message (Ken Tyler).
Chris Allegretta4839d232001-07-19 22:03:51 +00004078- nanorc.sample
4079 - Typo fixes and updates (David Lawrence Ramsey)
Chris Allegretta5cce53b2001-07-17 10:42:50 +00004080- files.c:
Chris Allegrettae6421972001-07-18 01:03:36 +00004081 new_file()
4082 - Do add_open_files if there aren't any open yet (David Lawrence
4083 Ramsey).
4084 close_open_file()
4085 - Try to open the next file first, then the previous one
4086 (David Lawrence Ramsey).
Chris Allegretta5f36c372001-07-16 00:48:53 +00004087- global.c:
4088 shortcut_init()
4089 - Rewrote the whereis and replace lists to put CANCEL at the end
4090 of the list, and not include the toggle functions when using
4091 NANO_SMALL.
Chris Allegrettaf372bd92001-07-15 22:24:24 +00004092- nano.h:
4093 - Fix type in INSERTFILE_LIST_LEN.
Chris Allegretta5f36c372001-07-16 00:48:53 +00004094 - Rewrote all the macro definitions to be a little less messy,
4095 for the #ifdefs anyway.
Chris Allegretta307d4c82001-07-15 20:25:33 +00004096- rcfile.c:
4097 - Update for the multibuffer option (oops) (David Lawrence Ramsey).
Chris Allegrettaf372bd92001-07-15 22:24:24 +00004098- search.c:
Chris Allegretta5f36c372001-07-16 00:48:53 +00004099 - Added #ifdef NANO_SMALLs around the REVERSE_SEARCH code.
Chris Allegrettaf372bd92001-07-15 22:24:24 +00004100 search_init()
4101 - add #ifdef NANO_SMALL around toggles code.
Chris Allegretta5f36c372001-07-16 00:48:53 +00004102- winio.c:
4103 bottombars()
4104 - Fixed an off by one that wasn't letting lines with odd #
4105 shortcuts work in certain cases.
Chris Allegretta47f77b42001-07-15 16:13:18 +00004106
Chris Allegretta9a748602001-07-15 16:07:23 +00004107nano-1.1.0 - 07/15/2001
Chris Allegretta6b58acd2001-04-12 03:01:53 +00004108- General
4109 - New global variables currshortcut and currslen to support using
Chris Allegretta051fc6e2001-05-05 23:17:36 +00004110 the mouse with the shortcuts. Also supports clicking on files
Chris Allegretta6fe61492001-05-21 12:56:25 +00004111 in browser. Added #ifdef DISABLE_MOUSE around this code also.
Chris Allegretta84de5522001-04-12 14:51:48 +00004112 - Changed mouse disabling code from depending on --enable-tiny
Chris Allegretta88520c92001-05-05 17:45:54 +00004113 to its own flag, --disable-mouse. The --tiny option defines
Chris Allegretta84de5522001-04-12 14:51:48 +00004114 this automatically, but now just mouse support can be disabled
4115 if desired.
Rocco Corsi12f294c2001-04-14 06:50:24 +00004116 - File Browser supports the "Goto Directory"
Chris Allegretta8d8e0122001-04-18 04:28:54 +00004117 - Added rcfile.c source file. Only includes much of anything when
4118 --enable-nanorc is used. Tons of new funcs, most notably
4119 do_rcfile() called from nano.c:main(). Added much needed
4120 function ncalloc(), will have to go through source code later
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004121 and change the appropriate calls which used nmalloc for lack of
4122 an appropriate calloc function *** FIXME ***
Rocco Corsi4dfaf932001-04-20 01:59:55 +00004123 - After "Alternate" spell checker is called, cursor is repositioned on
Chris Allegretta88520c92001-05-05 17:45:54 +00004124 the same line as before ^T was pressed.
Chris Allegretta6efda542001-04-28 18:03:52 +00004125 - Moved config.h up in all .c files #include list (Albert Chin).
Chris Allegretta88520c92001-05-05 17:45:54 +00004126 - Added config.guess and config.sub to distribution because,
4127 apparently, newer autoconf/automakes can't live without them.
4128 - Various spelling updates by David Lawrence Ramsey.
Chris Allegretta88b09152001-05-17 11:35:43 +00004129 - Changed all string allocations to charalloc(), new function
4130 designed to take nmalloc argument but call calloc based on
4131 (char *) size.
Chris Allegretta6fe61492001-05-21 12:56:25 +00004132 - New macro DISABLE_WRAPJUSTIFY to easily check for both wrapping
4133 and justify being disabled. This allows us to compile out the
4134 -r flag if neither are set, and will also allow us to comment
4135 out -W when it is written.
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004136 - Allow fill to take a negative value to signify a "from right side"
Chris Allegretta6fe61492001-05-21 12:56:25 +00004137 value. This allows the value to vary with the screen size yet
4138 still be correct. New static value wrap_at to minimize code
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004139 impact. Updated man page and info file.
Chris Allegrettacc197ef2001-05-29 04:21:44 +00004140 - Allow file appending. New shortcut list nano_insertfile_list (since
4141 insert and write routines can't share shortcut lists anymore),
4142 new args to do_writeout and write_file called append, and of source
4143 code changes to those functions.
Chris Allegrettae4933a32001-06-13 02:35:44 +00004144 - Allow backwards searching. Drastic rewrite of the search prompt
4145 string by Chris. All other code by Ken Tyler. New globals
4146 nano_reverse_msg, new functions revstrstr and revstrcasestr,
4147 many changes to search functions. Not too big a code size
4148 increase!
Chris Allegretta658399a2001-06-14 02:54:22 +00004149 - Moved extension functions (Case Sensitive, Regexp, and Backwards
4150 Search, Append key in write file function) to Meta keys, as
4151 people are complaining loudly about nano not being control-key
Chris Allegretta6df90f52002-07-19 01:08:59 +00004152 compatible with Pico, which is a Bad Thing (TM). Changes to
Chris Allegretta658399a2001-06-14 02:54:22 +00004153 shortcut_init, toggle_init, new toggles for backwards and regexp
4154 (and you can now toggle all search options including regexp at
4155 the Search: prompt!) Changes to nanogetstr to enable Meta
4156 keys to be grabbed, changes to onekey to print M-style shortcuts.
4157 - New macro TOGGLE which just toggles, no more silly checking
4158 ISSET and then using SET or UNSET when we want a simple toggle
4159 for a flag.
Chris Allegretta2d7893d2001-07-11 02:08:33 +00004160 - Added multiple buffer capability (God help us). New configure
Chris Allegretta355fbe52001-07-14 19:32:47 +00004161 option --enable-multibuffer (-F), changes to do_insertfile(),
Chris Allegretta2d7893d2001-07-11 02:08:33 +00004162 do_insertfile_void(), toggle_init(), do_gotoline(), edit_update(),
4163 and write_file(), new functions add_open_file(),
4164 open_file_change_name(), load_open_file(), open_file_dup_search(),
4165 open_file_dup_fix(), open_prevfile(), open_nextfile(),
4166 close_open_file(), get_full_path(), die_save_file(), etc.
4167 (David Lawrence Ramsey).
Chris Allegretta355fbe52001-07-14 19:32:47 +00004168 - Using --enable-extra automatically defines --enable-multibuffer
4169 changes to version() and configure.in.
Chris Allegretta9a748602001-07-15 16:07:23 +00004170 - Moved to gettext 0.10.38 at the last second, sure to break
4171 something, but at least I can run make distcheck!
Jordi Mallach7fde37f2001-06-22 23:26:19 +00004172- Makefile.am:
4173 - Include ABOUT-NLS and the new THANKS files to the distributed list.
4174- THANKS:
4175 - Initial, incomplete list of people to thank.
Chris Allegretta049149f2001-07-02 01:57:44 +00004176 - Added some more people.
Chris Allegrettaea066c82001-04-13 02:32:06 +00004177- configure.in:
Chris Allegretta88520c92001-05-05 17:45:54 +00004178 - New option, --enable-nanorc, which allows people to have a .nanorc
Chris Allegretta18d70f12001-04-28 15:53:28 +00004179 initialization file and set options normally used on the command
4180 line, and color later on.
Jordi Mallach72549042001-05-02 17:18:17 +00004181 - Added --enable-color option to allow color and syntax highlighting
Chris Allegretta18d70f12001-04-28 15:53:28 +00004182 (stub as of now).
Chris Allegretta4cb991d2001-05-10 22:55:16 +00004183- cut.c:
4184 add_to_cutbuffer()
4185 - Remove useless statements (Rocco).
Chris Allegretta9fe015c2001-05-17 03:41:00 +00004186 cut_marked_segment()
Chris Allegretta53ea9d12001-05-18 19:58:33 +00004187 - Add bizarre copy of bot node, else *BSD goes ballistic (fixes
4188 BUG #60).
Chris Allegrettacc197ef2001-05-29 04:21:44 +00004189 - Added 'destructive' argument. Allows the selected text to be
4190 added to the cutbuffer without changing the contents of the
4191 file. This allows writing selection to separate files.
Chris Allegretta3ba29532001-06-10 20:41:20 +00004192 do_cut_text()
Chris Allegrettaa75bc412001-06-12 23:22:26 +00004193 - If the line is empty when using -k and wasn't already added,
4194 create a dummy line and add it to the cutbuffer (fixes bug #61)
Chris Allegretta40f45c82001-06-21 15:07:40 +00004195 - Reset marked_cut if we blow away the cutbuffer.
Chris Allegretta500b5e32001-06-21 23:58:47 +00004196 - Moved the case of current == mark_beginbuf into cut_marked
4197 segment, so do_writeout could call it when writing selection to
4198 file.
Chris Allegretta40f45c82001-06-21 15:07:40 +00004199 do_uncut_text()
4200 - Reset cutbuffer even if we're uncutting marked or cut to end text!
Jordi Mallach72549042001-05-02 17:18:17 +00004201- faq.html:
4202 - Brought the FAQ up to date, many little changes (Jordi).
Chris Allegretta9a748602001-07-15 16:07:23 +00004203 - Added sections 3.7 and 3.8 for the multibuffer and nanorc support.
Rocco Corsi12f294c2001-04-14 06:50:24 +00004204- files.c:
4205 do_browser()
4206 - Minor fixes to the processing of SELECT function (Rocco)
4207 - Added the "Goto Directory" code (Rocco)
Chris Allegrettad4615622001-05-23 21:54:47 +00004208 - Don't shift the size of the file is it's less than 1K. Fixed
4209 files less than 1K being displayed as 0B (Rocco).
Chris Allegrettaa2c02e92001-07-02 01:31:44 +00004210 - More Picoish keystrokes for the browser, ^P, ^N, etc, for up,
4211 down, etc, and add the consistent ^C to exit (Jim Knoble).
Chris Allegrettacc197ef2001-05-29 04:21:44 +00004212 do_writeout()
4213 - New code to allow writing selected text to a separate file.
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004214 When this is done, the current state is preserved.
Chris Allegrettaecc3d7f2001-06-05 23:24:55 +00004215 write_file()
4216 - New arg, nonamechange, means whether or not to update the
4217 current filename after writing the file out.
Chris Allegretta1a8b2962001-06-30 18:41:08 +00004218 - Increment lineswritten when the very last line isn't null.
4219 Fixes off by one count when writing selection to file.
Rocco Corsi12f294c2001-04-14 06:50:24 +00004220- global.c:
4221 - Updated some of the lists for the "Goto Directory" code (Rocco)
Chris Allegretta6cb4e882001-04-29 02:26:17 +00004222- move.c:
4223 page_up()
4224 - Rewritten with a loop to make screen updates work when
4225 mark is set (fixes bug #59).
Chris Allegretta1cde3222001-06-11 06:56:10 +00004226 do_home(), do_end()
4227 - Don't keep cutbuffer.
Jordi Mallach3f8db492001-04-30 10:30:43 +00004228- nano.1:
4229 - Added the missing -r flag (Jordi).
Rocco Corsi12f294c2001-04-14 06:50:24 +00004230- nano.c:
Rocco Corsi4dfaf932001-04-20 01:59:55 +00004231 do_alt_speller()
4232 - Reposition cursor on same line as before ^T was called (Rocco)
Chris Allegretta316e4d92001-04-28 16:31:19 +00004233 ABCD(), main()
4234 - Add Alt-whatever-[a-d] support as well as Alt-whatever-[A-D].
Rocco Corsi12f294c2001-04-14 06:50:24 +00004235 main()
4236 - Code to silently process "-g" and "-j" (Rocco)
Chris Allegrettab26ecb52001-07-04 16:27:05 +00004237 - Added Alt-[-7,8 support for home/end keys (Jeff Teunissen).
Chris Allegretta521e00d2001-06-28 16:52:52 +00004238 signal_init()
4239 - Reorder sigaction calls, use sigfillset() to stop SIGTSTP and
4240 SIGCONT from being interrupted, allows suspending nano
4241 to work more reliably, esp. with mutt, etc.
4242 do_suspend()
4243 - Don't try to play with the handler inside the handler. Just
4244 raise a SIGSTOP. We also now write the "use "fg"" message to
4245 stdout instead of stderr.
Chris Allegrettaac899e52001-06-30 04:09:09 +00004246 - Added _POSIX_VDISABLE macro to fully ignore suspend keystroke.
4247 Eliminates the possibility that nano can be suspended when
4248 it's not supposed to be. Many many many thanks to Jordi and
4249 Tom Lear for helping out finding and fixing this bug!
Chris Allegretta521e00d2001-06-28 16:52:52 +00004250 do_cont()
4251 - Now just does a refresh call instead of playing with the SIGTSTP
4252 handler.
Rocco Corsi12f294c2001-04-14 06:50:24 +00004253- nano.h:
4254 - Updated the BROWSER_LIST_LEN for the "Goto Directory" code (Rocco)
4255- proto.h:
4256 - New shortcut list added: gotodir_list (Rocco).
Rocco Corsi4dfaf932001-04-20 01:59:55 +00004257- search.c:
4258 do_gotoline()
4259 - Optimizations, remove "$" goes-to-last-line, less messages (Rocco)
Chris Allegretta5050aa62001-04-22 07:10:21 +00004260 do_replace()
4261 - If we manage to make it in somehow with VIEW_MODE on, abort
4262 nicely (fixes BUG #59).
Chris Allegretta99afb852001-05-16 04:20:57 +00004263- utils.c
4264 strcasestr()
4265 - Replaced by mutt's mutt_stristr function, because the thought
4266 of dynamically allocating memory and copying each line in a file
4267 to do a search or replace was causing me to lose sleep.
Chris Allegretta6efda542001-04-28 18:03:52 +00004268- winio.c:
4269 actual_x()
4270 - Remove inline from function decl (Albert Chin).
Jordi Mallach72549042001-05-02 17:18:17 +00004271- po/POTFILES.in:
4272 - Added utils.c to the list.
4273- po/es.po, po/ca.po:
4274 - Updated (Jordi).
Jordi Mallach96345712001-04-29 10:38:07 +00004275- po/gl.po:
Jordi Mallach64bacd22001-05-14 13:55:30 +00004276 - Galician translation by Jacobo Tarrío.
Jordi Mallach92b3bd22001-05-16 09:10:31 +00004277- po/uk.po, po/ru.po:
4278 - New Ukrainian and Russian translations by Sergey A. Ribalchenko
Jordi Mallach3bf6bf42001-05-14 13:11:56 +00004279 <fisher@obu.ck.ua>, thanks!
Jordi Mallachefd22362001-06-22 16:59:29 +00004280- po/id.po:
4281 - Updated Indonesian translation by Tedi Heriyanto.
Chris Allegretta63ba2d62001-05-16 12:16:28 +00004282- po/it.po
4283 - Updated Italian translation by Marco Colombo.
Jordi Mallachdf7d8b22001-07-05 23:16:05 +00004284- po/no.po:
4285 - New Norwegian translation by Eivind Kjørstad <ekj@vestdata.no>.
4286- po/sv.po:
4287 - New Swedish translation by Christian Rose <menthos@menthos.com>.
Chris Allegrettaac840eb2001-04-07 18:21:47 +00004288
4289nano 1.1 tree forked here 04/07/2001
4290
Chris Allegretta38068cd2001-04-06 20:04:23 +00004291nano 1.0.1 - 04/06/2001
Chris Allegrettacef7fbb2001-04-02 05:36:08 +00004292- General:
4293 - added configure option --disable-wrapping. Does what it says,
4294 no wrapping or checks are done. Separate from --enable-tiny,
Chris Allegretta88520c92001-05-05 17:45:54 +00004295 some may want a bare-bones Pico clone that does wrap text.
Chris Allegrettacef7fbb2001-04-02 05:36:08 +00004296 Affects configure, nano.c:do_char() and check_wrap() obviously,
4297 version(), and do_char().
Chris Allegretta3948bae2001-03-25 00:46:40 +00004298- aclocal.m4:
4299 - Minor patch for intl check (really this time) (Albert Chin)
Chris Allegretta4bf831f2001-03-26 15:35:34 +00004300- faq.html:
4301 - Fixed typo in section 6.1 (discovered by Bob Farmer).
Chris Allegretta49805172001-03-28 02:14:28 +00004302- files.c:
Chris Allegretta90d30742001-04-03 01:02:38 +00004303 - fix two typos in comments, one in ChangeLog (Matthias Andree)
Chris Allegretta49805172001-03-28 02:14:28 +00004304 diralphasort()
Chris Allegretta0876dc92001-03-28 13:04:08 +00004305 - Stop abort on symlinks (Matthias Andree)
Chris Allegretta90d30742001-04-03 01:02:38 +00004306 - use strcasecmp to sort directory if available, pilot does that
4307 as well (Matthias Andree)
4308 filestat(), do_browse()
Chris Allegretta0876dc92001-03-28 13:04:08 +00004309 - Changed lstat calls to stat, which fixes the browser not
4310 following links to directories. We only use lstat() when
4311 printing the details of the file, and if it is a link, then
4312 check via lstat() for link to a directory. If it is
Jordi Mallachb2c4cbe2001-04-02 13:47:17 +00004313 a directory, display (dir), else use the normal "--".
Chris Allegretta90d30742001-04-03 01:02:38 +00004314 do_browser()
4315 - Fix broken size suffix off-by-one errors (Matthias Andree)
4316 cwd_tab_completion(), do_browse_from()
4317 - Use PATH_MAX instead of 0 arg to getcwd (Matthias Andree).
4318 - Changed above to use PATH_MAX only when defined on the
4319 system, as the HURD e.g. does not support it.
Jordi Mallachb2c4cbe2001-04-02 13:47:17 +00004320- intl/Makefile.in:
4321 distclean
4322 - added intl/libintl.h to the rm -f rule, should fix the unresolved
4323 gettext symbols problem (Jordi).
Chris Allegretta20712072001-03-23 03:51:48 +00004324
Chris Allegretta2bfbda02001-03-23 03:50:44 +00004325nano-1.0.0 - 03/22/2001
Chris Allegrettae3167732001-03-18 16:59:34 +00004326- General
4327 - Added void to functions declared as () args, nano.c:do_mark()
4328 and search.c:regexp_cleanup(). (Christian Weisgerber).
4329 - Changed internal variables called "new" to "newnode" to avoid
4330 the "new" C++ reserved word, even though there is likely no way
4331 nano will EVER be compilable with a C++ compiler. (suggested by
4332 Rocco Corsi).
Chris Allegretta7ab3e8f2001-03-22 23:12:22 +00004333- ca.po, es.po:
4334 - Final tweaks for Nano 1.0.
Chris Allegretta10ae4f12001-03-20 15:51:43 +00004335- cs.po:
4336 - Czech translation from Vaclav Haisman.
Chris Allegretta7ab3e8f2001-03-22 23:12:22 +00004337- nano.info:
4338 - Added dir entry (Albert Chin).
Chris Allegretta35dac582001-03-21 15:07:20 +00004339- winio.c:
4340 statusq()
4341 - Added NANO_BACK_KEY and NANO_FORWARD_KEY cases for left and right.
Chris Allegrettae3167732001-03-18 16:59:34 +00004342
43431.0-test prerelease - 03/17/2001
Chris Allegretta94a78b82001-03-14 08:28:48 +00004344- nano.c:
4345 do_wrap()
4346 - Added case for autoindenting text causing new line (Adam).
4347 - Added SAMELINE case to above. Added checks to cases 1b and
4348 2b for placement of cursor.
Chris Allegretta565f7d52001-03-15 02:02:20 +00004349- move.c:
4350 page_down()
Chris Allegretta88520c92001-05-05 17:45:54 +00004351 - Check for totlines < editwinrows in check for superfluous
Chris Allegretta565f7d52001-03-15 02:02:20 +00004352 edit update (fixed BUG #57).
Jordi Mallach5b387d72001-02-20 12:45:47 +00004353- search.c:
Chris Allegretta74bb31b2001-03-14 09:08:14 +00004354 print_replaced()
Jordi Mallach5b387d72001-02-20 12:45:47 +00004355 - s/occurence/occurrence typos (Jordi).
Chris Allegretta74bb31b2001-03-14 09:08:14 +00004356 search_init()
4357 - If using Pico mode and regex and same answer is entered, use
4358 last_search string instead of answer (fixes BUG #56).
Chris Allegretta203ce152001-02-23 03:05:38 +00004359- nano.texi:
4360 - Meta-Z correction and grammar in --enable-tiny desc (Neil Parks).
Chris Allegretta9c9c5da2001-02-20 03:53:31 +00004361
Chris Allegrettaa4a222d2001-02-20 03:52:13 +00004362nano-0.9.99pre3 - 02/19/2001
Chris Allegrettaaf6414a2001-02-11 19:05:05 +00004363- General
Chris Allegretta1bf501c2001-02-12 03:24:46 +00004364 GNU compliance issues:
Jordi Mallacha7b2ed02001-02-20 02:04:43 +00004365 - Reworked shortcut list, put "Get Help" into default list,
Chris Allegretta1bf501c2001-02-12 03:24:46 +00004366 removed "Goto Line", aligned "Read File" with "Write Out" and
4367 "Replace" with "Where is" for consistency.
4368 - Added texinfo manual nano.texi. Added texi options to
Chris Allegrettac46dd812001-02-14 14:28:27 +00004369 Makefile.am.
Chris Allegrettade48b412001-02-01 22:56:44 +00004370- configure.in:
4371 - Autoconf compatibility fixes (Pavel Roskin)
Chris Allegretta618f5d72001-02-16 04:48:30 +00004372 - Added separate check for resizeterm().
Jordi Mallach82b18292001-02-17 01:31:32 +00004373 - ALL_LINGUAS: added hu and ca.
Chris Allegretta09f39cb2001-02-05 13:43:23 +00004374- cut.c:
4375 do_cut_text()
4376 - marked text cut fixes (Rocco) (Fixes bug #54).
Chris Allegretta00ae5df2001-02-05 18:24:33 +00004377- nano.c:
Chris Allegretta4ed13152001-02-10 17:50:50 +00004378 do_delete()
4379 - Added check for current->next == fileptr, as we have a magic
Chris Allegretta88520c92001-05-05 17:45:54 +00004380 line code again, fixes silliness at the end of the last line
Chris Allegretta4ed13152001-02-10 17:50:50 +00004381 before the magic line (reported by J.A. Neitzel).
Chris Allegretta00ae5df2001-02-05 18:24:33 +00004382 do_justify()
4383 - If the keystroke after the justify is not the unjustify key,
Chris Allegretta88520c92001-05-05 17:45:54 +00004384 blank the statusbar (bug reported by Neil Parks).
Chris Allegretta8bc03b62001-02-09 02:57:52 +00004385 main()
4386 - Added ENABLE_NLS check around gettext stuff.
Chris Allegretta4ce8e3b2001-02-16 01:49:31 +00004387- winio.c:
4388 do_yesno()
4389 - Added localized yes, no and all strings to function and rewrote
4390 handler for the new format.
Chris Allegrettab55999e2001-02-09 02:49:46 +00004391- de.po:
Jordi Mallach81197652001-02-16 20:00:03 +00004392 - Translation updates by Florian König.
Chris Allegrettab55999e2001-02-09 02:49:46 +00004393- fi.po:
4394 - Translation updates by Pauli Virtanen.
Chris Allegrettad096f682001-02-05 13:51:31 +00004395- hu.po:
4396 - Hungarian translation by Horvath Szabolcs.
Chris Allegrettab55999e2001-02-09 02:49:46 +00004397- id.po:
4398 - Translation updates by Tedi Heriyanto.
Jordi Mallach81197652001-02-16 20:00:03 +00004399- es.po:
Jordi Mallach6aec0d62001-02-17 01:32:58 +00004400 - Translation updates and grammatical/typo fixes (Jordi).
Jordi Mallach82b18292001-02-17 01:31:32 +00004401- ca.po:
4402 - Catalan translation by Jordi Mallach :)
Jordi Mallacha7b2ed02001-02-20 02:04:43 +00004403 - Miquel Vidal <miquel@sindominio.net> went over it and corrected
4404 many typos and completed bits that remained untranslated by error.
Chris Allegretta7c1fee72001-01-31 23:24:54 +00004405
Chris Allegretta34318ed2001-01-31 23:22:36 +00004406nano-0.9.99pre2 - 01/31/2001
Chris Allegretta17dcb722001-01-20 21:40:07 +00004407General
Chris Allegrettad4ddd012001-01-23 01:17:07 +00004408 - Removed center_x and center_y globals. center_y was
4409 completely unused and center_x was only used a few places,
Chris Allegretta17276e52001-01-23 01:22:32 +00004410 easily replaced with COLS / 2 (oops, not current_x & y (Rob)).
Chris Allegretta17dcb722001-01-20 21:40:07 +00004411 - Deleted free_node, duplicate of delete_node, and changed all
4412 free_node calls to delete_node.
Chris Allegretta08020882001-01-29 23:37:54 +00004413 - Fix for resizing the window in modes other than normal edit mode
4414 Changes to handle_sigwinch(), main(). Fixes bug #52 (Rocco).
Chris Allegretta0fc2b812001-01-18 15:04:20 +00004415- files.c:
4416 write_file()
4417 - Don't free() realname on error, if it needs to be free()d later
4418 it will be (fixes crash on successful write after failed write,
4419 discovered by David Sobon).
Chris Allegretta8d9b11a2001-01-19 04:17:24 +00004420 username_tab_completion()
4421 - Optimization and removal of useless vars (Rocco).
Chris Allegretta2c2c5f22001-01-23 03:27:31 +00004422 - Rewritten using getpwent (suggested by Rocco).
Chris Allegrettaa711f7e2001-01-23 04:16:31 +00004423 - Removed redundant conditional (Rocco).
Chris Allegrettaee733e62001-01-22 22:17:08 +00004424 real_dir_from_tilde()
Chris Allegretta88520c92001-05-05 17:45:54 +00004425 - Rewritten using getpwent (suggested by Adam, much optimized by
4426 Rocco).
Chris Allegrettaf0b26df2001-01-20 22:18:18 +00004427- global.c:
4428 - Don't define toggles global or toggle_init_one if using --tiny.
Chris Allegretta17dcb722001-01-20 21:40:07 +00004429- nano.c:
4430 do_justify()
4431 - Added restoration of totsize after unjustify command.
Chris Allegretta7f7ce562001-01-21 16:35:49 +00004432 usage()
Chris Allegrettae9a2d032001-01-21 16:08:21 +00004433 - Add arg to -T help (Rocco).
Chris Allegretta0a06e072001-01-23 02:35:04 +00004434 global_init(), handle_sigwinch()
4435 - Messy loops replaced with memset calls (Rocco).
Chris Allegretta169ee842001-01-26 01:57:32 +00004436 do_alt_speller()
4437 - Added code to parse multi-word alt_speller strings.
Chris Allegrettae434b452001-01-27 19:25:00 +00004438 - Fix initialization before fork() (Rocco).
Chris Allegretta34318ed2001-01-31 23:22:36 +00004439- proto.h:
4440 - Fix do_credits() proto (oops!)
Chris Allegrettae434b452001-01-27 19:25:00 +00004441- winio.c:
4442 nanogetstr()
4443 - Sanity check for x overrunning the string buffer len.
Chris Allegretta76745fb2001-01-18 04:40:06 +00004444
Chris Allegretta9d6f3f32001-01-21 02:35:03 +00004445nano 0.9.99pre1 - 01/17/2001
Chris Allegrettaa4d6d1d2001-01-10 23:44:10 +00004446General
4447 - Changed #ifdefs to check for both DISABLE_TABCOMP and
4448 NANO_SMALL, makes tiny option leave out tab completion, which
Rocco Corsiaf5c3022001-01-12 07:51:05 +00004449 should be left out in that circumstance. Saves at least 5k.
Rocco Corsi06aca1c2001-01-11 05:30:31 +00004450 - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
Rocco Corsiaf5c3022001-01-12 07:51:05 +00004451 back. (Rocco)
4452 - Various #ifdef & #ifndef cleanups. (Rocco)
Chris Allegretta201d9bf2001-01-14 03:17:53 +00004453 - Added message for when keypad goes awry. Added code in main and
4454 function print_numlock_warning() to notify user, and added an
Chris Allegretta88520c92001-05-05 17:45:54 +00004455 appropriate section in the faq to refer to this brokenness.
Chris Allegrettae61e8302001-01-14 05:18:27 +00004456 - Added macros in nano.h for magic values that might be unclear in
Chris Allegretta2be96d02001-01-14 05:22:43 +00004457 nano.c:global_init(). (Rocco)
Chris Allegrettabbebec62001-01-09 00:37:32 +00004458- configure.in:
4459 - Fix for _use_keypad check breaking slang support (Christian
4460 Weisgerber).
Chris Allegretta88520c92001-05-05 17:45:54 +00004461 - Changed to automatically define the 5 DISABLE variables when
Chris Allegretta4ee0b412001-01-11 15:11:00 +00004462 NANO_SMALL (enable-tiny) is requested at configure.
Chris Allegretta2c4feca2001-01-09 17:40:56 +00004463- faq.html:
4464 - Added some info on making the binary smaller with the configure
4465 script.
Chris Allegretta201d9bf2001-01-14 03:17:53 +00004466 - Added section on keypad bugginess.
Chris Allegrettabf692612001-01-08 16:59:19 +00004467- files.c:
4468 real_dir_from_tilde()
4469 - Oops, fix case where buf ="~", silly crash (bug discovered by
4470 Neil Parks).
Chris Allegretta8eac3b52001-01-08 21:14:04 +00004471 do_browser()
4472 - Added space and - keys to do page up and down.
Chris Allegrettaa35ec042001-01-15 02:26:12 +00004473 cwd_tab_completion(), input_tab()
4474 - Changed bare malloc/calloc calls to nmalloc (found by Rocco).
Chris Allegretta40587092001-01-16 04:45:38 +00004475 - Added memset() to matchBuf to ensure sanity (Rocco, Adam).
Rocco Corsiaf5c3022001-01-12 07:51:05 +00004476- nano.c:
Chris Allegretta1748cd12001-01-13 17:22:54 +00004477 ABCD()
4478 - New function, figures out what kbinput to return given
4479 input common to several switch statements, allows us to
4480 support the default Konsole key settings.
Rocco Corsiaf5c3022001-01-12 07:51:05 +00004481 main()
4482 - Alternate speller option no longer valid if DISABLE_SPELLER is
4483 active. (Rocco)
Chris Allegrettaae4318d2001-01-16 04:18:26 +00004484 - Removed direct calls to usage() (#else) for -k (cut) or -s (speller)
4485 options when these have been disabled. (Rocco)
Chris Allegretta36939442001-01-15 20:26:38 +00004486 - Initialized kbinput to get around stupid compiler warning.
Rocco Corsiaf5c3022001-01-12 07:51:05 +00004487 nano_small_msg()
4488 - This function has been removed. All references now call
4489 nano_disabled_msg. (Rocco)
4490 version()
4491 - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE
4492 variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not
4493 reported as enabled when Nano is called with -V (--version)
Chris Allegretta88520c92001-05-05 17:45:54 +00004494 command line option. (Rocco)
Rocco Corsiaf5c3022001-01-12 07:51:05 +00004495 usage()
4496 - Alternate speller option no longer valid if DISABLE_SPELLER is
4497 active. (Rocco)
Chris Allegrettae61e8302001-01-14 05:18:27 +00004498 window_init(), handle_sigwinch()
4499 - Added check for not having enough LINES to do anything useful,
4500 if so die with an error. (Rocco)
4501 die_too_small()
4502 - Function to print the window too small error message, avoids
4503 repeated string defs and globals.
Robert Siemborskic2eeb4e2001-01-17 03:29:02 +00004504 do_justify()
4505 - Small fix for totsize calculation (Rob)
4506
Chris Allegrettad9742c62001-01-12 15:51:53 +00004507- fi.po:
4508 - Update by Pauli Virtanen.
Chris Allegretta7e080822001-01-08 02:31:03 +00004509
Chris Allegretta16991442001-01-07 22:06:11 +00004510nano 0.9.25 - 01/07/2001
Chris Allegrettaf4b96012001-01-03 07:11:47 +00004511General -
4512 - New file browser code. New functions in files.c:do_browser(),
4513 helper functions browser_init(), tail(), striponedir(),
4514 filestat(). New shortcut list browser_list. Some new
Chris Allegretta150469a2001-01-05 21:13:14 +00004515 strings to translate. Added function do_browse_from().
Chris Allegrettac08f50d2001-01-06 18:12:43 +00004516 - Keypad code has been changed slightly. Now checks for
4517 _use_keypad flag in window to see whether or not to turn
4518 the keypad() back off when finished (taken from aumix). Moved
Chris Allegretta88520c92001-05-05 17:45:54 +00004519 to winio.c where it should probably be anyway. New configure
4520 check for _use_keypad in window struct. This will have to do
Chris Allegrettac08f50d2001-01-06 18:12:43 +00004521 for now.
Chris Allegretta155d6202001-01-08 01:50:37 +00004522 - Moved keypad() calls for PDCURSES from main() to window_init()
4523 so the keypad continues to work after a Meta-X, for example.
4524 Fixed bug #51.
Jordi Mallach56e6d722000-12-19 22:59:55 +00004525- faq.html:
4526 - Fix typos and small mistakes (Jordi).
Chris Allegrettaee289d72000-12-27 16:12:47 +00004527- files.c:
Rocco Corsi8b6cccc2001-01-02 06:21:07 +00004528 username_tab_completion()
4529 - Added the (char *) sizeof when allocating memory for the filename
4530 array (Rocco).
Chris Allegrettaee289d72000-12-27 16:12:47 +00004531 cwd_tab_completion()
4532 - removed skipping . and .. when tabulating matches.
Rocco Corsi8b6cccc2001-01-02 06:21:07 +00004533 - Added the (char *) sizeof when allocating memory for the filename
4534 array (Rocco).
Chris Allegrettae1ebaf32001-01-07 05:50:36 +00004535 do_writeout()
4536 - Now takes an argument so the string typed in can be retained
4537 when calling the browser.
Chris Allegretta816a1652001-01-06 17:43:56 +00004538 do_browser()
4539 - Don't decrement longest by the length of path. Fixes crashes
4540 on entering various dirs (Rocco).
Chris Allegretta88520c92001-05-05 17:45:54 +00004541 - Don't ungetch() the exit key, unneeded, fixes inserting a file
Chris Allegretta816a1652001-01-06 17:43:56 +00004542 causes exit code.
Chris Allegretta155d6202001-01-08 01:50:37 +00004543- move.c:
4544 page_down()
4545 - Don't do an edit_update when there is only one page of text
4546 (fileage == edittop && filebot == editbot). Fixes Bug #50.
Chris Allegrettad55655f2000-12-27 03:36:47 +00004547- nano.c:
4548 main()
4549 - Reorder the getopt options to be more or less alphabetical
4550 (suggested by Sven Guckes).
Chris Allegretta66795ec2000-12-27 04:47:28 +00004551- winio.c:
4552 do_cursorpos()
4553 - Optimizations and cleanups by Rocco Corsi.
Chris Allegretta827b15f2001-01-03 02:09:04 +00004554 do_credits()
4555 - Spell Erik Andersen's name right.
Chris Allegrettaf4b96012001-01-03 07:11:47 +00004556 titlebar()
4557 - Now takes an arg, needed for browser function.
Chris Allegretta70444892001-01-07 23:02:02 +00004558 do_help()
4559 - Changed way of temporarily bringing up shortcuts at the
4560 bottom in the help screen (actually works).
Chris Allegretta150469a2001-01-05 21:13:14 +00004561- utils.c:
4562 mallocstrcpy()
4563 - Takes char pointers now instead of void (makes debugging a
4564 helluva lot easier)
Chris Allegrettae1ebaf32001-01-07 05:50:36 +00004565 - Duh, don't do anything if src == dest!
Jordi Mallach75ef81b2001-01-04 16:48:59 +00004566- es.po:
4567 - Updates for file browser (Jordi).
Chris Allegretta827b15f2001-01-03 02:09:04 +00004568
Chris Allegretta66149e72000-12-19 02:51:06 +00004569nano 0.9.24 - 12/18/2000
Chris Allegretta3bc8c722000-12-10 17:03:25 +00004570General
4571 - Added --disable-help option, affects acconfig.h, configure(.in),
Chris Allegrettab7d00ef2000-12-18 05:36:51 +00004572 winio.c:do_help, nano.c:help_init,help_text_init,version.
Chris Allegretta1a6e9042000-12-14 13:56:28 +00004573 - Changed filename to no longer use PATH_MAX, so it can work on the
4574 HURD. Changes in files.c:write_file(), new function
4575 nano.c:clear_filename(), many changed in main(), a few other
4576 places. Please test this!
Chris Allegretta51b3eec2000-12-18 02:23:50 +00004577 - Added -b, -e, and -f flags, which we ignore as nano provides
4578 their functionality already.
Chris Allegretta5146fec2000-12-10 05:44:02 +00004579- cut.c:
4580 do_uncut_text()
Chris Allegretta51b3eec2000-12-18 02:23:50 +00004581 - Fix renumbering bug when uncutting marked text at filebot.
Chris Allegretta5146fec2000-12-10 05:44:02 +00004582 - Fix screen not being displayed when we are uncutting marked
4583 text at editbot (Bug discovered by Ken Tyler).
Chris Allegrettae51c95f2000-12-10 05:54:27 +00004584 - Fix magic line not getting created when (you guessed it)
4585 uncutting marked text at filebot (Ryan Krebs).
Chris Allegrettaef123112000-12-10 00:04:13 +00004586- files.c:
Chris Allegretta3a7c0be2000-12-18 01:09:07 +00004587 read_file()
4588 - If we encounter an error and insert is not set, run new_file().
4589 (bug discovered by Ben Roberts).
Chris Allegrettaef123112000-12-10 00:04:13 +00004590 write_file()
4591 - Change open call flags, basically copy joe's way of doing it so
4592 a more recent version will actually be included in (un)stable.
Chris Allegretta1cd50662000-12-11 02:47:12 +00004593 - Remove useless fstat call.
Chris Allegretta7960dcf2000-12-13 15:01:29 +00004594 open_file()
4595 - Added check for S_ISBLK and S_ISCHR, don't open device files!
Chris Allegretta5146fec2000-12-10 05:44:02 +00004596- nano.c:
4597 renumber()
Chris Allegretta88520c92001-05-05 17:45:54 +00004598 - Don't stupidly assign the value of prev->lineno if prev == NULL!
Chris Allegretta51b3eec2000-12-18 02:23:50 +00004599 main()
4600 - Added code to check for Alt-Alt (27-27) keystrokes and set the
4601 next keystroke as a control sequence. New variable
4602 modify_control_key. Removed #ifdef _POSIX_VDISABLE check
4603 around Control-S,Q,Z handlers because we need it now for
4604 the Alt-Alt-x code.
Chris Allegretta7492cec2000-12-18 04:55:21 +00004605 - Added --view option to getopt_long()call . Bug discovered
4606 by Rocco Corsi.
Chris Allegretta220ba692000-12-18 03:40:00 +00004607 help_init()
4608 - Fix off by one error that was making ^G help in normal mode and
Chris Allegretta6df90f52002-07-19 01:08:59 +00004609 ^_ in Pico mode not be displayed in the help (bug discovered by
Chris Allegretta92325e72000-12-18 03:44:22 +00004610 Rocco Corsi).
Chris Allegrettaaffeda82000-12-18 04:03:48 +00004611 do_toggle()
4612 - Added fix_editbot() call to fix improper redisplay of edit
4613 window when using nohelp toggle (bug discovered by Rocco Corsi).
Chris Allegretta51b3eec2000-12-18 02:23:50 +00004614- nano.1, nano.1.html:
4615 - Updated man page for -b, -e, -f and expanded explanation for -p.
Chris Allegrettad1627cf2000-12-18 05:03:16 +00004616- winio.c
4617 do_help()
4618 - Force keypad on so F-keys and PageUp/Down will work properly.
4619 Added check for NANO_EXIT_FKEY to loop.
Chris Allegrettae51c95f2000-12-10 05:54:27 +00004620- utils.c:
4621 new_magicline()
Chris Allegretta321590a2000-12-10 06:03:40 +00004622 - Increment totsize!! We decrement it when we've read a file,
4623 everywhere else it should automatically be incremented
Chris Allegrettaef123112000-12-10 00:04:13 +00004624
Chris Allegrettab29550e2000-12-09 03:34:12 +00004625nano 0.9.23 - 12/08/2000
Chris Allegretta7b36c522000-12-06 01:08:10 +00004626General
4627 - Changed --disable-spell to --disable speller. The term is
4628 "speller" for -s, so it should be --disable-speller.
Chris Allegretta59828492000-12-04 03:31:39 +00004629- files.c:
4630 write_file()
Chris Allegretta88520c92001-05-05 17:45:54 +00004631 - Added tmp check to TMP_OPT section (how appropriate).
Chris Allegretta07f9ee02000-12-04 05:15:39 +00004632 - Added new consistency checking code from securityfocus
Chris Allegrettafb2226a2000-12-04 05:25:47 +00004633 article by Oliver Friedrichs, and use O_EXCL if tmp == 1.
Chris Allegretta928a7f52000-12-04 05:31:34 +00004634 - We now run check on result of lstat(), not stat(), to be
4635 safer. New variable anyexists, we use still use realexists
4636 later in the program.
Chris Allegretta71e46402000-12-06 00:40:26 +00004637 - OOPS, line up link/unlink/rename check if conditional with
4638 top if conditional. Option -l has been broken for 9 versions,
4639 no one noticed?!
Chris Allegretta1bd0ce22000-12-06 05:56:08 +00004640 - Added saving perms at end of link so we can apply them to the
4641 new file if --nofollow is used.
Chris Allegretta908805a2000-12-04 04:42:56 +00004642- winio.c:
4643 edit_add()
4644 - Off by one display error (fix by Rocco Corsi).
Chris Allegrettafb62f732000-12-05 11:36:41 +00004645 do_replace_highlight()
Chris Allegretta88520c92001-05-05 17:45:54 +00004646 - New code to handle being past COLS (Rocco Corsi).
Chris Allegrettafb62f732000-12-05 11:36:41 +00004647 - Moved from search.c, as it's definitely a winio function now =)
4648 update_line()
4649 - More '$' display fixes (Rocco Corsi).
Chris Allegretta59828492000-12-04 03:31:39 +00004650
Chris Allegrettafedd7242000-12-03 03:15:38 +00004651nano 0.9.22 - 12/02/2000
Chris Allegrettabe77c612000-11-24 14:00:16 +00004652- General
Chris Allegrettabe77c612000-11-24 14:00:16 +00004653 - Username tab completion code, and cleaned up existing tabcomp
4654 code. New functions real_dir_from_tide(), append_slash_if_dir(),
4655 username_tab_completion is more than a stub now =-).
Chris Allegretta72623582000-11-29 23:43:28 +00004656 - Ignore key sequence 543 & 545, right control and alt keys in
4657 windows. Affects main() and winio.c:nanogetstr().
Chris Allegretta56b24b52000-11-29 23:57:20 +00004658 - Took out help from spell_list and changed SPELL_LIST_LEN to 1.
4659 Is using a spell checker THAT difficult? =-)
Chris Allegrettaff269f82000-12-01 18:46:01 +00004660 - New function nano_disabled_msg(), to alert that certain
Chris Allegretta88520c92001-05-05 17:45:54 +00004661 functions have been disabled, similar to nano_tiny feature.
Chris Allegrettaff269f82000-12-01 18:46:01 +00004662- New configure options:
4663 - Added configure argument --disable-tabcomp. Affects
4664 bottom of files.c and write_file, utils.c:check_wildcard_match()
Chris Allegretta88520c92001-05-05 17:45:54 +00004665 and winio.c:nanogetstr().
Chris Allegrettaff269f82000-12-01 18:46:01 +00004666 - New options --enable-extra. New code in nano.c:version() to
4667 print out various options from ./configure, function do_credits().
4668 - Added --disable-spell option for those who want to just disable
Chris Allegretta88520c92001-05-05 17:45:54 +00004669 the spell check feature. Affects the spelling functions
Chris Allegrettaff269f82000-12-01 18:46:01 +00004670 do_spell, do_int_speller and do_alt_speller.
4671 - Added --disable-justify to get rid of the justify function.
4672 Affects do_justify() (not surprisingly).
Chris Allegretta650e8a42000-11-24 14:15:17 +00004673- files.c:
4674 write_file()
4675 - Unsetting modified on temp files bug fixed (Rocco Corsi).
Chris Allegretta581bc602000-12-03 03:01:12 +00004676 - Okay, if tmp == 1 and the file exists, we abort.
Chris Allegretta25f4e582000-11-25 05:03:20 +00004677 do_insertfile()
Chris Allegretta09a80842000-11-30 02:31:13 +00004678 - Added call to real_name_from tilde, oops. Added check for
4679 DISABLE_TABCOMP.
Chris Allegretta24946bd2000-11-26 21:34:47 +00004680 read_file()
4681 - Added check for fileptr == NULL.
Chris Allegretta07798352000-11-27 22:58:23 +00004682- global.c:
4683 shortcut_init()
4684 - Now takes an argument as to whether to display the unjustify
Chris Allegretta88520c92001-05-05 17:45:54 +00004685 shortcut or the normal uncut text one. Needed to accommodate
4686 the kludgey unjustify code.
Chris Allegretta8be8ce22000-11-28 02:15:30 +00004687- nano.1, nano.1.html:
4688 - Updated date on pages because of -p changes.
Jordi Mallachd7ad75a2000-12-03 02:46:02 +00004689 - Added "NOTES" section, where I explain what nano.save & friends
4690 are.
4691 - Added a copyright notice for the manpage, under the GPL.
4692 - Other minor changes.
Chris Allegretta9149e612000-11-27 00:23:41 +00004693- nano.c:
4694 do_justify()
Chris Allegretta8be8ce22000-11-28 02:15:30 +00004695 - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
4696 text there, then grabs the next keystroke and, if the unjustify
4697 key, gets rid of the justified text and calls do_uncut_text.
4698 Added macro NANO_UNJUSTIFY_KEY.
Chris Allegrettad00e6df2000-11-29 04:33:26 +00004699 do_int_spell*
4700 - Various fixes (Rocco Corsi).
4701 - Changed abort of program to aborting based on value of "edit a
4702 replacement" question, and not caring about the replace loop
4703 return value. That way the user can get out of the replace loop
4704 and continue spell checking (very important to me anyway).
Chris Allegrettaff269f82000-12-01 18:46:01 +00004705 version()
4706 - Took out huge check for the various --disabled macros,
4707 eventually there will be too many to reasonably check for.
Chris Allegretta4eb7aa02000-12-01 18:57:11 +00004708 nano_small_msg(), nano_disabled_msg()
4709 - Added checks for disabled functions to see whether or not to
4710 declare them.
Chris Allegretta9e2934f2000-12-01 23:49:48 +00004711 do_next_word()
4712 - Update the previous line as well as the current one in case we
4713 have moved beyond COLS or back from COLS, patch submitted
4714 by Ryan Krebs.
Chris Allegrettae7a58932000-12-02 02:36:22 +00004715 die()
4716 - Now creates .save file using variable-length strings. Also
4717 calls write_file with tmp == 1, which happens to do exactly what
Chris Allegretta581bc602000-12-03 03:01:12 +00004718 we want (abort on save file exists and use mode 0600).
Chris Allegrettae7a58932000-12-02 02:36:22 +00004719 handle_sighup()
4720 - Now calls die instead of writing on its own and exiting normally.
Chris Allegrettad00e6df2000-11-29 04:33:26 +00004721- search.c:
Jordi Mallach72549042001-05-02 17:18:17 +00004722 do_replace_highlight()
4723 - New function, displays the currently selected word as highlighted
Chris Allegrettad00e6df2000-11-29 04:33:26 +00004724 in the spell check. Called from do_replace_loop (Rocco Corsi).
Jordi Mallach72549042001-05-02 17:18:17 +00004725 - Added calls to curs_set(0) and (1) to disable the cursor when
4726 highlighting, looks much better.
Jordi Mallachd819a4c2000-11-25 04:50:25 +00004727- es.po:
4728 - Traditional Spanish strings updates.
Chris Allegrettabe77c612000-11-24 14:00:16 +00004729
Chris Allegrettaca7a21d2000-11-24 01:35:40 +00004730nano 0.9.21 - 11/23/2000
Chris Allegrettaf26bca72000-11-21 03:04:45 +00004731- AUTHORS
4732 - Added Rocco Corsi.
Chris Allegretta31c76662000-11-21 06:20:20 +00004733- nano.c:
4734 main()
4735 - Changed check for argc == 1 to argv[optind] == NULL to decide
4736 whether or not to display "New File" in the statusbar.
Chris Allegrettaaaabe1f2000-11-19 18:20:07 +00004737- search.c:
4738 findnextstr()
Chris Allegretta88520c92001-05-05 17:45:54 +00004739 - Fix current_x increment bug by using another variable (Rocco Corsi).
Chris Allegrettaef601bb2000-11-19 19:15:03 +00004740 search_init()
4741 - Silly typo in our "one simple call" of statusq. Stopped
4742 previous search string from being displayed.
Chris Allegrettac793c432000-11-21 12:52:55 +00004743 do_replace()
4744 - Copy back the previous value of last_replace into answer if
4745 using PICO_MODE and answer == ""
Chris Allegretta6c5781b2000-11-23 01:19:58 +00004746- winio.c:
4747 do_up()
Chris Allegretta88520c92001-05-05 17:45:54 +00004748 - Deleted first update_line() call, screws up display when marker is
4749 set.
Chris Allegrettad466ab72000-11-19 20:36:41 +00004750- nano.1, nano.1.html
4751 - Updated man page for new -p definition.
Chris Allegrettaac0e63a2000-11-19 02:25:43 +00004752
Chris Allegretta6da149a2000-11-19 02:23:03 +00004753nano 0.9.20 - 11/18/2000
Chris Allegretta67574f42000-11-03 03:35:29 +00004754- General
4755 - Ran source through indent -kr again. Make everything pretty.
4756 - Changed behavior of "search" and "replace" prompts to make all
4757 previous values editable. This change was made so that you can
4758 replace with the null string without needing a special key for it.
4759 changed code in search_init(), do_replace(), nanogetstr (see
4760 below).
4761 - Added some missing gettext calls here and there (Jordi).
Chris Allegretta88520c92001-05-05 17:45:54 +00004762 - Revamped nanogetstr() and calls to it to use variable length
4763 strings.
Chris Allegretta67574f42000-11-03 03:35:29 +00004764 MANY changes in nanogetstr(), many chances in search.c, new
4765 function mallocstrcpy which is sure to be a programmatic
4766 nightmare, changed last_search, last_replace, answer to
4767 pointers. New function not_found_msg in search.c for displaying
Chris Allegretta88520c92001-05-05 17:45:54 +00004768 truncated strings in statusbar when the string is not found
Chris Allegrettacbb0f8b2000-11-15 03:50:02 +00004769 (-pedantic fixes by Rocco Corsi). We disable this feature when
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +00004770 using PICO_MODE (-p).
Chris Allegretta27eb13f2000-11-05 16:52:21 +00004771 - New spelling code by Rocco Corsi. New functions
4772 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
4773 New functions search_init_globals and do_replace_loop, changes
4774 to search_init(), do_replace, findnextstr, moved last_search and
4775 last_replace back to nano.c (*shrug*).
Chris Allegretta04d848e2000-11-05 17:54:41 +00004776 - New tab completion code. Used check_wildcard_match, input_tab,
4777 cwd_tab_completion, username_tab_completion from busybox,
Chris Allegretta7da4e9f2000-11-06 02:57:22 +00004778 hacked them a lot, changes to nanogetstr(). nanogetstr() and
4779 statusq() now take an arg for whether or not to allow tab
4780 completion.
Chris Allegretta5bf51d32000-11-16 06:01:10 +00004781 - Fixed value being input in statusbar during a search or replace
4782 and CASE_SENSITIVE or the other search is called and the
4783 string being typed in is blown away. Reported by Ken Tyler.
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +00004784 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
4785 accordingly.
Chris Allegretta92d2bab2000-11-02 14:53:46 +00004786- files.c:
4787 do_writeout()
4788 - Change strcpy to answer to mallocstrcpy.
Chris Allegrettad7934d42000-10-03 05:39:29 +00004789- global.c
Chris Allegretta105da332000-10-31 05:10:10 +00004790 - New global replace_list_2, for 2nd half of the replace dialog
4791 ("Replace with:"), has fewer options than first half because
Chris Allegretta88520c92001-05-05 17:45:54 +00004792 they were inappropriate.
Chris Allegrettad7934d42000-10-03 05:39:29 +00004793 toggle_init()
4794 - Added #ifdef around toggle_regex_msg to get rid of compiler
4795 warning.
Chris Allegretta1cc0b7f2000-11-03 01:29:04 +00004796
4797- nano.c:
4798 keypad_on()
4799 - New function, toggles turning the keypad on and off in edit and
4800 bottomwin(). Added call to this in finish(), fixes bug #45.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +00004801- search.c
Chris Allegretta88520c92001-05-05 17:45:54 +00004802 findnextstr()
Chris Allegrettaa0e957b2000-10-24 22:25:36 +00004803 - New arg for begin_x variable, basically a rewrite that
4804 makes a little more sense and isn't quite as messy (Rocco Corsi).
4805 - Update the line we're checking if not the whole screen, because
4806 it's quite possible the search team could exist somewhere way
4807 to the right on the same line, for example.
4808 replace_abort()
4809 - Add reset of placewewant, stops cursor from jumping when moving
4810 cursor after a replace.
Chris Allegretta810632d2000-10-27 04:36:01 +00004811 do_replace()
4812 - Added code for Gotoline key after entering the search term.
4813 Fixes bug #46.
Chris Allegretta88520c92001-05-05 17:45:54 +00004814 - Removed redundant code involving processing replacement string.
Chris Allegretta9c371a22000-10-27 05:48:05 +00004815 Converted if statements to switch statements.
4816 - Optimizations by Rocco Corsi.
Chris Allegretta105da332000-10-31 05:10:10 +00004817 - Removed code for deleted shortcuts from in replace_list_2.
Chris Allegretta9c371a22000-10-27 05:48:05 +00004818 do_search()
4819 - Converted if statements to one switch statement.
Chris Allegrettaf9b6c9b2000-10-18 19:35:59 +00004820- winio.c
4821 nanogetstr()
4822 - Added check for 343 in while loop to get rid of getting "locked"
4823 into statusbar" bug in odd $TERMs like iris-ansi.
Chris Allegretta105da332000-10-31 05:10:10 +00004824 - Changed check to return -2 on "enter" from answer == ""
4825 to answer == def.
Chris Allegretta04d848e2000-11-05 17:54:41 +00004826 - Fixed fallthrough code because there was no break. Make much
4827 more sense now.
Chris Allegretta5b1faac2000-11-16 19:55:30 +00004828 - Added check for ASCII 54[124] when using PDCURSES, ignore them
4829 if noticed.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +00004830 nanoget_repaint()
4831 - New function, removes about 30 lines of duplicate code in
4832 nanogetstr().
Chris Allegretta90594e22000-11-02 15:53:40 +00004833 - Black magic code to make $ appear in prompt if we're past
4834 COLS.
Chris Allegretta2c975222000-11-15 01:25:42 +00004835 blank_edit()
4836 - Removed wrefresh() call, much less choppy now. If there's a need
4837 for a wrefresh after a specific call, let me know.
Jordi Mallach0ae0dcd2000-10-28 12:38:02 +00004838- es.po:
Jordi Mallachd25385b2000-11-18 03:31:21 +00004839 - Updated translation for 0.9.20 (Jordi).
Chris Allegrettad7934d42000-10-03 05:39:29 +00004840
Chris Allegretta07e97d62000-10-03 01:52:50 +00004841nano 0.9.19 - 10/02/2000
Chris Allegrettaad1dacc2000-09-21 04:25:45 +00004842- General
4843 - Added PDCurses support under cygwin, which allows building
4844 a nice stand-alone nano.exe for those poor Windows users.
4845 Extra check in configure.in for initscr() in -lcurses (as
4846 PDcurses has no tgetent), some #ifdef PDCURSES statements
4847 in main().
Chris Allegretta66989d62000-09-27 03:16:11 +00004848 - Changed web site and email to new nano-editor.org domain.
Chris Allegretta7c44b682000-09-21 04:27:01 +00004849- nano.c
Chris Allegretta9e7efa32000-10-02 03:42:55 +00004850 - Added (int) casts to remove compile warnings with -Wall.
Chris Allegretta7c44b682000-09-21 04:27:01 +00004851 main()
4852 - Added check for _POSIX_VDISABLE around term variable definition.
Chris Allegrettadf3afdc2000-10-01 17:50:29 +00004853- search.c
4854 - Added initializations for last_search and last_replace (Rocco Corsi)
4855
Chris Allegretta629edad2000-09-19 00:27:19 +00004856nano 0.9.18 - 09/18/2000
Chris Allegretta805c26d2000-09-06 13:39:17 +00004857- General
4858 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
4859 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +00004860- configure.in:
4861 - Added default case for cross-compiling to get rid of annoying
4862 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +00004863- cut.c:
4864 do_cut_text()
4865 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +00004866 set (fixes bug #42).
Chris Allegrettaf45c18d2000-09-16 05:25:06 +00004867- files.c:
4868 open_file()
4869 - Fix for bug #44 (Rocco Corsi).
Chris Allegretta16e41682000-09-11 22:33:54 +00004870- global.c:
4871 shortcut_init()
4872 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +00004873- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +00004874 main()
Chris Allegretta9239d742000-09-06 15:19:18 +00004875 - Added check for _POSIX_VDISABLE and use raw mode if not
4876 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +00004877 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +00004878 - Revamped a great deal of the F-key and keypad key handling,
4879 because we not longer use keypad() (see below).
4880 - Removed keypad() call because nano was not working with the
4881 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +00004882 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +00004883 do_toggle()
Chris Allegretta88520c92001-05-05 17:45:54 +00004884 - Rewrote function to allow NOHELP toggle to work on systems
Chris Allegretta2a42af12000-09-12 23:02:49 +00004885 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +00004886 mouse_init()
4887 - Add keypad only if mouse support is on, otherwise mouse doesn't
4888 work. I guess you have to choose between having the mouse and
Chris Allegretta88520c92001-05-05 17:45:54 +00004889 having a working keypad for the time being (thank god for Meta-M).
Chris Allegretta2a42af12000-09-12 23:02:49 +00004890- winio.c:
4891 total_refresh()
4892 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +00004893 onekey()
4894 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +00004895
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +00004896- search.c:
4897 findnextstr()
4898 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +00004899- es.po:
4900 - Translated new strings and minor updates (Jordi).
Chris Allegretta834a69d2000-09-18 17:11:33 +00004901- de.po
4902 - Revised translations by floki@bigfoot.com
Chris Allegretta429a5512000-09-05 13:09:56 +00004903
Chris Allegretta423cbfd2000-09-04 16:21:29 +00004904nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +00004905- General
4906 - New shortcuts to toggle certain options that are normally only
4907 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
4908 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +00004909 called from shortcut_init(), and do_toggle in nano.c. Also
4910 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +00004911 signal_init(). Moved "struct sigaction act"into a static in
4912 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +00004913 - Changed from Alt-key symbol (@) which is completely nonstandard
4914 to the *nix "Meta" symbol (M-). Changed help_init to show
Chris Allegretta88520c92001-05-05 17:45:54 +00004915 the M-key usage and the help text to explain keys which generate
Chris Allegrettae49f1232000-09-02 07:20:39 +00004916 Meta. Moved the toggle Meta keystrokes to the first column
4917 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +00004918 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +00004919 - Changed last_search and last_replace vars to statically
4920 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +00004921- global.c:
4922 toggle_init()
4923 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
4924 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +00004925- nano.c:
4926 do_mouse()
4927 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +00004928 do_wrap()
4929 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +00004930 do_toggle()
4931 - Added checks for no help and no wrap mode, and print opposite
4932 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +00004933 do_suspend(), do_cont():
4934 - New functions, handle suspend signal in a Pico-like manner and
4935 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +00004936- winio.c:
4937 total_refresh()
4938 - Added edit_refresh() call to actually update the screen if messy.
4939 edit_refresh_clearok()
4940 - New function, does a total update for edit refresh, needed to fix
4941 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +00004942 onekey()
4943 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +00004944
Chris Allegretta6306a112000-09-02 07:55:41 +00004945 update_line()
4946 - Added check for binary data >= 1 and <= 26, and use ^+letter
4947 to display it. Should fix editing text files with binary
4948 data in them. Placing of the cursor seems to be a bit screwed
4949 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +00004950- search.c:
4951 search_abort()
4952 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
4953 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +00004954 findnextstr():
4955 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +00004956 - Fixed check for string that only occurs on the same line failing
4957 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +00004958
Chris Allegrettaba96f7a2000-08-09 21:38:28 +00004959nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +00004960- cut.c:
4961 do_cut_text()
4962 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +00004963 - Added check_statblank().
4964 - Check for fileptr == filebot, if so return, we shouldn't bother
4965 cutting the magic line.
4966 do_uncut_text()
4967 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +00004968- nano.c:
4969 main()
4970 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +00004971- po/Makefile.in.in:
4972 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
4973 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +00004974- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +00004975 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +00004976
Chris Allegretta0bf4e142000-08-04 02:42:04 +00004977nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +00004978- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
4979 Affects many many functions. Removed functions edit_update_top and
4980 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +00004981- Added global variable tabsize, we no longer screw with the curses
4982 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +00004983- configure.in:
4984 - Finally fixed check for slang to report "no" if not called
4985 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +00004986- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +00004987 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +00004988 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +00004989 null_at()
4990 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +00004991 delete_buffer()
4992 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +00004993 do_backspace()
4994 - Now calls page_up_center instead of page_up (as it should?)
4995 do_enter()
4996 - Fixed typo (?) in check for inptr->next. Caused lots of
4997 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +00004998 main()
Chris Allegretta88520c92001-05-05 17:45:54 +00004999 - Removed now useless usertabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +00005000- search.c:
5001 replace_abort()
5002 - redundant, now just calls search abort until it does something
5003 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +00005004- winio.c:
5005 edit_refresh()
5006 - Added check for current line "running" off the screen.
5007 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +00005008 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +00005009 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +00005010 edit_update()
5011 - Rewritten, hopefully this will remove a lot of the
5012 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +00005013- move.c:
5014 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +00005015 - do an edit_update() at last case. Made function more like
5016 Pico's version, only move down to two lines before editbot.
5017 page_up()
5018 - Made function more like Pico's version, only move down to two
5019 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +00005020
Chris Allegrettaa1a55c72000-07-28 00:36:03 +00005021nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +00005022- nano.h:
5023 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
5024- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +00005025 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +00005026 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +00005027 - Simplified check for freeing cutbuffer. Added checks for doing
5028 multiple cuts with -k, now sets marked_cut to 2 for later
5029 processing by do_uncut_text().
5030 do_uncut_text()
5031 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +00005032- files.c:
5033 write_file()
5034 - Removed (redundant) check for writing out files with -t.
5035 do_writeout()
5036 - Changed check for filename to filename[0]. Added some code,
5037 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +00005038- nano.c:
5039 do_justify() & do_wrap():
5040 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +00005041- de.po
5042 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +00005043
Chris Allegretta1d7110d2000-07-23 16:59:07 +00005044nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +00005045- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +00005046 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
5047 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +00005048- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
5049 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +00005050- move.c
5051 page_down()
5052 - Don't edit_refresh() if the bottom of the file is in the edit
5053 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +00005054- nano.c:
5055 main():
5056 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +00005057 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +00005058 die():
5059 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +00005060 do_spell():
Chris Allegretta88520c92001-05-05 17:45:54 +00005061 - Changed exit semantics a bit so that aspell wouldn't get
5062 all screwy (bug discovered by Joshua Jensen.
Chris Allegretta8f6c0692000-07-19 01:16:18 +00005063- files.c:
5064 read_file():
5065 - Added init of buf variable, hopefully this will stop the
5066 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +00005067 write_file():
5068 - Added code to check to see if using -l and the file is not
5069 in fact a link. This should fix the behavior where a file
5070 that does not have write permission but could be removed and
5071 rewritten is saved without error. Please test this feature
5072 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +00005073- search.c:
5074 search_init():
5075 - Added " (to replace)" statement to end of search string if
5076 we are doing a replace. Manually converted all the translations
5077 from '%s' to '%s%s' to ensure they still work with the new code.
5078 Also put in the translation for " (replace)" in the .po's. Hope
5079 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +00005080 do_search(), do_replace():
5081 - Removed call to search_abort()/replace_abort() before call to
5082 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +00005083 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +00005084 findnextstr()
Chris Allegretta88520c92001-05-05 17:45:54 +00005085 - do not center string found if it is currently visible. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +00005086- fr.po:
5087 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +00005088- es.po:
5089 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +00005090
Chris Allegrettae955dae2000-07-07 22:24:59 +00005091nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +00005092- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +00005093 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
5094 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
5095 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +00005096 search_init() and do_replace() and strstrwrapper().
5097 - Added _POSIX_VERSION check to regexp code. Better than nothing
5098 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +00005099 - Made search functions & keys more like Pico. Added goto line from
5100 search and replace function, changed wording to "No Replace" instead
5101 of "To Search", "To Replace" to simply "Replace", and changed to
5102 Pico's keystroke by default, ^R. Affects search_init(),
5103 do_search() in search.c, globals in nano.h and
5104 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +00005105 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +00005106- cut.c
5107 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +00005108- files.c:
5109 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +00005110 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +00005111- nano.c:
5112 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +00005113 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
5114 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +00005115 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +00005116 - Corrected FIXME in do_enter with explanation. (Rob)
5117 - Fixed FIXME in do_justify, resulted in creation of
5118 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +00005119 help_init():
5120 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +00005121 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +00005122 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +00005123 do_backspace(), do_delete():
5124 - Added magic line code here too.
5125
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +00005126- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +00005127 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +00005128- fi.po:
5129 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +00005130- utils.c:
5131 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +00005132- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +00005133 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +00005134 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +00005135 do_yesno(), nanogetstr():
5136 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +00005137 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
5138 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +00005139 clear_bottomwin():
5140 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +00005141 edit_update_top():
5142 - Fixed a bug that caused nano to not update when
5143 current->next == NULL (e.g. paging down to the very bottom of
5144 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +00005145 fix_editbot:
5146 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +00005147 edit_add:
5148 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +00005149
Chris Allegretta4da1fc62000-06-21 03:00:43 +00005150nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +00005151- New flag "-T" or "--tabsize" to specify how to display tab widths.
5152 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
Chris Allegretta88520c92001-05-05 17:45:54 +00005153 winio.c, and nano.h. Many hardcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +00005154 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +00005155- id.po:
5156 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +00005157- es.po:
5158 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +00005159- winio.c
Chris Allegretta88520c92001-05-05 17:45:54 +00005160 - Rewrite of display functions to correct the display problems
Robert Siemborski91413cf2000-06-07 02:20:46 +00005161 we had been seeing. Affects: add_marked_sameline, edit_add,
5162 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +00005163 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +00005164 total_refresh():
Chris Allegretta88520c92001-05-05 17:45:54 +00005165 - Cut display_main_list call, as this function is only supposed to
5166 refresh what's already on the screen, not go through the process
5167 of adding the text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +00005168- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +00005169 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +00005170- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +00005171 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +00005172 - Removed editwineob, as it was redundant for (editwinrows - 1).
5173 Changed all calls to editwinrows - 1 in nano.c and move.c.
5174 - Removed all functions that were split into other files.
5175 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +00005176 do_enter():
Chris Allegretta88520c92001-05-05 17:45:54 +00005177 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +00005178 do_insertfile():
5179 - Fix display problem when using ctrl-r to load a file
5180 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +00005181 handle_sigwinch():
Chris Allegretta88520c92001-05-05 17:45:54 +00005182 - Added titlebar(), edit_refresh() and display_main_list() calls
5183 because a resize wasn't picking up on possible different width
5184 correctly.
Chris Allegretta97accc62000-06-19 05:45:52 +00005185- utils.c:
5186 - Moved nmalloc() and nrealloc() here.
5187- move.c:
5188 - New file, contains movement functions (like do_home(), do_up(),
5189 do_down(), page_up(), etc...).
5190- files.c:
5191 - Contains functions for files (read_file, insert_file,
5192 do_writeout(), etc).
5193- search.c:
5194 - Contains all our searching and related functions, (do_search(),
5195 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +00005196
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005197nano-0.9.10 - 06/04/2000
5198- es.po:
5199 - Translation updates (Jordi).
5200- AUTHORS, nano.1.html, TODO, README:
5201 - Documentation and email address updates (Jordi).
5202- nano.c:
5203 main():
5204 - Moved Adam's termio code down to after getopt() and before initscr()
5205 to stop people losing their SIGINT character when using args that
5206 exit nano before it runs (--version, --help, etc).
5207
5208nano-0.9.9 - 05/31/2000
Chris Allegretta88520c92001-05-05 17:45:54 +00005209- Makefile.am:
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005210 - Added proper lines for defining LOCALEDIR.
5211- configure.in:
5212 - Spelling fixes (Jordi Mallach)
5213 - Removed CFLAGS changes for gcc, reduces portability according to
5214 some, and it certainly doesn't seem to decrease exe size.
5215- es.po:
Chris Allegretta88520c92001-05-05 17:45:54 +00005216 - Spanish translation updates (Jordi Mallach)
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005217- POTFILES.in:
5218 - Added global.c file, was screwing up translations (i.e. they
5219 weren't getting done).
5220- cut.c:
5221 add_to_cutbuffer():
5222 - Added totsize increment.
5223 - Cut fixes and optimizations (Rob Siemborski).
5224 do_uncut_text():
5225 - Added totsize increment in several places.
5226- nano.c:
5227 headers:
5228 - Removed LOCALEDIR define.
5229 do_justify():
5230 - Added edit_refresh() call (bug discovered by Adam).
5231 page_down_center():
5232 - Added call to edit_update(current) for last case. Removed
5233 increment of current_y since it's now just wasteful.
5234 do_enter():
5235 - Added totsize increment.
5236 renumber(), renumber_all():
5237 - Removed totsize-- and totsize init in renumber_all.
5238 do_mouse():
Chris Allegretta88520c92001-05-05 17:45:54 +00005239 - Added edit_refresh() call to show highlight updates. Removed
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005240 unnecessary wrefresh(edit).
5241 main():
5242 - Moved up locale calls so that translated --help messages would
5243 actually get translated.
5244 do_backspace(), do_delete():
5245 - Added decrement of totsize.
5246 init_help_msg():
5247 - New function, initializes help text if NANO_SMALL isn't set (fixes
5248 broken i18n).
5249 read_file():
5250 - malloc call changed to nmalloc (Rob Siemborski).
5251- winio.c:
5252 total_refresh():
Chris Allegretta88520c92001-05-05 17:45:54 +00005253 - Completely rewrote function, not quite so brain-damaged now.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005254
5255nano-0.9.8 - 05/18/2000
5256- nano.c:
5257 main():
5258 - Added awesome code that disables the CINTR and CQUIT
5259 character (Adam Rogoyski). Removed raw()/noraw() calls so that
5260 nano gets input in 'normal' mode, which is the Right Way(tm) to
5261 do it. ^S, ^Z and ^Q now work properly as a result, as well as
Chris Allegretta88520c92001-05-05 17:45:54 +00005262 ^C. New variable term, global variable oldterm to save previous
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005263 term settings, and changes to finish() and die().
5264 - Added extra #ifdefs in getopt code, so that above code and
5265 flag init is run even if GETOPT_LONG is not #defined.
5266 - Added memset line before sigactions. (Adam Rogoyski)
5267 do_suspend():
5268 Removed function, see above for why.
5269- winio.c:
5270 update_line(), center_cursor():
5271 - Removed wrefresh(edit) from bottom of functions. wrefresh
5272 should now only be called once, at the bottom of the main()
5273 loop.
5274- global.c:
5275 shortcut_init():
Chris Allegretta88520c92001-05-05 17:45:54 +00005276 - Removed suspend sc_init call and suspend message because suspend
5277 is no longer needed in the shortcut list to work properly.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005278
5279nano-0.9.7 - 05/14/2000
5280- nano.c:
5281 do_home(), do_end():
5282 - Added calls to update_line for the current line, fixes
5283 lack of update (bug discovered by Alberto García).
5284 main():
5285 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
5286 following symlinks even when -l isn't set, and "no changes"
5287 error when nano is called from crontab -e (Adam Rogoyski).
5288- cut.c:
5289 do_cut_text():
5290 - Added edit_update_top to cut when mark is set, fixes lack of
5291 display update (bug discovered by Ken Tyler).
5292
5293nano-0.9.6 - 05/08/2000
5294- New Italian translation (it.po), by Daniele Medri.
5295- nano.c:
5296 page_up(), page_down():
5297 - Added reset of placewewant to 0, as it should be.
5298 do_up(), do_down():
5299 - Added call to update_line() for line we move from and line we
5300 move to, in order to keep the highlighting correct.
5301 do_wrap():
5302 - Added var chop, new code to wrap lines more like Pico, mostly.
5303 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
5304- winio.c:
5305 do_help():
5306 - Added edit_refresh() before exit.
5307 update_cursor():
5308 - Removed cursor updating which really wasn't needed anyway.
5309 edit_update():
5310 - Removed yucky code that didn't work, this function now just
5311 computes edittop and editbot and calls edit_refresh() to do the
Chris Allegretta88520c92001-05-05 17:45:54 +00005312 rest, which removes a lot of duplicate code..
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005313
5314nano-0.9.5 - 05/01/2000
5315- Removed bytes from file struct because it was computationally wasteful.
5316- cut.c:
5317 do_uncut_text():
5318 - Added call to edit_refresh().
5319- nano.c:
5320 do_backspace():
5321 - Added reset of editbot when deleting the last line of the file
5322 (bug discovered by Adam).
5323 do_char():
5324 - Removed call to reset_cursor().
5325 do_delete():
5326 - Added similar check as to do_backspace().
5327 do_enter():
5328 - Added call to edit_refresh().
5329 do_left(), right():
5330 - Added call to update_line(), still redundant but better...
5331 do_up(), do_down():
5332 - Added refresh calls both for current line and line to which
5333 we are moving.
5334 main():
5335 - Removed inefficient call to edit_refresh() after every keystroke.
5336 It is now up each function to leave the screen in a good state.
5337- winio.c:
5338 do_cursorpos()
5339 - Rewritten to not use bytes from filestruct by an incremental sum.
5340 update_line(), reset_cursor():
5341 - Optimized calls to xplustabs() through a single variable.
5342 - update_line() now takes a new arg, an index into the string
5343 for where to update the line from. Needed for new update
5344 code.
5345- configure.in:
5346 - Better checks for slang, allows argument to --with-slang.
5347 (Albert Chin-A-Young)
5348 - Removed -Iintl from CFLAGS in gcc check.
5349- Makefile.am:
5350 - Addition of -Iintl for gettext (Albert Chin-A-Young)
5351
5352nano-0.9.4 - 04/25/2000
5353 - Fixed calls to no_help and changed them to the more consistent
5354 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
5355 not 1. Code to temporarily disable NO_HELP when in the
5356 help system. (Adam Rogoyski)
5357- cut.c:
5358 do_marked_cut(), do_cut(), do_uncut():
5359 - Commented out unnecessary bits when NANO_SMALL is being used.
5360- winio.c:
5361 xpt(), strlenpt(), actual_x():
5362 - Added check for value of data[i] & 0x80, if so do not make
5363 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
5364 edit_refresh():
5365 - New check for temp == NULL (bad thing), if so go back to the
5366 previous line. New filestruct var hold points to prev line.
5367 Fixes segfault when paging down to the end of a file.
5368- nano.c:
5369 write_file():
5370 - Added check for if file exists and is not equal to the current
5371 filename, prompt for overwrite (Adam Rogoyski).
5372 do_down():
5373 - Removed check for current->next == NULL, now checks return value
5374 of do_down before setting current_x = 0 (discovered by Adam).
5375 do_justify():
5376 - Fixed segfault when reaching the last line (tried to assign
Chris Allegretta88520c92001-05-05 17:45:54 +00005377 current->next->data when current->next == NULL) (discovered
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005378 by Adam).
5379- utils.c:
5380 - Removed extra macro defs that are now in nano.h.
5381- nano.h:
5382 - Changed macro SET() to use |= instead of ^=. Fixes bug in
5383 cut code when cutting more than one line, and cutbuffer gets
Chris Allegretta88520c92001-05-05 17:45:54 +00005384 blown away when it shouldn't.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005385
5386nano-0.9.3 - 04/29/2000
5387- cut.c:
5388 do_marked_cut():
5389 - Fixed off by one error in cut code for marked text.
5390 do_cut_text():
5391 - Removed check for being on the last line, part of
5392 magic line code.
5393 add_to_cutbuffer():
5394 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
5395 - Added inptr->prev = NULL for case where cutbuffer == NULL.
5396- nano.c:
5397 do_backspace(), do_char():
5398 - Removed "magic line" code. It was basically causing more bugs
Chris Allegretta88520c92001-05-05 17:45:54 +00005399 than it was helping for the sake of compatibility. This fixes
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005400 at least one known segfault condition.
5401 do_enter():
5402 - Added setting editbot to new node if the new node is the last
5403 node in the file.
5404 write_file():
Chris Allegretta88520c92001-05-05 17:45:54 +00005405 - Changed writing file behavior. Now, if last line of the file
5406 has any data on it, we write a newline on it, else we don't.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005407- winio.c:
5408 add_marked_sameline():
5409 - New code that checks for whether the begin and end of the marker
5410 are on different lines. Missing previously.
5411 edit_add():
Chris Allegretta88520c92001-05-05 17:45:54 +00005412 - added some more checks for text length. Cleaned up some
5413 mvwaddnstrs that could be written more simply as waddnstrs.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005414 edit_refresh():
Chris Allegretta88520c92001-05-05 17:45:54 +00005415 - Removed check for temp == filebot, it is now treated like any other
5416 line. Fixes a bug where selected text on the last line shows
5417 normally.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005418 xpt():
5419 - Removed an extra computation for tabs variable that was incorrect.
5420 xplustabs():
Chris Allegretta88520c92001-05-05 17:45:54 +00005421 - Since xpt now actually works, this func is now just a wrapper for
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005422 xpt(current, current_x)
5423- nano.1, nano.1.html:
5424 - Added -l option to man pages.
5425- configure.in:
5426 - New option --enable-tiny, #defines NANO_SMALL in config.h.
5427 Disables call to gettext in functions and other i18n stuff in
5428 nano.c, the detailed help mode, the resize functions, and the
5429 justify code which no one ever uses.
5430 - New option --with-slang. Enables slang libraries instead of
5431 ncurses, requires slcurses.h for wrapper functions. (Based
5432 on patches for 0.8.7 by Glenn McGrath).
5433
5434nano-0.9.2 - 04/15/2000
5435- This release just fixes the serious segfault problem if nano is
5436 invoked any way other than using the absolute path. The bug was
Chris Allegretta6df90f52002-07-19 01:08:59 +00005437 in the new code for checking whether nano is invoked as 'pico'.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005438
5439nano-0.9.1 - 04/14/2000
Chris Allegretta6df90f52002-07-19 01:08:59 +00005440- Added Pico compatibility for ^T when in search or switch to switch
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005441 to the opposite function. Added one to REPLACE_LIST_LEN and
5442 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
Chris Allegretta88520c92001-05-05 17:45:54 +00005443 new strings that will have to be gettext()ed. New argument 'replacing'
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005444 to search_init(). Handlers in do_replace and do_search().
5445- New write code, now follows symbolic links instead of replacing them
5446 with the new file. New option (-l, --nofollow) to enable the old
5447 (incorrect, but secure) behavior (Adam Rogoyski).
5448- nano.c:
5449 do_wrap():
5450 - Fixed another bug relating to wrapping, and which would cause
5451 a segfault *sigh*.
5452 do_replace():
5453 - Incremented current_x by the length of the replacement
Chris Allegretta88520c92001-05-05 17:45:54 +00005454 text inside the main replace loop. Fixes bug #15.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005455 add_marked_sameline():
5456 - New function, handles marked text when start & end of marker is
5457 on one line, also supports most marked text when cursor > COLS.
5458 main():
5459 - Code to check if nano is invoked as 'pico', and if so
5460 automatically set pico_msgs (Robert Jones).
5461
5462nano-0.9.0 - 04/07/2000
5463- nano.1, nano.1.html: Updated man page with my email address and homepage.
5464- winio.c:
5465 reset_cursor(), update_line():
5466 - Changed update algorithm for x value to (COLS - 7) multiple when x
5467 value > (COLS - 2).
5468- edit_refresh():
5469 - Removed inner loop code, now calls update_line() for each line
5470 in question, MUCH nicer.
5471- xplustabs(), xpt():
Chris Allegretta88520c92001-05-05 17:45:54 +00005472 - Removed redundant increment of tabs when column no % 8 == 0.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005473 - Added check for data[i] < 32, most of such bits are 2 chars wide.
5474- update_line():
5475 - Fixed a stupid call to strlenpt with col when we should have
5476 been using actual_col. Ugh.
5477
5478nano-0.8.9 - 03/22/2000
5479- nano.c:
5480 empty_line(), no_spaces(), justify_format(), do_justify():
5481 Actually added these (screwup applying patch).
5482 do_justify(): Added call to set_modified().
5483
5484nano-0.8.8 - 03/12/2000
5485- Preliminary internationalization support. Many many functions modified
5486 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
5487 New dirs po/ and intl/, changes to configure.in and Automake.am to
5488 support i18n.
5489- nano.c:
Chris Allegretta88520c92001-05-05 17:45:54 +00005490 includes: Added sys/param.h and limits.h. (Adam Rogoyski).
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005491 statics: Changed some things that were not necessarily static
5492 (Adam Rogoyski).
5493 nrealloc(): New function, similar to nmalloc(). Changed calls from
5494 realloc() to nrealloc (Adam Rogoyski).
5495 empty_line(), no_spaces(), justify_format(), do_justify():
5496 New functions for justify function (Adam Rogoyski).
5497- winio.c:
5498 blank_edit(): Added wrefresh call to edit so that screen updates (like
5499 on ^L) actually work.
5500 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
5501
5502nano-0.8.7 - 03/01/2000
5503- main.c:
Chris Allegretta88520c92001-05-05 17:45:54 +00005504 do_wrap(): Better fix for segfaults, and fix for lines being wrapped
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005505 to a single character on one line when no good place to
Chris Allegretta88520c92001-05-05 17:45:54 +00005506 break the line exists, and for wrapping lines longer than
5507 COLS.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005508- nano.1.html:
5509 Html version of man page, now included in dist. For
5510 the benefit of nano packages in Linux distributions.
5511
5512nano-0.8.6 - 02/24/2000
Chris Allegretta88520c92001-05-05 17:45:54 +00005513- global.c:
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005514 shortcut_init():
5515 Added shortcuts for goto_line and do_replace when using
5516 pico_msgs. Oops.
5517- nano.c:
5518 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
Chris Allegretta88520c92001-05-05 17:45:54 +00005519 do_wrap(): Added check for backing up past tabs, which we shouldn't do.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005520 Removed check for backing up past spaces first.
5521 main(): Added for loop to check for alt keys instead of hard list.
5522 do_enter(): Fix for bug #14, added call to reset_cursor and messed
5523 up do_char quite a bit.
5524 version(): Added time and date stamp for compile on version message.
5525 Added mail and web page info.
5526- README: Updated mailing list info.
5527
5528nano-0.8.5 - 02/18/2000
5529- nano.c:
5530 main(): Finally fixed tilde being input on page up/down keys in
5531 certain terminal types. Fix was input 26->91->5[34] check
5532 for 126, if so make the kbinput PAGE UP/DOWN, else unget
5533 the keystroke and continue. Added #include <ioctl.h> for
5534 ioctl call.
5535 handle_hup():
5536 Handler for hangup signal. Belated include of patch from
5537 Tim Sherwood.
5538- winio.c:
5539 edit_refresh():
5540 Temporary fix for selecting text when temp == current.
Chris Allegretta88520c92001-05-05 17:45:54 +00005541 edit_refresh() is now unmanageably complex, and must be
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005542 revamped.
5543 check_statblank():
5544 Added check for constupdate, makes things less choppy
5545 (Adam Rogoyski)
5546
5547nano-0.8.4 - 02/11/2000
5548- Moved global variables that were only (or mostly) used in one file into
5549 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
5550- global.c:
5551 shortcut_init():
5552 Removed redundant NANO_CONTROL_H from backspace shortcut,
5553 added char 127 which should have been there.
5554- nano.c:
5555 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
5556 segfaults (Adam Rogoyski).
5557- Makefile.am: Added all source filenames (Adam Rogoyski).
5558- nano.1: Fixed mail addressed and added mailing list address.
5559- README: Updated my email address and the nano web page.
5560
5561nano-0.8.3 - 02/08/2000
Chris Allegretta6df90f52002-07-19 01:08:59 +00005562- New Pico mode (-p, --pico), toggles (more) compatibility with the
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005563 Pico messages displayed in the shortcut list. Note that there are still
5564 small differences in this mode.
5565- nano.h: New shortcut struct format, for the benefit of i18n and
5566 our help menu. Removed shortcut message macros, they are
5567 now all in shortcut_init in global.c.
5568- nano.c:
5569 do_wrap(): Removed resetting of current_x when we are in fact
5570 wrapping to the next line, fixes a bug in -i mode.
5571 do_enter():
5572 Rewrote the autoindent mode code to be a lot less pretty,
5573 but a lot more magical.
5574 main():
5575 Removed case for ignoring char 126 (~). That's kind of
5576 important, we'll have to fix handling that sequence when
Chris Allegretta88520c92001-05-05 17:45:54 +00005577 paging up/down on a terminal some other way... Revamped
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005578 main switch loop in much snazzier fashion based on the
5579 shortcut list.
5580- winio.c:
5581 New function display_main_list. Affects all functions
5582 that used to call bottombars() with main_list. Added
5583 because we now only call bottombars with the macro
5584 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
5585 changes to the main_list shortcut list (see global.c below).
5586 New function do_help, our preliminary dynamic help system.
5587- Many many funcs:
5588 Changed from int to void to allow one uniform type to call
5589 from the shortcut struct. Also a few functions that do
5590 not simple have void argument have new functions called
5591 funcname_void(void) to be called from the shortcut list.
5592 do_cut_text and do_uncut_text were changed to void
5593 arguments because they were never called with a filestruct
5594 other than *current anyway.
5595- global.c:
5596 Shortcut list main_list was expanded to cover all
5597 shortcuts that could be caught in the main loop.
5598 Consequently there is a new macro MAIN_VISIBLE which tells
5599 how many items in the main list to actually show.
5600
5601nano-0.8.2 - 02/02/2000
5602- Added initial mouse (-m, --mouse) support. New global variable
5603 use_mouse. (Adam Rogoyski)
5604
Chris Allegretta88520c92001-05-05 17:45:54 +00005605- nano.c: Set initial value of fill to COLS - 8 rather than just 72
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005606 regardless. (Adam Rogoyski).
5607 do_delete():
5608 Deleted call to do_backspace() when on the end of a line,
5609 because it won't update the line properly.
5610 do_backspace():
5611 Removed unnecessary pointer manipulation that was being
5612 handled by unlink_node().
5613 open_file():
5614 Added check for trying to open a directory (currently we
5615 segfault on this). Bug pointed out by Chad Ziccardi.
5616
5617nano-0.8.1 - 01/28/2000
5618- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
5619 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
5620 global.c and proto.h.
5621- nano.c:
5622write_file(): Added (incredibly) necessary check for EPERM when
5623 link() fails. This allows us to actually save
5624 files via rename() on filesystems that dont
5625 support hard links (AIEEEEEE).
5626do_goto():
5627 Fixed a stupid mistake where we were calling
5628 bottombars() with replace_list instead of goto_list.
5629- nano.h:
5630 New char *help in shortcut structure for help
Chris Allegretta88520c92001-05-05 17:45:54 +00005631 feature. Added NANO_*_MSG and NANO_*_HELP #defines
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005632 for help function and i18n.
5633- global.c:
5634 New functions shortcut_init (called in nano.c) and
5635 sc_init_one() to initialize the shortcuts without
5636 using {}s (for i18n).
5637
5638nano-0.8.0 - 01/25/2000
5639- View flag (-v, --view) implemented. Global variable view_mode, affects
5640 main loop of nano.c and new_file(). (me)
5641- nano.c:
5642 split checks for TERMIOS_H and TERMIO_H up so we
5643 can (theoretically) include them both, which is good.
5644handle_sigwinch():
5645 Added check for ncurses.h. (Andy Kahn)
5646do_spell():
5647 We now only try ispell because we don't as of yet
5648 handle the 'spell' program the right way, now that
5649 I finally know what the right way is =-). Added
5650 call to edit_update(fileage) to stop segfaults.
5651global_init():
5652 Added initialization of edit* filestruct pointers
5653 to stop segfaults on spell check.
5654usage():
5655 Check for getopt_long, and if no leave out the
5656 GNU options everyone seems to love so much (Andy Kahn)
5657main():
5658 Added checks for getopt_long (Andy Kahn)
5659 We ignore character 126 because it gets put into
5660 the buffer when we page up/down on a vt terminal.
5661write_file():
5662 Fixes for umask (Adam Rogoyski). Renamed tmpfile
Chris Allegretta88520c92001-05-05 17:45:54 +00005663 variable to tmp. Documented the tmp option
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005664 better in the function comments. Fixed my
5665 stupidly commented out check for tmp on setting
5666 umask which I really like =>
5667- nano.h:
5668 Made desc variable in shortcut struct a pointer
5669 instead of a fixed-length string.
5670- utils.c:
5671 Fixed check for config.h before nano.h.
5672- configure.in:
5673 New checks for getopt_long, getopt.h, removed
5674 CFLAGS and LDFLAGS changes. Gonna have to run
5675 strip manually now =-) (Andy Kahn)
Chris Allegretta88520c92001-05-05 17:45:54 +00005676 Added check for HAVE_WRESIZE, new file acconfig.h
5677 (me).
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005678
5679nano-0.7.9 - 01/24/2000
5680- New autoindent feature. Command flag 'i' or '--autoindent'. New
5681 function do_char() to clean up character output, global
5682 variable autoindent in global.c. (Graham Mainwaring)
5683- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
5684 files on exit without prompting. Affects do_writeout(). Also
5685 do_writeout() now takes a parameter for if exiting.
5686 Global variable temp_opt in global.c (Graham Mainwaring)
5687- Preliminary spell program support. Added command flag '-s' or
5688 '--speller' for alternative speller command. Added function do_spell()
5689 and exit_spell() to nano.c. New global variable alt_speller.
5690- nano.c:
5691 main(): We now ignore input of decimal 410 because these get entered
5692 when we resize the screen. Sorted options in getopt()
5693 switch statement.
5694 usage(): Sorted options and changed tabs to make room for -s option.
5695 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
5696 doesn't print the number of lines written on the statusbar.
5697 global_init():
5698 Added more initializations to globals to support do_spell().
5699
5700nano-0.7.8 - 01/23/2000
5701- Stubbed justify function. Affects main() in nano.c and nano.h defines.
Chris Allegretta88520c92001-05-05 17:45:54 +00005702- Added Fkey equivalents for Pico compatibility. Affects nano.h defines
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005703 and main() in nano.c
5704- Removed redundant reset_cursor() calls from the blank() routines.
5705- nano.c:
5706 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
5707 Removed check for isprint() characters in main while loop
5708 for people with odd character sets *shrug*. Added some X
5709 window F-key combos.
5710 read_line(): New function, consolidates of most of the special
5711 sections of the file reading code. (Rob Siemborski)
5712 do_replace(): Many scattered fixes. (Rob Siemborski)
5713 write_file(): Added check for empty filename.
5714- winio.c:
5715 nanogetstr(): Fixes for deleting at places other than the end of the
5716 buffer, cut support. (Adam Rogoyski)
5717 blank_edit(): New function, blanks edit buffer. Added call to it in
5718 total_refresh().
5719- configure: Checks for glib if snprintf of vsnprintf aren't available
5720 (Andy Kahn). Changed warning message when no termcap lib
5721 is found.
5722
5723nano-0.7.7 - 01/19/2000
5724- Option '-v' for version moved to '-V', because -v is Pico's "read only"
5725 mode (affects getopt() in main() and usage() function in nano.c
5726- New flag -c, always show cursor position. Affects main() in nano.c and
5727 statusbar() in winio.c
5728- Option '-x' doesn't show help window at the bottom of the editor.
5729 New variable no_help in nano.h and proto.h, affects main(), usage(),
5730 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
5731 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
5732 hand =P) (Adam Rogoyski)
5733- nano.c:
5734 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
5735 page_up(), page_down():
5736 - New functions. We now set the cursor at the top right corner,
5737 not at the center line, and page up and down a full screen
5738 rather than a half screen. Original functions renamed to
5739 page_up_center() and page_down_center().
5740 main():
5741 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
5742 in main while loop because suspend mode was broken. This should
5743 fix it, at least for now.
5744 - Added long option support (By popular harassment ;-) - Added
5745 #include for getopt.h, changed getopt() to getopt_long().
5746 Options added so far: --version (-V), --nowrap (-w), --suspend
5747 (-z), --help (-h), --nohelp (-x).
5748 - Rewrote signal statements (Adam Rogoyski)
5749
5750nano 0.7.6 - 01/15/2000
5751- New ChangeLog format
5752- nano.c:
5753 main(): Bound CONTROL_H to backspace (oops)
5754 Added more Alt-[-key combinations, for page up & down.
5755 read_bytes(): New function (Adam Rogoyski)
5756 read_file(): Optimizations - malloc()s *buf a little at a time rather
5757 than one huge buffer, and replaced the strcat at the end
5758 with an index variable. Added call to read_bytes().
5759 do_next_word(): New function, binding is control-space (0) (me)
5760
5761- winio.c:
5762 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
5763 (formula is extra space needed = COLS / 6 - 13).
5764 actual_x() & strlenpt():
5765 Added bug#9 fix - when tabs % 8 == 0, we should only
5766 increment tabs by 1.
5767 titlebar(): Fixed overrun in titlebar on very long filenames.
5768
57690.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
5770 writing a newline at EOF. do_cursorpos and do_replace are now not
5771 directly bound to signals but picked up as their control sequences
5772 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
57730.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
5774 available memory, align bug fixed (Big Gaute).
5775
5776--- As of version 0.7.4 TIP is renamed to nano.
5777
57780.7.3 Fixed a double blank_statusbar() when jumping to first and last
5779 lines. Took out unnecessary updates in load_file. Bug fix in
5780 do_left. Missing updates to totlines, fixed bug #7 (last line not
Chris Allegretta88520c92001-05-05 17:45:54 +00005781 having a newline at the end doesn't get read, bugfix in do_replace
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005782 with replace all, more/better comments (Robert Siemborski)
57830.7.2 Our first patch accepted into the source! configure fixes
5784 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
5785 Bug fix in update_line for editing long lines. Fixed arguments
5786 being put into the filename when none is specified. Preliminary
5787 +line command argument function.
57880.7.1 configure tweak for better FreeBSD support. Removed refresh() from
5789 edit_refresh to stop cursor "jumping" during screen updates. This
5790 will probably cause a bug or two. Replace is now Alt-R (@R) and
5791 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
5792 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
5793 Control-G will become the Help key, but for now is stubbed out.
57940.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
5795 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
5796 length file. Added Esc-[-A,B,C,D cursor key sequences.
57970.6.9 Preliminary cursor position function. Split up tip.c more, made
5798 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
5799 that was leaving out a character.
58000.6.8 By request, optchr in main() is now an int. Removed unneeded
5801 globals. Bound functions for next/prev page, and wrote functions
5802 do_home and do_end.
58030.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
5804 created read_file. Implemented Insert File. Fixes in tipgetstr
5805 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
58060.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
5807 aborted searches and more Pico-compatible messages. statusq() now
5808 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
58090.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
5810 regarding buffers with filebot in them. Fixins in do_backspace
5811 and do_enter. Removed unused variables. Removed strip_newline.
58120.6.4 Took out the awful newlines from each string buffers. This will
5813 certainly cause more bugs. Fixes in do_exit(). Better empty file
5814 handling (I hope).
58150.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
5816 do_enter() rewritten.
58170.6.2 Better default file permissions. Complete rewrite of do_wrap().
5818 Better handling of editing with cursor near COLS - 1.
58190.6.1 Starting to implement wrapping toggle. Fix for unhandled control
5820 codes being entered into the buffer. Bug fix in actual_x; more
5821 > COLS - 1 functionality, especially on lines with TABs. Fixed being
Chris Allegretta88520c92001-05-05 17:45:54 +00005822 locked into cutbuffer when cutting more than one marked screen of
5823 text.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +000058240.6.0 We have TABs!!! To do this, placewewant is now set to the actual
5825 width on the screen we want to be, not an index of current->data.
5826 New functions xplustabs and actual_x convert the actual place
5827 the cursor should be on the screen to and from the place in the
5828 string.
58290.5.5 Changed do_right to test do_down before setting current_x to 0,
Chris Allegretta88520c92001-05-05 17:45:54 +00005830 eliminating the "looping" on the last line when holding the right
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005831 arrow. Preliminary support for longer than COLS - 1 lines.
5832 Wrote do_delete.
Chris Allegretta88520c92001-05-05 17:45:54 +000058330.5.4 Fixed a bug in total_update that wasn't repainting the screen
5834 properly. tipgetstr is much more messy but text is now more
5835 editable ;) Fixed crash on entering a new file, hopefully. Awful
5836 stub for tab handling, only in do_right() to save me some sanity.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +000058370.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
5838 Fixed a few bugs in do_uncut when not uncutting from marked text.
Chris Allegretta88520c92001-05-05 17:45:54 +00005839 I would not trust your data with the mark code right now, but then
5840 we're not at version 1.0 yet so dont trust anything ;)
58410.5.2 Added reset_cursor() before end of update_line so cursor doesn't
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005842 jump after each keystroke entered. Select text stubbed. Fixed
Chris Allegretta88520c92001-05-05 17:45:54 +00005843 a bug in total_refresh(). Setting a mark will highlight properly,
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005844 but does not actually affect what gets put in the cutbuffer (yet).
58450.5.1 Writing a file out causes modified to be set back to 0. Good.
5846 Set_modified function written. Cut and uncut text now set
5847 modified when called.
58480.5.0 Half way there! Implemented write out, save function seems
Chris Allegretta88520c92001-05-05 17:45:54 +00005849 stable. Changed statusbar blank routing to not refresh, a separate
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00005850 program calls it and then refreshes. Made the program not clear
Chris Allegretta88520c92001-05-05 17:45:54 +00005851 the screen on exit, just the bottom two lines (like Pico).
Chris Allegrettaa2ea1932000-06-06 05:53:49 +000058520.4.2 Implemented replace all in replace function. Crude exit function
5853 (asks yes or no if modified but does not write to file).
58540.4.1 Implementing search & replace. Fixed crash on deleting at top of
5855 edit buffer. Implemented "timeout" of statusbar messages.
5856 Implemented ^A and ^E (beginning and end of line).
58570.4.0 Split code into global.c and proto.h to allow for better multiple
5858 file handling. Added #defines for the majority of the shortcut
Chris Allegretta88520c92001-05-05 17:45:54 +00005859 keys in tip.h for easy modification.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +000058600.3.1 Write edit_refresh which doesn't move the screen around, just
5861 updates what's there already. do_wrap() and do_enter() added.
58620.3.0 Preliminary cutbuffer (cut and uncut) support.
58630.2.7 Check for Modification added. do_search() works.
58640.2.5 Rewrite of file data struct.
58650.2 Read in data to buffer, bound keystrokes to stub functions,
5866 initial cursor movement on screen. Initial autoconf support.
58670.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00005868
5869$Id$