blob: 6494c9bcb5b7399b0c06e0cefc651c0788e9659f [file] [log] [blame]
David Lawrence Ramseyd5092292005-06-30 17:17:41 +00001CVS code -
David Lawrence Ramsey9c3249c2005-07-01 22:58:47 +00002- General:
3 - Miscellaneous comment fixes. (DLR)
David Lawrence Ramseyde039892005-07-08 02:01:07 +00004 - Fix a few last instances of the current line number's being
5 saved as an int instead of a ssize_t. Changes to
6 renumber_all(), renumber(), do_alt_speller(), and
7 backup_lines(). (DLR)
David Lawrence Ramsey90573292005-07-08 02:47:05 +00008 - Reorder some functions for consistency. (DLR)
David Lawrence Ramsey64661ac2005-07-08 19:57:25 +00009 - Rename variable open_files openfile, for consistency. (DLR)
David Lawrence Ramseydbcaa3b2005-07-08 20:59:24 +000010 - Remove renumber()'s dependency on the main filestruct.
11 Changes to renumber(); removal of renumber_all(). (DLR)
David Lawrence Ramsey6ad59cd2005-07-08 20:09:16 +000012 - Restructure things so that every file has its own
13 openfilestruct, and so that the values in it are used directly
14 instead of being periodically synced up with the globals.
15 Accordingly, remove the globals. Changes to pretty much
David Lawrence Ramseye99494f2005-07-20 21:08:38 +000016 every function. Rename add_open_file() make_new_buffer(),
17 rename load_buffer() open_buffer(), rename load_open_file()
18 display_buffer(), rename open_prevnext_file()
19 switch_to_prevnext_buffer(), rename open_prevfile_void()
20 switch_to_prev_buffer(), rename open_nextfile_void()
21 switch_to_next_buffer(), rename write_marked()
22 write_marked_file(), remove load_file(), rename cancel_fork()
23 cancel_command(), rename open_pipe() execute_command(), remove
24 execute_command(), rename resize_variables(), rename
25 global_init() window_size_init(), rename get_buffer()
26 get_key_buffer(), and rename get_buffer_len()
27 get_key_buffer_len(). (DLR)
David Lawrence Ramseyb386a902005-07-10 02:37:38 +000028 - Replace all mvwaddstr(hblank) calls with a new function that
29 does the same thing without the need for hblank. New function
30 blank_line(); changes to do_browser(), blank_titlebar(),
31 blank_topbar(), blank_edit(), blank_statusbar(),
32 blank_bottombars(), update_line(), and edit_refresh(). (DLR)
David Lawrence Ramsey222b2012005-07-12 20:09:24 +000033 - Make the static pid variable used by execute_command() and
34 cancel_command() a pid_t instead of an int, for consistency.
35 (DLR)
David Lawrence Ramseydb958022005-07-13 20:18:46 +000036 - Consistently make the flags global and any variables used to
37 hold it longs. (DLR)
David Lawrence Ramsey4d464372005-07-16 22:50:30 +000038 - Make edit_scroll() sophisticated enough to keep track of
David Lawrence Ramseyc0097592005-07-22 23:17:19 +000039 current and current_x, update the lines before and after the
40 scrolled region, and properly scroll more than editwinrows
41 lines; and change the movement functions that use
42 edit_scroll() to (a) set current and current_x before calling
43 it, and (b) no longer call edit_redraw() afterward, as it's
44 now unnecessary. These changes eliminate redundant screen
45 updates when the mark is on, since the mark display depends on
David Lawrence Ramsey107e8162005-08-01 21:05:29 +000046 current and current_x. Also change edit_redraw() to use
47 edit_scroll() instead of edit_refresh() when one of its two
48 reference lines is offscreen. Changes to edit_scroll(),
David Lawrence Ramseyc0097592005-07-22 23:17:19 +000049 do_page_up(), do_page_down(), do_up(), and do_down(). (DLR)
David Lawrence Ramseydb958022005-07-13 20:18:46 +000050 - Consistently make the fg and bg colortype struct entries and
51 any variables used to hold them shorts. Changes to
52 do_colorinit() (renamed color_init()), color_to_int() (renamed
53 color_to_short()), and parse_colors(). (DLR)
David Lawrence Ramsey2385c1a2005-07-29 21:42:08 +000054 - Change color handling to save only the extension and color
55 regex strings constantly, and to actually compile them on an
David Lawrence Ramsey6135bf32005-07-30 21:24:56 +000056 as-needed basis. Also, make a color syntax specified on the
57 command line override the syntax associated with the current
David Lawrence Ramseyd152ad32005-08-01 04:59:34 +000058 file extension, add a "default" syntax that takes no
David Lawrence Ramsey179b1ba2005-08-01 04:23:29 +000059 extensions for those files that don't match any other
David Lawrence Ramseyd152ad32005-08-01 04:59:34 +000060 syntax's extensions, and add a "none" syntax that's the same
61 as having no syntax at all. Changes to update_color(),
David Lawrence Ramsey2385c1a2005-07-29 21:42:08 +000062 thanks_for_all_the_fish(), nregcomp(), parse_syntax(), and
63 parse_colors(). (Brand Huntsman and DLR)
David Lawrence Ramseya74f2f82005-07-15 00:22:28 +000064 - Various other color fixes. Handle unspecified foreground
David Lawrence Ramsey5a584cc2005-08-01 04:34:27 +000065 colors properly, treat syntax names case sensitively, flag
66 duplicate syntax names as errors, don't automatically
67 reinitialize the displayed colors every time we update the
68 current buffer's colors (since the buffer may not be displayed
69 immediately), don't bother doing complete refreshes of the
70 screen when color support is enabled if there's no regex
71 associated with the current file, and rename variable
72 exttype->val to exttype->ext, for consistency. Changes to
73 do_colorinit() (renamed color_init()), update_color() (renamed
74 color_update()), write_file(), do_input(), do_output(), and
75 parse_syntax(). (DLR)
David Lawrence Ramseyc104ef12005-07-17 01:44:35 +000076 - Simplify get_totals() to only get the total number of
77 characters, and eliminate dependence on its old ability to get
78 the total number of lines by renumber()ing when necessary and
79 using the number of the last line of a filestruct. Changes to
80 read_file(), move_to_filestruct(), copy_from_filestruct(),
81 do_justify(), get_totals() (renamed get_totsize()), and
82 do_cursorpos(). (DLR)
David Lawrence Ramsey7eb30a82005-07-17 02:40:07 +000083 - Change the NANO_WIDE #define to ENABLE_UTF8, as the latter is
84 clearer. (DLR)
David Lawrence Ramsey239c3d42005-07-19 05:58:00 +000085 - Minor history code fixes: Make sure that the current position
86 in the history list is properly set to the bottom if we cancel
87 out of the prompt, and that magichistory is properly updated
88 when we change it and then move up. New function
89 history_reset(); changes to nanogetstr(). (DLR)
David Lawrence Ramsey61f56732005-07-21 22:12:03 +000090 - Various character-handling cleanups. If we get an invalid
91 multibyte sequence, treat it as Unicode FFFD (Replacement
92 Character), unless we're determining if it's a control
93 character or searching for a match to it. Also, remove
94 unneeded variables and checks when parsing multibyte
95 sequences. Changes to is_alnum_mbchar(), is_blank_mbchar(),
96 is_cntrl_mbchar(), is_punct_mbchar(), control_mbrep(),
97 mbwidth(), make_mbchar(), parse_mbchar(), mbstrncasecmp(),
98 mbstrcasestr(), mbrevstrcasestr(), mbstrchr(), and
99 display_string(). (DLR)
David Lawrence Ramsey691698a2005-07-24 19:57:51 +0000100 - Move advanced text operations (command execution in a buffer,
101 wrapping, spell checking, justifying, and word counting) to
102 their own source file, and adjust related variables
103 accordingly. New file text.c; changes to cancel_command(),
David Lawrence Ramsey7ea09e52005-07-25 02:41:59 +0000104 execute_command(), do_backspace(), do_delete(), do_tab(),
105 do_enter(), do_mark(), wrap_reset(), do_wrap(),
David Lawrence Ramsey691698a2005-07-24 19:57:51 +0000106 do_int_spell_fix(), do_int_speller(), do_alt_speller(),
107 do_spell(), break_line(), indent_length(), justify_format(),
108 quote_length(), quotes_match(), indents_match(), begpar(),
109 inpar(), backup_lines(), find_paragraph(), do_justify(),
110 do_justify_void(), do_full_justify(), and do_word_count() (all
111 moved to text.c). (DLR)
David Lawrence Ramsey520a90c2005-07-25 21:23:11 +0000112 - Since the total number of lines in a file is the same as the
113 number of its last line when all its lines are numbered
114 properly, use that in place of openfile->totlines, and
115 eliminate references to openfile->totlines. Changes to
116 initialize_buffer_text(), read_file(), move_to_filestruct(),
117 copy_from_filestruct(), do_delete(), do_enter(), do_wrap(),
118 do_justify(), do_alt_speller(), do_wordlinechar_count(),
119 new_magicline(), remove_magicline(), and do_cursorpos(). (DLR)
David Lawrence Ramsey3f12ada2005-07-25 22:54:16 +0000120 - Various fill-related cleanups. Move check_die_too_small() and
121 window_size_init()'s code into window_init(), as they really
122 belong there, remove associated separate calls to them, and
123 make sure window_init() is always called at the same time when
124 redrawing the screen. Changes to window_init(), main(), and
125 do_alt_speller(); removal of check_die_too_small() and
126 window_size_init(). (DLR)
David Lawrence Ramsey6d8e4952005-07-26 14:42:57 +0000127 - Remove still more redundant screen updates. Change all
128 wrefresh() calls to wnoutrefresh() calls, except for those in
129 total_update() and do_credits(); call doupdate() just before
130 using blocking input, since nano spends the most time using
131 it, for blocking input; and only do constant sursor position
132 display if we're just about to use blocking input. Changes to
David Lawrence Ramsey3f4520b2005-07-29 03:28:09 +0000133 input_tab(), do_browser(), do_output(), main(),
David Lawrence Ramsey6d8e4952005-07-26 14:42:57 +0000134 get_key_buffer(), check_statusblank(), nanogetstr(),
135 titlebar(), statusbar(), bottombars(), edit_refresh(),
136 do_yesno(), and do_help(). (DLR)
David Lawrence Ramsey6ff695c2005-08-05 03:14:29 +0000137 - Treat the Unicode characters D800-DFFF and FFFE-FFFF as
138 invalid, since the C library's multibyte functions don't seem
139 to. New function is_valid_unicode(); changes to mbrep() and
140 make_mbchar(). (DLR)
David Lawrence Ramsey8c7a5622005-08-08 23:47:28 +0000141 - Store Unicode values in longs instead of ints, and cover the
142 entire range of Unicode. Changes to make_mbchar(),
143 is_valid_unicode(), parse_kbinput(), get_unicode_kbinput(),
144 parse_verbatim_kbinput(), and faq.html. (DLR)
David Lawrence Ramsey057edf72005-08-10 21:22:15 +0000145 - Readd the option to turn the keypad off by default from nano
146 1.2.x, but rename the long option from --keypad to
David Lawrence Ramsey4adb37e2005-08-10 21:26:32 +0000147 --rebindkeypad, clarify its description on the command line,
148 and add an updated FAQ entry about its use. Changes to
149 window_init(), usage(), main(), get_verbatim_kbinput(),
150 nanorc.sample, and faq.html. (DLR)
David Lawrence Ramsey691698a2005-07-24 19:57:51 +0000151- color.c:
David Lawrence Ramsey5a584cc2005-08-01 04:34:27 +0000152 - Remove unneeded fcntl.h include. (DLR)
David Lawrence Ramseye3bae982005-07-18 19:47:13 +0000153- chars.c:
David Lawrence Ramsey8c55d212005-08-04 20:24:26 +0000154 control_rep(), control_mbrep()
155 - Assert that the multibyte character passed in is a control
156 character if it's valid. (DLR)
David Lawrence Ramsey96452cb2005-07-26 06:13:45 +0000157 mbrep()
158 - New function, the equivalent of control_mbrep() for non-control
159 characters. (DLR)
160 parse_mbchar()
161 - Remove now-unneeded bad_chr parameter. (DLR)
David Lawrence Ramseye3bae982005-07-18 19:47:13 +0000162 mbstrchr()
163 - Don't count matches between valid and invalid multibyte
164 sequences anymore, for consistency. (DLR)
David Lawrence Ramsey76c25f52005-07-08 21:12:39 +0000165- files.c:
166 open_file()
167 - Assert that filename isn't NULL, and don't do anything special
168 if it's blank, as the the former case shouldn't occur, and the
169 latter case is now handled elsewhere. (DLR)
David Lawrence Ramseybf0e47d2005-08-01 18:27:10 +0000170 write_file(), write_marked_file(), do_writeout()
171 - Make append an append_type enum instead of an int. (DLR)
David Lawrence Ramsey7dc531a2005-07-18 18:43:39 +0000172 input_tab()
173 - Make columns an int instead of a size_t, since it's limited by
174 COLS. (DLR)
David Lawrence Ramsey9c1fef02005-07-07 20:11:17 +0000175- global.c:
176 shortcut_init()
David Lawrence Ramsey11262042005-07-11 20:19:59 +0000177 - Simplify wording of nano_gotoline_msg. (Jordi and Ken Tyler)
David Lawrence Ramsey72936852005-07-25 03:47:08 +0000178 - Clarify wording of nano_wordcount_msg, as it won't go through
179 the entire file if the mark is on. (DLR)
David Lawrence Ramsey4d464372005-07-16 22:50:30 +0000180- move.c:
181 do_first_line(), do_last_line()
David Lawrence Ramsey5e146e82005-07-17 00:01:18 +0000182 - Simplify by only using edit_redraw(), and also make them call
183 check_statusblank(). (DLR)
David Lawrence Ramsey4d464372005-07-16 22:50:30 +0000184 do_page_up(), do_page_down()
185 - If there's less than a page of text onscreen, just call
186 do_(first|last)_line(). (DLR)
David Lawrence Ramseyc4037f32005-07-20 21:31:19 +0000187 do_para_begin(), do_para_begin_void(), do_para_end(),
188 do_para_end_void(), do_next_word(), do_next_word_void(),
189 do_prev_word(), do_prev_word_void()
190 - Move here from nano.c, as they're movement functions, and also
191 make them call check_statusblank().
David Lawrence Ramsey9c3249c2005-07-01 22:58:47 +0000192- nano.c:
David Lawrence Ramsey11262042005-07-11 20:19:59 +0000193 usage()
194 - Properly mention the support for "[+LINE,COLUMN]" on the
195 command line when HAVE_GETOPT_LONG isn't defined. (DLR)
David Lawrence Ramsey9c3249c2005-07-01 22:58:47 +0000196 do_verbatim_input()
David Lawrence Ramsey9d8396d2005-07-08 04:53:51 +0000197 - If constant cursor position display is on, make sure the
198 cursor position is displayed properly when we finish. (DLR)
199 do_next_word()
200 - Rework to be more like do_prev_word(), to avoid a potential
201 problem if we start at the end of a line. (DLR)
David Lawrence Ramsey3d5e9452005-07-25 19:04:20 +0000202 do_mouse()
203 - Avoid redundant screen updates by using edit_redraw() instead
204 of edit_refresh(), and remove now-erroneous code that disables
205 setting the mark while in view mode. (DLR)
David Lawrence Ramsey157ce912005-07-16 23:36:10 +0000206 do_output()
207 - When adding a character, just add its length in bytes to
208 current_x instead of calling do_right(), and set placewewant
209 afterward. (DLR)
David Lawrence Ramsey658f7e62005-07-04 03:26:43 +0000210 do_alt_speller()
David Lawrence Ramsey892396b2005-07-04 03:43:54 +0000211 - If we can't invoke the spell checker, use sprintf() instead of
David Lawrence Ramseyda50e732005-07-04 04:22:30 +0000212 snprintf() to write the error string we return, as the one
213 formatted value is a simple string, and so altspell_error will
214 always be long enough to hold it. Also remove unnecessary
David Lawrence Ramsey757f7392005-07-08 01:49:43 +0000215 initialization of altspell_error, refactor so that msglen is
216 no longer needed, and make the error message more similar to
217 what the internal spell checker returns under the same
218 circumstances. (DLR)
David Lawrence Ramseyb18482e2005-07-26 00:06:34 +0000219 - Block any pending SIGWINCHes while the alternate spell checker
David Lawrence Ramsey3fe08ac2005-07-26 01:17:16 +0000220 is running, so that it can handle them, and unblock them once
221 it's finished and we've loaded the spell-checked file back in.
222 (DLR)
David Lawrence Ramsey50a33db2005-07-17 03:50:22 +0000223 do_spell()
224 - When displaying an error message from do_(int|alt)_speller(),
225 don't display the error message corresponding to errno if
226 errno is zero. (David Benbennick)
David Lawrence Ramsey9d8396d2005-07-08 04:53:51 +0000227 do_justify()
228 - If constant cursor position display is on, make sure the
229 cursor position is displayed properly when we finish. (DLR)
David Lawrence Ramseya549a822005-07-01 23:11:52 +0000230 allow_pending_sigwinch()
231 - Simplify by using the "?" operator instead of an if clause.
232 (DLR)
David Lawrence Ramsey8f1afee2005-07-16 07:06:36 +0000233 main()
234 - When opening files with "+LINE,COLUMN" arguments on the
235 command line, don't update the screen when moving to their
236 specified lines and columns. (DLR)
David Lawrence Ramsey3f12ada2005-07-25 22:54:16 +0000237 - Rename variable fill_flag_used to fill_used, for consistency.
238 (DLR)
David Lawrence Ramseyda50e732005-07-04 04:22:30 +0000239- nano.h:
240 - Since we only use vsnprintf() now, remove the #ifdef block for
241 HAVE_SNPRINTF. (DLR)
David Lawrence Ramsey5b44f372005-07-16 22:47:12 +0000242 - Remove TOP from the topmidnone enum, and rename it centernone.
243 (DLR)
David Lawrence Ramsey691698a2005-07-24 19:57:51 +0000244 - Move stdlib.h, dirent.h, regex.h, and assert.h includes here,
245 as every source file needs them. (DLR)
David Lawrence Ramseybf0e47d2005-08-01 18:27:10 +0000246 - Rename the updown enum scroll_dir and the centernone enum
247 update_type for clarity, and add an append_type enum. (DLR)
David Lawrence Ramseydb958022005-07-13 20:18:46 +0000248- rcfile.c:
249 nregcomp()
250 - Return TRUE when the compilation succeeds and FALSE otherwise,
251 instead of the other way around. (DLR)
David Lawrence Ramseye3df8782005-07-02 17:49:27 +0000252- search.c:
David Lawrence Ramsey612b4162005-07-02 17:56:29 +0000253 search_init()
254 - Don't blank out last_replace anymore when we get a new string,
255 as it'll be blanked out in do_replace(). Also, consolidate
256 the cases for blank and new search strings, as they now differ
257 only in which string they pass to regexp_init(). (DLR)
258 replace_abort()
259 - Remove unnecessary update of placewewant. (DLR)
David Lawrence Ramseye3df8782005-07-02 17:49:27 +0000260 do_replace()
261 - Blank out last_replace properly again just before displaying
262 the "Replace" prompt. (DLR, found by Mike Frysinger)
David Lawrence Ramsey05322962005-07-14 23:51:52 +0000263 - Remove unnecessary renumber(). (DLR)
David Lawrence Ramsey8f1afee2005-07-16 07:06:36 +0000264 do_gotolinecolumn()
265 - Add parameter allow_update to control whether the screen is
David Lawrence Ramsey5b44f372005-07-16 22:47:12 +0000266 updated after moving. If it's TRUE, call edit_refresh() after
267 edit_update(). (DLR)
David Lawrence Ramsey8f4762a2005-07-16 22:35:11 +0000268 do_gotopos()
269 - Only include this function when DISABLE_SPELLER isn't defined,
270 as the alternate spell checking code is now the only place
271 where it's used. (DLR)
David Lawrence Ramsey3a9a3292005-07-21 02:20:01 +0000272 do_find_bracket()
273 - Add comments and minor cleanups. (DLR)
David Lawrence Ramseyabd89932005-08-10 20:03:58 +0000274 find_history()
275 - Make parameters const where possible. (DLR)
276 update_history()
277 - Don't renumber the history list starting after the entry we
278 found if the entry we found is at the bottom of the list.
279 (DLR, found by Simon Strandman)
280 get_history_completion()
David Lawrence Ramsey96e6d562005-07-19 04:53:45 +0000281 - Make parameters const where possible. (DLR)
David Lawrence Ramsey72936852005-07-25 03:47:08 +0000282- text.c:
283 do_word_count()
David Lawrence Ramsey8e942342005-07-25 04:21:46 +0000284 - Rename to do_wordlinechar_count(), and expand to also count
285 the number of lines and characters in the file or selection,
286 as wc does. (DLR)
David Lawrence Ramsey9838a512005-07-06 19:12:41 +0000287- winio.c:
David Lawrence Ramsey56e36ef2005-08-01 18:56:46 +0000288 get_word_kbinput()
David Lawrence Ramsey8c55d212005-08-04 20:24:26 +0000289 - Multiply the entered digits by hexadecimal numbers instead of
290 decimal numbers for clarity, rename to get_unicode_kbinput(),
291 and rename variables word and word_digits to uni and
292 uni_digits. (DLR)
293 parse_verbatim_kbinput()
294 - Rename variables word_mb and word_mb_len to uni_mb and
295 uni_mb_len. (DLR)
David Lawrence Ramsey96452cb2005-07-26 06:13:45 +0000296 display_string()
297 - Instead of using parse_mbchar()'s bad_chr parameter, use
298 mbrep() to get the representation of a bad character. (DLR)
David Lawrence Ramsey4d464372005-07-16 22:50:30 +0000299 edit_redraw(), edit_refresh()
David Lawrence Ramseyb802a132005-07-14 22:15:09 +0000300 - Clean up and simplify. (DLR)
David Lawrence Ramsey5b44f372005-07-16 22:47:12 +0000301 edit_update()
302 - Since we no longer use TOP, remove references to it. Also,
David Lawrence Ramsey27865302005-07-23 20:39:41 +0000303 don't call edit_refresh() anymore; it will call us. (DLR)
David Lawrence Ramsey9d8396d2005-07-08 04:53:51 +0000304 do_statusbar_next_word()
305 - Rework to be more like do_statusbar_prev_word(), to avoid a
306 potential problem if we start at the end of a line. (DLR)
David Lawrence Ramsey22ae0342005-07-25 20:01:57 +0000307 do_statusbar_input()
308 - Call do_statusbar_mouse() instead of do_mouse(). (DLR)
David Lawrence Ramsey157ce912005-07-16 23:36:10 +0000309 do_statusbar_output()
310 - When adding a character, just add its length in bytes to
311 statusbar_x instead of calling do_statusbar_right(). (DLR)
David Lawrence Ramseyb386a902005-07-10 02:37:38 +0000312 titlebar()
313 - Rework to display only one space after the version number, so
314 that there's more room for other things, and to not display
315 the status when we're in the file browser, since Pico doesn't.
316 (DLR)
David Lawrence Ramseyec010742005-07-06 19:11:15 +0000317- configure.ac:
David Lawrence Ramseyda50e732005-07-04 04:22:30 +0000318 - Since we only use vsnprintf() now, remove the tests for
319 snprintf(). (DLR)
David Lawrence Ramsey7eb30a82005-07-17 02:40:07 +0000320 - Change the description of "sufficient wide character support"
321 to "sufficient UTF-8 support", as the latter is clearer. (DLR)
David Lawrence Ramseyec010742005-07-06 19:11:15 +0000322- doc/faq.html:
David Lawrence Ramsey504ae902005-07-05 01:02:11 +0000323 - Update section 4.10 to mention that pasting from the X
324 clipboard via the middle mouse button also works when the
325 Shift key is used. (DLR)
David Lawrence Ramseyec010742005-07-06 19:11:15 +0000326- doc/nanorc.sample:
David Lawrence Ramsey32263ed2005-07-03 22:00:29 +0000327 - Add regexes for Bourne shell scripts. (Mike Frysinger, minor
328 tweaks by DLR)
David Lawrence Ramsey7aec89e2005-08-01 05:01:30 +0000329 - Explain how the "none" and "default" syntaxes work. (DLR)
David Lawrence Ramsey492e5012005-08-01 05:08:01 +0000330- doc/man/nanorc.5:
331 - Explain how the "none" and "default" syntaxes work. (DLR)
332- doc/man/fr/nano.1, doc/man/fr/nanorc.5:
Jordi Mallache4b07422005-07-19 15:07:35 +0000333 - Updated translation by Jean-Philippe Gérard.
David Lawrence Ramsey691698a2005-07-24 19:57:51 +0000334- src/Makefile.am:
335 - Add text.c to nano_SOURCES. (DLR)
David Lawrence Ramseyd5092292005-06-30 17:17:41 +0000336
David Lawrence Ramsey665b1fb2005-06-30 17:16:16 +0000337GNU nano 1.3.8 - 2005.06.30
David Lawrence Ramsey6a244b62005-04-14 03:52:28 +0000338- General:
339 - Miscellaneous comment fixes. (DLR)
David Lawrence Ramseye527e452005-04-15 18:07:26 +0000340 - Various #include fixes. Since proto.h includes nano.h, only
341 include the former in source files. Also add an #include
342 guard to proto.h, and make the config.h #include in nano.h
343 match the config.h #includes everywhere else. (DLR)
David Lawrence Ramsey5b2f17e2005-04-19 21:47:01 +0000344 - Change all hardcoded instances of 128 bytes to MAX_BUF_SIZE,
345 and #define MAX_BUF_SIZE as 128 in nano.h. (DLR)
David Lawrence Ramsey5e73eec2005-05-03 20:57:13 +0000346 - Display the key to go to the previous strings in the
David Lawrence Ramsey1e64db62005-06-14 23:38:41 +0000347 search/replace history as "^P" instead of "Up". This makes
348 mouse clicks work properly on it. Changes to shortcut_init(),
349 help_init(), nanogetstr(), and do_statusbar_input(). (DLR)
David Lawrence Ramsey6e925cf2005-05-15 19:57:17 +0000350 - Update the Free Software Foundation's mailing address in
351 various comments. (DLR)
David Lawrence Ramsey775eeba2005-05-16 18:38:16 +0000352 - Add the ability to open a file on a specified column as well
353 as a specified line, by allowing an argument of the form
David Lawrence Ramseyb68c01b2005-05-16 23:23:15 +0000354 +LINE,COLUMN. New function parse_line_column(); changes to
David Lawrence Ramseyd3d37432005-05-17 21:49:19 +0000355 shortcut_init(), main(), do_gotoline() (renamed
356 do_gotolinecolumn()), do_gotoline_void() (renamed
357 do_gotolinecolumn_void()), nano.1, and nano.texi. (DLR,
358 suggested by PFTank)
David Lawrence Ramsey934f9682005-05-23 16:30:06 +0000359 - Overhaul the history code to work more consistently, and clean
David Lawrence Ramsey34bdc352005-06-02 18:41:31 +0000360 up various parts of it. New function history_has_changed();
361 changes to load_history(), writehist(),
362 thanks_for_all_the_fish(), history_init(), find_node()
363 (renamed find_history()), update_history(),
364 get_history_older(), get_history_newer(),
365 get_history_completion(), do_search(), do_replace(),
366 nanogetstr(), and statusq(); removal of remove_node() and
367 insert_node(). (DLR)
David Lawrence Ramsey7a3f49c2005-06-22 00:24:11 +0000368 - Remove all instances of charcpy() and replace them with
369 strncpy(), since there's no way to be sure that a charcpy()ed
370 string will always be properly null-terminated, and strcpy()'s
371 null termination is the only difference between it and
372 charcpy(). (DLR)
David Lawrence Ramseyb9b57222005-05-29 02:22:55 +0000373 - When using a backup directory, make sure all the filenames
374 written are unique by using get_next_filename() when
David Lawrence Ramsey527f1742005-05-30 02:09:21 +0000375 necessary. Changes to get_next_filename(), write_file(),
376 die(), usage(), nano.1, nanorc.5, nanorc.sample, and
377 nano.texi. (DLR, suggested by James Collings)
David Lawrence Ramsey5e068c62005-05-31 04:28:15 +0000378 - Rework the file-writing routines so that they can work
379 properly with already-opened files, such as the
380 mkstemp()-created files used by the spell-checking code.
381 Changes to safe_tempnam() (renamed safe_tempfile()),
382 write_file(), write_marked(), die(), do_spell(), and
383 do_exit(). (DLR)
David Lawrence Ramseyc10d8ff2005-06-03 20:51:39 +0000384 - Remove the -R/--regexp command line option and enable the
David Lawrence Ramseyf3ecffd2005-06-16 18:48:30 +0000385 toggle at the search prompt in tiny mode, as it already
David Lawrence Ramseyc10d8ff2005-06-03 20:51:39 +0000386 allows the prepend and append toggles at the search prompt.
387 For consistency, rename TOGGLE_REGEXP_KEY to NANO_REGEXP_KEY,
388 and move it out of the toggles block to where NANO_PREPEND_KEY
David Lawrence Ramsey84635cd2005-06-17 22:53:41 +0000389 and NANO_APPEND_KEY are. Also, change the short command line
390 option for --restricted from -Z to -R. Changes to
391 shortcut_init(), usage(), main(), search_init(), nano.1,
392 nano.texi, etc. (DLR)
David Lawrence Ramseyd5d4dde2005-06-14 01:55:56 +0000393 - Various cleanups and improvements in chars.c. Remove some
David Lawrence Ramseye0a0d232005-06-20 20:58:41 +0000394 unnecessary w?ctype wrappers and variables; change the wctype
395 wrappers to take wint_t instead of wchar_t to match the
396 functions they wrap; rename some functions for consistency;
397 add functions to detect blank characters in a string, for use
David Lawrence Ramsey68c10962005-06-21 04:11:04 +0000398 in rcfile option parsing; and don't count matches between
399 valid and invalid multibyte sequences anymore, as it causes
400 problems when doing a replace. New functions
401 is_valid_mbstring(), has_blank_chars(), and
David Lawrence Ramseye0a0d232005-06-20 20:58:41 +0000402 has_blank_mbchars(); changes to is_alnum_mbchar(),
403 is_blank_char() (renamed nisblank()), is_blank_mbchar(),
404 is_blank_wchar() (renamed niswblank()), is_cntrl_wchar(),
405 control_rep(), control_mbrep(), make_mbstring() (renamed
406 make_valid_mbstring()), mbstrncasecmp(), mbstrcasestr(),
407 mbrevstrcasestr(), etc.; removal of is_alnum_char() and
408 is_alnum_wchar(). (DLR)
David Lawrence Ramseye010edd2005-06-12 22:31:03 +0000409 - Implement word count via Meta-D at the main window. Note that
David Lawrence Ramseya8824a12005-06-26 19:03:48 +0000410 this is disabled when NANO_SMALL is defined. Also, convert
411 all word detection functions to use the same wrapper function
412 for ease of maintenance, and make them return more
413 information. New functions is_punct_mbchar(),
414 is_word_mbchar(), do_next_word_void(), do_prev_word_void(),
415 and do_word_count(); changes to shortcut_init(),
David Lawrence Ramsey67287082005-06-13 02:40:04 +0000416 do_next_word(), do_prev_word(), is_whole_word(),
417 do_statusbar_next_word(), and do_statusbar_prev_word(). (DLR)
David Lawrence Ramseyab41ab92005-06-15 06:30:05 +0000418 - Fix #ifdefs so that nano compiles with NANO_SMALL defined and
419 DISABLE_TABCOMP undefined. Changes to revstrstr() and
420 free_charptrarray() (renamed free_chararray()). (DLR)
David Lawrence Ramseyed7ad332005-06-15 16:07:14 +0000421 - Change the wctype wrappers to take wchar_t's again, as they
422 still work the same way with them. This also fixes
423 compilation on Mac OS X 10.4.1, which doesn't seem to define a
David Lawrence Ramsey99466bf2005-06-21 15:47:39 +0000424 wint_t type. (DLR, found by Emily Jackson)
David Lawrence Ramsey6f143c82005-06-15 23:20:56 +0000425 - Add the ability to convert typed tabs to spaces using
426 the -E/--tabstospaces command line options, the "tabstospaces"
David Lawrence Ramseyc3e52f12005-06-21 17:44:01 +0000427 rcfile option, and the toggle Meta-Q (since QBasic did this by
428 default :)). Note that this doesn't affect tabs entered using
429 verbatim input, and that it's disabled when NANO_SMALL is
430 defined. Also, change the short command line option for
431 --backupdir from -E to -C. Changes to toggle_init(), usage(),
432 do_tab(), main(), nanorc.sample, nano.1, nanorc.5, and
433 nano.texi. (DLR, suggested by many people)
David Lawrence Ramsey3435a0f2005-06-17 21:08:13 +0000434 - Change the CONSTUPDATE, REVERSE_SEARCH, and SMOOTHSCROLL flags
435 to the CONST_UPDATE, BACKWARDS_SEARCH, and SMOOTH_SCROLL
436 flags, respectively. (DLR)
David Lawrence Ramseyb2b69762005-06-16 02:13:10 +0000437 - Change the SMOOTHSCROLL flag to the SMOOTH_SCROLL flag. (DLR)
David Lawrence Ramsey7a4aaa52005-06-16 02:09:57 +0000438 - Change the NO_UTF8 flag to the USE_UTF8 flag, and reverse its
439 meaning. (DLR)
David Lawrence Ramseyf3ecffd2005-06-16 18:48:30 +0000440 - Add rcfile options "casesensitive" and "backwards", to do
441 case sensitive and backwards searches by default. Changes to
442 nanorc.sample and nanorc.5. (DLR)
David Lawrence Ramseyea014742005-06-17 18:27:00 +0000443 - Since the DISABLE_CURPOS flag is only used in winio.c, reduce
444 it to a static bool there. Changes to statusbar() and
445 disable_cursorpos(). (DLR)
David Lawrence Ramseyb7253532005-06-21 16:19:47 +0000446 - Add -U/--quickblank option and a "quickblank" rcfile option to
447 blank the statusbar after 1 keystroke instead of 25. Note
448 that this obviously has no effect when constant cursor
449 position display is turned on, and that this is disabled when
450 NANO_SMALL is defined. Changes to usage(), main(),
451 statusbar(), nanorc.sample, nano.1, and nanorc.5. (DLR,
452 suggested by CHAO Wei-Lun)
David Lawrence Ramsey23555f22005-06-27 03:07:10 +0000453 - Add support for case insensitive expression matching when
454 using color syntax highlighting, via the "icolor" directive,
455 and add it to those regexes that can use it. Changes to
456 parse_colors(), parse_rcfile(), nanorc.sample, and nanorc.5.
457 (Brand Huntsman, minor tweaks by DLR)
David Lawrence Ramsey2cf6d712005-06-28 06:25:34 +0000458 - Add various type changes to avoid problems on systems where
459 int and ssize_t are different sizes. Make filestruct->lineno
460 a ssize_t (so that we can avoid negative line numbers at the
461 "Go To Line" prompt), current_y a ssize_t (in order to hold
462 the maximum difference between two filestruct->lineno's),
463 totlines a size_t, and change related variables to match.
464 (DLR, initial problem with parse_line_column() found by Mike
465 Frysinger)
David Lawrence Ramsey9905b6a2005-06-28 07:26:11 +0000466 - Rework the credits handling to display Florian König's name
David Lawrence Ramseyb2072b02005-06-28 14:59:38 +0000467 properly whether we're in a UTF-8 locale or not, and without
468 requiring a massive function that we only use once. Changes
469 to do_credits(); removal of make_valid_mbstring(). (DLR)
David Lawrence Ramsey3925bda2005-06-07 03:20:35 +0000470- chars.c:
471 make_mbstring()
472 - Change erroneous ENABLE_EXTRA #ifdef to NANO_EXTRA to fix a
473 compilation problem when --enable-nanorc isn't used and
474 --enable-extra is. (DLR)
David Lawrence Ramseya62e8e32005-06-19 21:10:48 +0000475- color.c:
476 update_color()
477 - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8
478 color syntax names are properly detected. (DLR)
David Lawrence Ramsey02173c02005-05-14 18:41:25 +0000479- cut.c:
480 cut_line()
481 - Set placewewant properly after cutting a line, to avoid a
482 problem where the screen won't be updated if (a) we're not on
483 the first page when we cut the line, and (b) immediately after
484 we cut the line, we hit End to move to the end of the line
485 after it. (DLR)
David Lawrence Ramsey6a244b62005-04-14 03:52:28 +0000486- files.c:
David Lawrence Ramsey50995bd2005-05-16 20:13:09 +0000487 read_line()
488 - Rename variable prev to prevnode to avoid confusion. (DLR)
David Lawrence Ramsey483f3ac2005-06-19 19:57:13 +0000489 - Rename variable len to buf_len, for consistency. (DLR)
David Lawrence Ramseyad114602005-04-16 18:27:57 +0000490 load_open_file()
491 - Remove an unneeded clearok(FALSE). (DLR)
David Lawrence Ramsey6a244b62005-04-14 03:52:28 +0000492 get_next_filename()
David Lawrence Ramseyc596c0c2005-04-19 16:32:08 +0000493 - Use an unsigned long instead of an int for the number
494 prepended to the filename. (DLR)
David Lawrence Ramsey7e62d102005-06-06 19:25:29 +0000495 do_insertfile()
496 - Set i to 0 when we get a filename via the file browser, so
497 that it's read in properly when we exit the file browser.
498 (DLR)
David Lawrence Ramseyd26f1eb2005-06-15 03:01:41 +0000499 open_prevnext_file()
500 - Move up a misplaced assert. (DLR)
501 - Rename variable next to next_file, to avoid confusion. (DLR)
David Lawrence Ramsey5b2f17e2005-04-19 21:47:01 +0000502 write_file()
503 - Since lineswritten is a size_t, print its value as an unsigned
504 long instead of an unsigned int. (DLR)
David Lawrence Ramsey15aaa2c2005-05-28 23:21:30 +0000505 - Declare the size_t i only in the loop where it's used. (DLR)
David Lawrence Ramseya62e8e32005-06-19 21:10:48 +0000506 diralphasort()
David Lawrence Ramsey68c10962005-06-21 04:11:04 +0000507 - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8
508 filenames are sorted properly. (DLR)
David Lawrence Ramsey546f5b32005-05-14 23:14:47 +0000509 cwd_tab_completion(), browser_init()
510 - Rename variable next to nextdir to avoid confusion. (DLR)
David Lawrence Ramsey217f2412005-05-27 03:57:01 +0000511 input_tab()
David Lawrence Ramsey01e13ea2005-06-21 04:16:12 +0000512 - Since list is a bool, set it to FALSE instead of 0. (DLR)
David Lawrence Ramseyaff5a1c2005-05-27 13:06:18 +0000513 - Add multibyte/wide character support, so that we don't end up
514 with a string that contains only part of a multibyte
515 character during tab completion. (DLR)
David Lawrence Ramsey16799ba2005-06-21 22:32:50 +0000516 - Rename variable buflen to buf_len, for consistency. (DLR)
David Lawrence Ramsey9cf1df12005-04-19 03:15:21 +0000517 do_browser()
518 - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
519 consistency. (DLR)
David Lawrence Ramsey16f88132005-05-26 03:32:41 +0000520 - When displaying "(dir)" in the available screen space, make
521 sure that the string it's stored in is always null-terminated.
522 (DLR)
David Lawrence Ramsey9c06f342005-06-15 07:18:30 +0000523 - Rename variable selectedbackup to old_selected, for
524 consistency. (DLR)
David Lawrence Ramsey42e271d2005-06-15 07:32:58 +0000525 - Make mouse clicks in the browser window work properly when the
526 MORE_SPACE flag is set. (DLR)
David Lawrence Ramsey16799ba2005-06-21 22:32:50 +0000527 - Make foo_len a size_t instead of an int. (DLR)
David Lawrence Ramsey30f164a2005-05-21 22:41:23 +0000528 save_history()
David Lawrence Ramsey21374582005-06-15 23:36:08 +0000529 - Properly save history when we're in view mode. (DLR)
David Lawrence Ramsey64393302005-04-25 21:48:22 +0000530- global.c:
531 shortcut_init()
532 - Move the "Refresh" and "Exit" shortcuts to the beginning of
533 the help browser shortcut list, for consistency. (DLR)
David Lawrence Ramsey9b108c22005-06-06 18:38:16 +0000534 - Remove unnecessary "Refresh" placeholder in the file browser
535 shortcut list. (DLR)
David Lawrence Ramseya049c832005-06-12 23:53:28 +0000536 - Allow the mark to be used in view mode, as Pico does. (DLR)
David Lawrence Ramseyfa6c29c2005-06-16 03:07:05 +0000537 - Clarify the description of ^X when --enable-multibuffer is
538 used. (DLR)
David Lawrence Ramseyf3ecffd2005-06-16 18:48:30 +0000539 - Change the description of the Meta-B toggle at the search
540 prompt from "Direction" to "Backwards", for consistency. (DLR)
David Lawrence Ramsey3435a0f2005-06-17 21:08:13 +0000541 toggle_init()
David Lawrence Ramseyd8734472005-06-18 03:03:32 +0000542 - Clarify the descriptions of M-C and M-L. (DLR)
David Lawrence Ramsey26e637b2005-06-18 03:37:56 +0000543 - Reorder the toggles to put more toggles with similar functions
544 together. (DLR)
David Lawrence Ramsey31b159c2005-05-26 05:17:13 +0000545 thanks_for_all_the_fish()
546 - Remove free_toggles() and move its code here verbatim, as it's
547 only called here anyway. (David Benbennick)
548 - Fix the code to free all open file buffers to work properly
549 with the previous overhaul of the multibuffer code instead of
David Lawrence Ramsey40e4acf2005-05-26 06:09:07 +0000550 going into an infinite loop. (David Benbennick)
David Lawrence Ramsey31b159c2005-05-26 05:17:13 +0000551 - Add additional checks for variables' not being NULL before we
552 try to free them, to avoid assertion failures. (DLR)
David Lawrence Ramseyc2b07472005-04-14 03:13:49 +0000553- nano.c:
David Lawrence Ramsey15aaa2c2005-05-28 23:21:30 +0000554 die()
555 - Rename variable ret to retval for consistency. (DLR)
David Lawrence Ramsey54b74ce2005-05-29 23:03:28 +0000556 - Tweak the message displayed when a backup file can't be
David Lawrence Ramsey73857552005-06-03 04:09:45 +0000557 written, so as to not duplicate a translated string. (DLR)
David Lawrence Ramseyf4595bb2005-06-06 16:27:18 +0000558 - If the current filestruct's been partitioned, unpartition it
559 before saving the associated file. (DLR)
David Lawrence Ramseyc00f6582005-06-12 15:19:11 +0000560 resize_variables()
David Lawrence Ramsey3db0dc32005-06-12 15:24:36 +0000561 - Use charset() instead of memset() to initialize hblank. (DLR)
David Lawrence Ramsey6d39f4b2005-05-14 21:19:15 +0000562 copy_filestruct()
563 - Rename variable prev to copy to avoid confusion. (DLR)
David Lawrence Ramseyc2b07472005-04-14 03:13:49 +0000564 print1opt_full()
565 - If desc should be empty, allow it to be NULL instead of
566 "", since the latter is not necessarily translated as "".
567 (DLR, found by Jordi)
David Lawrence Ramsey86ce3902005-05-21 17:15:46 +0000568 usage()
569 - Add missing N_() around one message, so that it isn't
570 erroneously translated twice. (DLR)
David Lawrence Ramseyd1cc0072005-06-16 17:26:01 +0000571 - Remove inaccurate default listed for -Q/--quotestr. (DLR)
David Lawrence Ramsey85c0b3c2005-06-29 17:10:58 +0000572 version()
573 - Add --enable-utf8 to the displayed compilation options, put
574 the options in alphabetical order, and handle --enable-tiny
575 the same way as all the other options. (DLR)
David Lawrence Ramsey6315e2f2005-06-12 16:45:37 +0000576 do_tab()
577 - Remove unneeded variable kbinput. (DLR)
David Lawrence Ramsey5a6caf02005-06-15 19:21:04 +0000578 do_int_spell_fix()
579 - Display highlighted misspelled words using display_string(),
580 as do_replace_loop() does. (DLR)
David Lawrence Ramseyad114602005-04-16 18:27:57 +0000581 do_alt_speller()
582 - Replace a set_modified() with SET(MODIFIED) to avoid an
583 unnecessary update, and remove an unneeded clearok(FALSE).
584 (DLR)
David Lawrence Ramseybd11c012005-06-21 01:33:31 +0000585 - Move the spell checking error handling block down and refactor
586 it so that we go back into curses mode, reinitialize the
587 terminal, turn the cursor back on, and turn the mark back on
588 if necessary before returning the error message. (DLR)
David Lawrence Ramsey072f86c2005-06-15 20:21:02 +0000589 do_spell()
David Lawrence Ramseycd0210f2005-06-18 14:05:21 +0000590 - If the spell-checker printed any error messages onscreen, call
David Lawrence Ramseybd11c012005-06-21 01:33:31 +0000591 total_refresh() to make sure they're cleared off. (DLR, found
David Lawrence Ramseycd0210f2005-06-18 14:05:21 +0000592 by CHAO Wei-Lun)
David Lawrence Ramseyf8161192005-06-29 01:27:33 +0000593 find_paragraph()
594 - Reset placewewant as well as current_x to 0, in order to avoid
595 a potential screen update problem. (DLR)
David Lawrence Ramsey18d6a7a2005-06-28 06:05:54 +0000596 do_justify()
597 - Save placewewant, and restore it if we unjustify, in order to
598 avoid a potential screen update problem. (DLR)
David Lawrence Ramseye4cb3152005-04-25 22:48:58 +0000599 do_output()
David Lawrence Ramsey6595b712005-04-26 17:21:47 +0000600 - Properly allow wrapping when we insert a tab, for consistency.
601 (DLR)
David Lawrence Ramsey31b159c2005-05-26 05:17:13 +0000602 - Don't set current_len until after it's been asserted that both
603 current and current->data aren't NULL. (DLR)
David Lawrence Ramseyd4471eb2005-06-26 20:05:01 +0000604 do_toggle()
605 - Properly treat color syntax highlighting as enabled by
606 default, and only treat wrapping as enabled by default when
607 DISABLE_WRAPPING isn't defined. (DLR)
David Lawrence Ramsey8bcac8a2005-06-09 04:02:57 +0000608 disable_extended_input()
609 - Disable extended output processing as well as extended input
610 processing, and rename to disable_extended_io(). (DLR)
David Lawrence Ramsey5e50e2f2005-06-23 22:28:56 +0000611 disable_flow_control(), enable_flow_control()
612 - Only turn off flow control on output, as it might be needed
613 for input on slow terminals. (DLR)
David Lawrence Ramsey3db0dc32005-06-12 15:24:36 +0000614- nano.h:
615 - Add macro charset(), a wrapper that calls memset(). (DLR)
David Lawrence Ramseyd8640482005-06-12 17:48:46 +0000616 - Readd #defines for the isblank() and iswblank() equivalents.
617 (DLR)
David Lawrence Ramsey6ea410e2005-06-26 22:32:51 +0000618 - In the colortype struct, make bright a bool instead of an int,
619 for consistency. (DLR)
David Lawrence Ramseyc4ca5962005-06-16 20:58:19 +0000620- proto.h:
621 - Add missing NANO_SMALL and HAVE_REGEX_H #ifdefs around the
622 do_find_bracket() prototype. (DLR)
David Lawrence Ramsey7c78b452005-06-08 21:17:32 +0000623- rcfile.c:
David Lawrence Ramsey44491ac2005-06-09 14:04:08 +0000624 color_to_int()
625 - Since colorname's being NULL is handled elsewhere now, assert
626 that it isn't NULL at the beginning of the function. (DLR)
David Lawrence Ramsey7c78b452005-06-08 21:17:32 +0000627 parse_colors()
628 - Properly parse a background color without a foreground color.
629 (DLR)
David Lawrence Ramseya9d45bb2005-06-09 01:09:00 +0000630 - Properly generate an error if we get a color directive without
631 a regex string. (DLR)
David Lawrence Ramsey30d0a812005-06-13 14:50:32 +0000632 parse_rcfile()
633 - Properly generate an error if we get an invalid multibyte
634 string for an option, instead of working around it. (DLR)
David Lawrence Ramseyd5d4dde2005-06-14 01:55:56 +0000635 - Use has_blank_mbchars() to check for blank characters in the
636 "punct" and "brackets" options, and clarify the error message
637 displayed when we find blank characters. (DLR)
David Lawrence Ramseye1ce92c2005-05-17 01:55:44 +0000638- search.c:
639 do_gotoline()
640 - Properly show an error message if we try to go to line 0,
641 since the first line in the file is 1. (DLR)
David Lawrence Ramsey17276712005-05-17 22:01:55 +0000642 - Start the search for a line from fileage instead of current
643 (again). (DLR)
David Lawrence Ramseye3970f52005-05-26 03:47:24 +0000644 replace_regexp()
David Lawrence Ramsey16799ba2005-06-21 22:32:50 +0000645 - Rename variables create_flag and new_size to create and
646 new_line_size, for consistency. (DLR)
647 - Make new_line_size, search_match_count, and i size_t's, for
648 consistency. (DLR)
David Lawrence Ramsey16f88132005-05-26 03:32:41 +0000649 replace_line()
650 - Make new_line_size and search_match_count size_t's, for
651 consistency. (DLR)
David Lawrence Ramseyc4dbdd52005-06-06 03:46:32 +0000652 do_replace_loop()
653 - When moving to the next match, update the screen using
654 edit_refresh() instead of edit_redraw(), as the latter won't
655 work properly when we've replaced one or more instances of a
656 string in copy and haven't yet updated current->data to match
657 copy. (DLR)
David Lawrence Ramsey5c8197d2005-06-16 20:41:20 +0000658 do_find_bracket()
659 - Miscellaneous cleanups: rename variables for consistency, and
660 save the search direction and regexp setting in two bools
661 instead of one flags variable. (DLR)
David Lawrence Ramsey6a244b62005-04-14 03:52:28 +0000662- utils.c:
663 num_of_digits()
David Lawrence Ramseyc596c0c2005-04-19 16:32:08 +0000664 - Use a size_t instead of an int, and rename to digits(). (DLR)
David Lawrence Ramsey6a0d5b82005-06-13 14:00:22 +0000665 align()
666 - Rename variable strp to str for consistency. (DLR)
David Lawrence Ramsey04652512005-04-16 18:07:37 +0000667- winio.c:
David Lawrence Ramsey31b159c2005-05-26 05:17:13 +0000668 do_statusbar_output()
669 - Don't set answer_len until after it's been asserted that
670 answer isn't NULL. (DLR)
David Lawrence Ramseyd29b9d52005-06-06 03:17:07 +0000671 display_string()
672 - Avoid a memory corruption problem by allocating enough space
673 for len plus a trailing multibyte character and/or tab. (DLR)
David Lawrence Ramseyd0d5b8f2005-06-10 20:45:54 +0000674 - Don't check for multicolumn characters if the NO_UTF8 flag
675 isn't set. (DLR)
David Lawrence Ramsey6a0d5b82005-06-13 14:00:22 +0000676 - Free buf_mb when we're done using it. (DLR)
David Lawrence Ramsey6f25a672005-05-20 02:57:05 +0000677 nanogetstr()
678 - Rename variable def to curranswer to avoid confusion. (DLR)
679 - Only declare and use the tabbed variable if DISABLE_TABCOMP
680 isn't defined. (DLR)
David Lawrence Ramseye8bb90b2005-05-26 05:39:53 +0000681 - Refactor to replace unnecessary variable answer_len with
682 curranswer_len, and hence avoid an assertion failure involving
683 the former. (DLR)
David Lawrence Ramsey546f5b32005-05-14 23:14:47 +0000684 statusq()
685 - Rename variable which_history to history_list, for
686 consistency. (DLR)
David Lawrence Ramsey6f25a672005-05-20 02:57:05 +0000687 - Rename variables def and ret to curranswer and retval to avoid
688 confusion. (DLR)
David Lawrence Ramsey9c6d7862005-06-18 22:33:24 +0000689 - Call wnoutrefresh(bottomwin) after getting an answer and
690 blanking out the statusbar, to make sure that the blanking is
691 done. This fixes a problem where the statusbar is not
692 properly blanked after using the "Go To Line" prompt with the
693 NO_HELP flag set. (DLR)
David Lawrence Ramsey8d5beb52005-06-21 20:37:04 +0000694 titlebar()
695 - Use actual_x() to calculate the number of characters VERMSG
696 takes up, in case it's UTF-8. (DLR)
David Lawrence Ramsey6ad6b852005-06-28 06:16:30 +0000697 do_cursorpos()
698 - Properly display the value of totsize as unsigned. (DLR)
David Lawrence Ramsey4e05b752005-06-28 20:04:14 +0000699 - If constant is TRUE, only display the cursor position when
700 disable_cursorpos is FALSE. Don't refuse to display it when
701 the cursor position hasn't changed, as that doesn't always
702 keep it properly updated. (DLR, found by Mike Frysinger)
David Lawrence Ramsey9cf1df12005-04-19 03:15:21 +0000703 do_help()
704 - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
705 consistency. (DLR)
David Lawrence Ramsey077d0642005-06-17 18:14:03 +0000706 statusbar()
707 - Set statusblank to 25 instead of 26, to match current Pico.
708 (DLR)
David Lawrence Ramsey54236802005-06-28 05:56:16 +0000709 edit_redraw()
710 - Make do_refresh a bool instead of an int. (DLR)
David Lawrence Ramseyda331532005-06-06 17:00:08 +0000711 do_yesno()
712 - Allow refreshing the screen via Ctrl-L, as Pico does. (DLR)
David Lawrence Ramseyd4ea5b62005-06-21 21:03:06 +0000713 - Add a missing assert, and use actual_x() to calculate the
714 number of characters buf takes up, in case it's UTF-8. (DLR)
David Lawrence Ramsey44e0c032005-06-29 19:01:11 +0000715 - Get input from bottomwin instead of edit, so that the cursor
716 isn't erroneously put in the edit window while we wait for an
717 answer. (DLR)
David Lawrence Ramsey73bf89f2005-06-30 05:56:39 +0000718 - Call wnoutrefresh(edit) to make sure that the edit window is
719 refreshed before we get input, as statusq() does. (DLR)
David Lawrence Ramseyc54c4d12005-06-18 15:49:17 +0000720 total_redraw()
David Lawrence Ramsey5cbe08f2005-06-30 16:18:35 +0000721 - Simplify to just call wrefresh() on curscr, which updates the
722 entire screen in one function call without moving the cursor
723 from the window it's currently in. (DLR)
David Lawrence Ramsey7431fe52005-06-18 15:15:48 +0000724 - When using slang, use SLsmg_touch_screen() and SLsmg_refresh()
David Lawrence Ramsey5cbe08f2005-06-30 16:18:35 +0000725 to update the screen, as slang doesn't define curscr. (DLR)
David Lawrence Ramseyd16d0bf2005-06-13 02:24:17 +0000726 do_replace_highlight()
727 - Use waddch() instead of waddstr() to display a space when we
728 have a zero-length regex. (DLR)
David Lawrence Ramsey7bde0532005-06-30 03:55:55 +0000729 - Rename variable highlight_flag to highlight, for consistency.
730 (DLR)
David Lawrence Ramsey3925bda2005-06-07 03:20:35 +0000731 do_credits()
732 - Save the keystroke that breaks us out of the credits (if any)
733 and put it back so that it isn't lost. This is especially
734 needed if the keystroke is part of a multibyte character.
735 (DLR)
David Lawrence Ramsey27ae93d2005-06-27 05:01:32 +0000736- nano.1:
737 - Clarify and consolidate the descriptions of --fill and
738 --tabsize. (DLR)
David Lawrence Ramseya644af52005-06-08 21:30:50 +0000739- nanorc.5:
740 - Update the description of how the "color" regex works. (DLR)
David Lawrence Ramsey9b494fa2005-06-17 18:00:16 +0000741 - Clarify descriptions of the characters that aren't allowed
742 in the "punct" or "brackets" options. (DLR)
743 - Use .B instead of \fB ... \fP where possible, as nano.1 does.
744 (DLR)
David Lawrence Ramsey27ae93d2005-06-27 05:01:32 +0000745 - Clarify and consolidate the descriptions of "fill" and
746 "tabsize". (DLR)
David Lawrence Ramseyb2bff722005-06-19 22:22:01 +0000747- nano.texi:
748 - Update the "Feature Toggles" section to match current nano.
749 (DLR)
David Lawrence Ramsey27ae93d2005-06-27 05:01:32 +0000750 - Clarify and consolidate the descriptions of --fill and
751 --tabsize. (DLR)
David Lawrence Ramsey86a94522005-05-24 22:20:39 +0000752- configure.ac:
753 - Minor tweaks to some of the test blocks to avoid XSI:isms.
754 (DLR, adapted from a Debian patch for GNU ed by David
755 Weinehall)
David Lawrence Ramsey854b71d2005-06-03 01:43:56 +0000756 - Don't refer to the built-in file browser as crappy anymore.
757 (DLR)
David Lawrence Ramsey68c10962005-06-21 04:11:04 +0000758 - Check for iswpunct() and mbstowcs(). (DLR)
David Lawrence Ramsey203026c2005-06-15 18:53:47 +0000759 - Change the behavior of --enable-extra to only define
760 NANO_EXTRA, instead of defining both it and
761 ENABLE_MULTIBUFFER. (DLR)
David Lawrence Ramsey25799f62005-06-18 17:06:02 +0000762 - Check for get_wch() instead of wget_wch() to determine if
763 there's a wide curses library, as it's a more generic
764 function. (DLR)
David Lawrence Ramseyb5aaf722005-06-18 20:08:43 +0000765 - Check for possibly unavailable functions in alphabetical
766 order. (DLR)
David Lawrence Ramsey23d3cf42005-06-08 18:46:51 +0000767- doc/faq.html:
David Lawrence Ramsey3a4eb482005-06-14 02:32:37 +0000768 - Update section 1.1 to mention the current maintainer. (DLR)
David Lawrence Ramsey203026c2005-06-15 18:53:47 +0000769 - Minor capitalization and wording fixes. (DLR)
770 - Update description of --enable-extra, and add missing line
771 breaks. (DLR)
David Lawrence Ramsey7c78b452005-06-08 21:17:32 +0000772- doc/nanorc.sample:
773 - In the "nanorc" regexes, tweak the "color" regex to properly
774 color a line that specifies a background color without a
David Lawrence Ramseyb8351c12005-06-27 12:25:17 +0000775 foreground color, and update the associated comments. (DLR)
David Lawrence Ramsey9b494fa2005-06-17 18:00:16 +0000776 - Clarify descriptions of the characters that aren't allowed
777 in the "punct" or "brackets" options. (DLR)
David Lawrence Ramsey203026c2005-06-15 18:53:47 +0000778 - Update comment referring to --enable-extra. (DLR)
David Lawrence Ramseyb8351c12005-06-27 12:25:17 +0000779 - Add "cxx" and "hxx" to the list of extensions that the
780 "c-file" regexes apply to, and add "warning" and "error" to
781 them as well. (Mike Frysinger)
782 - Add regexes for assembler files. (Mike Frysinger)
783 - In the preprocessor directives regex string in the "c-file"
784 regexes, cover more whitespace characters than just " " by
785 using "[[:space:]]" instead. (Mike Frysinger) DLR: Extend
786 this to other regex strings whenever possible.
787 - Move some overly long split-up regex strings that cover
788 similar areas onto the same line. (DLR)
789 - Add GCC builtins to the "c-file" regexes. (Mike Frysinger)
790 - Simplify the file extension regex for groff. (DLR)
791 - Clarify and consolidate the descriptions of "fill" and
792 "tabsize". (DLR)
David Lawrence Ramsey1ea53702005-06-18 19:56:30 +0000793- Makefile.am, m4/Makefile.am:
794 - Make sure that the files in EXTRA_DIST are in alphabetical
795 order, and that the lines are wrapped at 72 characters. (DLR)
Jordi Mallach3da55802005-06-07 22:23:45 +0000796- doc/man/fr/Makefile.am:
David Lawrence Ramsey092af142005-06-08 01:35:10 +0000797 - Set mandir to @mandir@/fr, so French manpages get installed
798 where they belong (Jordi).
Jordi Mallachd4a1c0a2005-04-20 13:22:08 +0000799- THANKS:
800 - Add new translators to the credits.
David Lawrence Ramseyddedf2d2005-04-10 03:59:53 +0000801
David Lawrence Ramseyc32a5e72005-04-10 03:58:44 +0000802GNU nano 1.3.7 - 2005.04.10
David Lawrence Ramsey2d825ba2005-03-20 21:20:47 +0000803- General:
David Lawrence Ramsey78d05482005-03-26 20:53:40 +0000804 - Miscellaneous comment fixes. (DLR)
David Lawrence Ramsey2d825ba2005-03-20 21:20:47 +0000805 - After (re)initializing the terminal, make sure the cursor is
806 always turned on. Changes to do_alt_speller(),
807 handle_sigwinch(), and main(). (DLR)
David Lawrence Ramseyb80d49f2005-03-26 22:49:46 +0000808 - Make sure that all references to cut-to-end are left out when
809 NANO_SMALL is defined. Changes to cut_to_eol(),
810 do_cut_text(), and do_statusbar_cut_text(). (DLR)
David Lawrence Ramsey263b4472005-03-23 05:56:11 +0000811- chars.c:
David Lawrence Ramsey5f3695b2005-03-26 06:54:36 +0000812 make_mbchar()
813 - Remove unneeded assert. (DLR)
David Lawrence Ramsey263b4472005-03-23 05:56:11 +0000814 move_mbleft()
815 - Fix assert to reference the proper variable, so that nano
816 builds with DEBUG defined again. (Mike Frysinger, found by
817 Dmitri Vassilenko)
David Lawrence Ramseyb9dec212005-03-21 06:14:45 +0000818- files.c:
David Lawrence Ramsey88ad64d2005-03-30 23:52:02 +0000819 do_insertfile()
820 - Fix problem where going into the help browser at the "Insert
821 File" prompt would always result in the current answer's being
822 used as the filename afterward. (DLR)
David Lawrence Ramsey6e0ed3c2005-03-26 04:42:28 +0000823 get_full_path()
824 - Rework handling of the results of getcwd() in order to avoid
825 segfaults if they fail, and to remove uses of the nonportable
826 GNU extension where passing a size of 0 will get a string as
827 long as we need. (DLR)
David Lawrence Ramseyb9dec212005-03-21 06:14:45 +0000828 do_browser()
829 - Rename variable lineno to fileline to avoid confusion. (DLR)
David Lawrence Ramsey6e0ed3c2005-03-26 04:42:28 +0000830 do_browse_from()
831 - Rework handling of the results of getcwd() in order to avoid
832 segfaults if they fail, and to remove uses of the nonportable
833 GNU extension where passing a size of 0 will get a string as
834 long as we need. (DLR)
David Lawrence Ramsey39e8ce62005-03-21 07:24:47 +0000835- nano.c:
David Lawrence Ramseyc4daf5d2005-03-22 02:51:01 +0000836 help_init()
837 - When calculating allocsize, take multibyte characters into
838 account, and keep the column number limits consistent. (DLR)
David Lawrence Ramseyaa683852005-03-30 18:11:59 +0000839 - Break htx up into three chunks, in case the string is too long
840 for the compiler to handle (e.g. an ISO C89 compiler that can
841 only handle up to 509 characters). (DLR)
842 - Minor wording fixes. (DLR)
David Lawrence Ramsey39e8ce62005-03-21 07:24:47 +0000843 print1opt()
844 - Don't include longflag if HAVE_GETOPT_LONG isn't defined.
845 Rename this function to print1opt_full(), leave out the
846 longflag parameter if HAVE_GETOPT_LONG isn't defined, and make
847 print1opt() a macro for print1opt_full() that does that
848 without the need for a lot of extra #ifdefs. (David
849 Benbennick) DLR: Rename print1opt_f() to print1opt_full().
850 - Rework the special case of options that are ignored for Pico
851 compatibility so that they display more neatly when
852 HAVE_GETOPT_LONG isn't defined. (DLR)
853 usage()
854 - Fix erroneous #ifdef that resulted in the -d/--rebinddelete
David Lawrence Ramseyb80d49f2005-03-26 22:49:46 +0000855 option's not being printed when NANO_SMALL was defined. (DLR)
David Lawrence Ramsey6b94e952005-03-22 01:53:57 +0000856 find_paragraph()
857 - Fix problem where a search for the next paragraph would skip
858 over certain cases of one-line paragraphs. (DLR)
David Lawrence Ramseyaad85152005-03-22 01:25:34 +0000859 do_justify()
860 - Instead of breaking a line at a space and readding the space
861 afterwards, just break the line after the space, as it's more
862 efficient. (DLR)
David Lawrence Ramseyfe605242005-03-26 22:49:08 +0000863 main()
864 - Change 0 to NULL in the option struct where needed. (David
865 Benbennick)
David Lawrence Ramsey6e0ed3c2005-03-26 04:42:28 +0000866- nano.h:
867 - Define PATH_MAX as 4096 if it isn't defined, as passing a size
868 of 0 to get a string as long as we need is a nonportable GNU
869 extension, and hence it won't work on non-GNU systems that
870 don't define PATH_MAX. (DLR)
David Lawrence Ramseycaac9202005-03-27 01:34:40 +0000871- rcfile.c:
872 parse_rcfile()
873 - Fix debugging message to display the long value of a flag
874 properly. (DLR)
David Lawrence Ramseyafbcf682005-03-21 06:33:41 +0000875- utils.c:
876 regexec_safe()
877 - Rename to safe_regexec() for consistency. (DLR)
David Lawrence Ramseycf4db892005-03-22 03:59:32 +0000878- winio.c:
David Lawrence Ramseyc504dff2005-04-09 04:10:58 +0000879 nanogetstr()
880 - Fix misplaced break. (DLR)
David Lawrence Ramsey612caef2005-03-31 00:11:43 +0000881 statusq()
882 - Make sure that the vsnprintf(foo) call and foo's subsequent
883 null termination both take the proper number of bytes when
884 using multibyte characters, so that multibyte prompt strings
885 aren't prematurely cut off. (DLR)
David Lawrence Ramsey297851a2005-03-25 05:00:32 +0000886 titlebar()
887 - Make sure that the (mv)?waddnstr() calls take the proper
888 number of bytes when using multibyte characters, so that
889 multibyte strings aren't prematurely cut off. (DLR, found by
890 Jordi)
891 - Allow the "View" state to be displayed when a filename is
892 passed in, in case we're in multibuffer mode and inside the
893 file browser. (DLR)
David Lawrence Ramseycf4db892005-03-22 03:59:32 +0000894 help_line_len()
895 - Make the text display more flexible, and closer to what nano
896 1.2.x does. (DLR)
David Lawrence Ramsey8ac90872005-03-25 22:25:24 +0000897- configure.ac:
898 - Allow more flexible handling of UTF-8 support by allowing
899 the --enable-utf8 and --disable-utf8 options. (Mike
900 Frysinger) DLR: Extend these options to work with slang as
901 well as curses, consolidate the warning and error messages
902 dealing with UTF-8 support as much as possible, and add a few
903 minor consistency fixes.
David Lawrence Ramseya3e5fad2005-04-09 14:47:54 +0000904 - Mention explicitly that the check for the broken regexec() is
905 needed for glibc 2.2.3. (DLR)
David Lawrence Ramsey32a285c2005-03-26 23:15:51 +0000906- nanorc.sample:
907 - Fix the description for the whitespace option to mention that
908 only single-column characters are allowed. (DLR)
David Lawrence Ramsey4811b812005-03-30 17:03:43 +0000909 - Add C++ regexes. (Neil Brown, merged into c-file regexes by
910 DLR)
David Lawrence Ramsey403e0fe2005-04-01 19:45:35 +0000911 - Break up overly long perl and nanorc regexes into separate
912 regexes of no more than 256 bytes, as POSIX-compliant regexp
913 implementations can reject regexes of over 256 bytes. (DLR)
David Lawrence Ramsey32a285c2005-03-26 23:15:51 +0000914- nano.1, nano.texi:
David Lawrence Ramsey6a846842005-03-27 04:30:33 +0000915 - Mention the -? alias for -h/--help, and add various
916 consistency fixes. (DLR)
David Lawrence Ramsey32a285c2005-03-26 23:15:51 +0000917- nanorc.5:
918 - Fix the description for the whitespace option to mention that
919 only single-column characters are allowed. (DLR)
David Lawrence Ramsey3dfc8792005-03-20 20:04:59 +0000920
David Lawrence Ramseybec01bd2005-03-20 20:02:51 +0000921GNU nano 1.3.6 - 2005.03.20
David Lawrence Ramsey93c84052004-11-23 04:08:28 +0000922- General:
David Lawrence Ramsey1b9d3f92005-02-11 20:09:11 +0000923 - More int -> bool conversions. (DLR and David Benbennick)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +0000924 - Overhaul the cutting and uncutting routines to use the
925 partitioning code, as it greatly simplifies how they work.
926 New functions move_to_filestruct(), copy_from_filestruct(),
927 cut_line(), cut_marked(), and cut_to_eol(); changes to
928 add_to_cutbuffer(), do_cut_text(), do_uncut_text(), etc.;
929 removal of functions get_cutbottom(), add_to_cutbuffer(), and
930 cut_marked_segment(). (DLR)
931 - Overhaul the justify-related routines to back up and restore
932 unjustified text to use the partitioning code, as it greatly
933 simplifies how they work, and to store such text in its own
934 buffer rather than the cutbuffer. Changes to backup_lines(),
935 do_justify(), etc. (DLR)
David Lawrence Ramsey5b3dd0f2004-11-25 04:39:07 +0000936 - Overhaul the multibuffer routines to increase efficiency, most
937 importantly making them use a doubly linked list for the open
938 files so that switching between them is no longer O(N), and
939 only including free_openfilestruct() when --enable-debug is
940 used. Also use some of the same efficiency tweaks when
941 dealing with filestruct nodes. New function
942 open_prevnext_file(); changes to make_new_opennode(),
943 splice_opennode(), unlink_opennode(), delete_opennode(),
944 free_openfilestruct(), add_open_file(), load_open_file(),
945 close_open_file(), shortcut_init(), die(), make_new_node(),
946 copy_node(), splice_node(), delete_node(), and
947 free_filestruct(); removal of open_prevfile() and
948 open_nextfile(). (David Benbennick, minor tweaks and additions
949 by DLR)
David Lawrence Ramsey3ece0b92004-12-01 15:11:27 +0000950 - Change references to "open files" to "open file buffers", for
951 consistency. (DLR)
David Lawrence Ramsey9ec76e52004-12-23 19:55:57 +0000952 - Add flag to disable UTF-8 sequence interpretation, so that
953 people using single-byte encodings such as KOI8-R can type
954 properly again. (DLR, found by Arthur Ivanov)
David Lawrence Ramsey74835712004-12-04 17:41:52 +0000955 - Massively overhaul the input and output routines to support
David Lawrence Ramsey78ea5e42004-12-12 19:04:56 +0000956 buffered input and output, the first steps toward
David Lawrence Ramseyf0a53f02005-01-03 19:56:56 +0000957 wide/multibyte character input and output, and verbatim input
958 of double-byte Unicode characters instead of single-byte ASCII
David Lawrence Ramsey9b95ca82005-01-14 06:02:10 +0000959 characters. New functions is_byte(), get_buffer(),
David Lawrence Ramseyf0a53f02005-01-03 19:56:56 +0000960 get_buffer_len(), buffer_to_keys(), unget_input(),
961 get_input(), parse_kbinput(), and parse_verbatim_kbinput();
962 new macro charcpy(); changes to do_char() (renamed to
963 do_output()), get_edit_input() (renamed to do_input() and
964 moved to nano.c), get_edit_mouse() (renamed do_mouse() and
965 moved to nano.c), do_verbatim_input(), do_tab(), main(), and
David Lawrence Ramseyf647c482005-01-03 20:07:26 +0000966 get_ascii_kbinput() (renamed to get_byte_kbinput()). The wide
David Lawrence Ramseyf0a53f02005-01-03 19:56:56 +0000967 version of ncurses is required in order for wide/multibyte
968 input and output to work properly. (DLR; buffered input/output
969 based on ideas from mutt 1.4.2.1; input of Unicode characters
970 in hexadecimal suggested by Michael Piefel)
David Lawrence Ramseyfc693212004-12-23 17:43:27 +0000971 - More steps toward wide character/multibyte character support.
David Lawrence Ramsey40e211b2005-03-19 21:15:30 +0000972 New functions control_rep(), parse_char(), move_left(), and
973 move_right(); changes to do_left(), do_right(), do_delete(),
974 breakable(), break_line(), do_output(), get_buffer(),
975 unget_input(), actual_x(), strnlenpt(), display_string(),
976 titlebar(), statusbar(), onekey(), edit_add(),
977 do_replace_highlight(), and do_credits(). (David Benbennick
978 and DLR)
David Lawrence Ramseyc13b7f02005-01-01 07:28:15 +0000979 - Overhaul the high-level input routines for the statusbar to
980 make them read the shortcut lists for functions instead of
981 manually running them, to make nanogetstr() less complex, and
982 to increase flexibility. Note that currshortcut is now used
David Lawrence Ramseyb3aeb132005-01-14 21:19:06 +0000983 regardless of #ifdefs, and that cutting text at the statusbar
984 now respects the CUT_TO_END flag. Changes to shortcut_init()
985 and nanogetstr(); new functions do_statusbar_input(),
David Lawrence Ramseyc13b7f02005-01-01 07:28:15 +0000986 do_statusbar_mouse(), do_statusbar_home(), do_statusbar_end(),
987 do_statusbar_right(), do_statusbar_left(),
988 do_statusbar_backspace(), do_statusbar_delete(),
989 do_statusbar_cut_text(), and do_statusbar_output(). (DLR)
990 - Even more steps toward wide character/multibyte character
David Lawrence Ramsey08cd7ef2005-01-02 20:30:15 +0000991 support. Movement and cursor display at the statusbar prompt
David Lawrence Ramsey68e30162005-01-03 22:23:00 +0000992 should now (mostly) work properly with a string containing
993 multibyte characters, and text display of such strings should
994 now (mostly) work properly as well. Changes to search_init(),
David Lawrence Ramsey08cd7ef2005-01-02 20:30:15 +0000995 nanoget_repaint(), do_statusbar_right(), do_statusbar_left(),
David Lawrence Ramseyc13b7f02005-01-01 07:28:15 +0000996 do_statusbar_backspace(), and do_statusbar_delete(). (David
997 Benbennick and DLR)
David Lawrence Ramsey295d1722005-01-01 07:43:32 +0000998 - Implement cutting from the current position to the end of the
999 file, using Ctrl-X from the search prompt and Meta-T from the
1000 edit window. New function do_cut_till_end(). Note that this
1001 is disabled when NANO_SMALL is defined. (DLR, based on ideas
1002 from a patch for Pico by Eduardo Chappa, suggested by Ryan
1003 Dlugosz and Paul Adams)
David Lawrence Ramsey11c83d32005-01-02 21:26:53 +00001004 - Implement verbatim input for the statusbar prompt. Changes to
David Lawrence Ramseyd9ad76b2005-01-02 22:35:31 +00001005 do_statusbar_input() and do_statusbar_output(); new functions
1006 keys_to_buffer(), unparse_kbinput(), and
David Lawrence Ramsey11c83d32005-01-02 21:26:53 +00001007 do_statusbar_verbatim_input(). (DLR)
David Lawrence Ramseyb54155c2005-01-12 03:25:57 +00001008 - Yet more steps toward full wide character/multibyte character
1009 support. Overhaul the functions that already have support for
1010 them to work with multibyte strings as much as possible, add
1011 support to a few more functions as well, and move multibyte
1012 character-specific functions to their own source file. New
David Lawrence Ramsey1fe2eeb2005-01-14 21:33:47 +00001013 file chars.c; new functions is_alnum_char(),
David Lawrence Ramseyefec6412005-03-17 03:52:08 +00001014 is_alnum_mbchar(), is_alnum_wchar(), is_blank_mbchar(),
1015 is_blank_wchar(), is_cntrl_mbchar(), is_cntrl_wchar(),
1016 control_mbrep(), control_wrep(), mbwidth(), mb_cur_max(),
1017 make_mbchar(), mbstrlen(), mbstrnlen(), mbstrcasecmp(),
1018 mbstrncasecmp(), mbstrcasestr(), and mbrevstrcasestr();
David Lawrence Ramsey40e211b2005-03-19 21:15:30 +00001019 changes to help_init(), do_wrap(), break_line(), is_byte()
1020 (moved to chars.c), is_blank_char() (moved to chars.c),
1021 is_cntrl_char() (moved to chars.c), nstricmp() (renamed
1022 nstrcasecmp() and moved to chars.c), nstrnicmp() (renamed
1023 nstrncasecmp() and moved to chars.c), nstristr() (renamed
1024 nstrcasestr() and moved to chars.c), revstrstr() (moved to
1025 chars.c), revstristr() (renamed revstrcasestr() and moved to
1026 chars.c), nstrnlen() (moved to chars.c), parse_char() (renamed
1027 parse_mbchar() and moved to chars.c), move_left() (renamed
1028 move_mbleft() and moved to chars.c), move_right() (renamed
1029 move_mbright() and moved to chars.c), do_home(),
1030 do_verbatim_input(), do_delete(), do_tab(), do_enter(),
1031 indent_length(), do_next_word(), do_prev_word(), do_wrap(),
1032 do_input(), do_output(), is_whole_word(), strstrwrapper(),
1033 get_buffer(), unget_input(), unget_kbinput(), get_input(),
1034 parse_kbinput(), unparse_kbinput(), parse_verbatim_kbinput(),
David Lawrence Ramsey5f9acfe2005-03-04 17:09:41 +00001035 do_statusbar_input(), do_statusbar_home(),
David Lawrence Ramsey9bd56202005-03-18 21:29:33 +00001036 do_statusbar_verbatim_kbinput(), do_statusbar_output(),
1037 do_help(), help_line_len(), and display_string(); removal of
1038 buffer_to_keys() and keys_to_buffer(). (DLR)
David Lawrence Ramsey637b8bb2005-01-17 05:06:55 +00001039 - Add -O/--morespace command line option, plus a corresponding
1040 Meta-O toggle and a "morespace" rcfile option. When these are
1041 used, the normally-unused blank line below the titlebar will
1042 be treated as part of the edit window. New functions
1043 no_more_space() and blank_topbar(); changes to global_init(),
David Lawrence Ramsey7c60eab2005-01-27 06:35:56 +00001044 window_init(), handle_sigwinch(), do_toggle(), do_mouse(),
David Lawrence Ramsey798e67e2005-01-28 19:11:51 +00001045 get_mouseinput(), etc. (DLR; suggested by Mike Frysinger,
1046 Rocco, and Robert Schultz)
David Lawrence Ramseyb80077d2005-01-18 21:25:38 +00001047 - Add support for moving to the next or previous word at the
1048 statusbar prompt. New functions do_statusbar_next_word() and
1049 do_statusbar_prev_word(); changes to do_statusbar_input().
1050 (DLR)
David Lawrence Ramsey50406662005-01-19 19:52:42 +00001051 - Make resizing more flexible. We now can work with as few as
1052 one row, and with no limit on the number of columns (except of
1053 course the curses-imposed limit that it be greater than zero).
1054 New function resize_variables(); changes to die_too_small()
1055 (renamed check_die_too_small()), global_init(), window_init(),
David Lawrence Ramsey122ae842005-01-19 20:55:42 +00001056 and handle_sigwinch(). (David Benbennick)
David Lawrence Ramsey50406662005-01-19 19:52:42 +00001057 - Use void instead of RETSIGTYPE, as signal handlers are
1058 supposed to return void anyway. Also, the value of RETSIGTYPE
1059 is sometimes misdetected as int, leading to compilation
David Lawrence Ramsey42abfe02005-01-22 18:24:16 +00001060 warnings or errors. Changes to cancel_fork(),
David Lawrence Ramseyb6e79fd2005-02-25 19:17:57 +00001061 handle_hupterm(), do_suspend(), and do_cont(). (David
David Lawrence Ramsey42abfe02005-01-22 18:24:16 +00001062 Benbennick)
David Lawrence Ramsey23c44502005-01-27 20:49:07 +00001063 - Change flags to an unsigned long, and totsize to a size_t.
1064 (DLR)
1065 - Store the number of multibyte characters instead of the number
1066 of single-byte characters in totsize, and use get_totals() to
1067 get the value of totsize in a few more places. Changes to
1068 read_line(), read_file(), do_delete(), do_input(),
1069 get_totals(), and do_cursorpos(). (DLR)
David Lawrence Ramsey7d367712005-02-14 05:00:15 +00001070 - Overhaul the tab completion code, the file browser code, and
1071 related functions to increase efficiency and support multibyte
David Lawrence Ramseyad96aff2005-02-22 23:22:37 +00001072 characters. New function is_dir(); changes to
David Lawrence Ramsey7d367712005-02-14 05:00:15 +00001073 get_full_path(), check_writable_directory(), safe_tempnam(),
1074 diralphasort(), username_tab_completion(),
1075 cwd_tab_completion(), input_tab(), tail(), striponedir(),
1076 browser_init(), do_browser(), and do_browse_from(); removal of
1077 append_slash_if_dir(), readable_dir(), and
1078 check_wildcard_match(). (David Benbennick) DLR: Move the
David Lawrence Ramsey65e6ecb2005-02-08 20:37:53 +00001079 routine to get the current user's home directory into the new
1080 function get_homedir(), and use it where necessary. Also add
1081 a few miscellaneous tweaks.
David Lawrence Ramsey202d3c22005-03-10 20:55:11 +00001082 - Overhaul the rcfile parsing code to make it simpler and more
1083 accurate, remove now-redundant checks from the color code,
1084 change the COLOR_SYNTAX toggle to the NO_COLOR_SYMTAX toggle,
1085 and improve various debugging messsages. Changes to
1086 set_colorpairs(), do_colorinit(), parse_next_word(),
1087 parse_argument(), colortoint(), parse_next_regex(),
1088 parse_syntax(), parse_colors(), parse_rcfile(), do_rcfile(),
1089 etc. (David Benbennick) DLR: Rename colortoint() to
1090 color_to_int(), and add a few miscellaneous tweaks.
David Lawrence Ramseyff4a4872005-03-13 21:12:25 +00001091 - Overhaul the paragraph-searching code to make it use the
1092 paragraph-searching utility functions when possible instead of
1093 duplicating code. Also overhaul the justify code to make it
1094 leave the right number of spaces at the ends of the lines of a
David Lawrence Ramsey38156d42005-03-15 05:44:03 +00001095 paragraph, to make it support multibyte characters, and to
1096 make it simpler. Also, don't remove a space after a duplicate
1097 character in punct anymore, as it doesn't really make us more
1098 compatible with Pico. New functions mbstrchr(),
1099 do_para_begin_void(), and do_para_end_void(); changes to
1100 justify_format(), do_para_begin(), inpar(), do_para_end(),
David Lawrence Ramsey9389ca22005-03-14 06:14:02 +00001101 break_line(), do_para_search() (renamed find_paragraph()), and
1102 do_justify(); removal of breakable(). (DLR)
David Lawrence Ramsey6e60db62005-03-10 22:52:21 +00001103 - Still more steps toward full wide/multibyte character support.
David Lawrence Ramseyf0195a82005-03-14 18:47:21 +00001104 Make sure all rcfile arguments are valid multibyte strings,
1105 make whitespace display mode work with multibyte characters,
David Lawrence Ramseye0fb4d52005-03-11 04:03:32 +00001106 and add a few related documentation updates. New function
David Lawrence Ramseyf0195a82005-03-14 18:47:21 +00001107 make_mbstring(); changes to make_mbchar(), make_mbstring(),
David Lawrence Ramsey9bd56202005-03-18 21:29:33 +00001108 main(), parse_rcfile(), display_string(), and do_help(). (DLR)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +00001109- cut.c:
David Lawrence Ramsey4d6ec372004-11-23 17:59:32 +00001110 do_cut_text()
1111 - If keep_cutbuffer is FALSE, only blow away the text in the
1112 cutbuffer if the cutbuffer isn't empty. (DLR)
David Lawrence Ramseyeeec9992004-11-24 20:12:57 +00001113 do_uncut_text()
1114 - No longer duplicate Pico's adding an extra magicline to the
1115 file if uncutting leaves the cursor on the current one. This
1116 behavior appears to be a bug, as inserting a file in the same
1117 manner doesn't add an extra magicline. (DLR)
David Lawrence Ramseyca018c32004-11-26 20:14:19 +00001118- files.c:
1119 get_full_path()
1120 - Remove unneeded NANO_SMALL #ifdef, so that it's included
1121 whenever its prototype is, and so it can compile when
1122 DISABLE_OPERATINGDIR isn't defined and NANO_SMALL is. (DLR)
David Lawrence Ramseyb349c802005-03-17 19:10:29 +00001123 do_browser()
1124 - Refresh the screen when Ctrl-L is pressed in the file browser,
1125 as Pico does. (DLR)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +00001126- global.c:
David Lawrence Ramsey30412932004-11-23 20:42:35 +00001127 shortcut_init()
1128 - Fix misplaced #endif keeping the "Full Justify" shortcut in
1129 the search shortcut list from being included when NANO_SMALL
1130 is defined but DISABLE_JUSTIFY isn't. (DLR)
David Lawrence Ramsey35e97132005-01-08 06:04:19 +00001131 - Use NULL instead of 0 when a shortcut has no associated
1132 function. (DLR)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +00001133 thanks_for_all_the_fish()
1134 - Free the justify buffer if it isn't empty. (DLR)
David Lawrence Ramseyb5a7a5a2004-11-23 03:42:43 +00001135- nano.c:
David Lawrence Ramseyf647c482005-01-03 20:07:26 +00001136 help_init()
1137 - Clarify the text describing double-escape character input.
1138 Since ASCII is technically only seven bits wide, characters
1139 128-255 aren't ASCII. (DLR, suggested by Michael Piefel)
David Lawrence Ramsey846658e2004-12-05 04:18:26 +00001140 do_toggle()
1141 - When we get the whitespace display toggle, update the titlebar
1142 as well as the edit window, in case the filename displayed on
1143 the titlebar contains spaces or tabs. (DLR)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +00001144 handle_sigwinch()
1145 - If the justify buffer isn't empty, blow it away and don't
1146 display "UnJustify" in the shortcut list anymore. (DLR)
David Lawrence Ramsey45edf362005-02-14 05:38:06 +00001147 usage()
1148 - Typo fix. (DLR)
David Lawrence Ramseyb5a7a5a2004-11-23 03:42:43 +00001149 do_wrap()
1150 - Make wrap_loc and word_back ssize_t's, to match fill. (DLR)
David Lawrence Ramseyfc54d6e2004-12-02 17:37:09 +00001151 break_line()
1152 - Fix compilation problem caused by its returning int when it
1153 should return ssize_t according to its prototype. (Jeremy
1154 Huddleston)
David Lawrence Ramsey22a35642005-03-18 05:26:54 +00001155 indent_length()
1156 - Make the #ifdef around it match that of its prototype to avoid
1157 compilation problems when compiling with --enable-tiny and
1158 without DISABLE_JUSTIFY's being defined. (DLR)
David Lawrence Ramsey93c84052004-11-23 04:08:28 +00001159 do_justify()
1160 - For consistency, preserve placewewant if we didn't unjustify
1161 instead of setting it to 0. (DLR)
David Lawrence Ramsey68ebb612004-12-04 17:36:14 +00001162 - When justifying the entire file, properly break out of the
David Lawrence Ramsey102d01d2005-03-17 04:48:14 +00001163 loop if we've found at least one paragraph, there are no more
1164 paragraphs after the current one, and the paragraph search
1165 left us on the magicline. This avoids a segfault. (DLR)
David Lawrence Ramseyc13b7f02005-01-01 07:28:15 +00001166 do_input()
1167 - Add finished parameter, used to indicate when we run or try to
1168 run a function associated with a shortcut. (DLR)
David Lawrence Ramseyfc693212004-12-23 17:43:27 +00001169 main()
1170 - Try to automatically detect whether UTF-8 support is needed by
1171 setting the NO_UTF8 flag if setlocale() returns a string that
David Lawrence Ramseyd456bfa2005-03-18 19:07:25 +00001172 doesn't contain "UTF8" or "UTF-8", case insensitively. When
1173 using slang 2.x, enable UTF-8 support with SLutf8_enable().
1174 (DLR, string checks beyond case-sensitive "UTF-8" adapted from
1175 Debian's UTF-8 patch for slang)
David Lawrence Ramsey2bd22762005-01-18 16:43:18 +00001176- nano.h:
1177 - Remove now-unneeded #defines for functions that now have
1178 multibyte equivalents. (DLR)
David Lawrence Ramsey50406662005-01-19 19:52:42 +00001179 - Remove now-unneeded MIN_EDITOR_COLS. (David Benbennick)
David Lawrence Ramsey1307aae2005-01-07 19:02:47 +00001180- utils.c:
1181 regexec_safe()
1182 - Remove redundant regexec #define, and move the regexec #undef
1183 to nano.h. (DLR)
1184 is_blank_char()
1185 - Rewrite to use ctype functions instead of checking directly
1186 for spaces and tabs. (DLR)
David Lawrence Ramsey116c8282005-01-14 03:22:54 +00001187 revstrstr(), revstristr()
1188 - Add asserts. (DLR)
David Lawrence Ramsey698263c2004-11-25 05:05:41 +00001189- winio.c:
David Lawrence Ramseyc275dc52005-03-08 17:45:36 +00001190 get_buffer()
1191 - If we get ERR when using blocking input, it means that the
1192 input source that we were using is gone. In this case, call
1193 handle_hupterm(), so that nano dies gracefully instead of
1194 going into an infinite loop. (DLR, found by Jim Uhl)
David Lawrence Ramseyf326ed72004-12-05 05:42:46 +00001195 titlebar()
David Lawrence Ramsey2c70a4e2004-12-05 06:03:46 +00001196 - Rename some variables for consistency, make space an int
1197 instead of a size_t, properly handle the case where the prefix
1198 length plus the path length is greater than the amount of
1199 space available, and fix a typo in an assert. (DLR)
David Lawrence Ramseyc1095492004-11-27 15:18:34 +00001200 unget_kbinput()
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +00001201 - Remove the wide character handling, as it didn't work properly
1202 with respect to function keys. (DLR)
David Lawrence Ramsey698263c2004-11-25 05:05:41 +00001203 get_kbinput(), get_translated_kbinput(), get_ascii_kbinput(),
1204 get_untranslated_kbinput()
1205 - Make the ascii_digits variables ints instead of size_t's,
1206 since they will only hold very small values. (DLR)
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +00001207 get_kbinput()
1208 - Remove the wide character handling, as it didn't work properly
1209 with respect to adding multiple wide characters at once, and
1210 ungetting them just caused other problems elsewhere. (DLR)
1211 get_translated_kbinput()
1212 - Remove the wide character handling, as it didn't work properly
1213 with respect to adding multiple wide characters at once, and
1214 ungetting them just caused other problems elsewhere. (DLR)
1215 - Use if statements instead of switch/case statements to handle
1216 ASCII character sequence mode, as they take up less room.
1217 get_ascii_kbinput()
1218 - Use if statements instead of switch/case statements to handle
1219 ASCII character sequence mode, as they take up less room.
David Lawrence Ramseyc82997d2004-11-27 15:00:18 +00001220 get_verbatim_kbinput()
1221 - Don't pass v_kbinput in as a parameter, since we're
1222 dynamically allocating it and then returning it. (DLR)
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +00001223 - Remove v_first parameter, and go back to the old behavior of
1224 putting back the first character of the escape sequence, as it
1225 worked just as well and was less complicated. (DLR)
David Lawrence Ramseyf4a799a2005-01-08 06:16:19 +00001226 get_mouseinput()
1227 - Return TRUE instead of FALSE only when we have a control key,
1228 a prinary meta key sequence, or both. (DLR)
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +00001229 get_shortcut()
David Lawrence Ramseybfcba162004-12-05 06:11:01 +00001230 - Add a debug message. (DLR)
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +00001231 - Take kbinput as a reference instead of a value, so that it's
1232 translated when the key is translated to its equivalent
1233 control key or meta key shortcut. (DLR)
David Lawrence Ramseyf4a799a2005-01-08 06:16:19 +00001234 - Return s instead of NULL only when we have a control key, a
1235 prinary meta key sequence, or both. (DLR)
David Lawrence Ramsey1483ee32004-11-29 00:30:07 +00001236 get_toggle()
David Lawrence Ramseybfcba162004-12-05 06:11:01 +00001237 - Add a debug message. (DLR)
David Lawrence Ramseyf4a799a2005-01-08 06:16:19 +00001238 bottombars()
1239 - Initialize foo, in case a keystroke meets none of the handled
1240 cases. (DLR)
David Lawrence Ramsey637b8bb2005-01-17 05:06:55 +00001241 total_refresh()
1242 - Refresh bottomwin using the value of currshortcut, and change
1243 the code around do_refresh() calls to accommodate this. (DLR)
David Lawrence Ramsey85616c42005-03-17 18:11:08 +00001244 - Split out the code that updates the screen before refreshing
David Lawrence Ramseyc54c4d12005-06-18 15:49:17 +00001245 it into the new function total_redraw().
David Lawrence Ramseyb9ddb802005-03-17 17:56:48 +00001246 do_help()
1247 - Refresh the screen when Ctrl-L is pressed in the help browser,
1248 as Pico does. (DLR)
David Lawrence Ramsey6ecbdd32004-11-27 21:39:01 +00001249- configure.ac:
1250 - Remove specific references to control key shortcuts. (DLR)
David Lawrence Ramseyba1ab862005-03-20 02:50:31 +00001251 - Check for the wide versions of ncurses or slang, without which
1252 multibyte strings don't seem to be displayed properly, and
1253 associated multibyte/wide character functions. (DLR)
David Lawrence Ramsey4fd76ba2004-12-24 18:11:53 +00001254 - Check for wchar.h, for those systems that need it for the
1255 wcwidth() prototype. (DLR)
1256 - Remove checks for all include files that we include
1257 unconditionally. (DLR)
1258 - Remove references to termio.h here and elsewhere, since it's
1259 obsolete and it defines a struct termio that we don't use
1260 anywhere. (DLR)
1261 - Typo fixes. (DLR)
David Lawrence Ramsey496488c2005-03-16 15:34:22 +00001262 - Add checks for isascii(), iswalnum(), iswblank() or
1263 iswspace(), mblen(), and wctype.h. (DLR)
David Lawrence Ramsey1fc55a22005-03-19 21:33:13 +00001264- README:
1265 - Updated for the 1.3 branch. (DLR)
1266- README.CVS:
1267 - Updated to mention the need for a wide character-supporting
1268 version of curses or slang if UTF-8 support is desired. (DLR)
David Lawrence Ramsey11c83d32005-01-02 21:26:53 +00001269- doc/faq.html:
1270 - Remove now-inaccurate note about verbatim input's not working
David Lawrence Ramseyf0a53f02005-01-03 19:56:56 +00001271 at prompts, and update its description to mention that it
1272 handles hexadecimal values now. (DLR)
David Lawrence Ramsey256a8902005-03-09 22:53:11 +00001273 - Add question about opening files with names beginning with
1274 '+'s, and add a few more miscellaneous cosmetic fixes.
David Lawrence Ramsey5cc14f22005-01-17 05:24:26 +00001275- nanorc.sample:
David Lawrence Ramsey9c3edc02004-12-04 18:14:12 +00001276 - Add return to the "c-file" regexes. (DLR)
David Lawrence Ramseyf647c482005-01-03 20:07:26 +00001277 - Clarify the text describing good values for whitespace
1278 display. Since ASCII is technically only seven bits wide,
1279 characters 128-255 aren't ASCII. (DLR, suggested by Michael
1280 Piefel)
David Lawrence Ramsey5cc14f22005-01-17 05:24:26 +00001281 - Add the "morespace" option. (DLR)
David Lawrence Ramsey159bdfd2005-01-20 16:40:24 +00001282 - Add support for characters to the "c-file" regexes. (DLR)
David Lawrence Ramsey6e60db62005-03-10 22:52:21 +00001283 - Add the hexadecimal equivalents of the decimal values
1284 suggested for whitespace display, now that it can handle
1285 multibyte characters. (DLR)
David Lawrence Ramseybca59d62005-03-11 20:22:48 +00001286 - Add "manpage" regex. (Mike Frysinger, minor tweaks by DLR)
David Lawrence Ramsey5cc14f22005-01-17 05:24:26 +00001287- nano.1. nanorc.5, nano.texi:
1288 - Add the "morespace" option, and sync with the descriptions in
1289 nanorc.sample in a few places. (DLR)
David Lawrence Ramseybca59d62005-03-11 20:22:48 +00001290 - Miscellaneous wording tweaks. (DLR)
David Lawrence Ramseyb54155c2005-01-12 03:25:57 +00001291- src/Makefile.am:
1292 - Add chars.c to nano_SOURCES. (DLR)
David Lawrence Ramseye3013e32005-01-14 18:47:42 +00001293 - If we're installing and the "rnano" symlink already exists,
1294 remove it so that we can create it again without an error.
1295 (DLR)
David Lawrence Ramsey543ecf62005-03-19 21:20:20 +00001296- AUTHORS:
1297 - Updated to mention UTF-8 support.
David Lawrence Ramsey962202e2004-11-22 17:58:06 +00001298
David Lawrence Ramsey2c86dc62004-11-22 17:55:17 +00001299GNU nano 1.3.5 - 2004.11.22
David Lawrence Ramseya0b5ba22004-08-25 15:39:10 +00001300- General:
1301 - Convert more ints that hold only TRUE and FALSE values to
1302 bools. (DLR)
David Lawrence Ramseyc7ca28a2004-09-07 21:51:49 +00001303 - Consolidate the code for finding and running a shortcut in a
1304 shortcut list, the code for finding and toggling a toggle in a
1305 toggle list, and the code for doing both of those and
1306 interpreting mouse clicks in the edit window. Also move the
1307 code for do_mouse() to get_edit_mouse() and tweak it to
1308 properly handle cases where a shortcut isn't clicked. New
1309 functions get_shortcut(), get_toggle(), get_edit_input(), and
1310 get_edit_mouse(); changes to do_browser(), do_justify(),
1311 do_help(), and main(). (DLR)
David Lawrence Ramseyd1322102004-08-26 04:22:54 +00001312 - Simplify a few more translated messages. (DLR)
Jordi Mallachcc79a9a2004-08-31 00:23:16 +00001313 - Translation updates (see po/ChangeLog for details).
David Lawrence Ramsey8bf08092004-09-01 22:08:57 +00001314 - Remove reference to @includedir@ in src/Makefile.am, as it's
1315 unneeded and can break cross-compilation. (DLR, found by Mike
1316 Frysinger)
David Lawrence Ramsey02517e02004-09-05 21:40:31 +00001317 - Overhaul the file opening, reading, and loading operations to
1318 increase efficiency, avoid problems on invalid filenames
1319 specified on the command line, and eliminate corner cases that
1320 erroneously leave edittop or current NULL when they shouldn't
1321 be. Also split out the code to execute a command into a
1322 separate function, eliminate a workaround for one of the
1323 aforementioned corner cases, handle files with a mix of DOS
1324 and Mac format lines, and remove the code to turn on the
1325 NO_CONVERT flag when opening a binary file, as it's not always
1326 reliable and will cause problems with UTF-8 text files. New
1327 functions open_file(), execute_command(), and mallocstrassn();
1328 changes to read_line(), load_file(), read_file(), open_file(),
1329 get_next_filename(), do_insertfile(), do_insertfile_void(),
David Lawrence Ramsey54236802005-06-28 05:56:16 +00001330 do_alt_speller(), and edit_refresh(). (David Benbennick) DLR:
David Lawrence Ramsey02517e02004-09-05 21:40:31 +00001331 Add a few minor fixes to make sure that current is set
1332 properly in all cases, indicate on the statusbar when the file
1333 has a mix of DOS and Mac format lines, move the test for DOS
1334 line endings from read_line() to read_file() to avoid
1335 inaccurate statusbar messages and to reduce fileformat to a
1336 local variable in read_file(), eliminate another workaround in
1337 edit_update(), rename open_the_file() to open_file() since the
1338 latter has been removed, and rename load_a_file() to
1339 load_buffer().
David Lawrence Ramseye5d8f322004-09-30 22:07:21 +00001340 - Add alternative shortcuts to the main and search shortcut
1341 lists for moving to the beginning and end of a paragraph and
1342 justifying the entire file: Meta-( (Meta-9), Meta-) (Meta-0),
1343 and Meta-J, respectively. Do this because Pico's practice of
1344 putting these shortcuts only in the search shortcut list is
1345 rather odd. (DLR)
David Lawrence Ramsey013344c2004-09-22 22:45:08 +00001346 - Turn off extended input processing (the IEXTEN termios flag)
1347 as nano 1.2.x does. New function disable_extended_input();
1348 changes to terminal_init(). (DLR)
David Lawrence Ramseyf3ca80e2004-09-23 21:52:58 +00001349 - Remove redundant include of limits.h from nano.c. nano.c
1350 includes nano.h and nano.h includes limits.h. (DLR)
David Lawrence Ramseyeb16f432004-09-27 01:04:50 +00001351 - Add a func_key flag to the low-level input functions and the
1352 currently existing high-level input functions, to indicate
1353 extended keypad values. This is needed for UTF-8 support.
David Lawrence Ramseyc59979f2004-10-23 02:47:39 +00001354 Changes to unget_kbinput(), get_kbinput(),
1355 get_translated_kbinput(), get_shortcut(), get_edit_input(),
1356 etc. (DLR)
David Lawrence Ramsey04a8d1c2004-09-28 22:14:58 +00001357 - Add a multibuffer mode toggle to the "Execute Command" prompt,
1358 for consistency with the "Read File" prompt. Changes to
1359 do_insertfile() and shortcut_init(). (DLR)
David Lawrence Ramseye5d8f322004-09-30 22:07:21 +00001360 - Add an ^X toggle to the "Execute Command" prompt to go back to
1361 the "Insert File" prompt, and add a ^T toggle to the "Go To
1362 Line" prompt to go back to the "Where Is" prompt. Changes to
1363 do_insertfile(), shortcut_init(), do_gotoline(), etc.
1364 - Make sure a few uninitialized static variables are initialized
1365 to sane values. (DLR)
David Lawrence Ramsey7c1f17a2004-10-03 13:47:26 +00001366 - After reading in a file and detecting the format it's in, set
1367 the file format flags (DOS_FILE and MAC_FILE) to match, and
1368 preserve them across multiple file buffers. Changes to
David Lawrence Ramsey53d7bce2005-04-05 14:18:41 +00001369 read_file(), add_open_file(), and load_open_file(). (DLR,
David Lawrence Ramsey7c1f17a2004-10-03 13:47:26 +00001370 suggested by Bill Soudan)
David Lawrence Ramsey28caf142004-10-07 20:54:52 +00001371 - Remove the -D/--dos and -M/--mac command line options, as they
David Lawrence Ramseycfa4a9c2004-10-24 17:20:31 +00001372 aren't much use with the new file format autodetection. Also
1373 remove the global versions of the toggles, so that they can
1374 only be used at the "Write File" prompt as similar options
1375 can. Finally, change the Mac format toggle to Meta-M, since
1376 that no longer conflicts with the global -m/--mouse toggle.
1377 (DLR)
David Lawrence Ramseyfc965a42004-10-15 01:51:36 +00001378 - Add support for reading in UTF-8 sequences to the low-level
1379 input routines. Changes to get_kbinput() and
David Lawrence Ramsey4e8e4952004-10-14 21:59:45 +00001380 get_translated_kbinput(). (DLR)
David Lawrence Ramseye5e88fd2004-10-31 13:20:30 +00001381 - Reduce search_last_line to a static variable in search.c, and
1382 allow it to be set to FALSE via a function. New function
1383 findnextstr_wrap_reset(); changes to do_int_spell_fix(),
1384 findnextstr(), do_search(), do_research(), do_replace_loop(),
1385 do_replace(), and do_find_bracket(). (DLR, problem with making
1386 search_last_line local to findnextstr() found by Rocco)
David Lawrence Ramsey2eb74592004-10-21 16:25:44 +00001387 - When saving or changing file positions, be sure not to ignore
1388 placewewant. Changes to do_int_spell_fix(), findnextstr(),
1389 do_replace_loop(), and do_replace(). (DLR)
David Lawrence Ramsey687776b2004-10-30 01:16:08 +00001390 - Convert current_x and mark_beginx to size_t's, and convert
1391 some functions that use them as a parameter to use size_t as
1392 well. Also change some related assertions to handle them.
1393 (David Benbennick and DLR)
David Lawrence Ramsey40bdb682004-11-03 22:03:41 +00001394 - Add code to partition a filestruct between a set of arbitrary
1395 coordinates. Given the coordinates of the beginning and end
1396 of the mark, this allows proper and easier handling of saving
1397 marked selections, replacing text only in marked selections
1398 (suggested by Joseph Birthisel), and spell-checking marked
1399 selections using either the internal or alternate spell
1400 checker. Do all these using a global partition structure.
1401 New functions partition_filestruct(),
1402 unpartition_filestruct(), remove_magicline(), and
1403 get_totals(); changes to write_marked(), do_int_spell_fix(),
1404 do_alt_speller(), handle_sigwinch(), and do_replace_loop().
1405 (DLR)
David Lawrence Ramsey84d0d592004-11-04 03:53:11 +00001406 - Remove most redundant includes of sys/stat.h. It's included
1407 in nano.h, so it doesn't need to be included in files that
1408 include nano.h. (DLR)
David Lawrence Ramsey3e0c8a62004-11-04 04:08:18 +00001409 - Remove the DOS_FILE and MAC_FILE flags, as they're only used
1410 in files.c, and replace them with a static file_format enum.
1411 Change the openfilestruct structure accordingly in order to
David Lawrence Ramseybe246c02004-11-04 13:40:58 +00001412 handle this. (DLR)
David Lawrence Ramsey00cca052004-11-06 20:33:43 +00001413 - Convert some ints with predefined boundaries to enums. (DLR)
Jordi Mallach55381aa2004-11-17 23:17:05 +00001414 - Include config.h only if HAVE_CONFIG_H. (Jordi)
David Lawrence Ramsey07e25892004-11-04 13:47:28 +00001415- cut.c:
David Lawrence Ramsey649b4312004-11-13 01:32:17 +00001416 cut_marked_segment()
1417 - Respect concatenate_cut, as we need to use it if we do a
1418 marked cut and immediately follow it with a cut-to-end (which
1419 uses this function). (DLR)
David Lawrence Ramseybfb98f82004-11-12 21:46:14 +00001420 do_cut_text()
1421 - Set concatenate_cut to TRUE unconditionally when doing a
1422 marked cut. This fixes an incompatibility with Pico where an
1423 extra line is uncut if we do a marked cut that includes the
1424 magicline and immediately follow it with an unmarked cut.
1425 (DLR)
David Lawrence Ramsey00cca052004-11-06 20:33:43 +00001426 do_uncut_text()
1427 - Maintain current_y's value when uncutting blocks so that
1428 smooth scrolling works correctly. (DLR)
David Lawrence Ramsey146bb602004-08-27 21:02:38 +00001429- files.c:
David Lawrence Ramsey3e0c8a62004-11-04 04:08:18 +00001430 read_file()
1431 - Rename variable fileformat to format, to avoid confusion with
1432 the file_format enum type. (DLR)
David Lawrence Ramsey78d644a2004-11-05 16:24:35 +00001433 load_buffer()
1434 - Don't change the file format when we insert another file into
1435 the current one. (DLR)
David Lawrence Ramsey146bb602004-08-27 21:02:38 +00001436 do_insertfile()
David Lawrence Ramseybe908f62004-10-01 18:34:30 +00001437 - Simplify by reusing variables whereever possible, and add a
1438 parameter execute to indicate whether or not to be in "Execute
1439 Command" mode. (DLR)
David Lawrence Ramsey045883a2004-10-05 20:11:31 +00001440 - Rework so that goto is no longer needed, using do_writeout()
1441 as a model. (DLR)
1442 - If file browsing succeeds, call statusq_abort() so that the
1443 cursor position at the statusbar is reset. (DLR)
David Lawrence Ramsey487149e2004-10-05 20:24:48 +00001444 - Add missing #ifdefs around the wrap_reset() call so that nano
1445 compiles with wrapping disabled again. (DLR)
David Lawrence Ramseyb73c0c02004-11-05 15:25:53 +00001446 - If we're not inserting a file into a new buffer, partition the
1447 current buffer so that it's effectively a new buffer just
1448 before inserting the file, and only restore placewewant
1449 afterwards. This is the same behavior we would get if we
David Lawrence Ramsey3d67c112004-11-05 15:39:36 +00001450 opened the file, added all of it to the cutbuffer, closed the
1451 file, and uncut at the current cursor position. (DLR)
David Lawrence Ramsey97b90462004-11-15 23:10:56 +00001452 - Maintain current_y's value when inserting so that smooth
1453 scrolling works correctly. (DLR)
David Lawrence Ramsey045883a2004-10-05 20:11:31 +00001454 do_writeout()
1455 - Restructure if blocks for greater efficiency, using
1456 do_insertfile() as a model. (DLR)
1457 - Simplify where possible, and use an int retval to hold the
1458 return value instead of i. (DLR)
1459 - If file browsing succeeds, call statusq_abort() so that the
1460 cursor position at the statusbar is reset. (DLR)
1461 - Remove unneeded calls to display_main_list(). (DLR)
1462 do_writeout_void()
1463 - Call display_main_list(), for consistency with
1464 do_insertfile_void(). (DLR)
David Lawrence Ramseyca92bec2004-10-22 03:33:54 +00001465 write_file()
1466 - If we've tried to write to an unwritable file and we're not
1467 prepending, tempname is NULL when it's passed to unlink().
1468 This can cause problems if unlink() can't handle NULL, so
1469 don't call it in that case. (David Benbennick)
David Lawrence Ramsey4b7e3c32004-10-15 16:25:56 +00001470 write_marked()
1471 - Remove check for MARK_ISSET's not being set. (DLR)
David Lawrence Ramseyf1c395d2004-10-03 19:26:13 +00001472 open_prevfile(), open_nextfile()
David Lawrence Ramsey3e189a82004-10-03 19:18:48 +00001473 - Translate the "New Buffer" string when displaying "Switched
1474 to" messages on the statusbar. (DLR)
David Lawrence Ramsey8091d332004-11-16 02:23:10 +00001475 input_tab()
1476 - Fix snprintf() call so that we don't segfault when trying to
David Lawrence Ramseya98fd752004-11-16 13:09:43 +00001477 complete a filename containing %'s. (Ulf Härnhammar)
David Lawrence Ramseya16b27f2004-08-26 01:29:25 +00001478- global.c:
1479 shortcut_init()
1480 - Remove redundant NANO_SMALL #ifdef. (DLR)
David Lawrence Ramsey1e729712004-09-28 15:17:47 +00001481 - Change an erroneous _() around the "New Buffer" string to
1482 N_(). (DLR)
David Lawrence Ramsey8381fdd2004-11-01 22:40:02 +00001483 - Add new key aliases: F15 for "Mark Text" (DLR) and F16 for
1484 "Where Is Next" (Chris).
David Lawrence Ramsey4b4b6082004-11-01 22:54:40 +00001485 - Leave "Mark Text" and "Where Is Next" out entirely when
1486 NANO_SMALL is defined. Since they aren't in the visible main
1487 list, there's no point in having them in but disabled. (DLR)
David Lawrence Ramsey02085d72004-11-07 16:04:18 +00001488 - In the search prompt shortcut list, move "Full Justify" to
1489 after "History", so that the latter is visible onscreen
1490 again. (DLR)
David Lawrence Ramsey50c7f2d2004-08-27 17:02:05 +00001491- nano.c:
David Lawrence Ramsey02517e02004-09-05 21:40:31 +00001492 die_save_file()
1493 - Clarify the error message when there are too many backup files
1494 and the current one can't be written. (DLR)
David Lawrence Ramseydb6015c2004-09-11 21:41:13 +00001495 help_init()
1496 - Rework to be a bit more flexible. Only add tabs for shortcut
1497 key entries if those entries exist, and if there's only one
1498 entry left but there's room for more than one, add enough tabs
David Lawrence Ramseyd402e712004-11-01 22:37:36 +00001499 to put that entry at the end. Also, make sure a function key
1500 is displayed in the middle if it's the first entry. These
1501 changes allow e.g. the miscellaneous meta key sequence to be
1502 displayed in a shortcut that has a control key, a primary meta
1503 key sequence, and a miscellaneous meta key sequence, but no
1504 function key. (DLR)
David Lawrence Ramsey381d4832004-10-18 01:51:43 +00001505 - Update the help text to mention replacing and spell checking
1506 only selected text, and also add a few cosmetic fixes to it.
1507 (DLR)
David Lawrence Ramseyfdd3bec2004-11-07 21:30:55 +00001508 - Update the help text to mention how to get a blank buffer at
1509 the "Execute Command" prompt. (DLR)
David Lawrence Ramsey7a97e182004-10-30 01:03:15 +00001510 do_prev_word()
1511 - Tweak to avoid an infinite loop, since current_x is now a
1512 size_t and hence is unsigned. (DLR)
David Lawrence Ramseyd93ee682004-10-09 16:59:43 +00001513 do_int_spell_fix()
1514 - Move the REVERSE_SEARCH flag toggling into the NANO_SMALL
1515 #ifdef, since the tiny version of nano doesn't support reverse
David Lawrence Ramsey49d5c1b2004-10-11 13:55:33 +00001516 searching. Move the CASE_SENSITIVE flag toggling out in order
David Lawrence Ramsey646bf912004-10-11 14:00:46 +00001517 to allow the internal spell checker to work properly when
1518 NANO_SMALL is defined and DISABLE_SPELLER isn't. Also, turn
1519 the USE_REGEXP flag off during spell checking in order to
1520 avoid a potential segfault. (DLR)
David Lawrence Ramsey410efe92004-10-26 16:54:19 +00001521 - Fix a problem where if the cursor is in the middle of a file,
1522 the spell checker will sometimes only correct the misspelled
1523 word instances that appear before the cursor position and then
1524 stop. (Rocco)
David Lawrence Ramsey9bf486f2004-10-26 20:58:30 +00001525 - Use do_replace_loop()'s canceled parameter in order to ensure
1526 that the spell checking stops if we canceled at the replace
1527 prompt. (DLR)
David Lawrence Ramsey439fbe32004-10-16 04:56:34 +00001528 do_alt_speller()
1529 - Call terminal_init() unconditionally after running the
1530 alternate spell checker, so that the terminal state is
1531 properly restored in all cases. (DLR)
David Lawrence Ramseyfd73c462004-09-11 21:28:36 +00001532 justify_format()
1533 - For more compatibility with Pico, remove extra space after a
1534 character in punct if that character is the same as the one
1535 before it. For example, with the default values of punct and
1536 brackets, only one space will be left after "...". (DLR)
David Lawrence Ramsey50c7f2d2004-08-27 17:02:05 +00001537 do_para_begin(), do_para_end()
David Lawrence Ramseyc5100422004-08-27 20:28:34 +00001538 - Maintain current_y's value when moving up or down lines so
1539 that smooth scrolling works correctly. (DLR)
David Lawrence Ramseyd08348b2004-09-18 22:02:21 +00001540 breakable(), break_line()
1541 - Make goal a ssize_t instead of an int, since fill is now a
1542 ssize_t, and the position at which a line is broken can be
1543 greater than COLS. (DLR)
David Lawrence Ramseybf1346f2004-10-22 20:25:56 +00001544 main()
1545 - Tweak the command line parsing routine so that multiple +LINE
1546 flags are properly interpreted in multibuffer mode. (DLR)
David Lawrence Ramsey02517e02004-09-05 21:40:31 +00001547- nano.h:
1548 - Add WIDTH_OF_TAB #define, containing the default width of a
1549 tab. (DLR)
David Lawrence Ramseybe246c02004-11-04 13:40:58 +00001550 - Move the PATH_MAX #define here from files.c.
David Lawrence Ramsey3e0c8a62004-11-04 04:08:18 +00001551 - Remove unused COPYFILEBLOCKSIZE #define. (DLR)
David Lawrence Ramsey50af6ea2004-11-07 15:29:40 +00001552- proto.h:
1553 - Add missing NANO_SMALL #ifdef around the cut_marked_segment()
1554 prototype. (DLR)
David Lawrence Ramsey19420aa2004-08-18 16:14:18 +00001555- rcfile.c:
1556 parse_rcfile()
1557 - Add missing brackets around an if statement block so that
1558 parsing the numeric argument after "tabsize" works properly
1559 again. (DLR, found by Mike Frysinger)
David Lawrence Ramsey02517e02004-09-05 21:40:31 +00001560 - Since flag values are longs, use "%ld" instead of "%d" in the
1561 debugging messages indicating when a flag is set or unset.
1562 (DLR)
David Lawrence Ramseyc5100422004-08-27 20:28:34 +00001563- search.c:
David Lawrence Ramsey49d5c1b2004-10-11 13:55:33 +00001564 regexp_init()
1565 - If NANO_SMALL is defined, don't bother checking the
1566 CASE_SENSITIVE flag or using its value when compiling a list
1567 of matching regular expressions. (DLR)
David Lawrence Ramseyd532f192004-10-04 22:37:56 +00001568 search_init()
1569 - Add parameter use_answer. When it's TRUE, only set
1570 backupstring to answer. This is needed to preserve the text
1571 of the statusbar when switching to the search prompt from
1572 the "Go To Line" prompt. Also, set backupstring before doing
1573 anything else, add one minor efficiency tweak, and preserve
1574 the text of the statusbar no matter what when switching from
1575 the search prompt to the "Go To Line" prompt, since the
1576 toggling works both ways now and non-numeric text shouldn't be
1577 lost when going only one of those ways. (DLR)
David Lawrence Ramseye1ee22f2004-11-03 23:05:11 +00001578 - When we're replacing and the mark is on, display a prompt
1579 indicating that we're replacing text only in the selection
1580 instead of the usual prompt. (DLR)
David Lawrence Ramsey2eb74592004-10-21 16:25:44 +00001581 findnextstr()
1582 - Take the no_sameline parameter after can_display_wrap and
1583 wholewords, not after all other parameters. (DLR)
1584 - Maintain current_y's value when moving up or down lines so
1585 that smooth scrolling works correctly. (DLR)
1586 - Fix handling of the wholewords flag so that it works with
1587 regular expressions and in conjunction with the no_sameline
David Lawrence Ramsey85f8f462004-10-31 13:13:19 +00001588 flag, and add new parameter needle_len (used to return the
1589 length of the match). (DLR)
David Lawrence Ramsey491cad32004-10-08 23:06:01 +00001590 do_replace_loop()
David Lawrence Ramsey3de81bc2004-11-22 17:08:41 +00001591 - Miscellaneous cleanups: treat real_current as current and
1592 real_current_x as current_x, only turn the mark off and call
David Lawrence Ramsey491cad32004-10-08 23:06:01 +00001593 edit_refresh() if the mark was originally on, and make
1594 length_change a ssize_t. (DLR)
David Lawrence Ramsey53752e82004-10-18 22:19:22 +00001595 - Return ssize_t instead of int. (DLR)
David Lawrence Ramsey9bf486f2004-10-26 20:58:30 +00001596 - Add new parameter canceled, set to TRUE if we canceled at the
1597 prompt and FALSE otherwise. (DLR)
David Lawrence Ramsey381d4832004-10-18 01:51:43 +00001598- utils.c:
1599 regexp_bol_or_eol()
1600 - Don't assume any longer that string will be found if
1601 REG_NOTBOL and REG_NOTEOL are not set. (DLR)
David Lawrence Ramsey4a1fc552004-11-02 15:18:30 +00001602 mallocstrncpy()
1603 - New function, used as a malloc()ing equivalent of strncpy().
1604 (DLR)
1605 mallocstrcpy()
1606 - Refactor to be a wrapper for mallocstrncpy(). (DLR)
David Lawrence Ramsey90e59c12004-11-05 23:03:03 +00001607 mark_order()
1608 - Add new parameter right_side_up. Set it to TRUE If the mark
1609 begins with (mark_beginbuf, mark_beginx) and ends with
1610 (current, current_x), or FALSE otherwise. (DLR)
David Lawrence Ramseya0b5ba22004-08-25 15:39:10 +00001611- winio.c:
David Lawrence Ramseydfca1c42004-08-25 16:37:06 +00001612 unget_kbinput()
1613 - New function used as a wrapper for ungetch(). (DLR)
David Lawrence Ramsey6da969e2004-08-28 15:51:07 +00001614 get_kbinput()
1615 - When reading an escape sequence, set get_verbatim_kbinput()'s
1616 new first parameter to the first character of the sequence
1617 instead of putting that character back and reading the entire
1618 sequence afterwards. (DLR)
David Lawrence Ramsey5780b242004-10-14 20:48:38 +00001619 get_escape_seq_kbinput()
1620 - Make the escape_seq parameter a const int*, since it's never
1621 modified. (DLR)
David Lawrence Ramsey8381fdd2004-11-01 22:40:02 +00001622 - Support the escape sequences for F15 and F16. (DLR)
David Lawrence Ramsey6da969e2004-08-28 15:51:07 +00001623 get_verbatim_kbinput()
1624 - Add new parameter first. If first isn't ERR, make it the
1625 first character in the returned sequence instead of reading
1626 the first character in via blocking input. (DLR)
David Lawrence Ramseya0b5ba22004-08-25 15:39:10 +00001627 get_mouseinput()
1628 - Consolidate two if statements to increase efficiency. (DLR)
David Lawrence Ramseyfe0d3662004-08-26 01:43:16 +00001629 - Check kbinput against metaval instead of (erroneously) ctrlval
1630 when putting back a meta sequence. (DLR)
1631 - If there are more than MAIN_VISIBLE shortcuts available, only
1632 register clicks on the first MAIN_VISIBLE shortcuts, since
1633 bottombars() only shows that many shortcuts. (DLR)
David Lawrence Ramseye5d8f322004-09-30 22:07:21 +00001634 check_statblank()
1635 - Rename to check_statusblank(), and rename its associated
1636 global int statusblank too. (DLR)
David Lawrence Ramsey72d8e542004-09-25 00:45:07 +00001637 nanogetstr()
1638 - Refresh the screen when Ctrl-L is pressed at the statusbar
1639 prompt, as Pico does. (DLR)
David Lawrence Ramseye5d8f322004-09-30 22:07:21 +00001640 - Always return the key pressed by the user. (DLR)
1641 statusq()
1642 - Rework slightly to reset the cursor position when the user
1643 hits Enter as well as Cancel. This means that resetstatuspos
1644 no longer needs to be global. (DLR)
David Lawrence Ramsey045883a2004-10-05 20:11:31 +00001645 statusq_abort()
1646 - New function to set resetstatuspos to FALSE when we don't
1647 properly exit the statusbar prompt, e.g. when we get a file
1648 from the file browser). (DLR)
David Lawrence Ramsey0ff01a92004-10-25 15:00:38 +00001649 bottombars()
1650 - For efficiency, no longer dynamically allocate space for each
1651 visible shortcut, as they're all of a constant short length.
1652 (David Benbennick)
David Lawrence Ramsey02517e02004-09-05 21:40:31 +00001653 reset_cursor()
1654 - If this is called before any files have been opened, as it can
1655 be by statusbar(), put the cursor at the top left corner of
1656 the edit window before getting out. (DLR)
David Lawrence Ramsey50c7f2d2004-08-27 17:02:05 +00001657 edit_refresh()
1658 - Call edit_update() with NONE instead of CENTER when smooth
1659 scrolling is on, for consistency with the movement routines.
1660 (DLR)
David Lawrence Ramsey20b83502004-08-26 18:07:58 +00001661 edit_update()
1662 - Simplify so as not to require the fileptr parameter anymore,
1663 since it's set to current in all calls. (DLR)
David Lawrence Ramsey50c7f2d2004-08-27 17:02:05 +00001664 - Add comments better explaining what the update actually does,
David Lawrence Ramsey4aece062004-08-28 16:34:28 +00001665 and avoid an infinite loop when location is NONE and current_y
1666 is greater than (editwinrows - 1). (DLR)
David Lawrence Ramseya0b5ba22004-08-25 15:39:10 +00001667 do_yesno()
1668 - Don't bother assigning the value of get_mouseinput() to
1669 anything. Since allow_shortcuts is FALSE, its return value
1670 will always be FALSE. (DLR)
David Lawrence Ramsey1a5c4c62004-09-07 00:48:49 +00001671- configure.ac:
1672 - When calling AC_TRY_RUN() to test for a broken regexec()
1673 function, set the fourth parameter to default to "no" (since
1674 it apparently only occurs on glibc 2.2.3-based systems) so
1675 that cross-compiling will work. (DLR, found by Mike Frysinger)
David Lawrence Ramseya870ca22004-10-14 21:59:00 +00001676 - Simplify the curses library tests by only checking for
1677 initscr(), which ncurses, curses, and pdcurses should all
1678 have, and not tgetent(), which is a termcap-specific function.
1679 (DLR)
David Lawrence Ramseydb85ac72004-10-18 14:13:28 +00001680 - Check only for glib 2.x, as it's much more common than
1681 glib 1.2.x now, and it has a better v?snprintf()
1682 implementation. (DLR, suggested by Jordi)
Jordi Mallach1fabded2004-08-31 18:26:28 +00001683- nanorc.sample:
David Lawrence Ramsey2a60ea82004-08-29 14:42:03 +00001684 - Remove specific references to control key shortcuts other than
1685 XON and XOFF. (DLR)
David Lawrence Ramseybe908f62004-10-01 18:34:30 +00001686 - Add continue and goto to the "c-file" regexes. (DLR)
David Lawrence Ramseyfe656572004-10-21 17:11:40 +00001687 - Change the included speller value to "aspell -x -c". The -x
1688 option makes aspell not create backup files, and this is
1689 consistent with the internal spell checker's behavior. (DLR)
Jordi Mallach1fabded2004-08-31 18:26:28 +00001690- doc/man/fr/nano.1, doc/man/fr/nanorc.1:
1691 - Updated manpage translations by Jean-Philippe Guérard.
David Lawrence Ramseydb85ac72004-10-18 14:13:28 +00001692- README.CVS:
1693 - Mention the requirement for glib 2.x on systems lacking
1694 v?snprintf(), and add minor formatting changes.
David Lawrence Ramsey188f1692004-11-20 16:16:47 +00001695 - Mention the requirement for groff in order to create html
1696 versions of the manpages. (DLR)
David Lawrence Ramsey831c6402004-11-21 18:44:23 +00001697 - Update the given cvs commands so that they work again, and
1698 mention the need for ssh to do cvs checkouts. (DLR)
David Lawrence Ramseye56d9362004-11-21 18:51:30 +00001699 - List sh as an example of a Bourne shell. (DLR)
David Lawrence Ramsey0432e702004-11-05 17:09:11 +00001700- faq.html:
1701 - Fixed inaccuracy: Pico compatibility mode was made the default
1702 in nano 1.1.99pre1, not 1.2.2. (DLR)
David Lawrence Ramsey93eb2932004-11-05 18:01:33 +00001703 - Added question about how to type F13-F16 on terminals lacking
1704 keys past F12 (suggested by Chris), question about how to
1705 select text for the clipboard in X terminals with nano's mouse
1706 support turned on (answer found by Joseph Birthisel), and
1707 miscellaneous fixes and link updates. (DLR)
David Lawrence Ramseycfa4a9c2004-10-24 17:20:31 +00001708- nano.1:
David Lawrence Ramseye93e03e2004-10-24 16:47:54 +00001709 - Eliminate references to the now removed -D/--dos and -M/--mac
1710 command line options. (DLR)
David Lawrence Ramseycfa4a9c2004-10-24 17:20:31 +00001711- nano.texi:
1712 - Eliminate references to the now removed -D/--dos and -M/--mac
1713 command line options, and their corresponding toggles. (DLR)
David Lawrence Ramseye3016d92004-11-11 14:35:31 +00001714- m4/Makefile.am:
1715 - Add glib-2.0.m4 to EXTRA_DIST, so that nano builds from CVS
1716 with automake 1.7.x again. For some reason, automake 1.9.x
1717 didn't have a problem with its (erroneously) being left out.
1718 (DLR, problem found by Chris)
David Lawrence Ramseyb802e702004-10-18 19:28:10 +00001719- m4/glib-2.0.m4:
1720 - New file imported from glib 2.4.7. This is needed to detect
1721 glib 2.x on systems that may not have it installed. (DLR,
1722 suggested by Jordi)
Jordi Mallachd7b63252004-11-18 00:05:14 +00001723- src/Makefile.am:
1724 - Don't use DEFS to define things. Use INCLUDES instead. (Jordi)
David Lawrence Ramsey013e8d12004-08-17 20:44:31 +00001725
David Lawrence Ramseyc6718cf2004-08-17 20:38:44 +00001726GNU nano 1.3.4 - 2004.08.17
David Lawrence Ramseyebd0d7c2004-07-01 18:59:52 +00001727- General:
1728 - More minor comment cleanups. (DLR)
David Lawrence Ramseyce62e822004-08-05 22:10:22 +00001729 - Convert more ints and functions using 0 and 1 to bools using
1730 TRUE and FALSE. (David Benbennick and DLR)
David Lawrence Ramsey86e851b2004-07-28 20:46:25 +00001731 - Change more instances of ints that have large enough upper
1732 bounds and which can never be negative to size_t's, and
1733 convert nano to handle them properly. (DLR)
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +00001734 - Convert the shortcut list functions and most related functions
David Lawrence Ramseyedab0cc2004-07-03 03:09:12 +00001735 to return void instead of int, as the return values of all
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +00001736 those functions are essentially unused. Changes to
1737 sc_init_one(), shortcut_init(), etc. (David Benbennick and
1738 DLR)
David Lawrence Ramseyedab0cc2004-07-03 03:09:12 +00001739 - Make flags and all variables meant to store the value of flags
1740 longs for consistency. (David Benbennick)
1741 - Rename the TEMP_OPT flags to TEMP_FILE, as it's more
1742 descriptive. (DLR)
David Lawrence Ramseya5dda842004-07-08 15:27:04 +00001743 - Remove unused global variable search_offscreen. (David
1744 Benbennick)
David Lawrence Ramsey576bf332004-07-12 03:10:30 +00001745 - Add new N_() macro to mark strings that aren't translated
1746 immediately, and convert nano to use it in cases where the
David Lawrence Ramsey76f63ff2004-08-05 15:45:09 +00001747 translated string is stored in a const char*. Changes
1748 to sc_init_one(), print1opt(), help_init(), rcfile_error(),
1749 do_credits(), etc. (David Benbennick) DLR: Do this for
1750 toggle_init_one() too.
1751 - Minor tweaks and clarifications to some option descriptions.
1752 (DLR)
David Lawrence Ramsey576bf332004-07-12 03:10:30 +00001753 - Overhaul the shortcut list and toggle list initialization
1754 code for efficiency. Changes to shortcut_init() and
1755 toggle_init(). (David Benbennick) DLR: Move "Cancel" to just
1756 after "Get Help" in the file browser list, for consistency
1757 with all the other lists, have the replace list accept all the
1758 same function keys as the search list, and clarify a few
1759 shortcut descriptions.
David Lawrence Ramsey49c3f242004-07-12 16:07:14 +00001760 - Convert nano to use the new parse_num() function to read in
1761 numeric values at the command line and in the rcfile, and
1762 duplicate the messages used in the rcfile in the command line
David Lawrence Ramseyc53ab2a2004-08-04 18:24:53 +00001763 for consistency. (David Benbennick) DLR: Tweak parse_num() to
1764 parse ssize_t values instead of ints and to return a bool
1765 indicating whether parsing succeeded. Convert tabsize,
David Lawrence Ramsey49c3f242004-07-12 16:07:14 +00001766 wrap_at, and fill to ssize_t in order to work with
1767 parse_num() properly and also to increase their capacity
1768 while keeping the ability to hold negative numbers in case of
1769 errors. Also exit instead of calling usage() in the event of
1770 an invalid fill value, for consistency with how an invalid
David Lawrence Ramsey36dd87b2004-07-18 17:43:43 +00001771 tabsize value is handled. Finally, handle invalid tabsize
David Lawrence Ramsey04419b92004-07-18 18:13:54 +00001772 entries in the rcfile the same way as on the command line,
1773 and reset tabsize and wrap_at to their default values if
1774 invalid rcfile entries are specified for them.
David Lawrence Ramseyaea4dab2004-07-13 17:09:24 +00001775 - Remove several unnecessary reset_cursor() calls. (David
1776 Benbennick)
David Lawrence Ramseyfd3039a2004-07-17 19:49:12 +00001777 - Include <sys/types.h> in proto.h. (David Benbennick) DLR:
1778 Remove some redundant inclusions of <sys/types.h> elsewhere.
David Lawrence Ramsey8aaf0302004-07-27 16:46:35 +00001779 - Move the main terminal initialization functions, aside from
1780 initscr(), into a new terminal_init() function, and convert
1781 nano to use it. (DLR)
David Lawrence Ramsey86e851b2004-07-28 20:46:25 +00001782 - Convert placewewant to a size_t, and convert some functions
1783 that use it as a parameter to use size_t as well. (David
1784 Benbennick and DLR)
David Lawrence Ramsey819c7f02004-07-30 03:54:34 +00001785 - Overhaul the paragraph searching code and some of the justify
1786 code to clarify it and fix a bug where searches from the
1787 previous paragraph would move up too far. Also make
1788 quotestr-related variables global so that they only have to be
1789 compiled once, and remove the no-longer-needed IFREG() macro.
1790 New functions begpar() and inpar(); changes to quote_length(),
1791 quotes_match(), do_para_search(), do_para_begin(),
1792 do_para_end(), and do_justify(). (David Benbennick)
David Lawrence Ramseya6d26d02004-07-30 22:52:44 +00001793 - Readded the errors flag and moved the ending prompt from
1794 rcfile_error() to parse_rcfile() so that we only get prompted
1795 once for all errors instead of separately for each error.
David Lawrence Ramsey7dfec432004-08-12 15:20:14 +00001796 (DLR) David Benbennick: Make sure that no rcfile error
1797 messages end in newlines, and show the ending prompt if we
1798 can't read the .nano_history file while starting nano.
David Lawrence Ramseyb8c479a2004-07-31 14:10:23 +00001799 - Don't treat the return value of strn?(case)?cmp() as boolean.
1800 (DLR and David Benbennick)
David Lawrence Ramsey76fb3ec2004-08-01 16:09:15 +00001801 - Automatically install a symlink "rnano" pointing to nano.
1802 Changes to src/Marefile.am. (DLR)
David Lawrence Ramsey22fac782004-08-05 15:16:19 +00001803 - Move the static int pid to the beginning of nano.c with all
1804 the other static variables. (DLR)
David Lawrence Ramsey00d77982004-08-07 21:27:37 +00001805 - Consolidate some if blocks to remove some redundant code.
1806 (David Benbennick)
David Lawrence Ramsey73cd1a52004-08-05 21:57:48 +00001807 - Fix warnings when compiling with ENABLE_NLS undefined and with
David Lawrence Ramseybe908f62004-10-01 18:34:30 +00001808 the fwritable-strings option. (David Benbennick)
David Lawrence Ramsey00d77982004-08-07 21:27:37 +00001809 - Add various #ifdefs to fix warnings and compilation problems
1810 when compiling with every option manually turned on, including
1811 NANO_SMALL. (David Benbennick)
David Lawrence Ramsey6420d442004-08-11 05:13:08 +00001812 - Simplify some of the rcfile and statusbar error messages, and
1813 make some of them more consistent. (David Benbennick and DLR)
1814 - Change some functions to take const char*'s instead of char*'s
1815 where possible. (David Benbennick)
David Lawrence Ramseybb50b302004-08-12 21:43:00 +00001816 - Tweak some #ifdefs around indent_length() and references to
1817 fill_flag_used to avoid warnings when compiling with
David Lawrence Ramseydf13e3b2004-08-12 19:48:21 +00001818 --disable-wrapping, --disable-justify, or a combination of the
1819 two. (DLR)
David Lawrence Ramseya27bd652004-08-17 05:23:38 +00001820 - Overhaul the routines used to read the rcfiles and history
1821 files for efficiency, make them work properly on lines over
1822 1023 characters long and on lines containing nulls, and make
1823 them properly handle the case where the user's home directory
1824 changes in the middle of a session. New functions
1825 histfilename() and writehist(); changes to
1826 thanks_for_all_the_fish(), load_history(), save_history(), and
1827 do_rcfile(). (David Benbennick)
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +00001828- files.c:
David Lawrence Ramsey049e4a52004-08-10 23:05:59 +00001829 get_next_filename()
1830 - Tweak for efficiency, and add the ".save" suffix to the file
1831 here. (David Benbennick)
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +00001832 close_open_file()
1833 - Tweak to no longer rely on the return values of
1834 open_(prev|next)file(). (DLR)
David Lawrence Ramseyc8c69d52004-07-03 03:22:23 +00001835 write_file()
1836 - For consistency with nano 1.2.x and with other editors, make
1837 the mode of newly created files 666 instead of 600 before
David Lawrence Ramseyadd65082004-10-31 14:40:40 +00001838 it's modified by the umask. (DLR, found by Toni Suokas)
David Lawrence Ramseyf7b5d932004-07-05 14:27:29 +00001839 do_writeout()
David Lawrence Ramsey6420d442004-08-11 05:13:08 +00001840 - If we're in restricted mode and the current filename isn't
David Lawrence Ramseyf7b5d932004-07-05 14:27:29 +00001841 blank, we can't change it, so disable tab completion in that
1842 case. (DLR)
David Lawrence Ramsey1536f862004-07-24 16:50:20 +00001843 - Fix spacing problem in the "Save Under Different Name"
1844 prompt. (DLR)
David Lawrence Ramseya539fce2004-06-29 00:43:56 +00001845- global.c:
1846 shortcut_init()
1847 - Fix erroneous #ifdef so that nano compiles with
David Lawrence Ramseya27bd652004-08-17 05:23:38 +00001848 --disable-justify again. (DLR, found by Mike Frysinger)
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +00001849 - Change the Cancel shortcut in the file browser to an Exit
1850 shortcut, to be more compatible with the current version of
1851 Pico. (DLR)
David Lawrence Ramsey576bf332004-07-12 03:10:30 +00001852 thanks_for_all_the_fish()
1853 - Delete topwin, edit, and bottomwin. (David Benbennick)
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +00001854- nano.c:
David Lawrence Ramsey049e4a52004-08-10 23:05:59 +00001855 die()
1856 - Don't add the ".save" suffix to a saved file here anymore,
1857 since get_next_filename() does that now. (David Benbennick)
1858 die_save_file()
1859 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramseyce62e822004-08-05 22:10:22 +00001860 help_init()
1861 - Fix the display of the translated key descriptions "Up" and
1862 "Space" under all circumstances, and make the help browser
1863 work properly when there are fewer than 24 columns available.
1864 (David Benbennick)
David Lawrence Ramsey22fac782004-08-05 15:16:19 +00001865 usage()
1866 - Don't translate the option strings for -Z/--restricted.
1867 (David Benbennick)
David Lawrence Ramsey9ef3adb2004-07-30 17:30:17 +00001868 do_enter()
1869 - Don't treat it as a special case when the user presses Enter
1870 on the last line of the screen and smooth scrolling is on, for
1871 consistency. (DLR)
David Lawrence Ramsey8aaf0302004-07-27 16:46:35 +00001872 do_alt_speller()
1873 - When reloading the newly spell-checked temporary file, call
1874 terminal_init() to make sure that all the original terminal
1875 settings are restored, as a curses-based alternative spell
1876 checker (e.g. aspell) can change them. (DLR)
David Lawrence Ramseyb8c479a2004-07-31 14:10:23 +00001877 quote_length()
1878 - Fix problem where quoted justify wouldn't work if HAVE_REGEX_H
1879 wasn't set. (David Benbennick)
David Lawrence Ramsey01a6bf42004-07-03 05:23:19 +00001880 do_justify()
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +00001881 - Add allow_respacing flag, used to indicate when we've moved to
David Lawrence Ramsey46938642004-07-03 14:15:58 +00001882 the next line after justifying the current line, and only run
1883 the respacing routine when it's true. This keeps the
1884 respacing routine from erroneously being run more than once on
1885 the same line. (DLR)
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +00001886 - Check for first_par_line's not being NULL and only run the
1887 renumbering and cutbuffer-splicing routines depending on that
1888 if that's the case. This fixes a segfault occurring when
1889 trying to do full justification on a file with no paragraphs
1890 (in which case there are no normal lines to renumber and no
1891 backed-up lines to be stored in the cutbuffer or spliced back
1892 in during unjustify). (DLR)
David Lawrence Ramsey72e51ab2004-07-02 14:31:03 +00001893 do_exit()
1894 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramseyaea4dab2004-07-13 17:09:24 +00001895 main()
1896 - Move the reset_cursor() call to the beginning of the main
1897 input loop, and remove the apparently unnecessary wrefresh()
1898 call. (David Benbennick)
David Lawrence Ramseyad1fd0d2004-07-27 15:46:58 +00001899 - Call setlocale() outside the ENABLE_NLS #ifdef, since UTF-8
1900 support won't work properly if the locale isn't set, whether
1901 NLS is enabled or not. (Junichi Uekawa)
David Lawrence Ramsey6b248562004-08-07 22:33:14 +00001902 - Add titlebar() calls before all open_file() calls and remove
1903 the titlebar() call after them, so that the titlebar is
David Lawrence Ramsey69a28122004-08-12 04:34:00 +00001904 displayed properly for all file(s) loaded. Also call
1905 display_main_list() after adding the first file to open_files,
1906 so that "Close" is properly displayed then instead of "Exit".
1907 (DLR)
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +00001908- nano.h:
1909 - Reassign the key for full justification to Ctrl-U, for
1910 compatibility with the current version of Pico. (DLR)
David Lawrence Ramsey819c7f02004-07-30 03:54:34 +00001911 - Remove justbegend enum, as it's no longer needed. (DLR)
David Lawrence Ramseyebd0d7c2004-07-01 18:59:52 +00001912- proto.h:
David Lawrence Ramseyf7080372004-07-08 17:15:10 +00001913 - Change the variables in the prototypes for do_justify(),
1914 get_verbatim_kbinput(), and get_mouseinput() to match the ones
1915 used in the actual functions. (DLR)
David Lawrence Ramseyedab0cc2004-07-03 03:09:12 +00001916 - Remove unused declaration of temp_opt. (David Benbennick)
David Lawrence Ramsey819c7f02004-07-30 03:54:34 +00001917 - Add missing copy_file() prototype. (David Benbennick)
David Lawrence Ramsey6420d442004-08-11 05:13:08 +00001918 - Move the load_history() and save_history() prototypes up to
1919 match their corresponding location in files.c. (DLR)
David Lawrence Ramseydb357a12004-06-29 12:36:25 +00001920- rcfile.c:
David Lawrence Ramsey576bf332004-07-12 03:10:30 +00001921 rcfile_msg()
David Lawrence Ramseya27bd652004-08-17 05:23:38 +00001922 - Removed and replaced with calls to rcfile_error(). (David
1923 Benbennick)
David Lawrence Ramsey576bf332004-07-12 03:10:30 +00001924 - Removed the reference to "starting nano" in the statusbar
1925 message, as it may be called when we exit if the history file
1926 can't be saved. (DLR)
David Lawrence Ramseydb357a12004-06-29 12:36:25 +00001927 parse_rcfile()
1928 - Have whitespace display default to off instead of on. (Mike
1929 Frysinger)
David Lawrence Ramseyedab0cc2004-07-03 03:09:12 +00001930 nregcomp()
1931 - Rename the variable flags to eflags so as not to conflict with
1932 the global flags. (DLR)
David Lawrence Ramseyf56cc9e2004-07-29 14:32:17 +00001933- search.c:
1934 do_replace_loop()
1935 - Make sure old_pww is updated to the current value of
1936 placewewant when a new match is found, so that edit_redraw()
1937 will redraw the screen properly when only placewewant changes.
1938 (DLR, found by Mike Frysinger)
David Lawrence Ramsey90625792004-07-30 20:21:34 +00001939 do_replace()
1940 - Instead of using edit_update() to redraw the screen with
1941 edittop at the top, set edittop beforehand and call
1942 edit_refresh(). (DLR)
1943 do_gotoline()
1944 - Use parse_num() to interpret a line entered by the user, and
1945 start the search for a line from current instead of fileage.
1946 (DLR)
David Lawrence Ramsey6420d442004-08-11 05:13:08 +00001947 do_gotopos(), find_node(), free_history()
David Lawrence Ramsey90625792004-07-30 20:21:34 +00001948 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramsey6420d442004-08-11 05:13:08 +00001949 free_history()
1950 - Only include when DEBUG is defined. (David Benbennick)
David Lawrence Ramsey49c3f242004-07-12 16:07:14 +00001951- utils.c:
1952 parse_num()
1953 - New function to parse numeric values, so that we don't have to
1954 duplicate code that calls strtol() all over the place. (David
1955 Benbennick) DLR: Renamed from parse_int() to parse_num() and
1956 converted to use ssize_t instead of int.
David Lawrence Ramsey6420d442004-08-11 05:13:08 +00001957 nstrnicmp()
1958 - Remove code chacking for n's being less than 0 that will never
1959 be run, since n is a size_t and is hence unsigned. (David
1960 Benbennick)
David Lawrence Ramseya27bd652004-08-17 05:23:38 +00001961 ngetdelim(), ngetline()
1962 - New functions equivalent to getdelim() and getline(), which
1963 are both GNU extensions. (DLR, adapted from GNU mailutils
David Lawrence Ramseyb4041d62004-08-17 16:04:48 +00001964 0.5 with minor changes to better integrate with nano and
1965 increase efficiency)
David Lawrence Ramseycff55582004-06-30 12:28:15 +00001966- winio.c:
David Lawrence Ramsey86e851b2004-07-28 20:46:25 +00001967 get_kbinput()
David Lawrence Ramseya27bd652004-08-17 05:23:38 +00001968 - Since the only valid values for escapes are 0, 1, and 2,
David Lawrence Ramsey86e851b2004-07-28 20:46:25 +00001969 convert it to an int. (DLR)
David Lawrence Ramseycff55582004-06-30 12:28:15 +00001970 get_control_kbinput()
1971 - Fix erroneous debugging statement so that nano compiles with
1972 --enable-debug again. (Jon Oberheide)
David Lawrence Ramsey0fb841a2004-07-01 17:04:23 +00001973 nanogetstr()
1974 - Tweak the code to update the edit window just before getting
1975 statusbar input for efficiency, and update bottomwin just
1976 before then too. (David Benbennick)
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +00001977 - Don't delete the statusbar line on UnCut, since the current
1978 version of Pico doesn't. (DLR)
David Lawrence Ramsey86e851b2004-07-28 20:46:25 +00001979 do_cursorpos()
1980 - Add assert to check whether totsize is correct. (David
1981 Benbennick)
David Lawrence Ramsey8037fe02004-07-23 12:30:40 +00001982 line_len()
1983 - Rename to help_line_len() so as not to conflict with the
1984 line_len variable used elsewhere, and move inside the
1985 DISABLE_HELP #ifdef surrounding do_help() since it's only
1986 called in do_help(). (DLR)
1987 do_help()
1988 - Have help_line_len() properly return an int again, since its
1989 value can't be larger than COLS. (DLR)
1990 - Allow the user to exit the help browser via Ctrl-C as well as
1991 Ctrl-X, for consistency with the file browser. (DLR)
David Lawrence Ramsey76fb3ec2004-08-01 16:09:15 +00001992- configure.ac:
1993 - Add AC_PROG_LN_S, so that we can portably create symlinks.
1994 (DLR)
David Lawrence Ramseya27bd652004-08-17 05:23:38 +00001995 - Check for getdelim() and getline(), which are both GNU
1996 extensions. (DLR)
David Lawrence Ramsey7d3817f2004-07-28 13:03:06 +00001997- nanorc.sample:
1998 - Add sample regexes for patch files. (Mike Frysinger)
David Lawrence Ramsey2d140c22004-07-28 13:50:43 +00001999 - Various improvements to the "c-file" regexes. Add double,
2000 typedef, extern, union, unsigned, inline, and long to the
2001 green list. (Mike Frysinger) DLR: Also add signed, short, and
2002 enum to the green list.
David Lawrence Ramsey8bf9ba02004-08-01 22:00:29 +00002003- nano.spec.in:
2004 - Tweak to include all files in %{_bindir} instead of just nano,
2005 so that the "rnano" symlink will be properly packaged. (DLR)
David Lawrence Ramseyd36715e2004-06-28 13:23:37 +00002006
David Lawrence Ramseye1151562004-06-28 13:17:33 +00002007GNU nano 1.3.3 - 2004.06.28
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00002008- General:
2009 - Minor comment cleanups. (DLR)
David Lawrence Ramsey604caf32004-04-19 02:44:13 +00002010 - Convert more ints used as boolean values to use TRUE and
2011 FALSE. (David Benbennick)
David Lawrence Ramsey5520e852004-04-07 00:44:35 +00002012 - Make sure the special control keys are handled the same way
2013 after the window is resized or we come out of suspend mode.
2014 Changes to do_cont() and handle_sigwinch(). (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002015 - Change some instances of ints that can never be negative to
2016 size_t's. (DLR)
David Lawrence Ramsey0a258082004-04-23 18:02:37 +00002017 - Add better explanations for and in the "Terminal breakage"
2018 comments, and handle missing key #ifdefs inside the functions
2019 that use those keys. (DLR)
David Lawrence Ramseyd893fa92004-04-30 04:49:02 +00002020 - Add restricted mode, accessible via the -Z/--restricted
2021 command line option or by invoking nano with any name
2022 beginning with 'r' (e.g. "rnano"). In restricted mode, nano
2023 will not read or write to any file not specified on the
2024 command line, read any nanorc files, allow suspending, or
2025 allow a file to be appended to, prepended to, or saved under a
2026 different name if it already has one. (IO ERROR) DLR: Also
2027 disable backup files and spell checking (since the latter can
2028 leave a pre-spell-checked version of the file in a temporary
2029 directory), use tail() to get the program name so that the
2030 check for its beginning with 'r' will work when a path is
2031 specified, disable toggles that are only useful with options
2032 that are disabled in restricted mode, call nano_disabled_msg()
2033 when trying to read or spell check a file instead of leaving
2034 the shortcuts out of the main list, and instead of acting as
2035 though TEMP_OPT is enabled when exiting with a modified file
2036 (which caused problems if the filename was blank), only allow
2037 a filename to be modified at the writeout prompt if it's blank
2038 beforehand. Changes to do_writeout(), toggle_init(),
2039 shortcut_init(), die_save_file(), and nanogetstr().
2040 - Call nano_disabled_msg() directly from the shortcut list
2041 instead of inside the disabled functions. (David Benbennick)
David Lawrence Ramsey0381c212004-05-01 01:21:38 +00002042 - Clarifications to comments explaining exactly what control
2043 characters and escape sequences are supported. (DLR)
David Lawrence Ramsey5aa39832004-05-05 21:36:50 +00002044 - Disable "Where Is Next" in tiny mode. (DLR)
David Lawrence Ramsey8d3e7f32004-05-13 17:28:03 +00002045 - Added the ability to justify the entire file at once, which
David Lawrence Ramsey91bc83a2004-06-25 01:52:10 +00002046 Pico has via ^W^J. Changes to backup_lines() and
2047 do_justify(); new functions do_justify_void() and
2048 do_full_justify(). (DLR)
David Lawrence Ramsey1cadddd2004-05-17 20:32:51 +00002049 - Modify the justification algorithm to work the same way as in
2050 the current version of Pico, i.e, add a space at the end of
David Lawrence Ramseya9a6ce02004-06-05 22:09:56 +00002051 each line of the justified paragraph except for the last one,
2052 and if there was a space at the end of the last one, remove
David Lawrence Ramsey2b6c3012004-06-10 01:35:02 +00002053 it. Changes to justify_format() and do_justify(). Note that
2054 we can no longer reliably detect the first modified line in a
2055 paragraph, since a line unmodified by justify_format() may get
2056 a space tacked onto the end of it or removed from the end of
2057 it later. The entire original paragraph is now always backed
2058 up, and justify_format() no longer has a non-modifying mode,
2059 so it's now only called in backup_lines(). (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002060 - Wrap the long jump code in NANO_SMALL #ifdefs, since we only
2061 use it if we're resizing the window, which is disabled when
2062 NANO_SMALL is defined. (DLR)
David Lawrence Ramseyc7acf692004-05-22 20:15:20 +00002063 - Add smart home key option, accessible via -A/--smarthome on
2064 the command line, "set smarthome" in the rcfile, and the
2065 Meta-H toggle in the edit window. Smart home works as
2066 follows: When Home is pressed anywhere but at the very
2067 beginning of non-whitespace characters on a line, the cursor
2068 will jump to that beginning (either forwards or backwards).
2069 If the cursor is already at that position, it will jump to the
2070 true beginning of the line. This option is disabled in tiny
2071 mode. Changes to do_home(), nanogetstr(), etc. (DLR;
2072 suggested by Stephan T. Lavavej)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002073 - Minor tweaks to the punctuation in some statusbar messages.
2074 (DLR)
David Lawrence Ramsey48ae9862004-05-28 17:23:33 +00002075 - Overhaul the low-level input routines into main routines that
2076 actually get the input and state machines that interpret the
2077 input. This allows better handling of the input (e.g. ignored
2078 keys are now always ignored instead of just being ignored when
2079 there are no escapes prefixing them) and will make it easier
2080 to port to interfaces that don't have blocking input. New
2081 functions reset_kbinput(), get_translated_kbinput(),
2082 get_control_kbinput(), and get_untranslated_kbinput(); changes
2083 to do_verbatim_input(), handle_sigwinch(), get_kbinput(),
2084 get_ascii_kbinput(), get_escape_seq_kbinput(), and
David Lawrence Ramsey7ea39ef2004-06-04 22:36:42 +00002085 get_verbatim_kbinput(); removal of get_ignored_kbinput() and
2086 get_accepted_kbinput(). (DLR)
David Lawrence Ramsey2ed225f2004-05-28 20:44:09 +00002087 - Overhaul all the movement functions in order to avoid
2088 redundant screen redraws (and regexec()s when color support is
2089 available) whenever possible during ordinary cursor movement
2090 when the text doesn't change. Do the same for moving in
2091 do_char(), do_delete(), do_next_word(), do_prev_word(),
2092 do_search(), do_research(), and do_replace_loop. Changes to
2093 do_first_line(), do_last_line(), do_home(), do_end(),
2094 do_page_up(), do_page_down(), do_up(), do_down(), do_left(),
2095 do_right(), do_delete(), do_backspace(), do_search(),
2096 do_research(), do_replace_loop(), do_find_bracket(), and
2097 edit_refresh(). New functions do_left_void(),
2098 do_right_void(), need_horizontal_update(),
David Lawrence Ramseyc21790d2004-05-30 03:19:52 +00002099 need_vertical_update(), edit_scroll(), and edit_redraw(). All
2100 of these functions but the first two require the previous
David Lawrence Ramseyce1d7652004-06-01 18:32:36 +00002101 versions of current and/or placewewant as parameters, so that
2102 they can redraw properly when the location has changed. Also
David Lawrence Ramseyc21790d2004-05-30 03:19:52 +00002103 rename the int refresh in do_delete() and do_backspace() to
2104 do_refresh so as not to conflict with refresh(). (DLR)
David Lawrence Ramsey32e3b882004-05-29 01:20:17 +00002105 - Add some comments better explaining what is disabled in
2106 restricted mode and why. (DLR)
David Lawrence Ramseyc833d9e2004-05-29 15:36:58 +00002107 - Since KEEP_CUTBUFFER is only used in cut.c, make it a static
2108 variable in cut.c instead of a flag, and unset it in other
2109 files via the new function cutbuffer_reset(). (DLR)
David Lawrence Ramsey483ea322004-05-29 16:25:30 +00002110 - Add the ability to change the characters used to display the
2111 beginning characters of tabs and spaces via the rcfile entry
2112 "whitespace". This is disabled if nanorc support is disabled
David Lawrence Ramseyf521b602004-05-30 03:56:52 +00002113 or if we're in tiny mode. Displaying the new characters is
David Lawrence Ramsey4a80fcf2004-05-30 04:19:27 +00002114 toggled on and off by Meta-P; the default is on. (Mike
David Lawrence Ramseyf521b602004-05-30 03:56:52 +00002115 Frysinger; minor changes and adaptations by DLR)
David Lawrence Ramsey2c62b072004-05-29 16:38:57 +00002116 - Add the ability to change the closing punctuation and closing
2117 brackets used to control justification, via the rcfile
2118 entries "punct" and "brackets". (DLR)
Jordi Mallach0675c2f2004-06-01 15:29:31 +00002119 - Translation updates (see po/ChangeLog for details).
David Lawrence Ramsey85529b32004-06-22 15:38:47 +00002120 - Make the former flag same_line_wrap use TRUE and FALSE
2121 instead of 1 and 0. (DLR)
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00002122- files.c:
2123 add_open_file()
2124 - Rearrange the NANO_SMALL #ifdef so that the code to set the
2125 MODIFIED flag in open_files->flags is included only once.
2126 (DLR)
David Lawrence Ramsey2f0d03b2004-05-28 00:15:28 +00002127 write_marked()
2128 - Call write_file() with nonamechange set to TRUE so that we
2129 don't erroneously change the current filename when writing a
2130 selection, and don't take a nonamechange parameter anymore
2131 since we don't use it. (DLR)
David Lawrence Ramseyd893fa92004-04-30 04:49:02 +00002132 do_writeout()
2133 - Refactor so that no recursion is needed if we try to exit with
2134 a modified file that has no name when TEMP_OPT is set. (DLR)
David Lawrence Ramsey28260472004-05-30 03:23:39 +00002135 - Add spaces to the ends of the "Overwrite" and "Different Name"
2136 prompts, for consistency. (DLR)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002137 do_browser()
2138 - Call check_statblank() instead of blanking the statusbar
2139 unconditionally, for consistency. (David Benbennick)
David Lawrence Ramseybe265612004-05-29 20:38:08 +00002140- global.c:
2141 shortcut_init()
2142 - Don't assign any handler functions to the help browser keys,
2143 as the help browser handles them all internally. (David
2144 Benbennick)
David Lawrence Ramsey4be15f02004-05-23 21:33:23 +00002145- move.c:
2146 do_first_line(), do_last_line()
2147 - Move these functions here from winio.c. (DLR)
David Lawrence Ramsey604caf32004-04-19 02:44:13 +00002148- nano.c:
David Lawrence Ramseyda141062004-05-25 19:41:11 +00002149 finish()
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002150 - Call blank_statusbar() and blank_bottombars() to blank out
2151 the statusbar and shortcut list in bottomwin. (DLR)
David Lawrence Ramseyda141062004-05-25 19:41:11 +00002152 - Since all of the calls to finish() use 0 for the value of
2153 sigage, and the return value of finish() is never used, make
2154 it accept and return void. (David Benbennick)
David Lawrence Ramsey2f0d03b2004-05-28 00:15:28 +00002155 die_save_file()
2156 - Call write_file() with nonamechange set to TRUE since we don't
2157 need to change the current filename if we're writing emergency
2158 backup files. (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002159 do_early_abort()
2160 - Removed, as it's no longer called anywhere. (David Benbennick)
David Lawrence Ramsey45251372004-06-09 08:36:46 +00002161 usage()
2162 - Add missing "[dir]" and two missing _()'s around the strings
2163 describing the -E [dir]/--backupdir=[dir]" option. (CHAO
2164 Wei-Lun)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002165 open_pipe()
2166 - Call enable_signals() at the beginning and disable_signals()
2167 at the end, so that we get a SIGINT when Ctrl-C is pressed
2168 during wait() and can then call cancel_fork() properly. (DLR)
David Lawrence Ramsey228148b2004-05-27 20:09:52 +00002169 do_delete(), do_enter()
David Lawrence Ramsey604caf32004-04-19 02:44:13 +00002170 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramsey1b525e92004-05-24 02:35:02 +00002171 do_prev_word()
2172 - Switch the last test (current != NULL or not) around to match
2173 the order of the same test in do_next_word() (current ==
2174 NULL). The results are the same either way. (DLR)
David Lawrence Ramsey9a527f52004-05-31 14:58:59 +00002175 do_wrap()
2176 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002177 do_spell()
2178 - Tweak for efficiency. (David Benbennick)
2179 - Change the statusbar entries used in cases of failure so that
2180 they all display the actual error that occurred. (David
2181 Benbennick and DLR)
2182 do_int_speller(), do_alt_speller()
2183 - Make these functions return const char*'s instead of char*'s.
2184 (David Benbennick)
David Lawrence Ramseyd4693cb2004-05-14 01:17:25 +00002185 justify_format()
2186 - Remove redundant assignment. (DLR)
David Lawrence Ramsey1cadddd2004-05-17 20:32:51 +00002187 do_para_search()
2188 - Remove unneeded edit_update() calls. (David Benbennick)
David Lawrence Ramsey2e3aeae2004-05-24 05:52:35 +00002189 - Convert to use an enum to specify the search type: JUSTIFY,
2190 BEGIN, or END. (DLR)
David Lawrence Ramseydbde9d72004-06-27 00:54:08 +00002191 - Refactor to properly do searches for beginnings of paragraphs
2192 in the same way as searches for endings of paragraphs, without
2193 needing the old (and somewhat inaccurate) recursive approach.
2194 (DLR)
David Lawrence Ramsey1cadddd2004-05-17 20:32:51 +00002195 do_justify()
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002196 - Remove unneeded edit_update() calls, and add a few minor
2197 efficiency tweaks. (David Benbennick)
David Lawrence Ramsey7097d7b2004-05-17 16:11:18 +00002198 - Simplify an if statement. (DLR)
David Lawrence Ramseyd893fa92004-04-30 04:49:02 +00002199 do_exit()
2200 - Refactor so that no recursion is needed if we try to exit with
2201 a modified file that has no name when TEMP_OPT is set. (DLR)
David Lawrence Ramsey0a258082004-04-23 18:02:37 +00002202 print_numlock_warning()
2203 - Removed, as it's no longer needed and was never called
2204 anywhere after the input overhaul. (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002205 signal_init()
2206 - Don't use termios and _POSIX_VDISABLE to disable keys anymore,
2207 as there's no real equivalent of it when the latter isn't
2208 defined. (DLR)
2209 handle_sigwinch()
2210 - Call resetty() to get the original terminal settings back.
2211 (DLR)
2212 - Rework so that nano properly redraws the screen on systems
2213 that don't have resizeterm() and/or wresize(). In curses, we
2214 now leave and immediately reenter curses mode via endwin() and
2215 refresh(), and then reinitialize all windows via
2216 window_init(). In slang, the above routine will only work if
2217 the resize made the window smaller, so we now leave and
2218 immediately reenter screen management mode via
2219 SLsmg_reset_smg() and SLsmg_init_smg(), and then reinitialize
2220 all windows via window_init(). (DLR, adapted from code in
2221 Minimum Profit 3.3.0 and mutt 1.4.2.1, respectively)
David Lawrence Ramseyda141062004-05-25 19:41:11 +00002222 do_toggle()
2223 - Call blank_statusbar() and blank_bottombars() to blank out
2224 the statusbar and shortcut list in bottomwin. (DLR)
David Lawrence Ramseyd4693cb2004-05-14 01:17:25 +00002225 do_verbatim_input()
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002226 - If PRESERVE is set, disable flow control characters before
2227 getting input and reenable them after getting input. (DLR)
2228 disable_signals(), enable_signals(), disable_flow_control(),
2229 enable_flow_control()
2230 - New functions that allow more fine-grained control of the
2231 terminal: disabling and enabling signals without having to use
2232 _POSIX_VDISABLE and disabling and enabling flow control
2233 characters. (DLR)
David Lawrence Ramsey97133f52004-05-14 17:39:19 +00002234 main()
2235 - Don't open the first file in quiet mode, since if we do, an
2236 error message won't be shown if it's unreadable. (DLR; found
2237 by Jaap Eldering)
David Lawrence Ramsey1d43db82004-05-14 17:57:00 +00002238 - If we've specified multiple files on the command line and
2239 multibuffer support is compiled in, turn multibuffer mode on
2240 when reading those files and turn it off afterward if it was
2241 off before. This allows us to open multiple files without
2242 having to turn multibuffer mode on at the command line or in
2243 the nanorc first, both of which are unintuitive. Multibuffer
2244 mode should only affect how the "Read File" command behaves
2245 anyway. (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002246 - Remove the disabling of implementation-defined input
David Lawrence Ramseye608f942004-05-19 16:04:27 +00002247 processing, as cbreak mode appears to turn it off anyway.
2248 (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002249 - After noecho(), call disable_signals() and
2250 disable_flow_control(), the latter only if PRESERVE is not
2251 set. (DLR)
2252 - Move the savetty() call down from just after initscr() to just
2253 after the terminal is properly set up, so that we can restore
2254 it easily after a resize. (DLR)
David Lawrence Ramsey570ea892004-05-28 21:02:32 +00002255 - Add missing cast to char when calling do_char(). (DLR)
David Lawrence Ramseydd7cc722004-05-28 23:45:25 +00002256 - Don't initialize the backup directory if we're in restricted
2257 mode, since backups are disabled then. (DLR)
David Lawrence Ramsey3aedb362004-05-28 22:42:41 +00002258 - Check $SPELL for an alternative spell checker if we didn't get
David Lawrence Ramseydd7cc722004-05-28 23:45:25 +00002259 one from the command line and/or rcfile, as Pico does. Don't
2260 do this if we're in restricted mode, since spell checking is
2261 disabled then. (DLR)
David Lawrence Ramsey74af3a72004-06-12 21:03:14 +00002262 - Add some cleanups for greater readability, and remove a few
2263 bits of redundant code. (DLR and David Benbennick)
David Lawrence Ramsey4b741b92004-04-30 19:40:03 +00002264- nano.h:
2265 - Since REGEXP_COMPILED is only used in search.c, convert it
2266 from a flag to a static int there. (DLR)
David Lawrence Ramsey2e3aeae2004-05-24 05:52:35 +00002267 - Add justbegend enum, used in do_para_search(). (DLR)
David Lawrence Ramsey2ed225f2004-05-28 20:44:09 +00002268 - Add updown enum, used in edit_scroll(). (DLR)
David Lawrence Ramseyf38230a2004-04-21 22:25:16 +00002269- proto.h:
David Lawrence Ramseyd62b6342004-04-28 21:49:30 +00002270 - Remove unused xpt() and add_marked_sameline() prototypes.
2271 (DLR)
David Lawrence Ramsey14bf8032004-05-22 20:19:15 +00002272 - Add missing #ifdefs around the nstristr() and get_mouseinput()
2273 prototypes. (DLR)
David Lawrence Ramseyf38230a2004-04-21 22:25:16 +00002274- rcfile.c:
2275 - Move "rebinddelete" up in the list of options so that the list
2276 is in alphabetical order. (DLR)
David Lawrence Ramseyb6a4b102004-05-29 17:20:01 +00002277 - Cosmetic reorganization of the order in which some options are
2278 interpreted. (DLR)
David Lawrence Ramsey8d911992004-05-29 17:05:52 +00002279 - Explicitly check for rcopts[i].name's being "tabsize" to avoid
2280 a spurious error under some circumstances about tabsize's
2281 being 0 when there's no tabsize entry in the rcfile. (DLR)
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00002282- search.c:
David Lawrence Ramsey4b741b92004-04-30 19:40:03 +00002283 regexp_init()
2284 - Overhaul for efficiency. Also check if regcomp() failed, and
2285 if so, display "Bad regex" message on the statusbar, so that
2286 we don't have to display it separately after every call to
2287 this function. (David Benbennick)
2288 search_init()
2289 - Only check whether USE_REGEXP is set, and hence whether or not
2290 to display "[Regexp]" on the search prompt, if HAVE_REGEX_H is
2291 defined. (DLR)
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00002292 not_found_msg()
2293 - Convert to properly handle strings generated by
2294 display_string() that have been used in the search prompt
2295 since 1.3.0. (David Benbennick)
David Lawrence Ramsey483ea322004-05-29 16:25:30 +00002296 - Use display_string() directly to display the text that we
2297 didn't find instead of relying on statusbar() to do it
2298 indirectly, since the latter won't display its text with the
2299 user-specified whitespace characters and the former will.
2300 (DLR)
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00002301- utils.c:
David Lawrence Ramsey9830d752004-05-13 17:19:54 +00002302 is_blank_char()
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002303 - New function used as an isblank() equivalent, since isblank()
2304 is a GNU extension. (DLR)
David Lawrence Ramseya3370c42004-04-05 01:08:14 +00002305 nstricmp(), nstrnicmp()
2306 - Add extra blank lines for greater readability, and remove
2307 unneeded test for n's being less than zero (since it's already
2308 been tested for being greater than zero or equal to zero at
2309 that point) from nstrnicmp(). (DLR)
2310 stristr()
2311 - Rename to nstristr() to avoid a potential conflict with an
2312 existing stristr() function, and move up to just after
2313 nstrnicmp(). (DLR) David Benbennick: Tweak for efficiency.
David Lawrence Ramsey9830d752004-05-13 17:19:54 +00002314 - Include and use only when strcasestr() is unavailable, since
2315 strcasestr() is a GNU extension. (DLR)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002316 nstrnlen()
2317 - New function used as a strnlen() equivalent, since strnlen()
2318 is a GNU extension. (DLR)
David Lawrence Ramseye1e7cb22004-04-15 06:15:55 +00002319- winio.c:
2320 get_verbatim_kbinput()
2321 - Refactor the output in the DEBUG #ifdef. It didn't work
2322 properly ever since this function was changed to use an int*
2323 instead of a char*. (DLR)
David Lawrence Ramsey805547f2004-04-22 03:41:04 +00002324 - When reading characters from input, properly reallocate
2325 verbatim_kbinput via (int*)nrealloc() instead of an uncast
2326 realloc(). (DLR)
David Lawrence Ramsey0a258082004-04-23 18:02:37 +00002327 get_accepted_kbinput()
2328 - Add proper support for the keypad values and escape sequences
David Lawrence Ramsey16eb5182004-06-03 20:26:12 +00002329 generated by the NumLock glitch and by certain keys on the
2330 numeric keypad. (DLR)
David Lawrence Ramseyd8974452004-06-04 22:28:55 +00002331 - Add an extra break and move an #endif down to fix a potential
2332 problem when NANO_SMALL is defined or KEY_RESIZE isn't, and
2333 when PDCURSES isn't defined. (DLR)
David Lawrence Ramsey805547f2004-04-22 03:41:04 +00002334 get_escape_seq_kbinput()
David Lawrence Ramsey0a258082004-04-23 18:02:37 +00002335 - Add proper support for the keypad values and escape sequences
2336 generated by the NumLock glitch. (DLR)
David Lawrence Ramseye65e6392004-06-04 18:18:17 +00002337 - Add ignore_seq parameter. If a sequence is recognized but
2338 ignored, we will now return ERR and set ignore_seq to TRUE, and
2339 if a sequence is unrecognized, we will now return ERR and set
2340 ignore_seq to FALSE. Also, here and elsewhere, don't bother
2341 assigning ERR to retval when that's its initial value. (DLR)
David Lawrence Ramsey973a96b2004-06-22 14:30:18 +00002342 - Fix problem where the escape sequence for F3 on the FreeBSD
2343 console would not be interpreted properly. (DLR)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002344 get_mouseinput()
2345 - Don't ungetch() anything if there's no control key and no meta
2346 key defined in the shortcut we clicked. (DLR)
David Lawrence Ramsey8d3e7f32004-05-13 17:28:03 +00002347 bottombars()
2348 - Don't display any more than MAIN_VISIBLE shortcuts. Adding
2349 justification of the entire file above made the search
2350 shortcut list longer than this and hence made the shortcuts in
2351 it so short as to be almost incomprehensible. (DLR)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002352 - Tweak for efficiency and to better handle shorter screen
2353 widths. (David Benbennick)
2354 - Restructure the if block used for the sentinel key values,
2355 dynamically allocate keystr based on the number of columns
2356 available, and make sure we can display shortcuts even when
2357 the number of available columns is too short for any complete
2358 one. (DLR)
2359 onekey()
2360 - Don't bother padding the displayed shortcuts with spaces.
2361 (David Benbennick)
2362 - Convert len to a size_t. (DLR)
David Lawrence Ramseye5b2f832004-04-29 06:30:36 +00002363 edit_add()
2364 - Minor cosmetic reformatting. Also remove unused int
2365 searched_later_lines. (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002366 blank_bottomwin()
2367 - Removed, as it does the same thing as blank_bottombars().
2368 (David Benbennick)
2369 blank_titlebar()
2370 - New function used to blank the titlebar in topwin. (DLR)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002371 blank_statusbar_refresh()
2372 - Removed, as it's now unnecessary. (David Benbennick)
2373 titlebar()
2374 - Overhaul to use display_string() to display the filename, and
2375 to better handle shorter screen widths. Also remove
2376 now-unneeded wrefresh(topwin) calls. (David Benbennick)
David Lawrence Ramsey8328fc22004-05-25 23:34:43 +00002377 DLR: Tweak to reserve enough space for "Modified", plus
2378 padding, in all cases, to make sure that the version message
2379 takes up no more more than 1/3 of the available width, minus
2380 padding, and to include a reset_cursor() call so that the
2381 cursor is always in the right place.
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002382 bottombars()
2383 - Call blank_bottombars() instead of blank_bottomwin(). (David
2384 Benbennick)
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002385 check_statblank()
2386 - Overhaul for efficiency, (David Benbennick) DLR: Add
2387 reset_cursor() call to ensure that the cursor is always in the
2388 right place.
David Lawrence Ramsey228148b2004-05-27 20:09:52 +00002389 update_cursor()
2390 - Removed, as it's no longer called anywhere. (David Benbennick)
David Lawrence Ramsey07d3feb2004-04-16 05:15:11 +00002391 edit_refresh()
2392 - Remove apparently unneeded leaveok() calls. (David Benbennick)
David Lawrence Ramseyc279a632004-05-25 01:49:58 +00002393 edit_refresh_clearok(), center_cursor()
2394 - Removed, as they are now unnecessary. (David Benbennick)
David Lawrence Ramseyd12fd4b2004-05-28 15:05:56 +00002395 statusq()
2396 - Don't allow "Full Justify" when in view mode. (DLR)
David Lawrence Ramsey4b741b92004-04-30 19:40:03 +00002397 statusbar()
2398 - Call reset_cursor() just before refreshing the edit window, so
2399 that slang and other non-ncurses versions of curses will
2400 properly place the cursor back in the edit window instead of
2401 leaving it at the end of the statusbar. (DLR)
David Lawrence Ramseybe265612004-05-29 20:38:08 +00002402 do_help()
2403 - Overhaul for efficiency, and allow scrolling through the help
2404 via the arrow keys as well as the paging keys. (David
David Lawrence Ramseyae064bf2004-06-01 20:38:00 +00002405 Benbennick) DLR: Revert the use of the return value of
2406 curs_set() to restore the previous state of the cursor, as
2407 some curses implementations (including slang) get it wrong,
2408 and explicitly turn the cursor off where needed instead.
David Lawrence Ramseydc35cb82004-04-24 18:30:23 +00002409 do_credits()
2410 - Use napms() instead of nanosleep(), as it does the same thing
2411 (aside from taking an argument in milliseconds instead of
2412 microseconds) and curses includes it. (DLR)
David Lawrence Ramsey837a02b2004-05-18 15:23:31 +00002413 - Overhaul for efficiency, and make sure the xlcredits
2414 translations are done after initialization in order to avoid
2415 an error when compiling with -pedantic. (David Benbennick)
Jordi Mallach21ad7622004-06-25 22:43:09 +00002416 do_yesno()
2417 - Add a comment to encourage translators to use both native and
2418 English shortcuts, if possible. (Jordi)
David Lawrence Ramsey9830d752004-05-13 17:19:54 +00002419- configure.ac:
David Lawrence Ramseyfa394042004-05-23 21:11:14 +00002420 - Add tests for isblank(), strcasestr(), and strnlen(), and
2421 define _GNU_SOURCE so that the tests work properly. Increase
2422 the minimum required autoconf version to 2.54. (DLR)
David Lawrence Ramsey1122c852004-05-13 17:46:57 +00002423 - Reformat the test programs so that they aren't packed into
2424 fewer lines than usual, so as to make them easier to read, and
2425 remove unnecessary inclusion of stdio.h in the slang test
2426 programs. (DLR)
David Lawrence Ramseyd7fd2002004-05-18 01:20:36 +00002427 - Remove the checks for resizeterm() and wresize(), as they're
2428 no longer needed. (DLR)
Jordi Mallachd3507272004-06-25 22:34:18 +00002429- config.rpath:
2430 - Replace usage of egrep with grep -E, avoiding a XSI:ism (David
2431 Weinehall)
David Lawrence Ramsey2c4c7882004-05-07 18:00:20 +00002432- faq.html:
2433 - Removed question about the NumLock glitch, as it's no longer
2434 needed. (DLR)
David Lawrence Ramseyd893fa92004-04-30 04:49:02 +00002435- nano.1:
2436 - Document restricted mode. (IO ERROR) DLR: Add minor
2437 modifications to account for the above changes.
David Lawrence Ramseyc7acf692004-05-22 20:15:20 +00002438 - Document the smart home key option. (DLR)
David Lawrence Ramsey498e13d2004-06-01 22:56:34 +00002439 - Document the use of the SPELL environment variable. (DLR)
David Lawrence Ramsey12e066f2004-05-29 14:13:02 +00002440- nanorc.5:
2441 - Document the smart home key option. (DLR)
David Lawrence Ramsey483ea322004-05-29 16:25:30 +00002442 - Document the whitespace option. (DLR, adapted from
2443 documentation by Mike Frysinger)
David Lawrence Ramsey2c62b072004-05-29 16:38:57 +00002444 - Document the punct and brackets options. (DLR)
David Lawrence Ramsey9be546b2004-04-20 19:19:21 +00002445- nano.texi:
David Lawrence Ramsey2c4c7882004-05-07 18:00:20 +00002446 - Fix toggle inaccuracies: Meta-L now toggles line wrapping, and
2447 Meta-< and Meta-> aren't toggles. (DLR)
David Lawrence Ramseyd893fa92004-04-30 04:49:02 +00002448 - Document restricted mode. (IO ERROR) DLR: Add minor
2449 modifications to account for the above changes.
David Lawrence Ramsey2c4c7882004-05-07 18:00:20 +00002450 - Fix version number inaccuracies: Search/replace history and
2451 sorting/uniqueness filtering for the internal spell chacker
2452 were added in nano 1.1.99pre1. (DLR)
David Lawrence Ramseyc7acf692004-05-22 20:15:20 +00002453 - Document the smart home key option. (DLR)
David Lawrence Ramsey498e13d2004-06-01 22:56:34 +00002454 - Document the use of the SPELL environment variable. (DLR)
David Lawrence Ramsey71d0a1f2004-05-08 00:06:15 +00002455- nanorc.sample:
2456 - Add missing mouse entry, and update the nanorc sample regexes
2457 to account for the backupdir and mouse options. (DLR)
David Lawrence Ramseyc7acf692004-05-22 20:15:20 +00002458 - Add smarthome description. (DLR)
David Lawrence Ramsey483ea322004-05-29 16:25:30 +00002459 - Document the whitespace option. (DLR, adapted from
2460 documentation by Mike Frysinger)
David Lawrence Ramsey9830d752004-05-13 17:19:54 +00002461- README.CVS:
2462 - Increase the minimum required autoconf version to 2.54, and
2463 change the recommended automake version 1.7 to the minimum
2464 required automake version. Note that autoconf 2.54 will
2465 technically also work with automake 1.6c, but that is a CVS
2466 version as opposed to a stable release version, and automake
2467 1.7 requires at least autoconf 2.54 in any case. (DLR)
David Lawrence Ramsey8d3e7f32004-05-13 17:28:03 +00002468- TODO:
2469 - Added entry for justifying the entire file at once, since Pico
2470 can do it, and with "[DONE]" since it's already been
2471 implemented. (DLR)
David Lawrence Ramseybefb25a2004-03-31 18:53:07 +00002472
David Lawrence Ramseyf70f0cf2004-03-31 18:42:52 +00002473GNU nano 1.3.2 - 2004.03.31
David Lawrence Ramsey760a2dc2004-01-14 06:38:00 +00002474- General:
2475 - Change instances in the code that refresh the entire edit
2476 window when color support is enabled (in order to properly
2477 handle multi-line color regexes) to only do so when
2478 it's necessary, i.e, when COLOR_SYNTAX is set. (DLR)
David Lawrence Ramseyc2c5a512004-01-23 19:26:17 +00002479 - Minor cosmetic tweaks to the code involving direction keys.
2480 NANO_UP_KEY and NANO_DOWN_KEY are now NANO_PREVLINE_KEY and
2481 NANO_NEXTLINE_KEY, and the help messages for them have been
2482 changed accordingly. Also remove extraneous references to
2483 NANO_DOWN_KEY in the search history shortcut entries. (DLR)
David Lawrence Ramseyc91696e2004-01-29 04:16:23 +00002484 - Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the
2485 shortcut list, and tweak the unjustify routine to use it.
David Lawrence Ramseyd7f5ad92004-03-04 19:30:53 +00002486 Also add NANO_FIRSTLINE_FKEY and NANO_LASTLINE_FKEY, and tweak
2487 the statusbar input routines to handle them and NANO_HELP_FKEY
2488 properly. (DLR)
David Lawrence Ramsey369732f2004-02-16 20:32:40 +00002489 - Block SIGWINCH after setting up its handler, and only unblock
2490 and handle it when we're in a stable state, i.e, when we're
2491 waiting for input from the user. New function
2492 allow_pending_sigwinch(); changes to signal_init(),
2493 get_kbinput(), and get_verbatim_kbinput(). (DLR)
David Lawrence Ramsey281e0562004-02-27 18:54:04 +00002494 - Decouple the paragraph searching code and the justifying code.
2495 Removed function do_para_operation(); new function
2496 do_para_search(); changes to do_justify(). (DLR)
David Lawrence Ramsey04e42a62004-02-28 16:24:31 +00002497 - Add -E/--backupdir option. When used with -B/--backup, backup
2498 files will be saved in the specified directory with their
2499 canonical pathnames encoded in their names (all '/'s replaced
2500 with '!'s). Changes to write_file(). (Martin Ehmsen) DLR:
2501 Add function init_backup_dir() to handle relative paths
2502 correctly, use get_full_path() to get the canonical pathname,
2503 and use tail() to get the filename if get_full_path() fails.
David Lawrence Ramseya619ae62004-03-04 06:33:52 +00002504 - Port to the Tandem NonStop Kernel (nsr-tandem-nsk). (Tom
2505 Bates; minor tweaks by DLR)
David Lawrence Ramsey6aec4b82004-03-15 20:26:30 +00002506 - Change some instances of boolean 0 and 1 to TRUE and FALSE.
2507 (David Benbennick)
2508 - Fix memory corruption problem occurring when answer is used as
2509 the value of def; if the realloc() of answer leads to its
2510 pointing to a different memory block, there will be a segfault
David Lawrence Ramsey79475442004-03-19 20:47:57 +00002511 when the value of def is copied into it via strcpy().
David Lawrence Ramseyb8823402004-04-27 21:06:11 +00002512 (bort@alltel.net, Christian Weisgerber, David Benbennick, and
David Lawrence Ramsey79475442004-03-19 20:47:57 +00002513 DLR)
David Lawrence Ramseyb9775152004-03-19 02:15:42 +00002514 - Remove the last editbot references, to avoid any potential
2515 segfaults related to them. Also remove fix_editbot(), as it's
2516 no longer needed. (David Benbennick)
David Lawrence Ramsey1576d532004-03-19 21:46:34 +00002517 - Rename several variables to make their use clearer and to
2518 avoid conflicts. (DLR)
David Lawrence Ramseyce991bb2004-03-29 18:36:39 +00002519 - Set the input mode before turning the keypad on. (DLR)
David Lawrence Ramsey44e7f822004-03-30 04:17:10 +00002520- cut.c:
2521 add_to_cutbuffer()
2522 - Add parameter allow_concat to determine whether we're allowed
2523 to concatenate strings in the cutbuffer. (DLR)
David Lawrence Ramsey35961c42004-01-23 19:34:03 +00002524- files.c:
David Lawrence Ramseyda352512004-03-05 20:04:44 +00002525 do_insertfile()
2526 - Wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef.
2527 (DLR)
David Lawrence Ramseyc6908f22004-03-11 02:20:25 +00002528 - Save the already-typed answer when switching from "Insert
2529 File" to "Execute Command" mode via Ctrl-X, just in case we
2530 started typing a command before switching. (DLR)
David Lawrence Ramseycb34a672004-02-06 21:20:05 +00002531 add_open_files()
2532 - Make the saving of marked status in open_files->file_flags
2533 work properly again; a tweak to the ISSET() macro in 1.3.0
2534 to make it only return 0 or 1 broke it. (DLR)
David Lawrence Ramsey35961c42004-01-23 19:34:03 +00002535 write_marked()
2536 - New function used to write the current marked selection to a
2537 file, split out from do_writeout(). (DLR)
David Lawrence Ramsey6aec4b82004-03-15 20:26:30 +00002538 do_writeout()
2539 - Tweak for efficiency. (David Benbennick) DLR: Modify to have
2540 the current answer preserved between toggles again.
David Lawrence Ramsey3af54d32004-02-25 04:43:27 +00002541 filestat()
2542 - Removed, as it is only called in one place and is
2543 redundant. (DLR)
2544 do_browser()
2545 - Replace the filestat() call with an equivalent stat() call.
2546 (DLR)
David Lawrence Ramsey00c20542004-02-01 06:27:59 +00002547- global.c:
2548 shortcut_init()
2549 - Only allow verbatim input when we're not in view mode. (DLR)
David Lawrence Ramseyba7b1682004-02-29 20:07:14 +00002550 - Set the associated function for unjustify to 0 instead of
2551 do_uncut_text(), since it's currently unused. (DLR)
David Lawrence Ramseyc53a92d2004-01-12 03:28:06 +00002552- nano.c:
David Lawrence Ramseya7c93642004-02-25 03:19:29 +00002553 usage()
2554 - Clarify the description for -T/--tabsize a bit. (DLR)
David Lawrence Ramseyd03216a2004-01-28 18:21:21 +00002555 do_verbatim_input()
2556 - Remove the now-unneeded code to disable XON, XOFF, and
2557 suspend, since we now go into raw mode in
2558 get_verbatim_kbinput() and bypass them. (DLR)
David Lawrence Ramseybf3c93e2004-03-13 19:42:58 +00002559 do_next_word()
2560 - Simplify and remove references to editbot so as to avoid a
2561 segfault. (David Benbennick)
David Lawrence Ramseyb6aa4282004-03-14 01:42:17 +00002562 do_prev_word()
2563 - Simplify and remove references to edittop. (David Benbennick)
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00002564 do_int_speller(), do_alt_speller(), do_spell()
David Lawrence Ramsey35961c42004-01-23 19:34:03 +00002565 - Modify to write only the current selection from a file to the
2566 temporary file used for spell checking when the mark is on,
2567 and add a few miscellaneous cosmetic cleanups. (DLR)
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00002568 do_int_spell_fix()
2569 - Store the value of current_x in a size_t instead of an int,
2570 and add a few minor efficiency tweaks. (David Benbennick)
2571 - Remove comment explaining why findnextstr() is called with
2572 bracket_mode set to TRUE even though we aren't doing a bracket
2573 search, since after the above efficiency tweaks, it's now more
2574 accurately called can_display_wrap. (DLR)
David Lawrence Ramsey44e7f822004-03-30 04:17:10 +00002575 indent_length()
2576 - Remove unneeded #ifdef. (David Benbennick)
2577 do_justify()
2578 - Remove references to the now-unneeded JUSTIFY_MODE flag. (DLR)
David Lawrence Ramsey2897d2b2004-01-26 20:56:20 +00002579 signal_init()
2580 - Trap SIGQUIT in addition to turning it off via termios in
2581 main(). This is consistent with SIGINT, which we trap here
2582 and turn off via termios in main(), as well as with the
2583 associated comment. (DLR)
David Lawrence Ramsey273d2ce2004-01-30 04:20:28 +00002584 handle_sigwinch()
David Lawrence Ramsey53809442004-01-30 04:29:52 +00002585 - Set keypad() to TRUE and switch to cbreak mode just before
2586 calling siglongjmp(), in case we resized during verbatim
2587 input. (DLR)
David Lawrence Ramseyc53a92d2004-01-12 03:28:06 +00002588 main()
2589 - Move the call to raw() on systems that don't define
2590 _POSIX_VDISABLE outside the main input/output loop, as it
David Lawrence Ramseyd03216a2004-01-28 18:21:21 +00002591 doesn't need to be called every time through the loop. Call it
2592 instead of cbreak() on such systems, as it overrides cbreak()
2593 anyway. (DLR)
David Lawrence Ramsey369732f2004-02-16 20:32:40 +00002594 - Add more descriptive comments explaining the termios and
2595 curses setup routines, and turn the keypad on before setting
2596 the input mode. (DLR)
David Lawrence Ramseyaca5d042004-03-19 01:35:57 +00002597 - Remove stray HAVE_GETOPT_LONG #ifdefs. (DLR)
David Lawrence Ramseyce991bb2004-03-29 18:36:39 +00002598 - Don't call keypad() before initializing the windows it needs
2599 via window_init().
David Lawrence Ramsey24ae56c2004-02-27 03:06:28 +00002600- nano.h:
2601 - Move the NANO_H include guard up before the first #include.
2602 (DLR)
David Lawrence Ramsey44e7f822004-03-30 04:17:10 +00002603 - Remove the now-unneeded JUSTIFY_MODE flag. (DLR)
David Lawrence Ramsey41151ac2004-01-15 05:47:03 +00002604- search.c:
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00002605 regexp_cleanup()
2606 - Only do anything if REGEXP_COMPILED is set. (David Benbennick)
2607 search_abort()
2608 - Only test if the mark is set when NANO_SMALL isn't defined.
2609 (David Benbennick)
2610 search_init()
2611 - Add some more comments and comment tweaks, don't indicate that
2612 the search has been canceled when we enter a blank string in
2613 replace mode, only call regexp_init() when USE_REGEXP is set,
2614 and return -1 instead of -3 since a canceled search and a
2615 canceled replace should be mostly equivalent. (David
2616 Benbennick) DLR: Tweak to use the old behavior if we try to
2617 search for invalid regexes.
2618 findnextstr()
2619 - Refactor to use a loop invariant, and tweak for greater
2620 efficiency and simplicity. Also modify so that all searches
2621 start one character after (or before, if we're doing a
2622 backwards search) the current one, as opposed to all searches
2623 except for regex searches for "^" and the like, for
2624 consistency with other searches. (David Benbennick)
2625 do_search()
2626 - Handle search_init()'s no longer returning -3 above. (David
2627 Benbennick)
2628 - Port the code from do_replace_loop() to skip the current line
2629 if we're searching for a regex with "^" and/or "$" in it and
2630 end up on the same line to this function. This fixes a
2631 problem where doing a forward search for "^" on a file with
2632 more than one line would erroneously stop at the magicline and
2633 indicate that that was the only occurrence. (DLR)
2634 do_research()
2635 - Port David Benbennick's efficiency tweaks and the
2636 aforementioned code ported from do_replace_loop() to this
2637 function. (DLR)
2638 replace_regexp()
2639 - Completely refactor for increased efficiency. (David
2640 Benbennick)
2641 replace_line()
2642 - Use a char* parameter for the replacement string instead of
2643 last_search, and add minor efficiency tweaks. (David
2644 Benbennick)
David Lawrence Ramsey41151ac2004-01-15 05:47:03 +00002645 do_replace_loop()
2646 - Fix segfault when doing a regex replace of a string that
2647 matches inside a line (e.g. replace the "b" in "abc" with
2648 anything). (David Benbennick)
David Lawrence Ramsey1122c852004-05-13 17:46:57 +00002649 - If the mark is on at the beginning of the function, turn it
2650 off and turn it back on just before returning. Also overhaul
2651 to rely on the return value of findnextstr() instead of a loop
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00002652 invariant, to not need to take an int* parameter, and store
2653 the beginning x-coordinate in a size_t instead of an int.
2654 (David Benbennick)
2655 do_replace()
2656 - Handle search_init()'s no longer returning -3 above, and add
2657 efficiency tweaks. (David Benbennick) DLR: Tweak to follow
2658 the old behavior of adding non-blank strings entered at the
2659 "Replace: " prompt to the search history. (DLR)
David Lawrence Ramseyc6908f22004-03-11 02:20:25 +00002660 do_gotoline()
2661 - Simplify the edit_update() call depending on the value of
2662 save_pos. (David Benbennick)
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00002663 do_bracket()
2664 - Add efficiency tweaks. (David Benbennick) DLR: Remove
2665 reliance on the hardcoded bracket string length; instead, only
2666 require that the bracket string length be even.
2667- utils.c:
2668 regexec_safe()
2669 - Wrap in HAVE_REGEX_H #ifdefs. (DLR)
2670 regexp_bol_or_eol()
2671 - New function used to check if a regex contains "^" and/or "$",
2672 assuming that the regex would be found if the REG_NOT(BOL|EOL)
2673 flags aren't used in the regexec() call; it replaces the
2674 direct regexec()s used before. (DLR)
2675 strstrwrapper()
2676 - Refactor for increased efficiency, and eliminate the need for
2677 the line_pos parameter. (David Benbennick)
David Lawrence Ramsey6aec4b82004-03-15 20:26:30 +00002678 mallocstrcpy()
2679 - Tweak so that when src is "", "" is allocated and returned
2680 instead of NULL. (David Benbennick)
David Lawrence Ramseye97c8d52004-01-14 19:26:29 +00002681- winio.c:
David Lawrence Ramsey58f6d832004-01-27 07:12:47 +00002682 get_verbatim_kbinput()
David Lawrence Ramseyd03216a2004-01-28 18:21:21 +00002683 - Set keypad() to FALSE and switch to raw mode while reading
David Lawrence Ramsey273d2ce2004-01-30 04:20:28 +00002684 input, and set it back to TRUE and go back into cbreak mode
2685 mode afterwards. (Note that if _POSIX_VDISABLE isn't defined,
2686 we don't need to change to or from raw mode since we're
2687 already in it exclusively.) This ensures that we don't end up
2688 reading in extended keypad values that are outside the ASCII
2689 range or having to deal with interrupt-generating key values.
2690 Also, with keypad() set to TRUE, xterm generates KEY_BACKSPACE
2691 when the user hits Ctrl-H, which, when cut down to ASCII
2692 range, ends up being Ctrl-G, which can be confusing. (DLR)
David Lawrence Ramseyee383db2004-02-06 03:07:10 +00002693 - For consistency with get_kbinput(), use an int* to store and
2694 return the input instead of a char*, and tweak the functions
2695 that call it to handle this. (DLR)
David Lawrence Ramsey25061362004-01-16 19:12:46 +00002696 get_accepted_kbinput()
2697 - Don't use "kbinput = wgetch(win)" as a switch value. (DLR)
David Lawrence Ramseyc2c5a512004-01-23 19:26:17 +00002698 get_escape_seq_kbinput()
2699 - Add support for the escape sequences for F1-F14 whenever
2700 possible (i.e, whenever a conflict doesn't occur), some
2701 additional comments, and a few cosmetic cleanups. (DLR)
David Lawrence Ramseyee383db2004-02-06 03:07:10 +00002702 - Use switch statements instead of strncmp() to read in the long
2703 xterm sequences for Ctrl-[arrow key] and Shift-[arrow key].
2704 (DLR)
David Lawrence Ramseyc2c5a512004-01-23 19:26:17 +00002705 get_escape_seq_abcd()
2706 - A resurrected version of the old abcd() function, readded in
2707 order to simplify get_escape_seq_kbinput(). (DLR)
David Lawrence Ramsey0b047c52004-03-29 23:09:08 +00002708 get_mouseinput()
David Lawrence Ramsey1576d532004-03-19 21:46:34 +00002709 - Interpret shortcut key values slightly more stringently when
2710 ungetch()ing them. (DLR)
David Lawrence Ramsey0b047c52004-03-29 23:09:08 +00002711 strlenpt()
2712 - Properly cast the second parameter of the strnlenpt() call to
2713 size_t. (DLR)
David Lawrence Ramsey66081d42004-01-22 07:25:31 +00002714 get_page_start()
2715 - For consistency, tweak so that scrolling always occurs when we
2716 try to move onto the "$" at the end of the line, as opposed to
2717 (a) when we move onto the "$" at the end of the line on the
2718 first page and (b) when we move onto the character just before
2719 the "$" on subsequent pages. (DLR)
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00002720 reset_cursor()
2721 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramsey1044d742004-02-24 20:41:39 +00002722 edit_refresh()
2723 - Tweak for efficiency. (David Benbennick)
David Lawrence Ramsey6aec4b82004-03-15 20:26:30 +00002724 statusq()
2725 - Rename "tabs" to "allowtabs". (David Benbennick)
David Lawrence Ramseye97c8d52004-01-14 19:26:29 +00002726 do_credits()
2727 - Use nanosleep() instead of usleep(). The latter is only
2728 standard under BSD, whereas the former is POSIX compliant.
David Lawrence Ramseyf5300af2004-02-24 20:48:12 +00002729 Accordingly, only include time.h if we use this function, i.e,
2730 if NANO_EXTRA is defined. (DLR)
David Lawrence Ramseyfdece462004-01-19 18:15:03 +00002731 - Add explanatory comment. (DLR)
David Lawrence Ramsey35557c52004-03-07 15:14:56 +00002732- configure.ac:
2733 - Change instances of "int main ()" to "int main(void)". (DLR)
David Lawrence Ramseybe66a6b2004-01-30 21:31:57 +00002734- faq.html:
2735 - Fixed inaccuracy: multibuffer mode was first in nano 1.1.0,
2736 not 1.1.12. (DLR)
David Lawrence Ramsey475a2a72004-02-25 03:58:46 +00002737- nano.1, nanorc.5, nano.texi
2738 - Clarify the description for -T/--tabsize a bit. (DLR)
David Lawrence Ramsey04e42a62004-02-28 16:24:31 +00002739 - Add -E/--backupdir description. (Martin Ehmsen; minor cosmetic
2740 fixes by DLR)
2741- nanorc.sample:
2742 - Add backupdir description. (Martin Ehmsen; minor cosmetic
2743 fixes by DLR)
David Lawrence Ramseyf0b30092004-01-10 06:02:05 +00002744- README:
2745 - Reformat to 72 characters per line, fix wording in one spot,
David Lawrence Ramseyce364e22004-03-03 01:25:46 +00002746 and fix spacing and capitalization in several spots. (DLR)
David Lawrence Ramsey1eadebe2004-01-25 21:36:38 +00002747- NEWS:
2748 - Capitalization fix. (DLR)
David Lawrence Ramsey5ae684f2004-03-04 23:48:26 +00002749- TODO:
2750 - Clarify the paragraph searching item, and add item for
2751 filename searches in the file browser. (DLR)
David Lawrence Ramsey606dfda2004-01-09 23:26:54 +00002752
David Lawrence Ramseyfa1497b2004-01-09 23:22:02 +00002753GNU nano 1.3.1 - 2004.01.09
David Lawrence Ramseya593f532003-11-28 19:47:42 +00002754- General:
2755 - Minor overhaul and abstraction of the lowest level of mouse
2756 input, mostly adapted from the code in do_mouse() that handles
2757 clicking on the shortcut list. New function do_mouseinput();
2758 changes to do_mouse(). (DLR) David Benbennick: Add a few
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00002759 efficiency/extensibility tweaks.
David Lawrence Ramseya593f532003-11-28 19:47:42 +00002760 - Modify the shortcut structure so that instead of having two
2761 miscellaneous key values (misc1 and misc2), there is one key
2762 value reserved for function keys (func_key) and one
2763 miscellaneous key value (misc), and tweak the
2764 shortcut-handling code to deal with this. These changes allow
2765 NANO_OPEN(PREV|NEXT)_ALTKEY to work properly when added to the
2766 shortcut entries for NANO_OPEN(PREV|NEXT)_KEY. Also remove
David Lawrence Ramseyd2914602003-11-30 02:22:22 +00002767 the values in the shortcut list and elsewhere that were made
2768 redundant by the low-level input overhaul, use toupper()
2769 instead of subtracting 32 from values for greater code
2770 readability, and eliminate use of adding 32 to values when
2771 testing for toggles, as get_kbinput_accepted() converts toggle
2772 values to lowercase before returning them. (DLR)
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00002773 - Remove the workarounds for missing KEY_UP and KEY_DOWN, as
2774 they appear to be holdovers of the old way of denoting the
2775 search history shortcuts; if they aren't defined, KEY_LEFT and
2776 KEY_RIGHT probably shouldn't work either, and all four appear
2777 to be standard keys in termcap/terminfo in any case. Add new
2778 special sentinel key values NANO_NO_KEY (for no shortcut key)
2779 and NANO_HISTORY_KEY (for search history keys, both Up and
2780 Down), modify the shortcut list to use them, and modify the
2781 shortcut display routines to handle them. Also modify the
2782 shortcut list code to not treat non-control character values
2783 of val as Meta-sequences, and fix dependencies on that
David Lawrence Ramsey82138502003-12-24 08:03:54 +00002784 behavior. Also rename several variables: "alt" -> "meta",
2785 "altval" -> "metaval". (DLR)
David Lawrence Ramseya593f532003-11-28 19:47:42 +00002786 - Hook up the verbatim input functions so that verbatim input
2787 can be used in the edit window. New function
2788 do_verbatim_input(); changes to do_char(). (DLR) Additional
2789 minor tweaks to do_char() by David Benbennick.
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00002790 - Clarify the description of the --rebinddelete option. (DLR)
David Lawrence Ramsey6481c3f2004-01-09 23:06:54 +00002791 - Miscellaneous comment tweaks, and copyright year updates in
2792 the comments and in do_credits(). (DLR)
David Lawrence Ramsey82138502003-12-24 08:03:54 +00002793- cut.c:
2794 - Overhaul to increase efficiency and add various cleanups.
2795 Changes to add_to_cutbuffer(), cut_marked_segment(), and
2796 do_uncut_text(). (David Benbennick)
David Lawrence Ramsey71278572003-10-31 17:58:44 +00002797- files.c:
David Lawrence Ramsey82138502003-12-24 08:03:54 +00002798 check_operating_dir()
2799 - Add an assert to ensure that full_operatingdir isn't NULL,
2800 a fix for reporting nonexistent (incomplete) directory names
2801 as being outside the operating directory when tab completion
2802 is being used, and cosmetic cleanups. (David Benbennick)
2803 copy_file()
David Lawrence Ramsey3e3fab52004-01-15 05:12:41 +00002804 - New function used to create a copy of a file, split out from
David Lawrence Ramseyc2946fb2003-12-24 21:47:28 +00002805 do_writeout(). (David Benbennick)
David Lawrence Ramsey3e3fab52004-01-15 05:12:41 +00002806 write_file()
2807 - Completely overhauled to properly ignore appending/prepending
2808 to symlinks when NOFOLLOW_SYMLINKS is defined, to properly
2809 support writing a selection to a file under the changed
2810 cutting code, to have more concise error messages, to add
2811 various cleanups, and so on. (David Benbennick)
David Lawrence Ramsey71278572003-10-31 17:58:44 +00002812 do_writeout()
David Lawrence Ramseybc503c82003-11-19 23:59:14 +00002813 - Prompt the user if we're trying to save an existing file (and
2814 not just a selection of it) under a different name. (DLR;
2815 suggested by Jean-Philippe Guérard)
David Lawrence Ramsey3e3fab52004-01-15 05:12:41 +00002816 - Overhaul the code used to write a selection of a file to
2817 temporarily set fileage and filebot to the top and bottom of
2818 the selection and then call write_file(), instead of following
2819 the old hackish behavior with cut_marked_segment() (which
2820 won't work after the cutting code changes anyway). (David
David Lawrence Ramsey70bd6e02004-01-15 16:08:42 +00002821 Benbennick) DLR: Tweak to not add an extra blank line to the
2822 end of the written selection if the cursor is at the beginning
2823 of the last line of the selection.
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00002824 open_prevfile(), open_nextfile()
2825 - For consistency with the rest of the multibuffer code, change
2826 "No more open files" to "No more open file buffers". (DLR)
2827 do_browser()
2828 - Allow '?' to open the help browser, and readd the ability of
2829 'G'/'g' to open the "Go to Directory" prompt (which was
2830 erroneously removed before), for compatibility with Pico.
2831 (DLR)
David Lawrence Ramsey8fa19762003-11-03 00:13:21 +00002832- global.c:
2833 shortcut_init()
2834 - Allow WHEREIS_NEXT_KEY to be used in view mode. (DLR)
David Lawrence Ramsey32559292003-12-28 03:56:04 +00002835- nano.c:
2836 do_int_spell_fix()
2837 - Add comment explaining why findnextstr() is called with
2838 bracket_mode set to TRUE even though we aren't doing a bracket
2839 search. (DLR)
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00002840 do_para_operation()
2841 - Convert to use the new low-level input functions. (DLR)
2842 main()
2843 - Remove unused variable option_index. (DLR)
David Lawrence Ramsey82138502003-12-24 08:03:54 +00002844 - Fix omission of NANO_NO_KEY in the shortcut list scanning
2845 code. (DLR)
David Lawrence Ramseyf8ddf312004-01-09 22:38:09 +00002846 - Remove now-unnecessary initialization of kbinput. (DLR)
David Lawrence Ramsey82138502003-12-24 08:03:54 +00002847- nano.h:
2848 - Comment additions and cosmetic tweaks. (DLR)
David Lawrence Ramsey71278572003-10-31 17:58:44 +00002849- search.c:
David Lawrence Ramsey45cfbec2003-11-28 16:04:24 +00002850 findnextstr(), do_replace_loop()
David Lawrence Ramsey18394ac2003-12-24 03:13:44 +00002851 - Fix potential infinite loops and other misbehavior when doing
David Lawrence Ramseye190ff32004-01-03 21:42:25 +00002852 beginning-of-line or end-of-line regex replacements ("^", "$",
2853 and "^$"). Add a no_sameline parameter to findnextstr(), and
2854 set it in the calls in do_replace_loop() when such regexes are
2855 found, so that such regexes are only found once per line.
2856 Also change length_change from a long to an int; size_t is
2857 unsuitable due to its being unsigned. (DLR; found by Mike
2858 Frysinger and DLR) David Benbennick: Add a few minor cleanups
2859 to do_replace_loop().
David Lawrence Ramsey7776ef92003-11-04 18:32:35 +00002860- winio.c:
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00002861 get_kbinput(), get_accepted_kbinput()
2862 - Don't pass in the value of the REBIND_DELETE flag anymore.
2863 Instead, handle it directly inside the functions. (DLR)
David Lawrence Ramsey7776ef92003-11-04 18:32:35 +00002864 get_accepted_kbinput()
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00002865 - Translate Ctrl-8 into NANO_DELETE_KEY (or NANO_BACKSPACE_KEY
2866 if REBIND_DELETE is set), since it apparently is generated
2867 sometimes even when keypad() is TRUE. (DLR)
2868 - Translate KEY_SLEFT into NANO_BACK_KEY and KEY_SRIGHT into
2869 NANO_FORWARD_KEY, since they are sometimes generated by
2870 Shift-Left and Shift-Right. (DLR)
2871 get_ascii_kbinput()
2872 - Tweak to make it slightly more readable. (DLR)
2873 get_verbatim_kbinput()
2874 - Modify to take an extra parameter indicating if we should
2875 interpret ASCII codes or not. (DLR)
2876 get_escape_seq_kbinput()
2877 - Expand to deal with more broken terminals that don't generate
2878 keypad values. Support the escape sequences for Insert,
2879 Delete, Home, End, PageUp, and PageDown, [arrow key],
2880 Ctrl-[arrow key], and Shift-[arrow key] when needed in the
2881 Linux console, the FreeBSD console, the Hurd console, xterm,
2882 rxvt, and Eterm. Also, use get_verbatim_kbinput(), with ASCII
2883 interpretation disabled, to read in the sequences. (DLR)
2884 get_skip_tilde_kbinput()
2885 - Removed, as it is unneeded due to the expansion of
2886 get_escape_seq_kbinput(). (DLR)
2887 get_mouseinput()
2888 - Modify to take an extra parameter indicating if we should
2889 ungetch() the key equivalents of shortcuts we click on or not.
2890 (DLR)
David Lawrence Ramsey82138502003-12-24 08:03:54 +00002891 nanogetstr()
2892 - Properly interpret the Meta key value in misc if we hit it at
2893 the statusbar prompt. (DLR)
David Lawrence Ramseyf4276942003-12-24 03:33:09 +00002894 do_yesno()
2895 - Add a few efficiency/extensibility tweaks. (David Benbennick)
2896 - Convert to use the new low-level input functions, and remove
2897 two last hardcoded widths left after the above tweaks. (DLR)
David Lawrence Ramsey76c4b332003-12-24 08:17:54 +00002898 do_replace_highlight()
2899 - Display a highlighted space if the word length is zero, so
2900 that we can see zero-length regexes we're replacing. (DLR;
2901 suggested by Mike Frysinger)
David Lawrence Ramsey4dca76f2003-11-20 00:15:52 +00002902- configure.ac:
2903 - Check for glib 2.x and then 1.2.x if we need glib. (DLR)
David Lawrence Ramsey47162bc2004-01-05 19:01:53 +00002904- faq.html:
2905 - Add question explaining how verbatim input works, as well as a
2906 few minor fixes. (DLR)
David Lawrence Ramsey9e45a472004-01-06 17:12:28 +00002907- nano.1, nanorc.5:
2908 - Add nano version numbers (minus any "-cvs" suffixes). (DLR)
David Lawrence Ramsey637f6e52003-11-04 18:34:44 +00002909- nano.spec.in:
2910 - Update for the 1.3 branch of nano. (DLR)
David Lawrence Ramsey9e45a472004-01-06 17:12:28 +00002911- NEWS:
2912 - Reformat so all lines are limited to 72 columns, add a few
2913 typo fixes, and make a few minor cosmetic cleanups. (DLR)
Jordi Mallacha5d8e542003-11-06 10:47:44 +00002914- THANKS:
2915 - Add Danilo Segan, for the Serbian translation.
2916
David Lawrence Ramsey133f7b12003-10-22 17:15:12 +00002917GNU nano 1.3.0 - 2003.10.22
David Lawrence Ramsey4d7c2602003-08-17 02:48:43 +00002918- General:
2919 - Complete overhaul and abstraction of the lowest level of
2920 keyboard input, mostly rewritten but incorporating a few bits
2921 from the old functions and adding support for Pico's Esc Esc
2922 [three-digit decimal ASCII code] input method. New functions
2923 get_kbinput(), get_verbatim_kbinput(), get_ignored_kbinput(),
2924 get_accepted_kbinput(), get_ascii_kbinput(),
2925 get_escape_seq_kbinput(), and get_skip_tilde_kbinput(). These
2926 should work properly on FreeBSD (due to code and input
2927 provided by Lee Nelson and Wouter van Hemel, respectively).
2928 (DLR)
2929 - The -K/--keypad command line/rcfile option has been removed,
2930 and keypad() is now always TRUE. keypad_on() in winio.c and
2931 the check for _use_keypad in configure.ac have both been
2932 removed. (DLR)
2933 - The -d/--rebinddelete command line/rcfile option, equivalent
2934 to Pico's -d, has been added. It is intended to work around
2935 the problem with Backspace/Delete confusion on some terminals,
2936 notably FreeBSD; if your Backspace key acts like Delete, this
2937 option will fix that. (DLR)
David Lawrence Ramseya9cebd82003-08-17 03:31:57 +00002938 - Remove unneeded breaks at the ends of default: clauses. (DLR)
David Lawrence Ramseye0497062003-08-23 21:11:06 +00002939 - Add the ability to repeat the last search without prompting
2940 via Meta-W, and move the line wrapping toggle to Meta-L. New
2941 function do_research(). (Wouter van Hemel)
David Lawrence Ramsey8faf3052003-09-04 20:25:29 +00002942 - Added the ability to move to the beginning or end of the
2943 paragraph, which Pico has via ^W^W (previous paragraph)
David Lawrence Ramsey45108342004-04-21 23:04:55 +00002944 and ^W^O (next paragraph). Changes to do_justify(); new
2945 functions do_para_operation(), do_para_begin(), and
David Lawrence Ramsey8faf3052003-09-04 20:25:29 +00002946 do_para_end(). Note that the last three functions are
2947 disabled if justification is disabled. (DLR)
David Lawrence Ramsey417b03a2003-09-06 21:44:37 +00002948 - Make sure the "historylog" option isn't included at all if
2949 NANO_SMALL is defined. (DLR)
Jordi Mallach3a420872003-10-19 23:30:48 +00002950 - Source reorganization: move code to src/, docs to doc/.
2951 (Jordi)
Jordi Mallach298b9752003-09-07 00:44:12 +00002952 - Translation updates (see po/ChangeLog for details).
David Lawrence Ramseyc97acfb2003-09-10 20:08:00 +00002953 - Since SAMELINEWRAP is only used in nano.c, make it a static
2954 variable in nano.c instead of a flag, and surround all
David Lawrence Ramsey1356a0a2003-09-10 20:31:02 +00002955 wrap_reset() calls with DISABLE_WRAPPING #ifdefs. (DLR)
2956 - Change enum "topmidbotnone" to "topmidnone", as there's no
2957 BOTTOM option anymore. (DLR)
David Lawrence Ramsey5ffbec52003-09-16 01:16:49 +00002958 - Split out the string-displaying routine from update_line()
2959 into a separate function; convert the edit window, statusbar
2960 display, and statusbar prompt to use it, so that they can all
2961 properly display control characters and tabs; free and NULL
2962 the backup search string in one place in the search code
2963 instead of several; and do some other minor refactoring of
2964 related display functions to simplify them. New functions
2965 mark_order() and display_string(); changes to actual_x(),
David Lawrence Ramsey2dd7ed12003-09-29 05:15:24 +00002966 strnlenpt(), blank_bottombars(), blank_edit(),
2967 get_page_start(), edit_add(), update_line(), statusbar(), and
2968 do_replace_highlight(). (David Benbennick) DLR: Add minor
2969 cosmetic tweaks, add missing NANO_SMALL #ifdef around the text
2970 for a backwards search in the refactored code, and enclose
2971 dump_buffer() and dump_buffer_reverse() in one ENABLE_DEBUG
2972 #ifdef instead of two.
David Lawrence Ramsey9eff7462003-09-16 02:04:00 +00002973 - Convert memmove() function calls to charmove() macro calls, as
2974 the former all work on char*'s. (DLR)
David Lawrence Ramseyf5b256b2003-10-03 20:26:25 +00002975 - Miscellaneous #define cleanups: only include the prototype for
2976 and definition of wrap_at if wrapping and/or justification are
2977 enabled, remove duplicate wrap_at prototype, and define
2978 DISABLE_MOUSE if NCURSES_MOUSE_VERSION isn't defined in nano.h
2979 instead of all over the code. (DLR)
Jordi Mallach3a420872003-10-19 23:30:48 +00002980 - Autogenerate the html versions of the manpages in the
2981 Makefile.am's in doc/man/, make sure that they're properly
2982 installed via "make dist", and make sure that "make distcheck"
David Lawrence Ramsey13dfdb22003-10-22 15:37:13 +00002983 works too. Also be sure to set EXTRA_DIST properly. (Jordi,
2984 DLR and Jeff Bailey)
David Lawrence Ramsey4d7c2602003-08-17 02:48:43 +00002985- files.c:
David Lawrence Ramsey7bf00de2003-09-23 04:25:05 +00002986 read_file()
2987 - After we've read in a file and possibly converted it from
2988 DOS/Mac format, set fileformat back to 0 to prevent erroneous
2989 conversion messages when we read other files in. (DLR)
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002990 do_browser()
David Lawrence Ramsey4d7c2602003-08-17 02:48:43 +00002991 - Some of the Pico compatibility options in the file browser
David Lawrence Ramsey10187612003-08-17 05:40:45 +00002992 that don't work properly for current Pico have been removed.
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002993 Backspace, 'g', 'l', 'q', and 'u' are invalid. 'd' deletes
2994 the highlighted file, and 'r' renames the highlighted file;
2995 neither of these are implemented. (DLR)
David Lawrence Ramseyba6fd422003-08-23 21:16:02 +00002996- global.c:
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00002997 toggle_init()
David Lawrence Ramseyba6fd422003-08-23 21:16:02 +00002998 - Change the message for the line wrapping toggle from "Auto
2999 wrap" to "Auto line wrap", to more clearly associate it with
3000 Meta-L. (DLR)
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00003001 shortcut_init()
David Lawrence Ramseycb7ee0e2003-08-31 17:08:59 +00003002 - Change multibuffer-enabled references to
3003 opening/closing/toggling the previous/next loaded file to
3004 toggling/switching to/closing the previous/next file buffer,
3005 for consistency with other references. (DLR)
David Lawrence Ramsey27863662003-08-29 21:31:37 +00003006- nano.c:
3007 window_init()
3008 - Set keypad() to TRUE regardless of whether PDCurses is being
3009 used, as Meta-X apparently turns it off even under ncurses.
3010 (DLR)
David Lawrence Ramseyd91ab6e2003-09-07 23:57:24 +00003011 do_backspace()
3012 - Vastly simplify, and remove dependency on page_up(). (David
3013 Benbennick)
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00003014 help_init()
3015 - Document the support for Esc Esc [character]'s being
3016 interpreted as Ctrl-[character], and the support for Pico's
3017 Esc Esc [three-digit decimal ASCII code] input method. (DLR)
David Lawrence Ramseyf03c78b2003-09-28 21:26:49 +00003018 do_mark()
David Lawrence Ramseycb34a672004-02-06 21:20:05 +00003019 - Toggle MARK_ISSET at the beginning of the function instead of
3020 setting it in one place and unsetting it in another place.
David Lawrence Ramseyf03c78b2003-09-28 21:26:49 +00003021 (David Benbennick)
David Lawrence Ramsey99bede32003-09-29 07:21:11 +00003022 do_suspend()
3023 - Use handle_hupterm() to handle SIGHUP and SIGTERM so we can
3024 properly deal with them while nano is suspended. (DLR; problem
3025 found by David Benbennick)
David Lawrence Ramseyf0b7dca2003-09-22 15:46:21 +00003026 abcd()
3027 - Removed, as it's unneeded due to the low-level input overhaul.
3028 (DLR)
David Lawrence Ramsey4d7c2602003-08-17 02:48:43 +00003029- nano.h:
David Lawrence Ramseye0a9f502003-09-07 05:32:24 +00003030 - Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as
3031 slang has no equivalent of either. When nano is compiled with
3032 slang support, resizing the window doesn't generate
3033 KEY_RESIZE, and pressing Ctrl-Z to suspend nano at the Linux
3034 console with keypad(TRUE) generates Ctrl-Z instead of
3035 KEY_SUSPEND, both unlike ncurses. (DLR)
David Lawrence Ramsey25307252003-10-10 04:42:48 +00003036 - Define KEY_RESIZE as -1 if it isn't defined, as it isn't in
David Lawrence Ramseyc1f630e2003-10-18 20:21:52 +00003037 the curses library included with SunOS 5.7-5.9. Also define
David Lawrence Ramsey25307252003-10-10 04:42:48 +00003038 KEY_SUSPEND as -1 if it isn't defined, in case it isn't in
3039 more than just Slang. (DLR)
David Lawrence Ramseyf6cf4a72003-10-22 16:20:47 +00003040 - Define all potentially missing keys as different negative
3041 values (ERR is -1, so use -2, -3, etc.) so as to avoid having
3042 duplicate case values when keys are missing. (DLR)
David Lawrence Ramseyd91ab6e2003-09-07 23:57:24 +00003043- move.c:
3044 - Remove unneeded inclusion of stdio.h, make various cleanups,
3045 and preserve the cursor's coordinates when paging up and down.
3046 (David Benbennick) DLR: Readd the ability to behave the old
3047 way while paging, make it so the new behavior is only used in
3048 smooth-scrolling mode, and modify page_down() to always go
3049 down a full page (even when there's less than one page of text
3050 left) for consistency.
3051 page_up()
3052 - Removed due to rewrite of movement functions. (David
3053 Benbennick)
David Lawrence Ramseyc97acfb2003-09-10 20:08:00 +00003054- proto.h:
3055 - Surround the do_prev_word() and do_next_word() prototypes with
3056 NANO_SMALL #ifdefs, since the actual functions aren't included
3057 in tiny mode. (DLR)
David Lawrence Ramsey3bd96282003-09-06 05:09:32 +00003058- rcfile.c:
3059 parse_colors()
3060 - Generate an error if we try to use a bright background color
3061 in a nanorc file. (DLR; found by Brand Huntsman)
3062 - Make sure all rcfile error messages are capitalized, for
3063 consistency. (DLR)
David Lawrence Ramseyec290f22003-08-30 19:05:40 +00003064- winio.c:
David Lawrence Ramseyda8fd8f2003-09-16 01:22:31 +00003065 get_verbatim_kbinput()
3066 - Fix a silly memory corruption bug that would occur when trying
3067 to read a sequence of more than one key verbatim. (DLR)
3068 get_accepted_kbinput()
3069 Handle Ctrl-{ to Ctrl-~ correctly, and drop support for
3070 converting Esc ` to Esc Space, since making Meta-[key]
3071 correspond to Ctrl-[key] in all cases is inconsistent due to
3072 the different natures of Contol and Meta key sequences. (DLR)
David Lawrence Ramseyd91ab6e2003-09-07 23:57:24 +00003073 do_first_line()
3074 - Call edit_update() with TOP instead of CENTER; both do the
3075 same thing, but it works faster with TOP. (DLR)
David Lawrence Ramsey7f47d422003-09-08 18:01:49 +00003076 nanogetstr()
3077 - Don't let the user type in ASCII 127 at the statusbar prompt.
3078 (DLR)
David Lawrence Ramseyec290f22003-08-30 19:05:40 +00003079 titlebar()
3080 - Fix problem with the available space for a filename on the
3081 titlebar's being short by one. (DLR)
David Lawrence Ramsey4dcd0702003-10-03 04:20:28 +00003082 edit_add()
3083 - Fix problems with the marking highlight's being drawn
3084 improperly in some cases. (DLR)
David Lawrence Ramseyd91ab6e2003-09-07 23:57:24 +00003085 edit_update()
3086 - Tweak for efficiency and remove the fix_editbot() call. (David
3087 Benbennick)
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00003088 do_credits()
3089 - Update the copyright years to "1999-2003", to match those
3090 given in the rest of the code. (DLR)
David Lawrence Ramseya3831ab2003-09-22 16:26:40 +00003091- configure.ac:
3092 - Change instances of "GNU Nano" to "GNU nano" for consistency.
3093 (DLR)
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00003094- nano.1, nanorc.5, nano.texi:
3095 - Change all instances of $SYSCONFDIR to SYSCONFDIR, since
3096 SYSCONFDIR is set at compile time and can't be overridden by
3097 setting SYSCONFDIR in the environment. (David Benbennick)
3098 - Remove -K/--keypad, and document -d/--rebinddelete. (DLR)
3099 - Document the support for Esc Esc [character]'s being
3100 interpreted as Ctrl-[character], and the support for Pico's
3101 Esc Esc [three-digit decimal ASCII code] input method, if
3102 applicable. (DLR)
Jordi Mallach298b9752003-09-07 00:44:12 +00003103 - French translation by Jean-Philippe Guérard.
David Lawrence Ramseyaaad3af2003-08-31 16:44:10 +00003104- nano.1.html, nanorc.5.html:
3105 - Regenerated. (DLR)
3106- nanorc.sample:
3107 - Remove duplicate "historylog" entry, remove "keypad" entry,
3108 and add "rebinddelete" entry. (DLR)
David Lawrence Ramseydc9c40a2003-09-07 23:54:57 +00003109 - Update and add comments to the regexes for nanorc files.
3110 (Brand Huntsman)
David Lawrence Ramsey21cc5502003-09-06 19:04:02 +00003111 - Fix an attempt at a bright background color in the sample Java
3112 source regexes. (DLR)
3113 - Since tabs are shown as groups of spaces, they are interpreted
3114 as such when parsed by color regexes. Accordingly, simplify
3115 regexes that handle both spaces and tabs to just handle
3116 spaces, as the results are the same. (DLR)
David Lawrence Ramsey0c3d3c92005-07-02 22:12:27 +00003117- AUTHORS:
Chris Allegrettaf3fee5d2003-08-12 02:40:47 +00003118 - Updated to show 1.2/1.3 maintainers.
3119
Chris Allegretta6954f052003-08-12 02:34:03 +00003120- 1.3 tree forks here
3121
Chris Allegretta33642142003-08-12 01:49:20 +00003122GNU nano 1.2.2 - 2003.08.11
Jordi Mallach5b63eaf2003-06-11 10:17:20 +00003123- General:
3124 - Translation updates (see po/ChangeLog for details).
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00003125 - Change uncast nrealloc()s assigned to char pointers/arrays to
3126 charealloc()s, and cast all other nrealloc()s and all
3127 nmalloc()s. (David Benbennick and DLR)
Jordi Mallachf9390af2003-08-05 19:31:12 +00003128 - Remove gettext marks from all debug messages. Good for developers,
3129 better for translators. (Jordi)
3130 - Add translator comments on strings that should be short, like in
3131 status bar strings, etc. (Jordi)
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00003132- utils.c:
3133 align()
3134 - Tweak to avoid a potential problem when strp is non-NULL but
3135 *strp is NULL. (David Benbennick)
Chris Allegretta4f5335d2003-08-04 02:51:12 +00003136 nstricmp(), nstrnicmp()
3137 - Add these functions, equivalent to strcasecmp() and
3138 strncasecmp(), and convert nano to use them when strcasecmp()
3139 and/or strncasecmp() are unavailable. (DLR)
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00003140- winio.c:
Chris Allegretta653d6142003-08-04 02:12:03 +00003141 do_help()
3142 - Get rid of keypad_on() call for bottomwin, which should not be
3143 needed (DLR).
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00003144 nanogetstr()
3145 - Fix problem with search history where a temporary string
3146 added at the bottom of the history (but which was not in the
3147 history) would not be preserved after scrolling down to the
3148 blank bottom entry and then scrolling back up. (DLR)
Chris Allegrettac30fc242003-08-11 00:32:45 +00003149 - Fix problem where pressing down,up,down does not blank the
3150 search prompt but keeps the previous search (DLR).
Chris Allegretta653d6142003-08-04 02:12:03 +00003151 - Handle Alt-[-F and H (DLR, fixed home and end not working with
3152 -K in statusbar).
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00003153- configure.ac:
3154 - Change the program used to detect a broken regexec() function
3155 so that it works properly, using information found at
3156 http://sources.redhat.com/ml/libc-hacker/2001-06/msg00015.html.
3157 (DLR)
3158- nanorc.sample:
3159 - Revised comment explaining the non-escaping of quotes to cover
3160 non-escaping of all shell-interpreted characters. (DLR)
3161 - Fixes to the descriptions and examples in the comments, and
3162 changes to some default values. (David Benbennick and DLR)
3163 - Add regexes for Perl syntax. (Richard Smith, tweaked for
3164 greater efficiency by David Benbennick)
3165 - Add regexes for Java source syntax. (David Benbennick)
3166 Regex for C++-style comments (colored the same way as C-style
3167 comments) added by DLR.
Jordi Mallach2e6d0ca2003-04-24 18:23:56 +00003168- THANKS:
3169 - Added Laurentiu Buzdugan, for Romanian.
Jordi Mallach9e74ade2003-06-11 15:52:34 +00003170 - Added Geir Helland, for Norwegian Bokmål.
David Lawrence Ramsey70047ee2003-06-14 20:41:34 +00003171- TODO:
3172 - Move the items for nano 1.2 to the "Old Requests" section,
3173 and mark color syntax highlighting as done. (David Benbennick)
David Lawrence Ramsey6d97d182003-07-02 14:20:11 +00003174- faq.html:
3175 - Added question about nano's not showing color when it's
3176 compiled with color support. (DLR; suggested by Jordi)
Jordi Mallachd995e9a2003-06-11 16:38:35 +00003177- nano.1, nanorc.5:
Jordi Mallach5b63eaf2003-06-11 10:17:20 +00003178 - Formatting improvements by Jean-Philippe Guérard.
David Lawrence Ramseyb764eb62003-06-29 02:25:46 +00003179 - Minor fixes by DLR.
3180- nano.1.html, nanorc.5.html:
3181 - Regenerated from nano.1 and nanorc.5. (DLR)
Chris Allegrettaffe575f2003-04-20 16:25:46 +00003182
Chris Allegrettaaa459312003-04-20 16:20:15 +00003183GNU nano 1.2.1 - 2003.04.19
Jordi Mallach723399a2003-02-23 19:12:54 +00003184- General:
3185 - Translation updates (see po/ChangeLog for details).
Chris Allegrettad8451932003-03-11 03:50:40 +00003186 - Work around broken regexec() on some systems that segfaults
David Lawrence Ramsey1a5c4c62004-09-07 00:48:49 +00003187 when passed an empty string. This is known to be in glibc
3188 2.2.3. New function regexec_safe(). (David Benbennick)
Chris Allegrettad8451932003-03-11 03:50:40 +00003189 - Fix various bugs with search string history logging: don't
3190 print a broken error message and freeze if ~/.nano_history is
3191 unreadable, actually show an error message in save_history()
3192 if ~/.nano_history is unwritable, and prevent ~/.nano_history
3193 from being completely overwritten by save_history() if it's
3194 unreadable but writable. (David Benbennick)
Chris Allegrettae1e0fd62003-04-15 01:15:09 +00003195 - Only unset KEEP_CUTBUFFER in main() when we do something other
3196 than cut text in the main input loop, instead of unsetting it
3197 all over the place (which, as written, didn't handle cases
3198 like a cut followed by M-Space properly). Also, instead of
3199 checking for keyhandled's not being set inside the for loops,
3200 do it in if blocks surrounding the for loops to increase
3201 efficiency. (David Benbennick) DLR: Also unset KEEP_CUTBUFFER
3202 if we hit a shortcut key other than the one for cutting text.
3203 - Make it so a marked cut immediately followed by an unmarked
3204 cut tacks the latter's text onto the end of the former's text
3205 instead of putting it on a new line, as Pico does. (DLR)
3206 - Convert instances of "(char *)nrealloc()" to the macro
3207 charealloc(), which does the same thing. (DLR)
Chris Allegretta8151ba52003-04-19 19:34:05 +00003208 - Change justify_mode from a boolean int to a flag (DLR).
Chris Allegrettae1e0fd62003-04-15 01:15:09 +00003209- cut.c:
3210 do_cut_text()
3211 - Tweak where KEEP_CUTBUFFER is set so that a marked cut
3212 immediately followed by an unmarked cut preserves the
3213 cutbuffer between the two. (David Benbennick) DLR: Also
3214 properly set KEEP_CUTBUFFER in tiny mode.
3215 do_uncut_text()
3216 - If we're about to uncut on the magicline, always make a new
3217 magicline in advance, as Pico does. (DLR)
Chris Allegrettad8451932003-03-11 03:50:40 +00003218- global.c:
3219 shortcut_init()
3220 - Simplify the #ifdef used to enable file insertion in view mode
3221 if multibuffer support has been compiled in. (DLR)
3222- nano.c:
3223 justify_format()
3224 - If we shave spaces off the end of the line, make sure totsize
3225 is properly updated. (DLR; much simplified by David
3226 Benbennick)
3227- nano.h:
3228 - Simplify #ifdefs relating to HAVE_STRCASECMP and
3229 HAVE_STRNCASECMP. (David Benbennick)
Chris Allegrettae1e0fd62003-04-15 01:15:09 +00003230- search.c:
3231 goto_abort()
3232 - Removed, with all instances replaced with display_main_list(),
3233 since with the removal of all the scattered calls to
3234 SET(KEEP_CUTBUFFER), that function was all that was left of
3235 it. (DLR)
3236 do_find_bracket()
3237 - If a matching bracket wasn't found, call update_line() after
3238 setting current and current_x back to their original values,
3239 in case current_x's original value is greater than the width
3240 of the screen. (DLR)
Chris Allegretta4b376a42003-04-16 02:08:23 +00003241- winio.c:
3242 nanogetstr()
3243 - Remove a few unnecessary breaks occurring immediately after
3244 gotos, and properly interpret the up and down arrow keys when
3245 ALT_KEYPAD is set. (DLR)
Chris Allegrettad8451932003-03-11 03:50:40 +00003246- configure.ac:
3247 - Enable autodetection of broken regexec(). (DLR) Re-added
3248 regex.h check to ensure compile under Debian w/autoconf 1.6.
Jordi Mallachdb469d82003-03-24 13:08:16 +00003249- README:
3250 - Update obsolete 1.1.x information.
Chris Allegrettad8451932003-03-11 03:50:40 +00003251- TODO:
3252 - Fix typo. (David Benbennick)
3253- faq.html:
3254 - Update RPM links for nano 1.2.x. (DLR)
Chris Allegrettadbc3ec72003-02-20 03:14:37 +00003255
Chris Allegretta2b4ead92003-02-20 01:56:02 +00003256GNU nano 1.2.0 - 2003.02.19
Jordi Mallach07e20002003-02-14 22:10:14 +00003257- General:
3258 - Translation updates (see po/ChangeLog for details).
Chris Allegretta33ac7b92003-02-16 03:13:47 +00003259- files.c:
3260 read_file()
3261 - If the file we're loading has already been detected as a DOS
3262 or Mac formatted file, don't turn on NOCONVERT if we find
3263 binary chars in it. This is because if it's detected as
3264 DOS/Mac format, at least one line has already been converted,
3265 so setting NOCONVERT (which is supposed to signal that none
3266 of the file should be converted) makes no sense. (DLR)
Chris Allegrettaa7a78de2003-02-19 22:27:53 +00003267- nano.c:
3268 justify_format()
3269 - Fix ugly behavior when wrapping spaces at the end of long
3270 words (David Benbennick).
Jordi Mallach07e20002003-02-14 22:10:14 +00003271- nanorc.5:
3272 - Fix formatting error and update copyright year (Jordi).
Jordi Mallachfc71eb52003-02-15 13:34:03 +00003273 - Several enhancements (David Benbennick).
Chris Allegretta3d332512003-02-14 03:10:12 +00003274
Chris Allegretta7ba32792003-02-14 03:09:35 +00003275GNU nano 1.1.99pre3 - 2003.02.13
Jordi Mallacha577d5a2003-02-04 14:13:36 +00003276- General:
3277 - Translation updates (see po/ChangeLog for details).
Chris Allegretta201f1d92003-02-05 02:51:19 +00003278 - Fix globals and externs such that nano will compile with
3279 DISABLE_SPELLER (David Benbennick).
Chris Allegrettaf8f2d582003-02-10 02:43:48 +00003280 - Fix unreasonable fill values by wrapping at length 0 instead
3281 of erroring out, and don't start up if the window size is too
3282 small but fill is set reasonably. Changes to
3283 nano.c:global_init(), window_init(), and handle_sigwinch().
3284 New macro MIN_EDITOR_COLS replaces MIN_FILL_LENGTH
3285 (David Benbennick).
Chris Allegrettad8451932003-03-11 03:50:40 +00003286 - Change ngettext macro to P_(), to avoid a clash with the
3287 reserved C __ identifier (Jordi).
Chris Allegrettafdcb9e92003-02-12 02:52:04 +00003288 - Memory leak fixes for files.c:do_insertfile(),do_browser(),
Chris Allegrettad8451932003-03-11 03:50:40 +00003289 nano.c:do_spell(), and search.c:do_replace() (David
3290 Benbennick).
Chris Allegrettabcc86882003-02-13 01:54:41 +00003291 - Remove do_preserve_msg, as using -p still gives Pico-style
3292 string behavior, so an annoying message every invocation is
3293 probably unneeded (all cheer).
Chris Allegrettad8451932003-03-11 03:50:40 +00003294 - Change resetpos function to be global (now called
Chris Allegretta65f075d2003-02-13 03:03:49 +00003295 resetstatuspos. Fixes annoying but small odd problem with
Chris Allegrettad8451932003-03-11 03:50:40 +00003296 cursor placement when inserting a file. This needs to be done
3297 better in 1.3 (originally by David Lawrence Ramsey). Added
3298 this issue to TODO.
Chris Allegretta3cdf6ff2003-02-08 02:02:02 +00003299- files.c:
Chris Allegrettabcaeeb42003-02-08 02:03:26 +00003300 cwd_tab_completion()
3301 - Memory leak fix (David Benbennick).
David Lawrence Ramsey9591ee52004-01-14 16:51:06 +00003302 input_tab()
Chris Allegrettad8451932003-03-11 03:50:40 +00003303 - Fix assumption that matches is null terminated (David
Chris Allegretta3cdf6ff2003-02-08 02:02:02 +00003304 Benbennick).
Chris Allegrettaa0449d92003-02-12 23:58:01 +00003305 load_history()
Chris Allegrettad8451932003-03-11 03:50:40 +00003306 - Fix segfault on loading huge strings from history file
Chris Allegrettaa0449d92003-02-12 23:58:01 +00003307 (David Benbennick).
Chris Allegretta1debce22003-02-13 22:00:19 +00003308 load_history(), save_history()
3309 - Changed to look at $HOME before getpwuid(geteuid()), see
3310 details in comment for rcfile.c:do_rcfile().
Chris Allegrettad8451932003-03-11 03:50:40 +00003311 real_dir_from_tilde()
Chris Allegretta1debce22003-02-13 22:00:19 +00003312 - Change check for the running user's home dir to use
3313 getpwuid(geteuid()) rather than a getpwent() loop
3314 (suggested by Jordi).
Chris Allegretta5ec68622003-02-05 02:39:34 +00003315- nano.c:
Chris Allegretta428f6202003-02-12 03:21:45 +00003316 breakable()
3317 - Fix incorrect return value on short lines (David Benbennick).
Chris Allegretta4640fe32003-02-10 03:10:03 +00003318 do_help()
3319 - Fix line lengths not being computed properly, causes display
3320 glitches most noticeable with < 20 rows. New function
3321 nano.c:line_len(). (David Benbennick).
Chris Allegretta428f6202003-02-12 03:21:45 +00003322 do_justify()
3323 - Add regfree() to quote regex (David Benbennick).
Chris Allegrettad8451932003-03-11 03:50:40 +00003324 - Only copy previous indent if AUTOINDENT is set (David
Chris Allegretta428f6202003-02-12 03:21:45 +00003325 Benbennick).
Chris Allegretta76417082003-02-12 23:54:34 +00003326 do_suspend()
3327 - Fix untranslated message (David Benbennick).
Chris Allegrettad127c712003-02-12 23:20:45 +00003328 do_wrap()
3329 - Fix isspace() call to operate on int.
Chris Allegretta428f6202003-02-12 03:21:45 +00003330 help_init()
3331 - Fix crashing in do_help when COLS < 23 (David Benbennick).
3332 main()
3333 - Fix nano not compiling with ENABLE_RCFILE and DISABLE_TABCOMP
3334 (David Benbennick).
Chris Allegrettafe1d0722003-02-13 00:52:49 +00003335 - Silence annoying compiler messages about clobbering and
3336 uninitialized variables by moving variable inits to the top
3337 of main() and re-initializing them after the sigsetjmp().
Chris Allegrettad6e84362003-02-07 00:02:00 +00003338- rcfile.c:
3339 colortoint()
3340 - Don't bomb after invalid color and print bad color name
3341 (David Benbennick).
Chris Allegretta17ec14b2003-02-07 00:19:05 +00003342 colortoint, parse_colors()
3343 - Don't add strings with invalid fg colors at all.
Chris Allegretta2e39c1c2003-02-13 03:36:15 +00003344 do_rcfile()
3345 - Revert (somewhat) previous behavior of looking at
3346 $HOME, and only run getpw* if it is NULL. Most *nix programs
3347 seem to only care about $HOME, and at the user-level
3348 getpw* may not be reliable (and its slower).
Chris Allegrettaa90d0cf2003-02-10 02:55:03 +00003349- search.c:
3350 do_gotoline()
3351 - Only goto_abort() if we *didnt* abort the command, making
3352 the function seem horribly misnamed ;-) (David Benbennick).
Chris Allegrettabfc8b2a2003-02-08 21:49:13 +00003353- winio.c:
Chris Allegrettae9b5c6f2003-02-12 23:49:56 +00003354 browser_init(), striponedir(), do_browse_from()
3355 - Various memory leak fixes (David Benbennick).
Chris Allegrettab2cd2482003-02-12 23:18:19 +00003356 do_yesno(), do_help()
3357 - Add defined(NCURSES_MOUSE_VERSION) to macro so systems that
3358 don't understand MEVENT will compile.
Chris Allegrettabfc8b2a2003-02-08 21:49:13 +00003359 nanogetstr()
3360 - Remove unnecessary reset of x since it is now handled
3361 elsewhere (David Lawrence Ramsey).
Chris Allegrettaa90d0cf2003-02-10 02:55:03 +00003362 statusq()
3363 - Always blank the statusbar on exit (David Benbennick).
Chris Allegretta5ea694e2003-02-04 14:24:54 +00003364- nano.1, nano.1.html:
3365 - Add initialization file comments, change some options from
3366 bracketed to underlined to emphasize that they are not
3367 optional.
Jordi Mallacha66a8f72003-02-09 01:28:40 +00003368 - Add SEE ALSO section (Jordi).
Chris Allegretta4f989fa2003-02-13 04:01:49 +00003369 - Moved nano.1 color and syntax sections to nanorc, pointed
3370 nano.1 to nanorc.5 for initialization file. Changed
3371 nanorc.5 variables to be italics to match nano.1. Added
3372 nanorc.5.html to CVS tree.
Jordi Mallacha66a8f72003-02-09 01:28:40 +00003373- nanorc.5:
3374 - Add nanorc manpage, with descriptions of all available commands
3375 (Jordi).
Chris Allegrettaa3daf3a2003-02-07 00:11:55 +00003376- nanorc.sample:
3377 - Make nanorc entry less tolerant of invalid colors.
Chris Allegretta97e10b52003-02-08 22:05:50 +00003378- nano.spec.in:
3379 - Change default flags to --enable-all.
Jordi Mallach2ddd75e2003-02-09 23:51:17 +00003380- THANKS:
3381 - Add Kalle Kivimaa and Kalle Olavi Niemitalo, for Finnish (Jordi).
Jordi Mallachaebfac82003-02-13 12:50:53 +00003382- UPGRADE:
3383 - Add upgrading information document for 1.0 users (Jordi).
Chris Allegrettacddbfd02003-02-03 15:29:56 +00003384
Chris Allegretta5c8c2762003-02-03 15:21:27 +00003385GNU nano 1.1.99pre2 - 2003.02.03
Jordi Mallacha577d5a2003-02-04 14:13:36 +00003386- General:
Chris Allegretta0e86e602003-01-23 04:27:23 +00003387 - Changed some translatable debug messages to use %s
3388 instead of the function name, and removed gettext from
3389 two strings that had no actual words in them that
3390 should be translated. Suggested originally by
3391 Christian Rose.
Chris Allegretta9090f2e2003-01-26 04:45:05 +00003392 - Fix subexpression replacement to work consistently.
3393 Affects search.c:replace_regexp() and
3394 utils.c:strstrwrapper() (David Benbennick).
Chris Allegretta47fcfe52003-01-26 21:01:16 +00003395 - Fix cursor position being saved when escaping out
3396 of nanogetstr with keys like ^Y and ^V. New arg
3397 resetpos to nanogetstr(), added static int
3398 resetpos in statusq() (bug found by DLR).
Chris Allegrettad26ab912003-01-28 01:16:47 +00003399 - Fix constant curos updates from obliterating other
3400 system messages, and fix statusbar message length.
3401 Affects files.c:load_open_file(), nano.c:main(),
3402 search.c:findnextstr(), winio.c:statusbar() and
3403 do_cursorpos() (David Benbennick).
Chris Allegretta5d715142003-01-29 04:18:37 +00003404 - Fix nano crashing when searching/replacing an invalid
3405 regex (try "^*"). Changed regexp_init() to return
3406 1 or 0 based on regcomp()'s return value and search_init
Chris Allegrettad89eb912003-02-03 07:07:40 +00003407 to exit with an error message (sorry Jordi!). Added
3408 another check when using last_search instead of answer.
Chris Allegrettace452fb2003-02-03 02:56:44 +00003409 - Move regcomp into rcfile.c rather than each display refresh
3410 of winio.c. New function rcfile.c:nregcomp().
3411 This fixes much of nano's resource hogging behavior
3412 in syntax higlighting. (David Benbennick).
Chris Allegrettacff6e6f2003-02-03 03:22:02 +00003413 - Fix justify failing for certain lines, new function
3414 nano.c:breakable() (David Benbennick).
Chris Allegrettaa0d89972003-02-03 03:32:08 +00003415 - Fix screen getting trashed on signals nano can catch
3416 (TERM and HUP). New global variable curses_ended,
Chris Allegrettadbfc56c2003-02-03 03:33:04 +00003417 changes to winio.c:statubar() and nano.c:die()
3418 (David Benbennick).
Chris Allegretta149781d2003-01-26 03:54:00 +00003419- cut.c:
3420 do_cut_text()
3421 - Fix incorrect cursor location when cutting long lines
3422 (David Benbennick).
Chris Allegretta54c1f792003-01-26 04:11:09 +00003423- files.c:
Chris Allegretta858d9d92003-01-30 00:53:32 +00003424 - Set a default PATH_MAX for getcwd() etc calls (David
3425 Benbennick).
3426 do_browse_from()
3427 - Fix path checking to fix bad paths, escaping
3428 the operating directory, new function readable_dir() (David
3429 Benbennick).
Chris Allegrettab698c352003-01-26 22:05:07 +00003430 do_browser()
3431 - Fix incorrect path check for check_operating_dir()
3432 (David Benbennick).
Chris Allegrettaf80a59c2003-01-30 00:57:33 +00003433 - Fix goto directory operating dir check and tilde expansion
3434 (David Benbennick).
Chris Allegretta0eab2362003-02-03 03:39:05 +00003435 - Even more checks and operating dir fixes (David Benbennick).
Chris Allegretta434d6862003-02-03 04:55:17 +00003436 do_insertfile()
3437 - Add some more checks and fix recursion when toggling
3438 multibuffer (David Benbennick).
Chris Allegretta54c1f792003-01-26 04:11:09 +00003439 open_file()
3440 - Fix FD leak with file load error (David Benbennick).
Chris Allegretta5c63f272003-02-02 04:26:54 +00003441 add_open_file()
3442 - Revert the fix for the supposed minor logic error from before;
3443 it was keeping some updates from happening when they should,
3444 which was leading to segfaults with both multibuffer and view
3445 mode on. (DLR; found by David Benbennick)
Chris Allegretta77e726d2003-01-26 19:36:08 +00003446 save_history()
3447 - Fix nrealloc return value being ignored (David Benbennick).
Chris Allegrettac4533572003-02-03 05:04:09 +00003448 - Fix off-by-one bug causing write to unallocated memory
3449 (David Benbennick).
Chris Allegrettace452fb2003-02-03 02:56:44 +00003450- global.c:
3451 thanks_for_all_the_fish()
3452 - Fix compiling with DEBUG and multibuffer (David Benbennick).
Jordi Mallacheeb50042003-01-18 22:42:34 +00003453- nano.c:
Chris Allegrettaa3407662003-01-26 21:13:03 +00003454 do_char()
3455 - Remove unneeded check_statblank() (David Benbennick).
Chris Allegretta64fc78c2003-01-26 19:57:44 +00003456 do_int_spell_fix(), do_int_speller()
3457 - Fix crashes with mark position, current_x position,
3458 and edit_update args (David Benbennick).
Chris Allegretta2a7b8b22003-01-30 00:42:20 +00003459 do_justify()
3460 - Unset KEEP_CUTBUFFER so nano won't crash with subsequent
3461 ^K cuts and justifies (David Benbennick).
Chris Allegrettae92a7bc2003-01-28 01:36:38 +00003462 do_mouse()
3463 - Fix the mouse code to work with lines longer than COLS and
3464 with the proper positioning, including special characters
3465 (David Benbennick).
3466 do_preserve_msg():
3467 - Unsplit error message into a single fprintf call (Jordi).
Chris Allegretta3d459ad2003-01-22 01:09:40 +00003468 main()
3469 - Call load_file with arg 0 for insert, as we aren't really
3470 doing an insert, allows new_file() to run if we open a
3471 non-file at startup.
3472 usage()
Jordi Mallacheeb50042003-01-18 22:42:34 +00003473 - Remove gettext markings from -p/--preserve (Jordi).
Chris Allegretta36fec722003-01-22 01:13:25 +00003474 - Revamp -H option message to fit in 80 column terminal.
Chris Allegretta1a128af2003-01-26 04:15:56 +00003475 window_init()
3476 - Fix leaking *WINDOWs (no pun intended) (David Benbennick).
Chris Allegretta1939c352003-01-26 04:26:25 +00003477- search.c:
Chris Allegretta8a85aa02003-01-26 20:02:15 +00003478 do_search(), do_replace_loop()
3479 - Fix edit_update call to use CENTER instead of current_x
3480 (related to David Benbennick's fixes for spelling).
Chris Allegretta1939c352003-01-26 04:26:25 +00003481 do_replace_loop()
3482 - Fix various bugs having to do with replace string length
3483 and positioning (David Benbennick).
Chris Allegretta63d0b482003-01-26 19:47:10 +00003484 edit_refresh()
3485 - Fix cursor being above as well as below the current screen
3486 (David Benbennick).
Chris Allegretta3bbc4162003-01-23 00:46:12 +00003487- winio.c:
3488 bottombars()
3489 - Change strcpy of gettext() "Up" string to strncpy of max
3490 width 8, to stop stupid strcpy crash.
Chris Allegrettadb28e962003-01-28 01:23:40 +00003491 do_yesno()
3492 - Fix mouse interaction bugs with yes/no prompt (David Benbennick).
Chris Allegrettaf22e8bf2003-01-23 01:21:26 +00003493- nanorc.sample:
3494 - Change comment to say magenta instead of purple.
3495
Chris Allegrettad46f5442003-01-17 21:47:33 +00003496GNU nano 1.1.99pre1 - 2003.01.17
David Lawrence Ramseydc60b722002-10-25 16:08:53 +00003497- General:
Chris Allegrettad46f5442003-01-17 21:47:33 +00003498 - New date format for NEWS and ChangeLog.
Chris Allegretta7662c862003-01-13 01:35:15 +00003499 - Completely removed PICO_MODE, as with the search/replace
3500 history patch we should have the extended functionality we can
3501 without being incompatible with Pico. Removed all code for
3502 different search/replace string editing and alternate shortcut
3503 list. I'm sure I won't even have to ask for feedback on this
3504 one :-)
3505 - Add in Pico's -p flag, (-p, --preserve). To preserve the XON
3506 and XOFF keys (^Q and ^S). Add warning if we invoke -p and
3507 add checks for using --preserve (to skip warning) and --pico
3508 (to force showing it). New flag PRESERVE, function
3509 do_preserve_msg(), changes to main(), signal_init().
3510 - Search history and replace history up/down cursor arrows,
3511 w/history tab completion, not available w/NANO_SMALL. Changes
3512 to statusq(), others (Ken Tyler). Added shortcut to
3513 search/replace shortcuts so people will know it's there,
3514 forced KEY_UP and KEY_DOWN defs in nano.h (Chris, in case
3515 blame needs to be placed later). Minor fixes by DLR: allow ^P
3516 and ^N as alternatives to the up and down arrows, make sure
3517 the "Up" shortcut is displayed properly in the help menu,
3518 remove a few bits of unneeded and/or warning-generating code,
3519 and fix some missing statusq() prompts with --enable-tiny.
Chris Allegrettaf3de8b52003-01-16 23:44:46 +00003520 - Added search/replace history log. Flag -H, --historylog.
3521 Flags HISTORY_CHANGED and HISTORYLOG (only room for one more
3522 flag!), added entries in nanorc.sample, new functions
3523 log_history and save_history (Ken Tyler).
Jordi Mallach5e4b8cf2002-10-26 15:02:14 +00003524 - Translation updates (see po/ChangeLog for details).
David Lawrence Ramseydc60b722002-10-25 16:08:53 +00003525 - Forward-ported Chris' --disable-wrapping-as-root option from
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003526 1.0.9. Per Jordi's suggestions, have it override
3527 $SYSCONFDIR/nanorc but not ~/.nanorc. (DLR)
3528 - Change all references to /etc/nanorc in the documentation to
3529 $SYSCONFDIR/nanorc. (DLR)
David Lawrence Ramsey99519ae2002-11-04 16:12:19 +00003530 - Minor cosmetic tweaks to the ngettext() macro, and fix to
3531 properly detect systems lacking ngettext() and correctly
3532 compile on them; the previous fix didn't work. (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003533 - Fix problems with some code sections' not being #ifdef'ed out
3534 when they should be, or being #ifdef'ed out improperly. (David
3535 Benbennick and DLR)
3536 - Change FOLLOW_SYMLINKS to NOFOLLOW_SYMLINKS, and rework the
3537 associated logic accordingly, throughout the code. (David
3538 Benbennick)
3539 - Rework #ifdefs to not include mouse_init() at all if
3540 DISABLE_MOUSE is defined or NCURSES_MOUSE_VERSION isn't. (DLR)
3541 - For consistency, change many references of (!x) to (x == NULL)
3542 and (x) to (x != NULL). (DLR)
3543 - Define KEY_IC properly (and KEY_DC more portably) when slang
3544 support is enabled, and remove the hack to work around the
3545 former's not being defined. (David Benbennick and DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00003546 - Miscellaneous tweaks to update_color() calls, to make sure
3547 they're called at the right times and that refreshes are done
3548 afterwards only when needed. (David Benbennick)
3549 - Renamed [have_]past_editbuff [have_]search_offscreen. (DLR)
3550 - Add the "preserve" option to the nanorc file, to match
3551 nanorc.sample. (DLR)
Chris Allegretta0e7a3f52003-01-15 03:06:25 +00003552 - Fixed awful scrolling in do_int_speller. Problem was
3553 findnextstr() calling edit_update(), though screen updating
3554 is not its business. Added checks in do_search() and
3555 do_replace_loop() to do the checks. It really should not be
3556 done here, as some function in winio.c should handle this,
3557 but I can't seem to find a good place to put this check.
Chris Allegrettad757e252003-01-15 19:33:27 +00003558 - Updated all copyright notices to say 2003 rather than 2002, as
3559 nearly all the source files have been worked on this year
3560 (DLR).
Jordi Mallach3e5ad632002-12-14 22:15:35 +00003561- configure.ac:
Jordi Mallacha0e829c2003-01-15 17:43:59 +00003562 - Added tr and eu to ALL_LINGUAS (Jordi).
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003563 - Fix now inaccurate description of --enable-tiny's effects; it
3564 no longer disables NLS support. (DLR)
3565 - Fix typo. (David Benbennick)
3566 - Check for strcasecmp() and strncasecmp(), since they are
3567 apparently only standard under BSD. (DLR)
Jordi Mallach631ee1f2003-01-15 17:40:35 +00003568 - Small cleanups. Add copyright header, add autopoint support and
3569 define bug report address and full package name in AC_INIT. Move
3570 ALL_LINGUAS to po/LINGUAS, recommended place for gettext 0.11.
Chris Allegrettad957f592003-01-17 00:17:45 +00003571 - Added --enable-all option to compile in all the extra stuff
3572 we'd normally need extra flags for.
Chris Allegretta7662c862003-01-13 01:35:15 +00003573- color.c:
3574 update_color():
3575 - Remove an unneeded edit_refresh() call after do_colorinit().
3576 (David Benbennick)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003577- cut.c:
3578 do_cut_text()
3579 - Fix a memory corruption problem caused by accessing edittop
3580 after it was freed but before it was reset to a sane value
3581 from current. (David Benbennick)
3582 do_uncut_text()
3583 - If uncutting more than one line of unmarked text at editbot,
3584 don't center the screen, since Pico doesn't. (DLR)
Chris Allegretta688c8eb2003-01-14 23:36:11 +00003585 - If uncutting previously unmarked text, uncut to end if we're
3586 not at the beginning of the line, and set placewewant to 0 if
3587 we are. This matches Pico's behavior. (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003588- files.c:
Chris Allegretta7662c862003-01-13 01:35:15 +00003589 load_file()
3590 - Remove unneeded wmove() call. (David Benbennick)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003591 read_line()
3592 - Miscellaneous cleanups. (David Benbennick)
Chris Allegretta7662c862003-01-13 01:35:15 +00003593 open_file()
3594 - If we're in multibuffer mode and there's an error opening the
3595 file in read-only mode, display the error message on the
3596 statusbar regardless of the value of quiet. (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003597 read_file()
3598 - Miscellaneous cleanups. (David Benbennick)
3599 - Fix len's being off by one when reading in Mac-format files,
3600 exposed by one of David Benbennick's cleanups. (DLR)
3601 - If NO_CONVERT isn't set when we first enter, and it gets set
3602 while reading in the file, unset it again afterwards. (DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00003603 do_insertfile()
3604 - If we're in multibuffer mode and there's an error opening the
3605 file that we're trying to insert, close the new buffer that we
3606 made to hold it and reload the buffer we had open before.
3607 (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003608 add_open_file()
3609 - Fix minor logic error when determining when to resave fileage
3610 and filebot. (DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00003611 load_open_file()
3612 - If switching between files when CONSTUPDATE is set, only force
3613 a cursor position display update if DISABLE_CURPOS isn't set.
3614 This will ensure that the "Switching to [file]" messages are
3615 shown. (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003616 write_file()
3617 - Change lineswritten from a long to an int, to match
3618 filestruct->lineno. (DLR; mismatch found by David Benbennick)
Chris Allegretta7662c862003-01-13 01:35:15 +00003619 real_dir_from_tilde()
3620 - Since this is needed for proper interpretation of paths
3621 containing tildes and not just for tab completion, include and
3622 use it regardless of whether tab completion is disabled.
3623 (David Benbennick and DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003624 input_tab()
3625 - Variable name change: matchBuf -> matchbuf. (DLR)
3626 diralphasort()
3627 - Remove the HAVE_STRCASECMP #ifdef block; see the changes to
3628 configure.ac and nano.h for why. (DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00003629- global.c:
3630 thanks_for_all_the_fish()
3631 - Miscellaneous cleanups. (David Benbennick)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003632- move.c:
3633 do_page_down()
3634 - If there's a page or less of text, do an edit_update() if the
3635 mark is on; otherwise, the highlight won't be displayed. (DLR)
David Lawrence Ramsey9e050ad2002-11-04 16:18:52 +00003636- nano.c:
Chris Allegretta7662c862003-01-13 01:35:15 +00003637 - Added free_history() list calls clean up, added init of list
3638 headers, and modified statusq() calls (Ken Tyler).
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003639 do_prev_word()
3640 - Make the assert match that in do_next_word(). (DLR)
3641 do_enter()
3642 - If smooth scrolling is on, and Enter is pressed on the
3643 magicline, don't center the screen. (DLR)
3644 do_justify()
3645 - Fix memory corruption problem triggered when edittop and
3646 current->next pointed to the same value and current->next was
3647 destroyed during justification. (DLR)
3648 - Center the screen when justification moves the cursor entirely
3649 off the bottom of the screen, instead of when it moves the
3650 cursor near the bottom of the screen, to more closely match
3651 Pico's behavior. (DLR)
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003652 version()
3653 - Remove obsolete reference to --enable-undo. (David Benbennick)
Chris Allegrettae6600372003-01-17 03:39:41 +00003654 - Move up check for --disable-nls as it's independent of
3655 --enable-tiny now (DLR).
Chris Allegretta5ad92ac2002-12-09 00:58:51 +00003656 do_int_speller()
Chris Allegretta5af58892003-01-17 21:07:38 +00003657 - Make internal spell program use sort -f and uniq to create a
3658 less redundant word list. [The only reason this is going in
3659 during feature freeze is because the int speller is useless as
3660 is and should either be improved or removed. I chose
3661 improved].
Chris Allegretta3f1b6852003-01-12 23:54:05 +00003662 - Change all child error checks to use one goto (gasp!) called
3663 close_pipes_and_exit, so we don't leak FDs.
Chris Allegretta2d5fc3a2003-01-16 03:11:23 +00003664 - Fix FD leaks which occur outside of errors (David Benbennick).
Chris Allegretta334a9402002-12-16 04:25:53 +00003665 do_int_speller(), do_alt_speller()
3666 - Programs now return char *, NULL for successful completion,
3667 otherwise the error string to display. This allows us to give
3668 more useful feedback to the user when spell checking fails.
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003669 ABCD()
3670 - Renamed abcd(). (DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00003671 main()
3672 - Remove an unneeded do_colorinit() call, do major cleanups, and
3673 allow loading of multiple files on the command line when
3674 multibuffers are used. (David Benbennick)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003675- nano.h:
3676 - Make sure NO_RCFILE and COLOR_SYNTAX aren't set to the same
3677 value. (DLR; discovered by Ken Tyler)
3678 - If strcasecmp() and/or strncasecmp() aren't available, use
Chris Allegretta7662c862003-01-13 01:35:15 +00003679 strcmp() and/or strncmp() instead. (DLR)
3680- proto.h:
3681 - Fix the #ifdef block for DISABLE_TABCOMP's being undefined
3682 so that functions only used with tab completion are properly
3683 #ifdef'ed out. (DLR)
3684- search.c:
Chris Allegretta2ad0f6c2003-01-16 03:51:02 +00003685 do_gotoline()
3686 - Don't call blank_statusbar_refresh() so if there's an error
3687 returned in multibuffer mode, we can actually see it.
Chris Allegretta688c8eb2003-01-14 23:36:11 +00003688 do_search()
3689 - Remove erroneously introduced near-duplicate call to
3690 update_history(). (DLR)
Chris Allegretta7662c862003-01-13 01:35:15 +00003691 print_replaced()
3692 - Remove and replace with an equivalent ngettext() call. (DLR)
3693 do_replace_loop()
3694 - Fix bug where if text on the magicline was replaced (which can
3695 be done via a regexp replace of "^$" with something other than
3696 ""), a new magicline wouldn't be created. (DLR)
Chris Allegrettaca7113a2003-01-14 23:35:24 +00003697 - Remove check for answer being a blank string, presumed to be
3698 a PICO_MODE holdover, but it stops us from doing a blank
3699 spelling replacement.
Chris Allegretta7662c862003-01-13 01:35:15 +00003700 do_replace()
3701 - For greater Pico compatibility, when an attempt to replace a
3702 string results in 0 replacements due to the string's not being
3703 found, display "[string] not found" instead of "Replaced 0
3704 occurrences". (DLR)
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003705- utils.c:
Chris Allegretta09fc4302003-01-16 22:16:38 +00003706 is_cntrl_char()
3707 - Rework to fix a problem with displaying certain high-bit
3708 characters. (David Benbennick; reported by Andrzej Marecki)
Chris Allegretta7662c862003-01-13 01:35:15 +00003709 align()
3710 - Don't just assert that the string passed in isn't NULL; check
3711 that it isn't and only do the alignment when it isn't. (David
3712 Benbennick)
3713 nmalloc(), nrealloc()
3714 - If the size passed to nmalloc() or nrealloc() is zero, don't
3715 die with an erroneous out-of-memory error. Also, change
3716 their dying messages to "nano is out of memory!". (David
3717 Benbennick)
3718 charalloc()
3719 - Removed and redefined as a macro that calls nmalloc(). (David
3720 Benbennick)
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003721- winio.c:
Chris Allegretta09fc4302003-01-16 22:16:38 +00003722 nanogetstr()
3723 - Tweak to make the cursor stay in the same place if we hit a
3724 prompt-changing toggle while it's in the middle of the string.
Chris Allegretta5af58892003-01-17 21:07:38 +00003725 Reset it to -1 (so next time we come here, it'll be set to the
3726 end of the string) if we leave the prompt via Enter or Cancel.
Chris Allegretta09fc4302003-01-16 22:16:38 +00003727 Also fix minor problem with search history where the current
3728 search item could be at the bottom of the history twice in a
3729 row under certain conditions. (DLR)
Chris Allegretta327abda2003-01-17 05:04:17 +00003730 - Remove parens in NANO_CONTROL_I check so nano won't complain if
3731 just NANO_SMALL is defined (David Benbennick).
David Lawrence Ramsey9b13ff32002-12-22 16:30:00 +00003732 edit_refresh()
3733 - Miscellaneous cleanups that fix a bug where the screen
3734 isn't updated after uncutting chunks of upwardly marked cut
3735 text that are over a page in length. (David Benbennick)
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003736 do_credits()
3737 - Add David Benbennick to credits. (DLR)
3738- nanorc.sample:
3739 - Added comment to explain the non-escaping of quotes in
3740 color regexes, based on info provided by David Benbennick.
3741 (DLR)
Chris Allegrettaed4fb2c2003-01-11 01:14:07 +00003742 - Added some examples for groff and the nanorc courtesy of
3743 Robert D. Goulding.
3744 - Added double hash marks to comment lines, so people who
3745 uncomment the beginning of every line won't get syntax errors.
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003746- faq.html:
Chris Allegretta7662c862003-01-13 01:35:15 +00003747 - Miscellaneous fixes and updates for typos, broken links, and
3748 slashes at the end of directories. It is now fully compliant
3749 with HTML 4.01 Transitional. (DLR and David Benbennick)
Chris Allegretta3f8a63c2003-01-17 02:49:23 +00003750 - Added docs about the new unified search string interface and
3751 search histories, and added --enable-all into configure docs.
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003752- nano.texi:
3753 - Typo fixes and updates. (David Benbennick)
Chris Allegretta9fa5fbd2003-01-13 02:56:29 +00003754 - Updates for the most recent and not so recent changes.
Chris Allegrettaf9ab3f72003-01-17 03:06:28 +00003755- nano.1, nano.1.html
3756 - Updated for the --preserve and --historylog options.
Chris Allegretta916a8ec2003-01-05 21:51:16 +00003757- TODO
3758 - Added some wishlist stuff.
Jordi Mallach3e5ad632002-12-14 22:15:35 +00003759- THANKS:
Jordi Mallacha0e829c2003-01-15 17:43:59 +00003760 - Added Doruk Fisek and Peio Ziarsolo (Jordi).
Chris Allegrettae8ad5ed2002-10-25 03:15:48 +00003761
Chris Allegretta22578932002-10-25 03:14:11 +00003762GNU nano 1.1.12 - 10/24/2002
Jordi Mallachdab02992002-10-06 23:35:19 +00003763- General:
3764 - Translation updates (see po/ChangeLog for details).
Chris Allegretta1dd0bc92002-10-13 18:43:45 +00003765 - Remove malloc.h, as it's unneeded and just causes annoyances on
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003766 *BSD systems. Added stdlib.h to global.c.
Chris Allegretta1dd0bc92002-10-13 18:43:45 +00003767 - Added Meta-Y toggle to disable/enable color syntax highlighting
3768 completely. This may eventually be per-buffer, but that's too
3769 complicated for a feature freeze.
Chris Allegrettae42df732002-10-15 00:27:55 +00003770 - Disable VSTOP keystroke. Stops people accidentally locking up
3771 nano (suggested by David Benbennick).
David Lawrence Ramsey2ab03f62002-10-17 02:19:31 +00003772 - Pluralize messages with ngettext() where needed. (David
Chris Allegrettad45c5992002-10-25 01:41:31 +00003773 Benbennick) Tweaked to compile on systems lacking ngettext()
3774 by DLR (problem found by Ken Tyler).
David Lawrence Ramsey2ab03f62002-10-17 02:19:31 +00003775 - Update nano.1 and nano.1.html to show that nano now does an
3776 emergency save on receiving SIGHUP or SIGTERM. (DLR)
3777 - Don't include "nowrap" in the long options if
3778 DISABLE_WRAPPING is defined. (DLR)
3779- files.c:
3780 read_file()
3781 - Minor efficiency fixes, some of which fit in with the change
3782 to ngettext() usage mentioned above. (David Benbennick)
3783 do_browser()
3784 - Make sure the value of path is mallocstrcpy()ed into retval
3785 and not just assigned to it, to avoid memory corruption
3786 problems. (DLR)
3787- nano.c:
Chris Allegretta2a15c582002-10-25 01:51:13 +00003788 version()
3789 - If ENABLE_NLS isn't defined, display "--disable-nls"
3790 (suggested by Ken Tyler). (DLR)
David Lawrence Ramsey2ab03f62002-10-17 02:19:31 +00003791 justify_format()
3792 - Make sure the double space maintained after sentence-ending
3793 punctuation is done when that punctuation is immediately
3794 followed by a bracket-type character, so justifying e.g.
3795 sentences in parentheses works properly. (David Benbennick)
3796 handle_hup()
3797 - Renamed handle_hupterm() to show that it now handles SIGTERM
3798 as well as SIGHUP. (DLR)
3799 signal_init()
3800 - Do an emergency save on receiving either SIGHUP or SIGTERM,
3801 not just SIGHUP. (David Benbennick)
3802 main()
3803 - Fix a problem where control key commands were printed
3804 literally instead of interpreted after a failed search of a
3805 one-line file. (David Benbennick)
3806- proto.h:
3807 handle_hup()
3808 - Renamed handle_hupterm(); see above for why. (DLR)
3809- winio.c:
3810 edit_add()
3811 - Fix a potential infinite loop occurring with certain
3812 zero-length regexes. (David Benbennick)
Chris Allegretta71fb1f52002-10-02 00:21:31 +00003813
Chris Allegretta136a38a2002-10-02 00:05:40 +00003814GNU nano 1.1.11 - 10/01/2002
Jordi Mallach25daa052002-07-29 00:16:38 +00003815- General:
3816 - Translation updates (see po/ChangeLog for details).
Jordi Mallach1f1022f2002-08-21 18:19:53 +00003817 - Upgraded to gettext 0.11.5 (Jordi).
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003818 - Updated nano.1, nano.1.html, and nano.texi to fix an
3819 inaccuracy in the description of -Q/--quotestr. (DLR)
3820 - Set REG_EXTENDED in all regcomp() calls. (DLR)
3821 - Minor cosmetic code cleanups. (DLR)
Chris Allegrettaf7c68112002-09-03 22:58:40 +00003822 - Changed do_insertfile to (a) report multibuffer status at the
3823 prompt and allowing it to be toggled, taking into account the
3824 need to keep the translatable strings, and (b) added a
3825 variable inspath to keep track of what the string was before
3826 toggling. I'm sure there's bugs, have at it.
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00003827 - Make sure all functions have prototypes in proto.h, and swap
3828 some functions around to put similar functions closer
3829 together (for this, rename clear_bottombars() to
3830 blank_bottombars()). (DLR; suggested by David Benbennick)
David Lawrence Ramseye21adfa2002-09-13 18:14:04 +00003831 - More changes of char *'s to const char *'s when possible.
3832 (David Benbennick)
3833 - Fix various minor memory leaks in files.c. (David Benbennick)
3834 - Fix minor problems with the operating directory code: set the
3835 operating directory properly if it's specified only in a
3836 nanorc file, and handle an operating directory of "/"
3837 properly. New function init_operating_dir() to handle
3838 setting it both on the command line and in the nanorc file.
3839 (David Benbennick)
David Lawrence Ramsey1f28b8f2002-09-27 14:21:59 +00003840 - Major rewrite of color and screen update routines to fix
3841 minor bugs and increase efficiency. New function
3842 set_colorpairs() for the former. (David Benbennick)
Jordi Mallachcb7c8d82002-07-27 02:49:46 +00003843- configure.ac:
3844 - Added pt_BR to ALL_LINGUAS (Jordi).
Chris Allegretta82559b32002-08-22 01:12:41 +00003845 - Changed --enable-color warning to be slightly less severe.
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00003846 - Put the configure options in more or less alphabetical order,
3847 and remove --enable-undo, since it doesn't do anything. (DLR)
Chris Allegrettad865da12002-07-29 23:46:38 +00003848- files.c:
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003849 open_file()
3850 - String change: "File "x" is a directory" -> ""x" is a
3851 directory". (Jordi)
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00003852 do_insertfile()
3853 - Disallow multibuffer toggling at the "Insert File" prompt if
3854 we're in both view and multibuffer mode, so as to keep proper
3855 integration between the two, and make sure the toggle
David Lawrence Ramseye21adfa2002-09-13 18:14:04 +00003856 actually works all the time otherwise. Also, make sure
3857 TOGGLE_LOAD_KEY isn't referenced when NANO_SMALL and
3858 ENABLE_MULTIBUFFER are both defined. (DLR)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003859 open_prevfile_void(), open_nextfile_void()
3860 - Return the return values of open_prevfile() and
3861 open_nextfile(), respectively, instead of (incorrectly)
3862 calling them and returning 0. (DLR)
Chris Allegrettad865da12002-07-29 23:46:38 +00003863 real_dir_from_tilde()
3864 - Rework to use getpwent() exclusively and end reliance on
3865 $HOME. Adapted from equivalent code in do_rcfile(). (DLR)
3866 input_tab()
3867 - Most likely fixed the check marked with FIXME, so that tab
3868 completion works properly when we're trying to tab-complete a
3869 username and the string already contains data. (DLR)
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00003870- global.c:
3871 shortcut_init()
David Lawrence Ramseye21adfa2002-09-13 18:14:04 +00003872 - Disable the new multibuffer toggle at the file insertion
3873 prompt when NANO_SMALL and ENABLE_MULTIBUFFER are both
3874 defined. (DLR)
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00003875 thanks_for_all_the_fish()
3876 - Make sure the reference to help_text is #ifdefed out when
3877 --disable-help is used. (DLR)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003878- move.c:
3879 page_up()
3880 - Fix bug where current is moved up two lines when the up arrow
3881 is pressed on the top line of the edit window; this causes a
3882 segfault is the top line in the edit window is the second
3883 line of the file, as the line current ends up on doesn't
David Lawrence Ramsey768e8f02002-08-22 04:03:45 +00003884 exist. (Jeff DeFouw)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003885 do_down()
3886 - Fix bug where, if the last line in the edit window is the
3887 line before the magicline, and smooth scrolling is turned
3888 off, pressing the down arrow on that last line centers the
3889 cursor without updating the edit window. (Jeff DeFouw)
Chris Allegrettad865da12002-07-29 23:46:38 +00003890- nano.c:
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00003891 version()
3892 - Put the listed configure options in more or less alphabetical
3893 order. (DLR)
3894 open_pipe()
3895 - If we're in view mode here (in which case we're also in
3896 multibuffer mode), don't set the modification flag. (DLR)
Chris Allegrettad865da12002-07-29 23:46:38 +00003897 do_next_word(), do_prev_word()
3898 - If we're on the last/first line of the file, don't center the
3899 screen; Pico doesn't in the former case. (DLR)
3900 do_backspace()
3901 - Rework to call edit_refresh() regardless of the value of
3902 current_x if ENABLE_COLOR is defined, so that multiple-line
3903 color regexes are properly updated onscreen as they are in
3904 do_delete(). (DLR)
3905 do_delete()
3906 - Rework to only call edit_refresh() unconditionally if
3907 ENABLE_COLOR is defined; if it isn't, and we're not deleting
3908 the end of the line, only call update_line(). (DLR)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003909 do_wrap()
3910 - Make sure wrapping is done properly when the number of
3911 characters on the line is exactly one over the limit. (David
3912 Benbennick)
Chris Allegretta0ae5c722002-09-19 23:20:26 +00003913 - Restore the previous wrapping point behavior (pre 1.1.10)
Chris Allegretta43000922002-09-21 15:41:33 +00003914 (David Benbennick). Minor fix by DLR to prevent spaces from
3915 being added to the ends of lines ending in spaces or lines
3916 ending in tabs (the latter case found by David Benbennick).
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003917 do_alt_speller()
3918 - Readd DLR's fix to preserve marking when using the alternate
3919 spell checker; it was accidentally dropped. (David
3920 Benbennick)
3921 do_justify()
3922 - Fix cosmetic problems caused when justifying on the
David Lawrence Ramseye21adfa2002-09-13 18:14:04 +00003923 magicline, and a minor problem where the cursor would
3924 sometimes be moved to the wrong line after justification.
3925 (David Benbennick)
David Lawrence Ramseyad40fdb2002-09-06 20:35:28 +00003926 main()
3927 - When searching through the main shortcut list looking for a
3928 shortcut key, stop searching after finding one; this avoids a
3929 rare segfault. (DLR)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003930- nano.h:
3931 - Change search toggles for case sensitive searching and regexp
3932 searching to M-C and M-R, respectively. (DLR; suggested by
3933 Chris)
Chris Allegretta515ba322002-09-14 21:16:40 +00003934 - Add support for HP-UX's curses, which doesn't seem to support
3935 KEY_HOME and KEY_END.
Chris Allegretta79cdfdc2002-08-22 02:58:55 +00003936- nanorc.sample:
3937 - Fix the c-file regex for all caps words to be extended regex
3938 format ({} instead of \{\}) (found by DLR).
Chris Allegretta3f9c3bf2002-09-18 00:00:12 +00003939 - Add a better string matching sequence that includes escaped
3940 quotes (thanks to Carl E. Lindberg, who doesn't even know he
David Lawrence Ramsey1f28b8f2002-09-27 14:21:59 +00003941 helped ;-). Some unneeded \'s in that sequence removed, and
3942 a new sequence to handle multi-line quotes added, by David
3943 Benbennick.
Chris Allegretta136a38a2002-10-02 00:05:40 +00003944 - Add some examples for HTML and TeX files (David Benbennick).
Chris Allegrettade852622002-09-18 00:28:57 +00003945- rcfile.c:
3946 parse_colors()
3947 - Stop infinite loop when syntax doesn't begin with " char.
David Lawrence Ramseye21adfa2002-09-13 18:14:04 +00003948- utils.c:
3949 charalloc()
3950 - Switch from using calloc() to using malloc(). (David
3951 Benbennick)
David Lawrence Ramsey605165e2002-09-11 01:48:14 +00003952- faq.html:
3953 - Typo fix. (DLR)
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00003954- AUTHORS:
3955 - Add David Benbennick. (Jordi and Chris)
David Lawrence Ramsey0341b582002-08-21 16:10:37 +00003956- TODO:
3957 - Add entry in the 1.4 section for Pico's paragraph searching
3958 ability (at the search prompt, ^W goes to the paragraph's
3959 beginning, and ^O goes to the paragraph's end). (DLR)
Chris Allegretta52069c62002-07-25 22:27:50 +00003960
Chris Allegretta720a9e02002-07-25 22:26:33 +00003961GNU nano 1.1.10 - 07/25/2002
Jordi Mallachcb7c8d82002-07-27 02:49:46 +00003962- General:
Jordi Mallach1f226872002-05-13 15:05:38 +00003963 - Translation updates (see po/ChangeLog for details).
Jordi Mallach790d3622002-06-03 12:44:05 +00003964 - Upgraded to gettext 0.11.2 (Jordi).
Jordi Mallachbd338652002-06-03 12:32:28 +00003965 Removed intl/ entirely, and a few more tweaks by gettextize.
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003966 - i18nized a few strings used in DEBUG mode. (DLR)
3967 - Some chars being assigned 0 are now assigned '\0'. (DLR)
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00003968 - Put header file #includes in a more consistent order. (DLR)
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00003969 - Remove some unneeded blank lines and spaces, and make some
3970 spacing more consistent. (DLR)
3971 - When possible, use iscntrl() to determine whether a character
3972 is a control character or not. (DLR)
3973 - Miscellaneous typo fixes. (DLR)
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00003974 - Many fixes to the help browser and shortcut lists: efficiency
3975 updates, consistency fixes, help text fixes and improvements,
3976 and spacing improvements. (David Benbennick)
Chris Allegretta6df90f52002-07-19 01:08:59 +00003977 - Make some functions use const variables when possible, and
3978 also make them static when necessary. (David Benbennick,
3979 necessary redefined by Chris ;-)
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003980 - Add Carl Drinkwater's backup file option (-B or --backup on the
3981 command line, M-B in nano's global shortcuts). If the original
3982 file is unchanged from when it was loaded, it is backed up to
3983 filename~; if the original file has been changed or deleted
3984 since it was originally loaded, it isn't backed up. The backup
3985 file retains the permissions, owner/group, and
3986 access/modification times of the original file. This option is
3987 disabled when --enable-tiny is used. It will not back up
3988 temporary files. Minor fixes to it by David Benbennick and
3989 DLR. Changes to open_file(), add_open_file(),
3990 load_open_file(), write_file(), and do_writeout().
3991 - Add \n's to the ends of "filename is %s" debugging strings.
3992 (Carl Drinkwater)
3993 - Add the long option --quotestr as an alternative for -Q, and
3994 --regexp as an alternative for -R; they were listed in nano's
3995 usage information, but weren't actually in nano. Also, display
3996 "-?" as an alternative for "-h" in nano's usage information,
Chris Allegretta6df90f52002-07-19 01:08:59 +00003997 put the command line options in a more consistent (i.e. mostly
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00003998 alphabetical) order in nano, put the long options in a more
3999 consistent order in rcfile.c and nanorc.sample, don't include
4000 rcfile options if their equivalent command line options are
4001 disabled, and remove obsolete relative option from
4002 nanorc.sample. (DLR)
4003 - Change "File Name to Append/Prepend" to "File Name to
4004 Append/Prepend to". The original prompt could confusingly
4005 imply that we are appending/prepending another file to the
4006 current file, when we are actually appending/prepending the
4007 current file to another file. (DLR)
Chris Allegretta6df90f52002-07-19 01:08:59 +00004008 - Put nano.1, nano.1.html, and nano.texi up to date, and fix a
4009 few inconsistencies in them. (DLR)
4010 - Typo fixes for the ChangeLog. (David Benbennick and DLR)
4011 - Complete rewrite of justification code to fix some bugs and
4012 improve its functionality. (David Benbennick)
4013 - If a variable isn't going to be used in tiny mode, #define it
4014 out when possible. (David Benbennick)
4015 - Major reworking of the cutting/screen-updating code in cut.c,
4016 some functions in utils.c, the cursor placement code in
4017 winio.c, and many, many other areas to increase efficiency.
4018 (David Benbennick)
4019 - Rework handling of prompts when there's a list of partial
4020 filename matches on the screen: remove kludgy case-by-case
4021 handling (which didn't even handle every case), and have
4022 statusq() handle it directly for all cases. (David Benbennick
4023 and DLR)
4024 - Fix some warnings and errors that show up when using gcc's
4025 -pedantic option. (DLR)
4026 - Add a comment to nanorc.sample warning that an out-of-range
4027 negative value for fill can make nano die complaining that
4028 the screen is too small (which may not be immediately
Chris Allegrettad865da12002-07-29 23:46:38 +00004029 obvious). (DLR)
Chris Allegretta6df90f52002-07-19 01:08:59 +00004030 - There were some opendir() calls in files.c without
4031 corresponding closedir() calls; add them. (DLR)
4032 - Move align() and null_at() from nano.c to utils.c, and move
4033 the openfilestruct handling functions from nano.c to files.c.
4034 (DLR)
4035 - In color.c, start the "#ifdef ENABLE_COLOR" block after
4036 including all the header files, as rcfile.c does; this fixes
4037 a warning about ANSI C'S inability to handle blank files.
4038 (DLR)
Chris Allegrettacf287c82002-07-20 13:57:41 +00004039 - Add new function is_cntrl_char() as a wrapper for iscntrl();
4040 this is needed to treat ASCII 0x80-0x9f as control characters
4041 consistently. (Without this, they will only be treated as
4042 such when gettext is used; when it isn't used, they will be
4043 printed as-is and be interpreted as commands by xterm, which
4044 will corrupt the display.) (DLR)
Chris Allegretta6df90f52002-07-19 01:08:59 +00004045 - Add command line option -I/--ignorercfiles to ignore
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00004046 $SYSCONFDIR/nanorc and ~/.nanorc. (Carl Drinkwater). Fix to
4047 parsing getopt args (DLR).
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004048 - Fix minor bugs with importing certain text files in Mac
4049 format. (DLR)
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004050- files.c:
Chris Allegrettadffa2072002-07-24 01:02:26 +00004051 append_slash_if_dir(), input_tab()
4052 - Changed variable names: lastWasTab -> lastwastab, matchBuf ->
4053 matchbuf. (DLR)
4054 check_operating_dir()
4055 - Memory leak fix. (David Benbennick)
4056 check_writable_directory()
4057 - Optimizations (David Benbennick).
4058 cwd_tab_completion()
4059 - Changed a variable name: dirName -> dirname. (DLR)
4060 do_browser()
4061 - Optimizations and mouse selection fixes (David Benbennick).
4062 do_writeout()
4063 - Fix problem with formatstr's being defined as NULL when
4064 --enable-tiny is used. Since formatstr isn't ever used in tiny
4065 mode, don't bother even creating the variable. (David
4066 Benbennick and DLR)
4067 do_insertfile()
4068 - Memory leak fix (accidentally dropped 1st time).
4069 (David Benbennick).
4070 get_full_path()
4071 - Memory leak fix. Also, make it properly interpret ~/ notation
4072 so, among other things, the option "--operatingdir ~" works.
4073 (David Benbennick)
4074 - More optimizations (David Benbennick).
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004075 new_file()
Chris Allegretta6df90f52002-07-19 01:08:59 +00004076 - Make sure current_x is zero; this fixes a problem where the
4077 current cursor position wasn't reset when reading in a file in
4078 multibuffer mode. (David Benbennick)
Chris Allegrettadffa2072002-07-24 01:02:26 +00004079 - Use make_new_node rather than setting up fileage by hand
4080 (David Benbennick).
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004081 read_file(), read_line()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004082 - Rework to properly handle nulls in the input file, fix
4083 detection of binary files to properly mark a file as binary if
4084 the only binary characters it contains are ASCII 127's, and
4085 after reading the last line of a file that doesn't end in a
4086 newline, increment totsize. Remove previous kludge to set
4087 totsize properly. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004088 write_file()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004089 - Rework to properly handle nulls in the input file. When
4090 appending/prepending, don't change the current file's name to
4091 the name of the file it's being appended/prepended to. When
4092 writing a marked selection to a file, save and restore totsize
4093 so it isn't decreased by the size of the selection afterward.
4094 (DLR)
Chris Allegrettadffa2072002-07-24 01:02:26 +00004095 - Optimizations (David Benbennick).
Chris Allegretta6fe98d72002-05-16 23:30:14 +00004096- global.c:
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004097 free_toggles()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004098 - Only include if we're not using tiny mode. (David Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004099 toggle_init()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004100 - Remove global entries for search toggles, as they aren't really
4101 global. (DLR)
4102 - Don't reinititialize the toggles if they've already been
4103 initialized; it's unnecessary and even causes a segfault in
4104 do_toggle() if Pico emulation mode is the toggle in question.
4105 Don't free the toggles here, either; it's unnecessary after the
4106 above change. (David Benbennick)
Chris Allegretta6df90f52002-07-19 01:08:59 +00004107 - If wrapping is disabled, don't include the toggle for it.
4108 (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004109 shortcut_init()
Chris Allegretta6fe98d72002-05-16 23:30:14 +00004110 - Rework IFHELP macro (David Benbennick).
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004111- move.c
4112 page_down(), page_up()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004113 - Put sanity checks for current_x back in, to avoid rare
4114 segfaults (oops). Now, however, they are only called when
4115 placewewant is zero instead of being called unconditionally;
4116 see changes to winio.c:actual_x_from_start() below. (DLR)
Jordi Mallach790d3622002-06-03 12:44:05 +00004117- nanorc.sample:
Chris Allegretta5c6379d2002-05-18 03:13:03 +00004118 - Put in much less crappy example regex rules for c-file.
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004119- nano.c:
Chris Allegrettadffa2072002-07-24 01:02:26 +00004120 clear_filename()
4121 - Remove this function, as it has unneeded functionality, is
4122 short enough to be inlined, and is only called in two spots
4123 anyway. (DLR)
4124 die()
4125 - Rework slightly to remove redundant printing of last message
4126 and print all messages after resetting the terminal. (DLR)
4127 do_backspace()
4128 - Make sure placewewant is set properly, and that the mark is
4129 moved backwards. (David Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004130 do_char()
Chris Allegretta6df90f52002-07-19 01:08:59 +00004131 - Fix a problem where, if ENABLE_COLOR wasn't used, typing
4132 characters on a marked line before the beginning of the mark
4133 would make the highlight short by one. (David Benbennick)
Chris Allegrettadffa2072002-07-24 01:02:26 +00004134 do_cont()
4135 - Handle the case where the window was resized while we were
4136 stopped. (David Benbennick)
4137 do_delete()
4138 - Make sure placewewant is set properly, to match Pico's
4139 behavior. (DLR)
4140 do_int_spell(), do_alt_spell()
4141 - Rework to save the marked selection before doing spell checking
4142 and restore it afterward. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004143 do_next_word(), do_prev_word()
Chris Allegretta6df90f52002-07-19 01:08:59 +00004144 - Fix a problem where highlighting isn't done properly after
4145 calling either of these, and another problem where the cursor
4146 would move back too far in certain cases with do_prev_word().
4147 (David Benbennick)
Chris Allegrettadffa2072002-07-24 01:02:26 +00004148 do_toggle()
4149 - Since the search mode toggles aren't global anymore, we don't
4150 need to explicitly block them here anymore (which will end up
4151 blocking the global backup mode toggle, which is the same as
4152 the backwards search toggle). (DLR)
4153 do_wrap()
4154 - fill fixes and 'two short word wrap' bug (David Benbennick).
4155 global_init()
4156 - Call die_too_small() when fill is 0. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004157 handle_sigwinch()
Chris Allegretta6df90f52002-07-19 01:08:59 +00004158 - Make sure we adjust fill when the window is resized. (David
4159 Benbennick)
4160 - Call die_too_small() when fill is 0. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004161 help_init()
Chris Allegretta6df90f52002-07-19 01:08:59 +00004162 - Since the return value of snprintf() isn't well defined, use
4163 sprintf() instead. (David Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004164 main()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004165 - Rework to blank out filename manually before doing anything
4166 with it, instead of calling clear_filename() in two places.
4167 Make startline an int instead of a long, since it's supposed to
4168 hold a line number. (DLR)
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00004169 - Properly handle multiple -r settings on the command line. (Carl
4170 Drinkwater)
Chris Allegretta6df90f52002-07-19 01:08:59 +00004171 - Fix a bug that prevented file insertion via the Insert key
4172 from working at all when --enable-multibuffer wasn't used
4173 (oops). (DLR)
4174 - Adapt David Benbennick's fix to get fill to accept negative
4175 numbers properly in parse_rcfile() (see below) to the
4176 handlers for the -r and -T options as well, so that -r/-T 0
4177 can be treated separately from -r/-T string. (DLR)
Chris Allegrettacf287c82002-07-20 13:57:41 +00004178 - Fix so that Esc-Esc-Space is properly treated as Ctrl-Space.
4179 (DLR)
Chris Allegrettadffa2072002-07-24 01:02:26 +00004180 usage()
4181 - List the options that are ignored for the purpose of Pico
4182 compatibility, and make some minor consistency fixes. (DLR)
Chris Allegrettac46337b2002-07-23 00:34:48 +00004183- nano.h:
4184 - Fix some space/tab formatting for flags (DLR).
Chris Allegretta6df90f52002-07-19 01:08:59 +00004185- proto.h:
4186 - Remove external declaration of the global int fill, since
4187 it's now static. (DLR)
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004188- rcfile.c:
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004189 parse_rcfile()
Chris Allegretta6df90f52002-07-19 01:08:59 +00004190 - Add David Benbennick's fix that allows fill to accept
4191 negative numbers properly. Specifically, use strtol() there
4192 instead of atoi() so that errors can be detected. Also
4193 adapted for tabsize by DLR.
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004194 parse_next_regex(), colortoint()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004195 - Only include if ENABLE_COLOR is defined. (DLR)
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004196- search.c:
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004197 search_init()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004198 - Since the search mode toggles aren't global anymore, rework the
4199 part of this function referencing them so that they still work.
4200 (DLR)
4201 - Remove unneeded toggles variable. (David Benbennick)
Chris Allegretta6df90f52002-07-19 01:08:59 +00004202 - Fix a problem where the first character of buf was overwritten
4203 if the last search string was one third the number of columns
4204 plus one. (David Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004205 findnextstr()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004206 - Update the current line at current_x if we don't find a match.
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00004207 Also, pass current_x_find to strstrwrapper() so we know whether
4208 we're at the beginning of a string or not (see changes to
4209 strstrwrapper() below), and reset it between lines. (DLR)
4210 do_gotoline():
4211 - Make sure placewewant is zero after we go to a line. (David
4212 Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004213 do_gotopos()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004214 - Simplify the sanity check to only put x within the range of the
4215 current line; don't call actual_x() anymore. (DLR)
4216- utils.c:
4217 - Add sunder() and unsunder(). These functions convert nulls
4218 other than the terminating null in strings to newlines and
4219 back; they're used to handle null characters in files properly.
4220 (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004221 lowercase()
Chris Allegretta6df90f52002-07-19 01:08:59 +00004222 - Remove, since it isn't actually used anywhere. (David
4223 Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004224 strstrwrapper()
4225 - Set REG_NOTBOL when we're not at the beginning of a
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00004226 string, to avoid false positives when searching for regular
4227 expressions prefixed with ^. Make it take a new parameter,
4228 line_pos, to determine where we are in the string. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004229 check_wildcard_match()
Chris Allegretta6df90f52002-07-19 01:08:59 +00004230 - Changed variable names: retryPat -> retrypat, retryText ->
4231 retrytext. (DLR)
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004232- winio.c:
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004233 actual_x_from_start()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004234 - Overhaul to make cursor placement more like that of Pico: add
4235 sanity check for i, and then place i as close to the value of
4236 xplus column as possible. This change is most noticeable when
4237 moving down through binary files. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004238 do_credits()
4239 - Fix for the i18ned credits so it will compile with -pedantic
4240 (DLR & Chris).
Chris Allegretta079b5492002-09-19 23:54:53 +00004241 do_help()
4242 - Add support for the handled keyboard escape sequences in the
4243 help menu, as they are needed with some terminals (e.g. xterm
4244 with TERM=ansi). (DLR)
4245 edit_refresh()
4246 - Turn on leaveok() so the cursor doesn't bounce around the
4247 screen while we're updating it (most noticeable when using
4248 color syntax over a very slow connection).
4249 do_replace_highlight()
4250 - When using regexps, make sure the highlight is the length of
4251 the search result and not the regexp string. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004252 nanogetstr()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004253 - After the user presses Enter at the prompt, refresh the edit
4254 window in case there's a list of possible filename matches
4255 (left over from attempted tab completion) on it. (DLR)
Chris Allegretta079b5492002-09-19 23:54:53 +00004256 statusbar()
4257 - Limit statusbar display to the number of columns less four, and
4258 don't allow it to go over its original row. (David Benbennick)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004259 titlebar()
David Lawrence Ramseyc5967552002-06-21 03:20:06 +00004260 - Tweak text spacing and printing so that the titlebar text looks
4261 better on smaller terminals. (Carl Drinkwater)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004262 update_line()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004263 - When marking control characters, make sure the mark moves
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004264 forward by two characters instead of one. Rework control
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004265 character display routine to display newlines within the line
4266 (which should never occur under normal circumstances; they will
4267 only be there if the line had nulls in it and was unsunder()ed
4268 beforehand) as ^@'s. (DLR)
Chris Allegrettacf287c82002-07-20 13:57:41 +00004269 - Fix to properly treat ASCII 128-159 as control characters.
4270 (DLR)
Jordi Mallach7d401342002-07-05 23:46:31 +00004271- configure.ac:
4272 - Added ms to ALL_LINGUAS (Jordi).
4273 - Merged acconfig.h in (Jordi).
Chris Allegretta6df90f52002-07-19 01:08:59 +00004274 - Fixed so that --enable-debug defines DEBUG and undefines
4275 NDEBUG. (Carl Drinkwater)
Jordi Mallach790d3622002-06-03 12:44:05 +00004276- THANKS:
4277 - Completed a bit (Jordi).
Chris Allegretta6df90f52002-07-19 01:08:59 +00004278 - Fixed David Benbennick's email address. (David Benbennick)
4279 - Typo fix. (DLR)
Chris Allegrettac4e3d9e2002-07-21 15:44:13 +00004280
Chris Allegretta8b75a782002-05-13 00:09:30 +00004281GNU nano 1.1.9 - 05/12/2002
Chris Allegretta7162e3d2002-04-06 05:02:14 +00004282- General:
4283 - Typos n misspellings all over the place (David Benbennick).
4284 - Allow --tiny and --multibuffer to cooperate (who the heck
4285 would want this is beyond me but ;-). Changes to
4286 configure.ac, global.c, , (David Benbennick).
Chris Allegrettaf2387fb2002-04-10 02:31:20 +00004287 - Change to openfilestruct for multibuffer mode by DLR.
4288 New functions nano.c:make_new_opennode(), free_openfilestruct(),
4289 delete_opennode(), unlink_opennode(), splice_opennode(),
4290 new struct openfilestruct in nano.h.
Chris Allegretta0e9b7aa2002-04-16 03:15:47 +00004291 - Preliminary prepend code. This may be a bad idea, but I've
4292 been wanting it for awhile now and we'll see how bad it messes
4293 everything up. Changes to files.c:do_writeout(), write_file().
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004294 Fixes for O_CREAT & append compatibility by David Benbennick.
Chris Allegretta0547eb32002-04-22 23:52:34 +00004295 - Change from read() and write() to file streams by Jay Carlson.
4296 Allows OS to implement read and write ahead rather than making
4297 us do it. Hopefully merged properly.
Chris Allegrettadab017e2002-04-23 10:56:06 +00004298 - More cleanups with DISABLE flags, better free_shortcutage and
4299 free_toggle, and get rid of unnecessary variable decls with
4300 NANO_SMALL in shortcut_init() by David Benbennick.
Chris Allegrettab6c5dc22002-05-04 03:47:33 +00004301 - Added "syntax" command to .nanorc file, to allow multiple
4302 syntaxes. New function color.c:update_color(), calls in various
4303 files.c places, syntaxtype struct, global variables syntaxes,
Chris Allegretta21c433d2002-05-04 04:24:29 +00004304 syntaxfile_regexp and synfilematches. Global flag -Y ,--syntax
Chris Allegretta09900ff2002-05-04 04:23:30 +00004305 to specify the type on the command line, if there's no good
4306 filename regex to use. Global variable syntaxstr.
Chris Allegretta4dc03d52002-05-11 03:04:44 +00004307 - Changed many strcmp()s and strcpy()s to their equivalent
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004308 '\0' counterparts (David Lawrence Ramsey).
4309 - Many changes to allow marked cutting to work with multiple
Chris Allegretta4dc03d52002-05-11 03:04:44 +00004310 file buffers: changes to openfilestruct type in nano.h and
4311 files.c (David Lawrence Ramsey).
Chris Allegretta6232d662002-05-12 19:52:15 +00004312 - Changed NANO_SMALL to ENABLE_NLS for gettext disabling
4313 (David Benbennick).
4314 - Move next_key and pev_key definitions out of main() and into
4315 global.c where they belong (David Benbennick).
Chris Allegretta5e76fe92002-05-12 20:54:16 +00004316- color.c:
4317 update_color()
4318 - Add regfree call here to avoid memory leaks.
Chris Allegretta7162e3d2002-04-06 05:02:14 +00004319- configure.ac:
4320 - Define NDEBUG to silence asserts (David Benbennick).
4321- files.c:
4322 get_next_filename()
4323 - Optimizations (David Benbennick).
4324- global.c:
4325 shortcut_init()
4326 - Add missing free_shortcutage()s (David Benbennick).
Chris Allegretta6232d662002-05-12 19:52:15 +00004327 thanks_for_all_the_fish()
4328 - Only defined when using DEBUG, makes sense (David Benbennick).
Chris Allegretta7162e3d2002-04-06 05:02:14 +00004329- nano.c:
4330 die_save_file()
4331 - Add missing free (David Benbennick).
4332 do_justify()
4333 - Optimizations (David Benbennick).
4334 do_wrap()
4335 - Complete rewrite (David Benbennick).
Chris Allegretta6232d662002-05-12 19:52:15 +00004336 help_init()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004337 - A little less readable, a lot shorter :-) (David Benbennick).
Chris Allegretta6232d662002-05-12 19:52:15 +00004338 - Fix Meta-A not getting capitalized, and convert the ASCII
4339 #s to their character equivalent.
Chris Allegretta7c27be42002-05-05 23:03:54 +00004340 main()
4341 - Changed charalloc(), strcpy()s to mallocstrcpy()s.
Chris Allegretta66f373f2002-04-05 23:33:09 +00004342- nano.h:
4343 - NANO_ALT_COMMAND and NANO_ALT_PERIOD were reversed (lol)
4344 (David Benbennick).
Chris Allegretta8902eba2002-03-30 18:02:54 +00004345- nano.spec.in:
4346 - Don't put Chris' name as the Packager in the distribution
4347 by default (Im an idiot).
Chris Allegretta4dc03d52002-05-11 03:04:44 +00004348 - Fixed Source line (David Lawrence Ramsey).
Jordi Mallach42c64052002-04-30 02:33:14 +00004349- nano.1:
4350 - Changed references to Debian GNU/Linux to Debian GNU (Jordi).
Chris Allegretta4dc03d52002-05-11 03:04:44 +00004351- nano.1.html:
4352 - Updated for -Y option (David Lawrence Ramsey).
Chris Allegretta6232d662002-05-12 19:52:15 +00004353- rcfile.c:
Chris Allegretta7c27be42002-05-05 23:03:54 +00004354 - Made some rc file errors less fatal.
Chris Allegretta4dc03d52002-05-11 03:04:44 +00004355 - Added in my patch for getpwent instead of relying on $HOME
4356 (David Lawrence Ramsey).
Chris Allegretta7c27be42002-05-05 23:03:54 +00004357- winio.c:
4358 edit_add()
David Lawrence Ramseyf21cd102002-06-13 00:40:19 +00004359 - Changed some syntax highlight computations for the sake of COLS.
Chris Allegretta3674c1d2002-05-12 20:43:49 +00004360 - Add in the necessary regfree() calls to stop nano from leaking
4361 memory like a sieve when using color syntax highlighting :-)
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004362 bottombars(), onekey()
Chris Allegretta6232d662002-05-12 19:52:15 +00004363 - Cleanups (David Benbennick).
Jordi Mallach0ab011f2002-04-05 11:25:00 +00004364- po/gl.po:
4365 - Galician translation updates (Jacobo Tarrio).
4366- po/de.po:
4367 - German translation updates (Michael Piefel).
4368- po/fr.po:
4369 - French translation updates (Jean-Philippe Guérard).
4370- po/ca.po, po/es.po:
4371 - Catalan and Spanish translation updates (Jordi).
Jordi Mallachb18bc692002-04-10 16:26:17 +00004372- po/sv.po:
4373 - Swedish translation updates (Christian Rose).
Jordi Mallachd301e102002-04-13 14:46:26 +00004374- po/nl.po:
4375 - Dutch translation updates (Guus Sliepen).
Jordi Mallach7f80e662002-04-13 16:31:03 +00004376- po/it.po:
4377 - Italian translation updates (Marco Colombo).
Jordi Mallach0417a7b2002-04-19 21:59:35 +00004378- po/ru.po, po/uk.po:
4379 - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
Jordi Mallach934b76b2002-04-25 22:24:48 +00004380- po/id.po:
4381 - Indonesian translation updates (Tedi Heriyanto).
Jordi Mallachca76fa92002-05-05 15:04:26 +00004382- po/sv.po:
4383 - Swedish translation updates (Christian Rose).
David Lawrence Ramsey233f3362004-10-27 02:15:44 +00004384
Chris Allegretta06d62372002-03-30 16:51:38 +00004385GNU nano 1.1.8 - 03/30/2002
Chris Allegrettabef12972002-03-06 03:30:40 +00004386- General
4387 - Type misalignments and mem leaks in renumber_all, do_justify
4388 and do_spell (Rocco & Steven Kneizys).
Chris Allegrettabb88ece2002-03-25 13:40:39 +00004389 - New "External Command" code, originally by Dwayne Rightler,
Chris Allegretta77777d42002-03-29 16:31:29 +00004390 various fixes and changes by Chris, Rocco and David Benbennick.
4391 New function nano.c:open_pipe() and signal handler cancel_fork(),
4392 changes to do_insertfile(), new list extcmd_list, cmd is
4393 ^X after ^R.
Chris Allegretta3533a342002-03-24 23:19:32 +00004394 - Added separate regex variable (color_regex and colormatches)
4395 so that color syntax and regex search/replace can coexist.
Chris Allegretta06d62372002-03-30 16:51:38 +00004396 - Added new nano.spec file from Brett <brett@bad-sports.com>,
4397 added because maintaining the spec file is getting to be a large
4398 hassle ;)
Chris Allegretta564535a2002-03-06 15:32:17 +00004399- files.c:
4400 check_writable_directory()
4401 - Stat full_path, not path (Steven Kneizys).
Chris Allegretta2598c662002-03-28 01:59:34 +00004402 open_pipe()
4403 - I18nize the pipe error (DLR).
Chris Allegrettae3739092002-03-29 15:06:05 +00004404 do_insertfile()
4405 - Handle cancel from ExtCmd properly (David Benbennick).
Chris Allegretta52c5a6e2002-03-21 05:07:28 +00004406 read_file()
4407 - Abort if we read a file of 0 lines (num_lines == 0), fixes BUG #70.
Chris Allegrettaf6cba642002-03-26 13:05:54 +00004408 - Reverse tests to stop segfault on editing a new file of 0
4409 lines (David Benbennick)
4410 - Change input var to one char instead of array (David Benbennick).
Chris Allegretta2598c662002-03-28 01:59:34 +00004411 - Move NO_CONVERT check up so chars get read in properly (DLR).
Chris Allegretta40ecbad2002-03-06 15:27:44 +00004412- nano.c:
Chris Allegrettacf1d8122002-03-21 19:53:36 +00004413 do_justify()
4414 - More fixes for indented justify (David Benbennick).
Chris Allegrettaf21f3fc2002-03-25 03:26:27 +00004415 do_int_speller()
4416 - Fix zombie processes and spelling buffer issues (Rocco Corsi).
Chris Allegretta5902f962002-03-07 12:40:39 +00004417 help_init()
4418 - Capitalize Meta altkeys.
Chris Allegrettab479c892002-03-09 20:03:10 +00004419 - Various fixes and string changes.
Chris Allegretta40ecbad2002-03-06 15:27:44 +00004420 main()
4421 - Put NANO_SMALL defines around toggle pointer (noticed by Jordi);
Chris Allegretta97e6fe62002-03-09 17:38:47 +00004422 usage()
Chris Allegretta3fc5d572002-03-09 18:51:58 +00004423 - Rewritten to encompass systems with and without GETOPT_LONG.
4424 New function print1opt does most of the dirty work, stops
4425 duplication of effort and eases translator's jobs. Also
4426 breaks all the current translations ;-)
Chris Allegretta45329a12002-03-10 01:22:21 +00004427- proto.h:
4428 - Missing externs (Rocco).
Chris Allegretta1596d382002-03-07 00:46:17 +00004429- rcfile.c:
Chris Allegretta78f0fc62002-03-29 19:41:57 +00004430 do_rcfile()
4431 - Reset lineno between system and local .nanorc file.
4432 - Fix errno->strerror(errno) mismatch.
Chris Allegrettae8e10342002-03-07 00:47:22 +00004433 parse_rcfile()
4434 - Don't use i for both for loop and atoi(), fixes lots of
Jordi Mallach4951c662002-03-07 14:12:53 +00004435 potential crashes, 1st reported by Jean-Philippe Guérard.
Chris Allegretta78f0fc62002-03-29 19:41:57 +00004436 rcfile_error()
4437 - Don't print out the file name if we haven't opened the file
4438 yet (lineno == 0).
Chris Allegretta45329a12002-03-10 01:22:21 +00004439- search.c:
4440 search_init()
4441 - Fix a missing free (Rocco).
Chris Allegrettad1c2c1c2002-03-26 17:58:42 +00004442 do_gotoline()
4443 - Set placewewant if we actually move to a different line.
Chris Allegretta40ecbad2002-03-06 15:27:44 +00004444- utils.c:
Chris Allegrettadce44ab2002-03-16 01:03:41 +00004445 stristr()
4446 - Defined regardless of NANO_SMALL (noticed by Jordi).
Chris Allegretta77777d42002-03-29 16:31:29 +00004447 nperror()
4448 - New wrapper for perror (David Benbennick).
Chris Allegrettadce44ab2002-03-16 01:03:41 +00004449- winio.c:
4450 do_credits()
4451 - Add Thomas Dickey.
Chris Allegrettaf3a07b22002-03-29 15:15:38 +00004452 do_cursorpos()
4453 - Make col numbering start from 1 (suggested by Andrew Ho).
Chris Allegretta2598c662002-03-28 01:59:34 +00004454 update_line(), xpt()
4455 - Add check for 127 (DLR).
Jordi Mallach4951c662002-03-07 14:12:53 +00004456- po/sv.po:
4457 - Swedish translation updates (Christian Rose).
4458- po/de.po:
4459 - German translation updates (Michael Piefel).
Jordi Mallach4e803aa2002-03-09 18:05:53 +00004460- po/id.po:
4461 - Indonesian translation updates (Tedi Heriyanto).
Chris Allegretta2598c662002-03-28 01:59:34 +00004462- po/it.po:
Chris Allegretta06d62372002-03-30 16:51:38 +00004463 - Serious typo.
Jordi Mallach4e803aa2002-03-09 18:05:53 +00004464- po/ca.po, po/es.po:
4465 - Catalan and Spanish translation updates (Jordi).
Chris Allegretta2598c662002-03-28 01:59:34 +00004466 - Typo (DLR).
Jordi Mallach558b5d82002-03-11 13:23:33 +00004467- po/fr.po:
4468 - French translation updates (Jean-Philippe Guérard).
Jordi Mallach5477e102002-03-12 16:15:50 +00004469- po/gl.po:
4470 - Galician translation updates (Jacobo Tarrio).
Jordi Mallach057c3c42002-03-14 11:00:56 +00004471- po/uk.po, po/ru.po:
4472 - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
Jordi Mallachb83e61a2002-03-15 15:15:13 +00004473- po/pl.po:
4474 - Polish translation updates (Wojciech Kotwica).
Jordi Mallach7fa082d2002-03-17 00:35:41 +00004475- po/fr.po:
4476 - French translation updates (Jean-Philippe Guérard).
Jordi Mallach7afc6d92002-03-27 16:34:46 +00004477- po/it.po:
4478 - Italian translation updates (Marco Colombo).
Jordi Mallach465a0ff2002-03-29 00:46:05 +00004479- po/da.po:
4480 - Danish translation updates (Keld Simonsen).
Chris Allegrettabef12972002-03-06 03:30:40 +00004481
Chris Allegretta97489d22002-03-05 23:47:44 +00004482GNU nano 1.1.7 - 03/05/2002
Chris Allegrettaa8c22572002-02-15 19:17:02 +00004483- General
4484 - malloc->calloc, etc cleanups (DLR).
4485 - New option, noconvert (-N, --noconvert) to completely stop
4486 the translation of files from DOS or Mac format (DLR).
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004487 - New functions check_writable_directory() and safe_tempnam()
Chris Allegrettabc72e362002-02-16 20:03:44 +00004488 to get around the tempnam warning. More improvements (DLR)
Chris Allegretta48b06702002-02-22 04:30:50 +00004489 Still needs testing.
Chris Allegrettaa8c22572002-02-15 19:17:02 +00004490 - Added DOS and Mac format options to write file routine.
4491 Changes to shortcut_init() and do_writeout().
4492 - Removed stupid static definitions of toggles and shortcut
4493 lists. Many changes to shortcut_init(), toggle_init(),
4494 statusq(), nanogetstr(), main(), and many other places.
Chris Allegretta48b06702002-02-22 04:30:50 +00004495 - Multibuffer mode now allows multiple empty filenames.
4496 Changes to add_open_files(), removed open_file_dup_search(),
4497 open_file_dup_fix(), etc (DLR).
4498 - New code to handle multiple .save files. Changes to
4499 die_save_file(), new function files.c:get_next_filename()
4500 and utils.c:num_of_digits(). (Dwayne Rightler, DLR & Chris)
Chris Allegrettaf5de33a2002-02-27 04:14:16 +00004501 - Many malloc() cleanups and files.c tweaks by Steven Kneizys,
4502 new functions utils.c:free_shortcutage() (got to love that
4503 name!) & free_toggles(), and big cleanup program
4504 thanks_for_all_the_fish() (originally
4505 thanks_for_the_memories()). Mods to shortcut_init() by Chris.
Chris Allegrettae4f940d2002-03-03 22:36:36 +00004506 - Preliminary quoting support for justify. New arg -Q, --quotestr,
4507 changes to do_justify(), global variable quotestr().
Chris Allegretta8dbfb5c2002-01-28 15:56:15 +00004508- Makefile.am:
David Lawrence Ramsey0084eaa2002-11-04 16:05:42 +00004509 - Add SYSCONFDIR to DEFS, so we can have an $SYSCONFDIR/nanorc.
Chris Allegretta40b85e72002-02-09 21:56:09 +00004510 - Change localedir line to 1.0's version.
Jordi Mallach3c5653d2002-02-23 18:23:43 +00004511 - Moved m4/ stuff to its own m4/Makefile.am.
Jordi Mallach87435d92002-03-05 17:58:34 +00004512- m4/aclocal_inc.m4:
4513 - New macro AM_ACLOCAL_INCLUDE, tells configure.ac where to look for
4514 macros (Gergely Nagy).
Jordi Mallach3c5653d2002-02-23 18:23:43 +00004515- configure.in:
4516 - Renamed to configure.ac.
4517- configure.ac:
4518 - Moved to autoconf 2.52 (Jeff Bailey).
Jordi Mallach87435d92002-03-05 17:58:34 +00004519 - Added call to AM_ACLOCAL_INCLUDE.
Chris Allegrettaa8c22572002-02-15 19:17:02 +00004520- files.c:
4521 read_byte()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004522 - Added check for control characters (indicative of a binary
Chris Allegretta48b06702002-02-22 04:30:50 +00004523 file), set NO_CONVERT if found (fixes by DLR).
Chris Allegrettaf5de33a2002-02-27 04:14:16 +00004524 do_insertfile()
4525 - Added support for -o in prompt (Steven Kneizys).
Chris Allegrettaa8c22572002-02-15 19:17:02 +00004526- global.c:
4527 - Move openprev and opennext functions to shortcuts, they really
4528 aren't toggles (DLR).
Chris Allegrettaf27c6972002-02-12 01:57:24 +00004529- rcfile.c:
Chris Allegrettaa8c22572002-02-15 19:17:02 +00004530 parse_next_regex()
Chris Allegretta3d8e7592002-02-02 07:13:02 +00004531 - Allow " symbol to be in regex without leading \ by checking
4532 for *ptr+1 is not the end of the regex.
Chris Allegrettaff8a68c2002-02-16 20:34:57 +00004533 do_rcfile()
4534 - Parse rcfile in $SYSCONFDIR as well (Dwayne Rightler).
Chris Allegretta48b06702002-02-22 04:30:50 +00004535- nano.1:
4536 - Added Noconvert option to man page (DLR).
Chris Allegrettaa8c22572002-02-15 19:17:02 +00004537- nano.c:
Chris Allegrettad4fa0d32002-03-05 19:55:55 +00004538 justify_format(), do_justify()
4539 - Various fixes for starting blank spaces, spaces after
4540 punctuation, & segfault with quoting strings (David Benbennick).
Chris Allegretta46c1b9e2002-03-05 19:58:45 +00004541 do_justify()
4542 - Don't continue to justify string if it's indented more
4543 (quoting wise) than the beginning of the justification.
Chris Allegrettaa8c22572002-02-15 19:17:02 +00004544 help_init()
4545 - Added message re: having multiple blank buffers (DLR).
Chris Allegretta9caa1932002-02-15 20:08:05 +00004546 main()
4547 - Add 407 as equiv of 26, this seems to be sent when using
4548 ^Z in linux console with keypad() enabled.
Chris Allegrettabc72e362002-02-16 20:03:44 +00004549- rcfile.c:
4550 - Get rid of unneeded relativechars from rcopts (DLR).
4551- search.c
4552 do_replace(), findnextstr()
4553 - Fixes for various search issues (Ken Tyler)
Chris Allegrettaf27c6972002-02-12 01:57:24 +00004554- winio.c:
4555 do_cursorpos()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004556 - Rewritten to show col place as well as character place, without
Chris Allegrettaf27c6972002-02-12 01:57:24 +00004557 needing an entirely separate flag.
Chris Allegrettaa8c22572002-02-15 19:17:02 +00004558 bottombars(), onekey()
4559 - Make bottom list dynamic with screen size (Guus Sliepen & Chris).
Chris Allegrettabc72e362002-02-16 20:03:44 +00004560 - More cleanups w/width of shortcut.
Chris Allegretta8dbfb5c2002-01-28 15:56:15 +00004561- utils.c:
Chris Allegretta99ed9dc2002-02-28 00:57:18 +00004562 strcasestr(),revstrcasestr()
4563 - Renamed to stristr and revstristr since strcasestr has not
4564 been confirmed to be detected properly on various Linux
4565 systems.
Chris Allegrettad4fa0d32002-03-05 19:55:55 +00004566 strstrwrapper()
4567 - NANO_SMALL test was backwards (Ken Tyler).
4568- winio.c:
4569 strlenpt()
4570 - Changed main function to strnlenpt() for new justify changes,
4571 original function now just a stub.
Chris Allegretta3c597d02002-01-26 03:42:14 +00004572- nanorc.sample
4573 - Mention unset in the sample nanorc.
Jordi Mallach83ffefb2002-01-25 21:00:18 +00004574- po/ca.po, po/es.po:
4575 - Catalan and Spanish translation updates (Jordi).
Jordi Mallach9c34a162002-01-26 00:46:47 +00004576- po/sv.po:
4577 - Swedish translation updates (Christian Rose).
4578- po/fr.po:
4579 - French translation updates (Jean-Philippe Guérard).
Jordi Mallach8636f7b2002-01-26 19:23:37 +00004580- po/nn.po:
4581 - Norwegian nynorsk translation updates (Kjetil Torgrim Homme).
4582- po/de.po:
4583 - German translation updates (Michael Piefel).
Chris Allegretta8dbfb5c2002-01-28 15:56:15 +00004584- po/it.po:
4585 - Italian translation updates (Marco Colombo).
Jordi Mallach94def062002-02-06 12:14:25 +00004586- po/cs.po:
4587 - Partial Czech translation updates (Vaclav Haisman).
Jordi Mallach8bfd3112002-02-06 20:53:04 +00004588- po/hu.po:
4589 - Hungarian translation updates, or to be precise, rewrite
4590 (Gergely Nagy).
Jordi Mallachb3b28c12002-02-07 13:51:00 +00004591- po/uk.po, po/ru.po:
Jordi Mallach507c3612002-02-14 18:57:23 +00004592 - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
4593- po/da.po:
4594 - Danish translation updates (Keld Simonsen).
Jordi Mallache46d43d2002-02-15 17:13:11 +00004595- po/nb.po:
4596 - Norwegian bokmål translation updates (Stig E Sandoe).
Jordi Mallach62d21712002-02-20 16:21:27 +00004597- po/nl.po:
4598 - Dutch translation updates (Guus Sliepen).
Jordi Mallacha3322fd2002-03-05 11:23:17 +00004599- po/pl.po:
4600 - Polish translation updates (Wojciech Kotwica).
Jordi Mallach83ffefb2002-01-25 21:00:18 +00004601
Chris Allegretta491029e2002-01-25 17:02:32 +00004602nano-1.1.6 - 01/25/2002
Chris Allegretta044d1b12002-01-08 00:33:32 +00004603- General
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004604 - Add Meta-A as alternate keystroke for ^^ for people with
Chris Allegretta044d1b12002-01-08 00:33:32 +00004605 non-US keyboards.
Chris Allegretta967a1e22002-01-10 00:50:38 +00004606 - Add Alt-G (NANO_ALT_GOTO_KEY) as alternate for goto dir in
4607 browser.
Chris Allegretta1bc0c7e2002-01-08 15:00:24 +00004608 - Better partial word checking code. New function
4609 search.c:is_whole_word(), changes to findnextstr(),
4610 and nano.c:do_int_spell_fix() (Rocco Corsi).
Chris Allegretta6c1e6612002-01-19 16:52:34 +00004611 - Added multiple-line regex support. Format in .nanorc is
4612 start="regex" end="regex". Cleaned up nanorc:parse_colors(),
4613 added parse_next_regex(), changes to edit_add in winio.c(),
4614 changes to colortype, cleaning up some old cruft.
Chris Allegretta15b23f42002-01-19 19:15:18 +00004615 - Upgrade to gettext 0.10.40, probably broke everything again :)
Chris Allegretta24e48d82002-01-23 01:06:20 +00004616 - Upgraded to and then downgraded from automake 1.5, as there
4617 are severe security implications.
Chris Allegrettaea250e82002-01-16 01:09:11 +00004618- color.c:
4619 do_colorinit()
4620 - Moved some comments and braces around so color can work
4621 w/slang (DLR).
Chris Allegrettaf478f832002-01-18 21:54:35 +00004622- global.c:
4623 shorcut_init()
4624 - Replace hard coded ALT_G and ALT_H values in the replace
4625 and goto shortcuts with their macro counterparts NANO_ALT_*_KEY.
Jordi Mallach345a8462002-01-07 11:35:16 +00004626- nano.c:
4627 usage()
4628 - Remove extra \n in --keypad description (Jordi).
Chris Allegrettaf7dee922002-01-07 16:43:25 +00004629 main()
4630 - Check that alt value is an alpha char before comparing to
4631 val - 32, fixes Alt-R calling doprev instead of replace.
Chris Allegrettab2cd10d2002-01-20 00:54:42 +00004632 do_char()
4633 - Run edit_refresh() if ENABLE_COLOR is defined so adding
4634 multi-liners will update (e.g. /* in C).
Chris Allegretta23b74b22002-01-21 20:32:22 +00004635 do_int_spell_fix()
4636 - Temporarily unset REVERSE_SEARCH if it's set (Rocco Corsi).
Chris Allegretta7b0667f2002-01-10 12:44:21 +00004637 do_suspend()
4638 - Call tcsetattr() to restore the old terminal settings, so
Chris Allegretta5bbce6a2002-01-10 12:48:16 +00004639 tcsh can use ^C after suspend for example (fixes BUG #68).
Chris Allegretta438f7132002-01-16 00:54:47 +00004640 do_wrap()
4641 - Move "right" increment to part where new line is created,
4642 should change (fix?) some wrapping problems with autoindent.
Jordi Mallach5285ca92002-01-17 12:40:33 +00004643 version()
4644 - Show --enable-multibuffer independently of --enable-extra being
4645 compiled in (Jordi).
Chris Allegrettaf478f832002-01-18 21:54:35 +00004646- nano.h:
4647 - Changed color struct slightly, because of previous issue with
4648 applying color painting in order, the "str" portion was
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004649 useless. Renamed "val" in colortype to "start", added "end"
Chris Allegrettaf478f832002-01-18 21:54:35 +00004650 for multi-line color strings.
4651- rcfile.c:
4652 General
4653 - Took silly variables being passed everywhere like lineno and
4654 filename and made them static variables.
Chris Allegretta6c1e6612002-01-19 16:52:34 +00004655 - Re-indented.
Chris Allegretta34f80982002-01-22 20:09:20 +00004656 - Added stdarg.h to includes.
Chris Allegrettaf478f832002-01-18 21:54:35 +00004657 rcfile_error()
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004658 - Now automatically prepends the "error in line blah at foo"
Chris Allegrettaf478f832002-01-18 21:54:35 +00004659 message to error messages.
4660 parse_colors()
4661 - Added section for computing "end" section.
4662 parse_next_word()
4663 - Added support for "\ ", in word parsing.
Chris Allegrettae29697d2002-01-14 03:31:10 +00004664- search.c:
Chris Allegretta1c2fddc2002-01-21 20:40:14 +00004665 do_search()
4666 - Check position of cursor and return value of findnextstr and
4667 tell user if search string only occurs once (Rocco & Chris).
Chris Allegrettae29697d2002-01-14 03:31:10 +00004668 findnextstr()
4669 - Fix off by one in check for wrap around (Rocco Corsi).
Chris Allegretta3d0739c2002-01-07 14:41:32 +00004670- winio.c:
4671 edit_refresh()
4672 - Rename lines to nlines to fix AIX breakage (reported by
4673 Dennis Cranston, re-reported by arh14@cornell.edu).
Chris Allegrettaf478f832002-01-18 21:54:35 +00004674 edit_add()
4675 - Refuse to honor regex matches of 0 characters when applying
4676 color highlighting, and say so on the statusbar. Otherwise
4677 we go into an infinite loop, the error message should clue
4678 users into the fact that their regex is doing something bad.
Jordi Mallachd6481e42002-01-17 12:14:23 +00004679- THANKS:
4680 - Oops, correct Eivind's entry. His translation was Norwegian nynorsk,
Jordi Mallach83d5ced2002-01-17 12:06:49 +00004681 not bokmål as we claimed (Jordi).
Chris Allegretta9963b0e2002-01-19 19:35:12 +00004682- .cvsignore
4683 - Added config.guess config.sub install-sh missing & mkinstalldirs
Jordi Mallach3da91392002-01-07 11:50:13 +00004684- po/ca.po, po/es.po:
Jordi Mallache36a1522002-01-07 15:12:48 +00004685 - Catalan and Spanish translation updates (Jordi).
4686- po/sv.po:
4687 - Swedish translation update (Christian Rose).
Jordi Mallachd39698f2002-01-07 15:16:26 +00004688- po/de.po:
4689 - German translation update (Michael Piefel).
Jordi Mallachbf1a1e82002-01-08 14:07:39 +00004690- po/fr.po:
4691 - French translation update (Jean-Philippe Guérard).
4692- po/ru.po, po/uk.po:
4693 - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
Jordi Mallach83d5ced2002-01-17 12:06:49 +00004694- po/no.po:
4695 - Moved to po/nn.po, which is the correct name for Norwegian nynorsk.
4696- po/nn.po:
4697 - Norwegian nynorsk translation updates (Kjetil Torgrim Homme).
4698- po/nb.po:
4699 - New Norwegian bokmål translation (Stig E Sandoe <stig@ii.uib.no>).
Jordi Mallach3a23a552002-01-18 23:04:16 +00004700- po/da.po:
4701 - Danish translation update (Keld Simonsen).
Chris Allegrettad1751932002-01-05 20:01:53 +00004702
Chris Allegretta110927b2002-01-05 19:49:06 +00004703nano-1.1.5 - 01/05/2002
Chris Allegretta32da4562002-01-02 15:12:21 +00004704- General
4705 - Better integration of View mode (-v) and multibuffer.
4706 Fixes to new_file(), do_insertfile_void(), shortcut_init()
4707 (David Lawrence Ramsey).
Chris Allegretta48bd3782002-01-03 21:26:34 +00004708 - The keypad handling has changed (again). We now use
4709 the keypad() function by default. New flag -K, --keypad
4710 allows the old behavior for those using the keypad arrow keys
4711 and rxvt-based terminals.
Jordi Mallach8ae57892002-01-04 17:57:40 +00004712 - Updated copyright notices to 2002 (Jordi).
Chris Allegretta0bb70dc2001-12-17 04:34:23 +00004713- nano.c:
Chris Allegretta32da4562002-01-02 15:12:21 +00004714 die()
4715 - Only save files that were modified (David Lawrence Ramsey).
Chris Allegretta0bb70dc2001-12-17 04:34:23 +00004716 do_cont()
4717 - Run signal_init() after doupdate() so ^Y wont suddenly
4718 start suspending after returning from ^Z suspend in Hurd.
4719 signal_init()
4720 - Unconditionally disable VDSUSP if it exists, stops ^Y
4721 suspending nano on the Hurd.
Jordi Mallach11f39e72001-12-25 19:17:32 +00004722 help_init()
Chris Allegretta64dd95d2001-12-27 20:53:54 +00004723 - Typo fixes in help strings (Jordi).
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00004724 - New variable helplen needed cause currslen is not always
Chris Allegretta13fd44b2002-01-02 13:59:11 +00004725 the length we want (bug found by David Lawrence Ramsey).
Chris Allegretta180a5692002-01-02 14:30:33 +00004726 - Typo in file switch string (found by David Lawrence Ramsey).
4727 main()
4728 - Handle Alt prev/next file keys (,.), as well as normal ones (<>).
Chris Allegretta32da4562002-01-02 15:12:21 +00004729 - Handle OS-specific insert keys by jump to do_insertkey (David
4730 Lawrence Ramsey).
Chris Allegretta64dd95d2001-12-27 20:53:54 +00004731- files.c:
4732 read_file()
4733 - Make conversion message less confusing (suggested by Jordi).
Chris Allegretta13fd44b2002-01-02 13:59:11 +00004734- rcfile.c:
4735 parse_next_word()
4736 - Get rid of ptr == \n check to abort, screws up option
4737 parsing (bug found by David Lawrence Ramsey)
Chris Allegretta52db7a22001-12-17 23:39:36 +00004738- winio.c:
4739 update_line()
Chris Allegretta3c57e502001-12-19 16:20:43 +00004740 - set realdata check to >= 1 && <= 31, lack of > 0 check screwed
4741 high ascii characters.
Jordi Mallach9335f912001-12-23 00:03:18 +00004742 titlebar()
4743 - gettextized a pair of strings.
Chris Allegrettae5b9eac2002-01-05 01:52:02 +00004744 bottombars()
4745 - Get rid of that annoying reversed line when color is on! :)
Chris Allegretta1bf8f5e2002-01-05 03:30:10 +00004746 edit_add()
4747 - Little fixes to let color highlights not bleed onto the next line.
Chris Allegrettaa16e4e92002-01-05 18:59:54 +00004748 statusq()
4749 - Initialize "list".
Chris Allegrettacf680712001-12-18 14:59:20 +00004750- m4/gettext.m4:
4751 - Back down to 1.1.3 version.
Jordi Mallachcf9f7832001-12-26 12:33:01 +00004752- faq.html:
4753 - Various link updates and other fixes (Aaron S. Hawley).
4754 - Typo fixes (David Lawrence Ramsey).
Chris Allegrettafae0dce2002-01-04 13:30:42 +00004755- AUTHORS
4756 - Add DLR.
Jordi Mallach77b12322001-12-22 23:23:40 +00004757- po/sv.po:
4758 - Swedish translation update (Christian Rose).
Jordi Mallach3da91392002-01-07 11:50:13 +00004759- po/ru.po, po/uk.po:
Jordi Mallach32793982001-12-28 16:35:28 +00004760 - Russian and Ukrainian translations updates (Sergey A. Ribalchenko).
Jordi Mallach3da91392002-01-07 11:50:13 +00004761- po/ca.po, po/es.po:
Jordi Mallach414acab2001-12-26 00:15:16 +00004762 - Catalan and Spanish translations updates (Jordi).
Jordi Mallacha4ffccb2001-12-26 00:31:17 +00004763- po/pl.po:
4764 - New Polish, partial translation, by Cezary Sliwa <sliwa@cft.edu.pl>.
Jordi Mallach65f3e422002-01-04 17:48:58 +00004765 - Wojciech Kotwica <wkotwica@post.pl> completed it and is the new
4766 official maintainer.
Jordi Mallach1a58fb42001-12-27 16:00:23 +00004767- po/fr.po:
4768 - French translation update (Michel Robitaille).
Jordi Mallach05d8ce92001-12-27 20:34:42 +00004769- po/gl.po:
4770 - Galician translation update (Jacobo Tarrío).
Jordi Mallach78e2c9d2001-12-27 22:06:38 +00004771- po/it.po:
4772 - Italian translation update (Marco Colombo).
Jordi Mallach32793982001-12-28 16:35:28 +00004773- po/de.po:
4774 - German translation update (Michael Piefel).
Jordi Mallach13f30172002-01-02 18:45:58 +00004775- po/fr.po:
4776 - French translation update (Jean-Philippe Guérard).
Chris Allegretta5fd6cac2001-12-12 13:55:19 +00004777
Chris Allegretta7bf25092001-12-12 02:44:40 +00004778nano-1.1.4 - 12/11/2001
Chris Allegretta08893e02001-11-29 02:42:27 +00004779- General
4780 - Preliminary syntax highlighting support. New functions
4781 colortoint() and parse_color() in rcfile.c, new code in
4782 edit_add() in winio.c to actually do the highlighting. It's
4783 not even close to pretty yet :P
Chris Allegretta2084acc2001-11-29 03:43:08 +00004784 - Many int/long alignments (David Lawrence Ramsey).
Chris Allegretta0567bfe2001-10-28 14:42:18 +00004785- files.c:
Chris Allegretta2084acc2001-11-29 03:43:08 +00004786 - Fixes for tab completion and screen refresh (David Lawrence
4787 Ramsey).
Chris Allegretta0567bfe2001-10-28 14:42:18 +00004788 add_open_file()
4789 - Get rid of unsetting MARK_ISSET because otherwise writing
4790 marked text will automatically unset the marker with
4791 multibuffer enabled.
Chris Allegretta22ec59a2001-10-28 04:56:08 +00004792- global.c:
4793 - Define currshortcut and currslen when either DISABLE_MOUSE
Chris Allegretta8c8d3702001-10-28 05:00:39 +00004794 or DISABLE_HELP or DISABLE_BROWSER is not defined (Silvan
4795 Minghetti).
Chris Allegretta7bf72742001-10-28 04:29:55 +00004796- nano.c:
4797 main()
Chris Allegrettaf3e80ad2001-10-28 04:49:10 +00004798 - Add Esc-[-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert).
Chris Allegretta9b8b3702001-11-19 05:09:15 +00004799 - Added better Hurd support for function keys (Alt-V,U,9,@,F).
4800 signal_init()
4801 - do SIG_IGN for the SIGTSTP sigaction regardless of whether
4802 we have _POSIX_VDISABLE or not (more Hurd fixes)
Jordi Mallach773623c2001-10-28 21:00:49 +00004803 help_init()
4804 - Typo fixes and additions to the new help texts.
Chris Allegretta2084acc2001-11-29 03:43:08 +00004805 do_curpos()
4806 - Now takes arg for constant updating to always show the cursor
4807 position (David Lawrence Ramsey).
4808 do_wrap()
4809 - Many fixes (David Lawrence Ramsey).
Chris Allegretta80838272001-12-02 06:03:22 +00004810 do_spell()
4811 - Dont prompt for replace if we don't change the word in
4812 question (Rocco Corsi).
Jordi Mallach8c9c5722001-10-31 13:02:12 +00004813- po/de.po:
4814 - German translation updates (Karl Eichwalder).
4815- po/ru.po:
4816 - Russian translation updates (Sergey A. Ribalchenko).
4817- po/sv.po:
4818 - Swedish translation updates (Christian Rose).
Jordi Mallachfeebeb92001-11-19 12:09:51 +00004819- po/da.po:
4820 - Danish translation updates (Keld Simonse).
4821- po/es.po:
4822 - Spanish translation updates (Jordi).
Jordi Mallachdf59ae62001-12-07 14:00:56 +00004823- po/fr.po:
4824 - French translation updates (Michel Robitaille).
Chris Allegretta9c23a442001-12-12 01:45:01 +00004825- m4/gettext.m4:
4826 - diff against mutt 1.2.5's gettext.m4.
Chris Allegretta7b409bd2001-10-26 16:15:58 +00004827
Chris Allegrettadc57bba2001-10-26 16:14:45 +00004828nano-1.1.3 - 10/26/2001
Chris Allegrettab3655b42001-10-22 03:15:31 +00004829- General
4830 - Finally wrote function-specific help mode. Changes to
4831 nano.c:help_init() and winio.c:do_help(). Changed
4832 currshortcut and currslen #ifdefs to depend on both
4833 DISABLE_HELP and DISABLE_MOUSE being defined to not
4834 include. Changed all the shortcuts and lengths.
Chris Allegrettafa0c6962001-10-22 23:22:19 +00004835 - Fixed null_at to ACTUALLY DO SOMETHING with its arg. Again,
4836 this was causing nasty errors if the call to nrealloc moved
4837 where the data was located.
Chris Allegretta3a24f3f2001-10-24 11:33:54 +00004838 - Changed header comments to say "version 2" instead of "version
4839 1" as the COPYING file is actually version 2 of the GPL (bug
4840 noticed by Jordi Mallach).
Chris Allegrettab3655b42001-10-22 03:15:31 +00004841- cut.c:
4842 do_cut_text()
4843 - Check to see whether marked text is contained within edit
4844 window and if so only do an edit_refresh (variable dontupdate
4845 replaces cuttingpartialline).
4846 do_uncut_text()
4847 - Similar display fixes (David Lawrence Ramsey).
Chris Allegrettabeead282001-10-18 14:15:28 +00004848- faq.html
4849 - Removed nano-editor.org FTP site address [deprecated] and added
4850 the GNU one.
Chris Allegretta76e291b2001-10-14 19:05:10 +00004851- files.c:
4852 - Added status messages for converted DOS and Mac files.
Chris Allegrettab3655b42001-10-22 03:15:31 +00004853 People should know that their file wasnt normally formatted.
4854 load_file()
4855 - Status message when trying to load an already loaded file with multiple
4856 buffers (David Lawrence Ramsey).
4857 read_file()
4858 - Get rid of useless linetemp variable and name num_lines int
4859 (David Lawrence Ramsey).
Chris Allegretta76e291b2001-10-14 19:05:10 +00004860- nano.c:
4861 - New function do_prev_word, similar to do_next_word. Hard coded as
Chris Allegretta878ced32001-10-22 20:05:34 +00004862 Alt-space, as next word is hard coded as control-space. Fixed
4863 goofy logic setting x pos to value of last line when hitting the
Chris Allegrettaabf22a82001-10-24 00:58:19 +00004864 beginning of first line, prog should simply abort. Added
4865 the #ifdefs around the code in main().
Chris Allegretta10786402001-10-24 17:27:46 +00004866- nano.h:
4867 - Additional #define, SMALL_TOO to determine how long
4868 MAIN_LIST_LEN is. We need this because of the find matching
4869 bracket code.
Chris Allegretta48ebb812001-10-24 01:34:15 +00004870 main()
Chris Allegretta347c1842001-10-24 01:37:13 +00004871 - Moved #ifndef NANO_SMALL down past the case 0: line so
4872 control-space doesn't insert a \0 (ack!)
Chris Allegrettab3655b42001-10-22 03:15:31 +00004873- rcfile.c:
4874 - Fix incorrect number of rc options (David Lawrence Ramsey).
Jordi Mallach482d1652001-10-06 02:36:25 +00004875- po/sv.po:
4876 - Updated Swedish translation (Christian Rose).
Chris Allegretta2084acc2001-11-29 03:43:08 +00004877- po/da.po:
Jordi Mallach2476ebd2001-10-07 00:26:26 +00004878 - Updated Danish translation (Keld Simonsen).
Jordi Mallach26f46032001-10-07 15:53:27 +00004879- po/es.po:
4880 - Style updates to Spanish translation (Santiago Vila).
Jordi Mallach3da91392002-01-07 11:50:13 +00004881- po/ru.po, po/uk.po:
Jordi Mallacheb94b9e2001-10-15 14:26:48 +00004882 - Updated Russian and Ukrainian translation (Sergey A. Ribalchenko).
Chris Allegretta9a397892001-10-04 01:25:43 +00004883
Chris Allegretta03260b42001-10-04 01:24:07 +00004884nano-1.1.2 - 10/03/2001
Chris Allegrettac1049ac2001-08-17 00:03:46 +00004885- General
4886 - Added BUGS #63 & 64. Fixes in search_init() and nanogetstr(),
4887 new flag CLEAR_BACKUPSTRING because there's no easy way to
4888 clear the backupstring without making it global (messy), so we
4889 use a flag instead (just as messy?)
Chris Allegrettaff989832001-09-17 13:48:00 +00004890 - --enable-tiny now leaves out the Auto Indent code, do you really
4891 need that on a bootdisk? =-)
Chris Allegrettae1f14522001-09-19 03:19:43 +00004892 - New flag -o, --operatingdir, similar to Pico's -o mode. New
4893 function check_operating_dir(), changes to load_file (arg),
Chris Allegrettae09cd1d2001-09-19 03:22:52 +00004894 open_file_dup_search (arg), new function do_gotopos for -F
Chris Allegrettace78c1e2001-09-23 01:18:03 +00004895 (David Lawrence Ramsey).
Chris Allegretta91841892001-09-21 02:37:01 +00004896 - Code to read/write dos formatted files. Massive amounts of
Chris Allegretta7004c282001-09-22 00:42:10 +00004897 new code in read_line and write_file. New cmdline flag
4898 (-D --dos) to automatically write the file in DOS format,
4899 regardless of the original format.
Chris Allegretta995177f2001-09-22 04:34:23 +00004900 - Mac file writing supported too. Flag -M, --mac. Toggle
4901 Meta-O (MacOS? OS-X? =-)
Chris Allegretta3e3ae942001-09-22 19:02:04 +00004902 - New smooth scroll code by Ken Tyler. New flag -S, --smooth,
Chris Allegrettad948edc2001-10-02 00:38:56 +00004903 changes to page_up() and page_down(). Many fixes to paging by
Chris Allegretta5050d352001-09-27 00:44:58 +00004904 David Lawrence Ramsey.
Chris Allegretta8d990b52001-09-22 22:14:25 +00004905 - Bracket (brace, parens, etc) matching code by Ken Tyler.
4906 New functions do_find_bracket(), changes to findnextstr(),
4907 command is Meta-] (hope you dont mind since I already sold off
Chris Allegretta2bef1822001-09-28 19:53:11 +00004908 Meta-O to the MacOS file code Ken...) Fixes to bracket_msg
4909 by DLR.
Chris Allegretta1b3381b2001-09-28 21:59:01 +00004910 - Call do_gotopos from do_alt_spell() to keep position
4911 consistent when invoking alt speller (DLR).
Chris Allegretta7fdbd052001-10-02 00:55:38 +00004912 - Readded DISABLE_CURPOS because in certain instances (like
Chris Allegretta03260b42001-10-04 01:24:07 +00004913 all the "Search Wrapped" lines) the cursor position will
Chris Allegretta7fdbd052001-10-02 00:55:38 +00004914 be different yet we don't want the cursor position displayed.
Chris Allegrettae10f3892001-10-02 03:54:40 +00004915 - Take control-space out of -tiny build, unneeded.
Chris Allegretta222a0862001-10-02 00:24:37 +00004916- cut.c:
4917 cut_marked_segment()
4918 - Add magic line when cutting a selection including filebot
Chris Allegretta31b2b812001-10-03 01:51:33 +00004919 (discovered by DLR, fixed by DLR & Chris, fixes BUG #66).
Chris Allegrettadc2ca882001-10-02 23:55:09 +00004920 do_cut_text()
Chris Allegretta5e4b1082001-10-03 00:45:06 +00004921 - Don't recenter the line when cutting one line (DLR) (Bug #65).
Jordi Mallachf57b8862001-10-03 12:45:22 +00004922- faq.html:
4923 - Notes about the Free Translation Project.
4924 - Debian additions.
Chris Allegretta9519eb02001-09-27 20:46:25 +00004925- files.c:
4926 do_writeout()
4927 - Expanded strings to not use %s and ?: to determine
4928 write/append string to be nice to translators.
Chris Allegretta1b3381b2001-09-28 21:59:01 +00004929 new_file()
4930 - Initialize totsize (DLR).
Chris Allegretta0357c4d2001-09-19 02:59:25 +00004931- nano.c:
4932 main()
Chris Allegrettab516d8e2001-10-03 00:01:36 +00004933 - Added var constcheck as a CRC-like check of whether cursor
Chris Allegretta0357c4d2001-09-19 02:59:25 +00004934 pos has changed and if so update the pos with -c.
Chris Allegrettace78c1e2001-09-23 01:18:03 +00004935 - Many tweaks and changes from numerics to char equivs
4936 (David Lawrence Ramsey).
Chris Allegretta92f5fdc2001-10-02 02:58:07 +00004937 - Fix the KEY_IC being undefined when using slang.
Chris Allegretta6414b402001-09-21 03:21:11 +00004938 do_mouse()
4939 - Send 27 when the menu item clicked is an alt key seq... The
4940 lines aren't lined up since the menu width changed though,
4941 this breakage depends on whether the new widths will be kept
4942 or not (FEEDBACK!!)
Chris Allegrettaa951f212001-09-27 21:07:39 +00004943 - Change k based on currslen to allow the new widths in
4944 bottombars().
Chris Allegretta56214c62001-09-27 02:46:53 +00004945 do_wrap()
4946 - Fixes for Pico incompatibility in cases 2b and 2c.
4947 (David Lawrence Ramsey).
4948 global_init()
4949 - New arg save_cutbuffer, allows cutbuffer to not be lost when
4950 using multibuffer.
Jordi Mallachf57b8862001-10-03 12:45:22 +00004951- nano.1:
4952 - Added new features, fixed some typos (Jordi).
Jordi Mallach372b1a02001-08-08 19:35:23 +00004953- nano.texi:
Jordi Mallachf57b8862001-10-03 12:45:22 +00004954 - Corrected the Mouse Toggle section, noticed by Daniel Bonniot.
4955 - Added many command line options, toggles and other additions
4956 (Jordi).
Chris Allegrettabeb54972001-09-22 23:54:45 +00004957- rcfile.c:
4958 - NUM_RCOPTS fix (DLR).
Chris Allegretta66c33b82001-10-02 23:57:31 +00004959 - Add tabsize support to rc file (Nathan Heagy).
Chris Allegrettaca1a82e2001-10-03 15:18:41 +00004960 - Fix incorrect argument in fill and tabsize error message
4961 (Nathan Heagy)
Chris Allegretta759d3522001-09-27 13:04:10 +00004962- search.c:
4963 - Changed search prompt to "Search" followed by a list of
4964 bracketed, free-standing modifiers that do not imply a grammar,
4965 and the (to replace) string separately. Hopefully this resolves
4966 the i18n problems that this provoked.
Chris Allegretta7fdbd052001-10-02 00:55:38 +00004967 findnextstr()
4968 - Various fixes that need testing (Ken Tyler).
Chris Allegretta9b3c7e82001-08-25 16:00:53 +00004969- winio.c:
4970 - Add David Lawrence Ramsey to credits.
Chris Allegretta96eef732001-08-25 16:41:37 +00004971 bottombars()
4972 - Spread out the menu items, feedback definitely needed on this.
Chris Allegrettace78c1e2001-09-23 01:18:03 +00004973 nanogetstr()
4974 - More key fixes (David Lawrence Ramsey)
Chris Allegretta92f5fdc2001-10-02 02:58:07 +00004975 - Don't be clever and wasteful, just repaint every iteration.
Jordi Mallach2cde0a22001-09-05 13:23:53 +00004976- po/nl.po:
Jordi Mallachc6c35ea2001-09-09 11:04:43 +00004977 - New Dutch translation, by Guus Sliepen <guus@nl.linux.org>.
Jordi Mallachc1917e72001-09-28 13:06:29 +00004978- po/ca.po, po/es.po:
4979 - Updated Catalan and Spanish translation (Jordi).
Jordi Mallachd1625cd2001-09-10 11:36:45 +00004980- po/gl.po:
4981 - Updated Galician translation (Jacobo Tarrío).
Jordi Mallach90bbdd32001-09-12 19:06:59 +00004982- po/da.po:
4983 - New Danish translation, by Keld Simonsen <keld@dkuug.dk>.
Jordi Mallach6c49b3f2001-09-15 22:47:05 +00004984- po/sv.po:
4985 - Updated Swedish translation (Christian Rose).
Jordi Mallach1e36fd82001-10-01 17:24:24 +00004986- po/it.po:
4987 - Updated Italian translation (Marco Colombo).
Jordi Mallach780f3202001-10-03 20:47:47 +00004988- po/fi.po:
4989 - Updated Finnish translation (Pauli Virtanen).
Chris Allegretta47a26862001-07-29 01:17:38 +00004990
Chris Allegretta0e8c8d82001-07-29 01:16:27 +00004991nano-1.1.1 - 07/28/2001
Chris Allegrettaef8f98d2001-07-19 12:24:17 +00004992- General
4993 - Reverted included gettext from 0.10.38 to 0.10.35 in intl/ dir.
4994 - Added m4/ directory to allow rebuilding using only the internal
4995 version of gettext.m4 (Albert Chin).
Chris Allegretta307d4c82001-07-15 20:25:33 +00004996- nano.c:
4997 main()
Chris Allegretta0e8c8d82001-07-29 01:16:27 +00004998 - Change the multibuffer getopt option to 'F' (David Lawrence
4999 Ramsey)
Chris Allegretta41ed0162001-07-24 00:21:03 +00005000 do_mark()
5001 - Temporarily disable cursorpos when enabled to be able to see
5002 the mark (un)set message (Ken Tyler).
Chris Allegretta4839d232001-07-19 22:03:51 +00005003- nanorc.sample
5004 - Typo fixes and updates (David Lawrence Ramsey)
Chris Allegretta5cce53b2001-07-17 10:42:50 +00005005- files.c:
Chris Allegrettae6421972001-07-18 01:03:36 +00005006 new_file()
5007 - Do add_open_files if there aren't any open yet (David Lawrence
5008 Ramsey).
5009 close_open_file()
5010 - Try to open the next file first, then the previous one
5011 (David Lawrence Ramsey).
Chris Allegretta5f36c372001-07-16 00:48:53 +00005012- global.c:
5013 shortcut_init()
5014 - Rewrote the whereis and replace lists to put CANCEL at the end
5015 of the list, and not include the toggle functions when using
5016 NANO_SMALL.
Chris Allegrettaf372bd92001-07-15 22:24:24 +00005017- nano.h:
5018 - Fix type in INSERTFILE_LIST_LEN.
Chris Allegretta5f36c372001-07-16 00:48:53 +00005019 - Rewrote all the macro definitions to be a little less messy,
5020 for the #ifdefs anyway.
Chris Allegretta307d4c82001-07-15 20:25:33 +00005021- rcfile.c:
5022 - Update for the multibuffer option (oops) (David Lawrence Ramsey).
Chris Allegrettaf372bd92001-07-15 22:24:24 +00005023- search.c:
Chris Allegretta5f36c372001-07-16 00:48:53 +00005024 - Added #ifdef NANO_SMALLs around the REVERSE_SEARCH code.
Chris Allegrettaf372bd92001-07-15 22:24:24 +00005025 search_init()
5026 - add #ifdef NANO_SMALL around toggles code.
Chris Allegretta5f36c372001-07-16 00:48:53 +00005027- winio.c:
5028 bottombars()
5029 - Fixed an off by one that wasn't letting lines with odd #
5030 shortcuts work in certain cases.
Chris Allegretta47f77b42001-07-15 16:13:18 +00005031
Chris Allegretta9a748602001-07-15 16:07:23 +00005032nano-1.1.0 - 07/15/2001
Chris Allegretta6b58acd2001-04-12 03:01:53 +00005033- General
5034 - New global variables currshortcut and currslen to support using
Chris Allegretta051fc6e2001-05-05 23:17:36 +00005035 the mouse with the shortcuts. Also supports clicking on files
Chris Allegretta6fe61492001-05-21 12:56:25 +00005036 in browser. Added #ifdef DISABLE_MOUSE around this code also.
Chris Allegretta84de5522001-04-12 14:51:48 +00005037 - Changed mouse disabling code from depending on --enable-tiny
Chris Allegretta88520c92001-05-05 17:45:54 +00005038 to its own flag, --disable-mouse. The --tiny option defines
Chris Allegretta84de5522001-04-12 14:51:48 +00005039 this automatically, but now just mouse support can be disabled
5040 if desired.
Rocco Corsi12f294c2001-04-14 06:50:24 +00005041 - File Browser supports the "Goto Directory"
Chris Allegretta8d8e0122001-04-18 04:28:54 +00005042 - Added rcfile.c source file. Only includes much of anything when
5043 --enable-nanorc is used. Tons of new funcs, most notably
5044 do_rcfile() called from nano.c:main(). Added much needed
5045 function ncalloc(), will have to go through source code later
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00005046 and change the appropriate calls which used nmalloc for lack of
5047 an appropriate calloc function *** FIXME ***
Rocco Corsi4dfaf932001-04-20 01:59:55 +00005048 - After "Alternate" spell checker is called, cursor is repositioned on
Chris Allegretta88520c92001-05-05 17:45:54 +00005049 the same line as before ^T was pressed.
Chris Allegretta6efda542001-04-28 18:03:52 +00005050 - Moved config.h up in all .c files #include list (Albert Chin).
Chris Allegretta88520c92001-05-05 17:45:54 +00005051 - Added config.guess and config.sub to distribution because,
5052 apparently, newer autoconf/automakes can't live without them.
5053 - Various spelling updates by David Lawrence Ramsey.
Chris Allegretta88b09152001-05-17 11:35:43 +00005054 - Changed all string allocations to charalloc(), new function
5055 designed to take nmalloc argument but call calloc based on
5056 (char *) size.
Chris Allegretta6fe61492001-05-21 12:56:25 +00005057 - New macro DISABLE_WRAPJUSTIFY to easily check for both wrapping
5058 and justify being disabled. This allows us to compile out the
5059 -r flag if neither are set, and will also allow us to comment
5060 out -W when it is written.
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00005061 - Allow fill to take a negative value to signify a "from right side"
Chris Allegretta6fe61492001-05-21 12:56:25 +00005062 value. This allows the value to vary with the screen size yet
5063 still be correct. New static value wrap_at to minimize code
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00005064 impact. Updated man page and info file.
Chris Allegrettacc197ef2001-05-29 04:21:44 +00005065 - Allow file appending. New shortcut list nano_insertfile_list (since
5066 insert and write routines can't share shortcut lists anymore),
5067 new args to do_writeout and write_file called append, and of source
5068 code changes to those functions.
Chris Allegrettae4933a32001-06-13 02:35:44 +00005069 - Allow backwards searching. Drastic rewrite of the search prompt
5070 string by Chris. All other code by Ken Tyler. New globals
5071 nano_reverse_msg, new functions revstrstr and revstrcasestr,
5072 many changes to search functions. Not too big a code size
5073 increase!
Chris Allegretta658399a2001-06-14 02:54:22 +00005074 - Moved extension functions (Case Sensitive, Regexp, and Backwards
5075 Search, Append key in write file function) to Meta keys, as
5076 people are complaining loudly about nano not being control-key
Chris Allegretta6df90f52002-07-19 01:08:59 +00005077 compatible with Pico, which is a Bad Thing (TM). Changes to
Chris Allegretta658399a2001-06-14 02:54:22 +00005078 shortcut_init, toggle_init, new toggles for backwards and regexp
5079 (and you can now toggle all search options including regexp at
5080 the Search: prompt!) Changes to nanogetstr to enable Meta
5081 keys to be grabbed, changes to onekey to print M-style shortcuts.
5082 - New macro TOGGLE which just toggles, no more silly checking
5083 ISSET and then using SET or UNSET when we want a simple toggle
5084 for a flag.
Chris Allegretta2d7893d2001-07-11 02:08:33 +00005085 - Added multiple buffer capability (God help us). New configure
Chris Allegretta355fbe52001-07-14 19:32:47 +00005086 option --enable-multibuffer (-F), changes to do_insertfile(),
Chris Allegretta2d7893d2001-07-11 02:08:33 +00005087 do_insertfile_void(), toggle_init(), do_gotoline(), edit_update(),
5088 and write_file(), new functions add_open_file(),
5089 open_file_change_name(), load_open_file(), open_file_dup_search(),
5090 open_file_dup_fix(), open_prevfile(), open_nextfile(),
5091 close_open_file(), get_full_path(), die_save_file(), etc.
5092 (David Lawrence Ramsey).
Chris Allegretta355fbe52001-07-14 19:32:47 +00005093 - Using --enable-extra automatically defines --enable-multibuffer
5094 changes to version() and configure.in.
Chris Allegretta9a748602001-07-15 16:07:23 +00005095 - Moved to gettext 0.10.38 at the last second, sure to break
5096 something, but at least I can run make distcheck!
Jordi Mallach7fde37f2001-06-22 23:26:19 +00005097- Makefile.am:
5098 - Include ABOUT-NLS and the new THANKS files to the distributed list.
5099- THANKS:
5100 - Initial, incomplete list of people to thank.
Chris Allegretta049149f2001-07-02 01:57:44 +00005101 - Added some more people.
Chris Allegrettaea066c82001-04-13 02:32:06 +00005102- configure.in:
Chris Allegretta88520c92001-05-05 17:45:54 +00005103 - New option, --enable-nanorc, which allows people to have a .nanorc
Chris Allegretta18d70f12001-04-28 15:53:28 +00005104 initialization file and set options normally used on the command
5105 line, and color later on.
Jordi Mallach72549042001-05-02 17:18:17 +00005106 - Added --enable-color option to allow color and syntax highlighting
Chris Allegretta18d70f12001-04-28 15:53:28 +00005107 (stub as of now).
Chris Allegretta4cb991d2001-05-10 22:55:16 +00005108- cut.c:
5109 add_to_cutbuffer()
5110 - Remove useless statements (Rocco).
Chris Allegretta9fe015c2001-05-17 03:41:00 +00005111 cut_marked_segment()
Chris Allegretta53ea9d12001-05-18 19:58:33 +00005112 - Add bizarre copy of bot node, else *BSD goes ballistic (fixes
5113 BUG #60).
Chris Allegrettacc197ef2001-05-29 04:21:44 +00005114 - Added 'destructive' argument. Allows the selected text to be
5115 added to the cutbuffer without changing the contents of the
5116 file. This allows writing selection to separate files.
Chris Allegretta3ba29532001-06-10 20:41:20 +00005117 do_cut_text()
Chris Allegrettaa75bc412001-06-12 23:22:26 +00005118 - If the line is empty when using -k and wasn't already added,
5119 create a dummy line and add it to the cutbuffer (fixes bug #61)
Chris Allegretta40f45c82001-06-21 15:07:40 +00005120 - Reset marked_cut if we blow away the cutbuffer.
Chris Allegretta500b5e32001-06-21 23:58:47 +00005121 - Moved the case of current == mark_beginbuf into cut_marked
5122 segment, so do_writeout could call it when writing selection to
5123 file.
Chris Allegretta40f45c82001-06-21 15:07:40 +00005124 do_uncut_text()
5125 - Reset cutbuffer even if we're uncutting marked or cut to end text!
Jordi Mallach72549042001-05-02 17:18:17 +00005126- faq.html:
5127 - Brought the FAQ up to date, many little changes (Jordi).
Chris Allegretta9a748602001-07-15 16:07:23 +00005128 - Added sections 3.7 and 3.8 for the multibuffer and nanorc support.
Rocco Corsi12f294c2001-04-14 06:50:24 +00005129- files.c:
5130 do_browser()
5131 - Minor fixes to the processing of SELECT function (Rocco)
5132 - Added the "Goto Directory" code (Rocco)
Chris Allegrettad4615622001-05-23 21:54:47 +00005133 - Don't shift the size of the file is it's less than 1K. Fixed
5134 files less than 1K being displayed as 0B (Rocco).
Chris Allegrettaa2c02e92001-07-02 01:31:44 +00005135 - More Picoish keystrokes for the browser, ^P, ^N, etc, for up,
5136 down, etc, and add the consistent ^C to exit (Jim Knoble).
Chris Allegrettacc197ef2001-05-29 04:21:44 +00005137 do_writeout()
5138 - New code to allow writing selected text to a separate file.
David Lawrence Ramsey5db0cdc2002-06-28 22:45:14 +00005139 When this is done, the current state is preserved.
Chris Allegrettaecc3d7f2001-06-05 23:24:55 +00005140 write_file()
5141 - New arg, nonamechange, means whether or not to update the
5142 current filename after writing the file out.
Chris Allegretta1a8b2962001-06-30 18:41:08 +00005143 - Increment lineswritten when the very last line isn't null.
5144 Fixes off by one count when writing selection to file.
Rocco Corsi12f294c2001-04-14 06:50:24 +00005145- global.c:
5146 - Updated some of the lists for the "Goto Directory" code (Rocco)
Chris Allegretta6cb4e882001-04-29 02:26:17 +00005147- move.c:
5148 page_up()
5149 - Rewritten with a loop to make screen updates work when
5150 mark is set (fixes bug #59).
Chris Allegretta1cde3222001-06-11 06:56:10 +00005151 do_home(), do_end()
5152 - Don't keep cutbuffer.
Jordi Mallach3f8db492001-04-30 10:30:43 +00005153- nano.1:
5154 - Added the missing -r flag (Jordi).
Rocco Corsi12f294c2001-04-14 06:50:24 +00005155- nano.c:
Rocco Corsi4dfaf932001-04-20 01:59:55 +00005156 do_alt_speller()
5157 - Reposition cursor on same line as before ^T was called (Rocco)
Chris Allegretta316e4d92001-04-28 16:31:19 +00005158 ABCD(), main()
5159 - Add Alt-whatever-[a-d] support as well as Alt-whatever-[A-D].
Rocco Corsi12f294c2001-04-14 06:50:24 +00005160 main()
5161 - Code to silently process "-g" and "-j" (Rocco)
Chris Allegrettab26ecb52001-07-04 16:27:05 +00005162 - Added Alt-[-7,8 support for home/end keys (Jeff Teunissen).
Chris Allegretta521e00d2001-06-28 16:52:52 +00005163 signal_init()
5164 - Reorder sigaction calls, use sigfillset() to stop SIGTSTP and
5165 SIGCONT from being interrupted, allows suspending nano
5166 to work more reliably, esp. with mutt, etc.
5167 do_suspend()
5168 - Don't try to play with the handler inside the handler. Just
5169 raise a SIGSTOP. We also now write the "use "fg"" message to
5170 stdout instead of stderr.
Chris Allegrettaac899e52001-06-30 04:09:09 +00005171 - Added _POSIX_VDISABLE macro to fully ignore suspend keystroke.
5172 Eliminates the possibility that nano can be suspended when
5173 it's not supposed to be. Many many many thanks to Jordi and
5174 Tom Lear for helping out finding and fixing this bug!
Chris Allegretta521e00d2001-06-28 16:52:52 +00005175 do_cont()
5176 - Now just does a refresh call instead of playing with the SIGTSTP
5177 handler.
Rocco Corsi12f294c2001-04-14 06:50:24 +00005178- nano.h:
5179 - Updated the BROWSER_LIST_LEN for the "Goto Directory" code (Rocco)
5180- proto.h:
5181 - New shortcut list added: gotodir_list (Rocco).
Rocco Corsi4dfaf932001-04-20 01:59:55 +00005182- search.c:
5183 do_gotoline()
5184 - Optimizations, remove "$" goes-to-last-line, less messages (Rocco)
Chris Allegretta5050aa62001-04-22 07:10:21 +00005185 do_replace()
5186 - If we manage to make it in somehow with VIEW_MODE on, abort
5187 nicely (fixes BUG #59).
Chris Allegretta99afb852001-05-16 04:20:57 +00005188- utils.c
5189 strcasestr()
5190 - Replaced by mutt's mutt_stristr function, because the thought
5191 of dynamically allocating memory and copying each line in a file
5192 to do a search or replace was causing me to lose sleep.
Chris Allegretta6efda542001-04-28 18:03:52 +00005193- winio.c:
5194 actual_x()
5195 - Remove inline from function decl (Albert Chin).
Jordi Mallach72549042001-05-02 17:18:17 +00005196- po/POTFILES.in:
5197 - Added utils.c to the list.
5198- po/es.po, po/ca.po:
5199 - Updated (Jordi).
Jordi Mallach96345712001-04-29 10:38:07 +00005200- po/gl.po:
Jordi Mallach64bacd22001-05-14 13:55:30 +00005201 - Galician translation by Jacobo Tarrío.
Jordi Mallach92b3bd22001-05-16 09:10:31 +00005202- po/uk.po, po/ru.po:
5203 - New Ukrainian and Russian translations by Sergey A. Ribalchenko
Jordi Mallach3bf6bf42001-05-14 13:11:56 +00005204 <fisher@obu.ck.ua>, thanks!
Jordi Mallachefd22362001-06-22 16:59:29 +00005205- po/id.po:
5206 - Updated Indonesian translation by Tedi Heriyanto.
Chris Allegretta63ba2d62001-05-16 12:16:28 +00005207- po/it.po
5208 - Updated Italian translation by Marco Colombo.
Jordi Mallachdf7d8b22001-07-05 23:16:05 +00005209- po/no.po:
5210 - New Norwegian translation by Eivind Kjørstad <ekj@vestdata.no>.
5211- po/sv.po:
5212 - New Swedish translation by Christian Rose <menthos@menthos.com>.
Chris Allegrettaac840eb2001-04-07 18:21:47 +00005213
5214nano 1.1 tree forked here 04/07/2001
5215
Chris Allegretta38068cd2001-04-06 20:04:23 +00005216nano 1.0.1 - 04/06/2001
Chris Allegrettacef7fbb2001-04-02 05:36:08 +00005217- General:
5218 - added configure option --disable-wrapping. Does what it says,
5219 no wrapping or checks are done. Separate from --enable-tiny,
Chris Allegretta88520c92001-05-05 17:45:54 +00005220 some may want a bare-bones Pico clone that does wrap text.
Chris Allegrettacef7fbb2001-04-02 05:36:08 +00005221 Affects configure, nano.c:do_char() and check_wrap() obviously,
5222 version(), and do_char().
Chris Allegretta3948bae2001-03-25 00:46:40 +00005223- aclocal.m4:
5224 - Minor patch for intl check (really this time) (Albert Chin)
Chris Allegretta4bf831f2001-03-26 15:35:34 +00005225- faq.html:
5226 - Fixed typo in section 6.1 (discovered by Bob Farmer).
Chris Allegretta49805172001-03-28 02:14:28 +00005227- files.c:
Chris Allegretta90d30742001-04-03 01:02:38 +00005228 - fix two typos in comments, one in ChangeLog (Matthias Andree)
Chris Allegretta49805172001-03-28 02:14:28 +00005229 diralphasort()
Chris Allegretta0876dc92001-03-28 13:04:08 +00005230 - Stop abort on symlinks (Matthias Andree)
Chris Allegretta90d30742001-04-03 01:02:38 +00005231 - use strcasecmp to sort directory if available, pilot does that
5232 as well (Matthias Andree)
5233 filestat(), do_browse()
Chris Allegretta0876dc92001-03-28 13:04:08 +00005234 - Changed lstat calls to stat, which fixes the browser not
5235 following links to directories. We only use lstat() when
5236 printing the details of the file, and if it is a link, then
5237 check via lstat() for link to a directory. If it is
Jordi Mallachb2c4cbe2001-04-02 13:47:17 +00005238 a directory, display (dir), else use the normal "--".
Chris Allegretta90d30742001-04-03 01:02:38 +00005239 do_browser()
5240 - Fix broken size suffix off-by-one errors (Matthias Andree)
5241 cwd_tab_completion(), do_browse_from()
5242 - Use PATH_MAX instead of 0 arg to getcwd (Matthias Andree).
5243 - Changed above to use PATH_MAX only when defined on the
5244 system, as the HURD e.g. does not support it.
Jordi Mallachb2c4cbe2001-04-02 13:47:17 +00005245- intl/Makefile.in:
5246 distclean
5247 - added intl/libintl.h to the rm -f rule, should fix the unresolved
5248 gettext symbols problem (Jordi).
Chris Allegretta20712072001-03-23 03:51:48 +00005249
Chris Allegretta2bfbda02001-03-23 03:50:44 +00005250nano-1.0.0 - 03/22/2001
Chris Allegrettae3167732001-03-18 16:59:34 +00005251- General
5252 - Added void to functions declared as () args, nano.c:do_mark()
5253 and search.c:regexp_cleanup(). (Christian Weisgerber).
5254 - Changed internal variables called "new" to "newnode" to avoid
5255 the "new" C++ reserved word, even though there is likely no way
5256 nano will EVER be compilable with a C++ compiler. (suggested by
5257 Rocco Corsi).
Chris Allegretta7ab3e8f2001-03-22 23:12:22 +00005258- ca.po, es.po:
5259 - Final tweaks for Nano 1.0.
Chris Allegretta10ae4f12001-03-20 15:51:43 +00005260- cs.po:
5261 - Czech translation from Vaclav Haisman.
Chris Allegretta7ab3e8f2001-03-22 23:12:22 +00005262- nano.info:
5263 - Added dir entry (Albert Chin).
Chris Allegretta35dac582001-03-21 15:07:20 +00005264- winio.c:
5265 statusq()
5266 - Added NANO_BACK_KEY and NANO_FORWARD_KEY cases for left and right.
Chris Allegrettae3167732001-03-18 16:59:34 +00005267
52681.0-test prerelease - 03/17/2001
Chris Allegretta94a78b82001-03-14 08:28:48 +00005269- nano.c:
5270 do_wrap()
5271 - Added case for autoindenting text causing new line (Adam).
5272 - Added SAMELINE case to above. Added checks to cases 1b and
5273 2b for placement of cursor.
Chris Allegretta565f7d52001-03-15 02:02:20 +00005274- move.c:
5275 page_down()
Chris Allegretta88520c92001-05-05 17:45:54 +00005276 - Check for totlines < editwinrows in check for superfluous
Chris Allegretta565f7d52001-03-15 02:02:20 +00005277 edit update (fixed BUG #57).
Jordi Mallach5b387d72001-02-20 12:45:47 +00005278- search.c:
Chris Allegretta74bb31b2001-03-14 09:08:14 +00005279 print_replaced()
Jordi Mallach5b387d72001-02-20 12:45:47 +00005280 - s/occurence/occurrence typos (Jordi).
Chris Allegretta74bb31b2001-03-14 09:08:14 +00005281 search_init()
5282 - If using Pico mode and regex and same answer is entered, use
5283 last_search string instead of answer (fixes BUG #56).
Chris Allegretta203ce152001-02-23 03:05:38 +00005284- nano.texi:
5285 - Meta-Z correction and grammar in --enable-tiny desc (Neil Parks).
Chris Allegretta9c9c5da2001-02-20 03:53:31 +00005286
Chris Allegrettaa4a222d2001-02-20 03:52:13 +00005287nano-0.9.99pre3 - 02/19/2001
Chris Allegrettaaf6414a2001-02-11 19:05:05 +00005288- General
Chris Allegretta1bf501c2001-02-12 03:24:46 +00005289 GNU compliance issues:
Jordi Mallacha7b2ed02001-02-20 02:04:43 +00005290 - Reworked shortcut list, put "Get Help" into default list,
Chris Allegretta1bf501c2001-02-12 03:24:46 +00005291 removed "Goto Line", aligned "Read File" with "Write Out" and
5292 "Replace" with "Where is" for consistency.
5293 - Added texinfo manual nano.texi. Added texi options to
Chris Allegrettac46dd812001-02-14 14:28:27 +00005294 Makefile.am.
Chris Allegrettade48b412001-02-01 22:56:44 +00005295- configure.in:
5296 - Autoconf compatibility fixes (Pavel Roskin)
Chris Allegretta618f5d72001-02-16 04:48:30 +00005297 - Added separate check for resizeterm().
Jordi Mallach82b18292001-02-17 01:31:32 +00005298 - ALL_LINGUAS: added hu and ca.
Chris Allegretta09f39cb2001-02-05 13:43:23 +00005299- cut.c:
5300 do_cut_text()
5301 - marked text cut fixes (Rocco) (Fixes bug #54).
Chris Allegretta00ae5df2001-02-05 18:24:33 +00005302- nano.c:
Chris Allegretta4ed13152001-02-10 17:50:50 +00005303 do_delete()
5304 - Added check for current->next == fileptr, as we have a magic
Chris Allegretta88520c92001-05-05 17:45:54 +00005305 line code again, fixes silliness at the end of the last line
Chris Allegretta4ed13152001-02-10 17:50:50 +00005306 before the magic line (reported by J.A. Neitzel).
Chris Allegretta00ae5df2001-02-05 18:24:33 +00005307 do_justify()
5308 - If the keystroke after the justify is not the unjustify key,
Chris Allegretta88520c92001-05-05 17:45:54 +00005309 blank the statusbar (bug reported by Neil Parks).
Chris Allegretta8bc03b62001-02-09 02:57:52 +00005310 main()
5311 - Added ENABLE_NLS check around gettext stuff.
Chris Allegretta4ce8e3b2001-02-16 01:49:31 +00005312- winio.c:
5313 do_yesno()
5314 - Added localized yes, no and all strings to function and rewrote
5315 handler for the new format.
Chris Allegrettab55999e2001-02-09 02:49:46 +00005316- de.po:
Jordi Mallach81197652001-02-16 20:00:03 +00005317 - Translation updates by Florian König.
Chris Allegrettab55999e2001-02-09 02:49:46 +00005318- fi.po:
5319 - Translation updates by Pauli Virtanen.
Chris Allegrettad096f682001-02-05 13:51:31 +00005320- hu.po:
5321 - Hungarian translation by Horvath Szabolcs.
Chris Allegrettab55999e2001-02-09 02:49:46 +00005322- id.po:
5323 - Translation updates by Tedi Heriyanto.
Jordi Mallach81197652001-02-16 20:00:03 +00005324- es.po:
Jordi Mallach6aec0d62001-02-17 01:32:58 +00005325 - Translation updates and grammatical/typo fixes (Jordi).
Jordi Mallach82b18292001-02-17 01:31:32 +00005326- ca.po:
5327 - Catalan translation by Jordi Mallach :)
Jordi Mallacha7b2ed02001-02-20 02:04:43 +00005328 - Miquel Vidal <miquel@sindominio.net> went over it and corrected
5329 many typos and completed bits that remained untranslated by error.
Chris Allegretta7c1fee72001-01-31 23:24:54 +00005330
Chris Allegretta34318ed2001-01-31 23:22:36 +00005331nano-0.9.99pre2 - 01/31/2001
Chris Allegretta17dcb722001-01-20 21:40:07 +00005332General
Chris Allegrettad4ddd012001-01-23 01:17:07 +00005333 - Removed center_x and center_y globals. center_y was
5334 completely unused and center_x was only used a few places,
Chris Allegretta17276e52001-01-23 01:22:32 +00005335 easily replaced with COLS / 2 (oops, not current_x & y (Rob)).
Chris Allegretta17dcb722001-01-20 21:40:07 +00005336 - Deleted free_node, duplicate of delete_node, and changed all
5337 free_node calls to delete_node.
Chris Allegretta08020882001-01-29 23:37:54 +00005338 - Fix for resizing the window in modes other than normal edit mode
5339 Changes to handle_sigwinch(), main(). Fixes bug #52 (Rocco).
Chris Allegretta0fc2b812001-01-18 15:04:20 +00005340- files.c:
5341 write_file()
5342 - Don't free() realname on error, if it needs to be free()d later
5343 it will be (fixes crash on successful write after failed write,
5344 discovered by David Sobon).
Chris Allegretta8d9b11a2001-01-19 04:17:24 +00005345 username_tab_completion()
5346 - Optimization and removal of useless vars (Rocco).
Chris Allegretta2c2c5f22001-01-23 03:27:31 +00005347 - Rewritten using getpwent (suggested by Rocco).
Chris Allegrettaa711f7e2001-01-23 04:16:31 +00005348 - Removed redundant conditional (Rocco).
Chris Allegrettaee733e62001-01-22 22:17:08 +00005349 real_dir_from_tilde()
Chris Allegretta88520c92001-05-05 17:45:54 +00005350 - Rewritten using getpwent (suggested by Adam, much optimized by
5351 Rocco).
Chris Allegrettaf0b26df2001-01-20 22:18:18 +00005352- global.c:
5353 - Don't define toggles global or toggle_init_one if using --tiny.
Chris Allegretta17dcb722001-01-20 21:40:07 +00005354- nano.c:
5355 do_justify()
5356 - Added restoration of totsize after unjustify command.
Chris Allegretta7f7ce562001-01-21 16:35:49 +00005357 usage()
Chris Allegrettae9a2d032001-01-21 16:08:21 +00005358 - Add arg to -T help (Rocco).
Chris Allegretta0a06e072001-01-23 02:35:04 +00005359 global_init(), handle_sigwinch()
5360 - Messy loops replaced with memset calls (Rocco).
Chris Allegretta169ee842001-01-26 01:57:32 +00005361 do_alt_speller()
5362 - Added code to parse multi-word alt_speller strings.
Chris Allegrettae434b452001-01-27 19:25:00 +00005363 - Fix initialization before fork() (Rocco).
Chris Allegretta34318ed2001-01-31 23:22:36 +00005364- proto.h:
5365 - Fix do_credits() proto (oops!)
Chris Allegrettae434b452001-01-27 19:25:00 +00005366- winio.c:
5367 nanogetstr()
5368 - Sanity check for x overrunning the string buffer len.
Chris Allegretta76745fb2001-01-18 04:40:06 +00005369
Chris Allegretta9d6f3f32001-01-21 02:35:03 +00005370nano 0.9.99pre1 - 01/17/2001
Chris Allegrettaa4d6d1d2001-01-10 23:44:10 +00005371General
5372 - Changed #ifdefs to check for both DISABLE_TABCOMP and
5373 NANO_SMALL, makes tiny option leave out tab completion, which
Rocco Corsiaf5c3022001-01-12 07:51:05 +00005374 should be left out in that circumstance. Saves at least 5k.
Rocco Corsi06aca1c2001-01-11 05:30:31 +00005375 - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
Rocco Corsiaf5c3022001-01-12 07:51:05 +00005376 back. (Rocco)
5377 - Various #ifdef & #ifndef cleanups. (Rocco)
Chris Allegretta201d9bf2001-01-14 03:17:53 +00005378 - Added message for when keypad goes awry. Added code in main and
5379 function print_numlock_warning() to notify user, and added an
Chris Allegretta88520c92001-05-05 17:45:54 +00005380 appropriate section in the faq to refer to this brokenness.
Chris Allegrettae61e8302001-01-14 05:18:27 +00005381 - Added macros in nano.h for magic values that might be unclear in
Chris Allegretta2be96d02001-01-14 05:22:43 +00005382 nano.c:global_init(). (Rocco)
Chris Allegrettabbebec62001-01-09 00:37:32 +00005383- configure.in:
5384 - Fix for _use_keypad check breaking slang support (Christian
5385 Weisgerber).
Chris Allegretta88520c92001-05-05 17:45:54 +00005386 - Changed to automatically define the 5 DISABLE variables when
Chris Allegretta4ee0b412001-01-11 15:11:00 +00005387 NANO_SMALL (enable-tiny) is requested at configure.
Chris Allegretta2c4feca2001-01-09 17:40:56 +00005388- faq.html:
5389 - Added some info on making the binary smaller with the configure
5390 script.
Chris Allegretta201d9bf2001-01-14 03:17:53 +00005391 - Added section on keypad bugginess.
Chris Allegrettabf692612001-01-08 16:59:19 +00005392- files.c:
5393 real_dir_from_tilde()
5394 - Oops, fix case where buf ="~", silly crash (bug discovered by
5395 Neil Parks).
Chris Allegretta8eac3b52001-01-08 21:14:04 +00005396 do_browser()
5397 - Added space and - keys to do page up and down.
Chris Allegrettaa35ec042001-01-15 02:26:12 +00005398 cwd_tab_completion(), input_tab()
5399 - Changed bare malloc/calloc calls to nmalloc (found by Rocco).
Chris Allegretta40587092001-01-16 04:45:38 +00005400 - Added memset() to matchBuf to ensure sanity (Rocco, Adam).
Rocco Corsiaf5c3022001-01-12 07:51:05 +00005401- nano.c:
Chris Allegretta1748cd12001-01-13 17:22:54 +00005402 ABCD()
5403 - New function, figures out what kbinput to return given
5404 input common to several switch statements, allows us to
5405 support the default Konsole key settings.
Rocco Corsiaf5c3022001-01-12 07:51:05 +00005406 main()
5407 - Alternate speller option no longer valid if DISABLE_SPELLER is
5408 active. (Rocco)
Chris Allegrettaae4318d2001-01-16 04:18:26 +00005409 - Removed direct calls to usage() (#else) for -k (cut) or -s (speller)
5410 options when these have been disabled. (Rocco)
Chris Allegretta36939442001-01-15 20:26:38 +00005411 - Initialized kbinput to get around stupid compiler warning.
Rocco Corsiaf5c3022001-01-12 07:51:05 +00005412 nano_small_msg()
5413 - This function has been removed. All references now call
5414 nano_disabled_msg. (Rocco)
5415 version()
5416 - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE
5417 variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not
5418 reported as enabled when Nano is called with -V (--version)
Chris Allegretta88520c92001-05-05 17:45:54 +00005419 command line option. (Rocco)
Rocco Corsiaf5c3022001-01-12 07:51:05 +00005420 usage()
5421 - Alternate speller option no longer valid if DISABLE_SPELLER is
5422 active. (Rocco)
Chris Allegrettae61e8302001-01-14 05:18:27 +00005423 window_init(), handle_sigwinch()
5424 - Added check for not having enough LINES to do anything useful,
5425 if so die with an error. (Rocco)
5426 die_too_small()
5427 - Function to print the window too small error message, avoids
5428 repeated string defs and globals.
Robert Siemborskic2eeb4e2001-01-17 03:29:02 +00005429 do_justify()
5430 - Small fix for totsize calculation (Rob)
5431
Chris Allegrettad9742c62001-01-12 15:51:53 +00005432- fi.po:
5433 - Update by Pauli Virtanen.
Chris Allegretta7e080822001-01-08 02:31:03 +00005434
Chris Allegretta16991442001-01-07 22:06:11 +00005435nano 0.9.25 - 01/07/2001
Chris Allegrettaf4b96012001-01-03 07:11:47 +00005436General -
5437 - New file browser code. New functions in files.c:do_browser(),
5438 helper functions browser_init(), tail(), striponedir(),
5439 filestat(). New shortcut list browser_list. Some new
Chris Allegretta150469a2001-01-05 21:13:14 +00005440 strings to translate. Added function do_browse_from().
Chris Allegrettac08f50d2001-01-06 18:12:43 +00005441 - Keypad code has been changed slightly. Now checks for
5442 _use_keypad flag in window to see whether or not to turn
5443 the keypad() back off when finished (taken from aumix). Moved
Chris Allegretta88520c92001-05-05 17:45:54 +00005444 to winio.c where it should probably be anyway. New configure
5445 check for _use_keypad in window struct. This will have to do
Chris Allegrettac08f50d2001-01-06 18:12:43 +00005446 for now.
Chris Allegretta155d6202001-01-08 01:50:37 +00005447 - Moved keypad() calls for PDCURSES from main() to window_init()
5448 so the keypad continues to work after a Meta-X, for example.
5449 Fixed bug #51.
Jordi Mallach56e6d722000-12-19 22:59:55 +00005450- faq.html:
5451 - Fix typos and small mistakes (Jordi).
Chris Allegrettaee289d72000-12-27 16:12:47 +00005452- files.c:
Rocco Corsi8b6cccc2001-01-02 06:21:07 +00005453 username_tab_completion()
5454 - Added the (char *) sizeof when allocating memory for the filename
5455 array (Rocco).
Chris Allegrettaee289d72000-12-27 16:12:47 +00005456 cwd_tab_completion()
5457 - removed skipping . and .. when tabulating matches.
Rocco Corsi8b6cccc2001-01-02 06:21:07 +00005458 - Added the (char *) sizeof when allocating memory for the filename
5459 array (Rocco).
Chris Allegrettae1ebaf32001-01-07 05:50:36 +00005460 do_writeout()
5461 - Now takes an argument so the string typed in can be retained
5462 when calling the browser.
Chris Allegretta816a1652001-01-06 17:43:56 +00005463 do_browser()
5464 - Don't decrement longest by the length of path. Fixes crashes
5465 on entering various dirs (Rocco).
Chris Allegretta88520c92001-05-05 17:45:54 +00005466 - Don't ungetch() the exit key, unneeded, fixes inserting a file
Chris Allegretta816a1652001-01-06 17:43:56 +00005467 causes exit code.
Chris Allegretta155d6202001-01-08 01:50:37 +00005468- move.c:
5469 page_down()
5470 - Don't do an edit_update when there is only one page of text
5471 (fileage == edittop && filebot == editbot). Fixes Bug #50.
Chris Allegrettad55655f2000-12-27 03:36:47 +00005472- nano.c:
5473 main()
5474 - Reorder the getopt options to be more or less alphabetical
5475 (suggested by Sven Guckes).
Chris Allegretta66795ec2000-12-27 04:47:28 +00005476- winio.c:
5477 do_cursorpos()
5478 - Optimizations and cleanups by Rocco Corsi.
Chris Allegretta827b15f2001-01-03 02:09:04 +00005479 do_credits()
5480 - Spell Erik Andersen's name right.
Chris Allegrettaf4b96012001-01-03 07:11:47 +00005481 titlebar()
5482 - Now takes an arg, needed for browser function.
Chris Allegretta70444892001-01-07 23:02:02 +00005483 do_help()
5484 - Changed way of temporarily bringing up shortcuts at the
5485 bottom in the help screen (actually works).
Chris Allegretta150469a2001-01-05 21:13:14 +00005486- utils.c:
5487 mallocstrcpy()
5488 - Takes char pointers now instead of void (makes debugging a
5489 helluva lot easier)
Chris Allegrettae1ebaf32001-01-07 05:50:36 +00005490 - Duh, don't do anything if src == dest!
Jordi Mallach75ef81b2001-01-04 16:48:59 +00005491- es.po:
5492 - Updates for file browser (Jordi).
Chris Allegretta827b15f2001-01-03 02:09:04 +00005493
Chris Allegretta66149e72000-12-19 02:51:06 +00005494nano 0.9.24 - 12/18/2000
Chris Allegretta3bc8c722000-12-10 17:03:25 +00005495General
5496 - Added --disable-help option, affects acconfig.h, configure(.in),
Chris Allegrettab7d00ef2000-12-18 05:36:51 +00005497 winio.c:do_help, nano.c:help_init,help_text_init,version.
Chris Allegretta1a6e9042000-12-14 13:56:28 +00005498 - Changed filename to no longer use PATH_MAX, so it can work on the
5499 HURD. Changes in files.c:write_file(), new function
5500 nano.c:clear_filename(), many changed in main(), a few other
5501 places. Please test this!
Chris Allegretta51b3eec2000-12-18 02:23:50 +00005502 - Added -b, -e, and -f flags, which we ignore as nano provides
5503 their functionality already.
Chris Allegretta5146fec2000-12-10 05:44:02 +00005504- cut.c:
5505 do_uncut_text()
Chris Allegretta51b3eec2000-12-18 02:23:50 +00005506 - Fix renumbering bug when uncutting marked text at filebot.
Chris Allegretta5146fec2000-12-10 05:44:02 +00005507 - Fix screen not being displayed when we are uncutting marked
5508 text at editbot (Bug discovered by Ken Tyler).
Chris Allegrettae51c95f2000-12-10 05:54:27 +00005509 - Fix magic line not getting created when (you guessed it)
5510 uncutting marked text at filebot (Ryan Krebs).
Chris Allegrettaef123112000-12-10 00:04:13 +00005511- files.c:
Chris Allegretta3a7c0be2000-12-18 01:09:07 +00005512 read_file()
5513 - If we encounter an error and insert is not set, run new_file().
5514 (bug discovered by Ben Roberts).
Chris Allegrettaef123112000-12-10 00:04:13 +00005515 write_file()
5516 - Change open call flags, basically copy joe's way of doing it so
5517 a more recent version will actually be included in (un)stable.
Chris Allegretta1cd50662000-12-11 02:47:12 +00005518 - Remove useless fstat call.
Chris Allegretta7960dcf2000-12-13 15:01:29 +00005519 open_file()
5520 - Added check for S_ISBLK and S_ISCHR, don't open device files!
Chris Allegretta5146fec2000-12-10 05:44:02 +00005521- nano.c:
5522 renumber()
Chris Allegretta88520c92001-05-05 17:45:54 +00005523 - Don't stupidly assign the value of prev->lineno if prev == NULL!
Chris Allegretta51b3eec2000-12-18 02:23:50 +00005524 main()
5525 - Added code to check for Alt-Alt (27-27) keystrokes and set the
5526 next keystroke as a control sequence. New variable
5527 modify_control_key. Removed #ifdef _POSIX_VDISABLE check
5528 around Control-S,Q,Z handlers because we need it now for
5529 the Alt-Alt-x code.
Chris Allegretta7492cec2000-12-18 04:55:21 +00005530 - Added --view option to getopt_long()call . Bug discovered
5531 by Rocco Corsi.
Chris Allegretta220ba692000-12-18 03:40:00 +00005532 help_init()
5533 - Fix off by one error that was making ^G help in normal mode and
Chris Allegretta6df90f52002-07-19 01:08:59 +00005534 ^_ in Pico mode not be displayed in the help (bug discovered by
Chris Allegretta92325e72000-12-18 03:44:22 +00005535 Rocco Corsi).
Chris Allegrettaaffeda82000-12-18 04:03:48 +00005536 do_toggle()
5537 - Added fix_editbot() call to fix improper redisplay of edit
5538 window when using nohelp toggle (bug discovered by Rocco Corsi).
Chris Allegretta51b3eec2000-12-18 02:23:50 +00005539- nano.1, nano.1.html:
5540 - Updated man page for -b, -e, -f and expanded explanation for -p.
Chris Allegrettad1627cf2000-12-18 05:03:16 +00005541- winio.c
5542 do_help()
5543 - Force keypad on so F-keys and PageUp/Down will work properly.
5544 Added check for NANO_EXIT_FKEY to loop.
Chris Allegrettae51c95f2000-12-10 05:54:27 +00005545- utils.c:
5546 new_magicline()
Chris Allegretta321590a2000-12-10 06:03:40 +00005547 - Increment totsize!! We decrement it when we've read a file,
5548 everywhere else it should automatically be incremented
Chris Allegrettaef123112000-12-10 00:04:13 +00005549
Chris Allegrettab29550e2000-12-09 03:34:12 +00005550nano 0.9.23 - 12/08/2000
Chris Allegretta7b36c522000-12-06 01:08:10 +00005551General
5552 - Changed --disable-spell to --disable speller. The term is
5553 "speller" for -s, so it should be --disable-speller.
Chris Allegretta59828492000-12-04 03:31:39 +00005554- files.c:
5555 write_file()
Chris Allegretta88520c92001-05-05 17:45:54 +00005556 - Added tmp check to TMP_OPT section (how appropriate).
Chris Allegretta07f9ee02000-12-04 05:15:39 +00005557 - Added new consistency checking code from securityfocus
Chris Allegrettafb2226a2000-12-04 05:25:47 +00005558 article by Oliver Friedrichs, and use O_EXCL if tmp == 1.
Chris Allegretta928a7f52000-12-04 05:31:34 +00005559 - We now run check on result of lstat(), not stat(), to be
5560 safer. New variable anyexists, we use still use realexists
5561 later in the program.
Chris Allegretta71e46402000-12-06 00:40:26 +00005562 - OOPS, line up link/unlink/rename check if conditional with
5563 top if conditional. Option -l has been broken for 9 versions,
5564 no one noticed?!
Chris Allegretta1bd0ce22000-12-06 05:56:08 +00005565 - Added saving perms at end of link so we can apply them to the
5566 new file if --nofollow is used.
Chris Allegretta908805a2000-12-04 04:42:56 +00005567- winio.c:
5568 edit_add()
5569 - Off by one display error (fix by Rocco Corsi).
Chris Allegrettafb62f732000-12-05 11:36:41 +00005570 do_replace_highlight()
Chris Allegretta88520c92001-05-05 17:45:54 +00005571 - New code to handle being past COLS (Rocco Corsi).
Chris Allegrettafb62f732000-12-05 11:36:41 +00005572 - Moved from search.c, as it's definitely a winio function now =)
5573 update_line()
5574 - More '$' display fixes (Rocco Corsi).
Chris Allegretta59828492000-12-04 03:31:39 +00005575
Chris Allegrettafedd7242000-12-03 03:15:38 +00005576nano 0.9.22 - 12/02/2000
Chris Allegrettabe77c612000-11-24 14:00:16 +00005577- General
Chris Allegrettabe77c612000-11-24 14:00:16 +00005578 - Username tab completion code, and cleaned up existing tabcomp
5579 code. New functions real_dir_from_tide(), append_slash_if_dir(),
5580 username_tab_completion is more than a stub now =-).
Chris Allegretta72623582000-11-29 23:43:28 +00005581 - Ignore key sequence 543 & 545, right control and alt keys in
5582 windows. Affects main() and winio.c:nanogetstr().
Chris Allegretta56b24b52000-11-29 23:57:20 +00005583 - Took out help from spell_list and changed SPELL_LIST_LEN to 1.
5584 Is using a spell checker THAT difficult? =-)
Chris Allegrettaff269f82000-12-01 18:46:01 +00005585 - New function nano_disabled_msg(), to alert that certain
Chris Allegretta88520c92001-05-05 17:45:54 +00005586 functions have been disabled, similar to nano_tiny feature.
Chris Allegrettaff269f82000-12-01 18:46:01 +00005587- New configure options:
5588 - Added configure argument --disable-tabcomp. Affects
5589 bottom of files.c and write_file, utils.c:check_wildcard_match()
Chris Allegretta88520c92001-05-05 17:45:54 +00005590 and winio.c:nanogetstr().
Chris Allegrettaff269f82000-12-01 18:46:01 +00005591 - New options --enable-extra. New code in nano.c:version() to
5592 print out various options from ./configure, function do_credits().
5593 - Added --disable-spell option for those who want to just disable
Chris Allegretta88520c92001-05-05 17:45:54 +00005594 the spell check feature. Affects the spelling functions
Chris Allegrettaff269f82000-12-01 18:46:01 +00005595 do_spell, do_int_speller and do_alt_speller.
5596 - Added --disable-justify to get rid of the justify function.
5597 Affects do_justify() (not surprisingly).
Chris Allegretta650e8a42000-11-24 14:15:17 +00005598- files.c:
5599 write_file()
5600 - Unsetting modified on temp files bug fixed (Rocco Corsi).
Chris Allegretta581bc602000-12-03 03:01:12 +00005601 - Okay, if tmp == 1 and the file exists, we abort.
Chris Allegretta25f4e582000-11-25 05:03:20 +00005602 do_insertfile()
Chris Allegretta09a80842000-11-30 02:31:13 +00005603 - Added call to real_name_from tilde, oops. Added check for
5604 DISABLE_TABCOMP.
Chris Allegretta24946bd2000-11-26 21:34:47 +00005605 read_file()
5606 - Added check for fileptr == NULL.
Chris Allegretta07798352000-11-27 22:58:23 +00005607- global.c:
5608 shortcut_init()
5609 - Now takes an argument as to whether to display the unjustify
Chris Allegretta88520c92001-05-05 17:45:54 +00005610 shortcut or the normal uncut text one. Needed to accommodate
5611 the kludgey unjustify code.
Chris Allegretta8be8ce22000-11-28 02:15:30 +00005612- nano.1, nano.1.html:
5613 - Updated date on pages because of -p changes.
Jordi Mallachd7ad75a2000-12-03 02:46:02 +00005614 - Added "NOTES" section, where I explain what nano.save & friends
5615 are.
5616 - Added a copyright notice for the manpage, under the GPL.
5617 - Other minor changes.
Chris Allegretta9149e612000-11-27 00:23:41 +00005618- nano.c:
5619 do_justify()
Chris Allegretta8be8ce22000-11-28 02:15:30 +00005620 - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
5621 text there, then grabs the next keystroke and, if the unjustify
5622 key, gets rid of the justified text and calls do_uncut_text.
5623 Added macro NANO_UNJUSTIFY_KEY.
Chris Allegrettad00e6df2000-11-29 04:33:26 +00005624 do_int_spell*
5625 - Various fixes (Rocco Corsi).
5626 - Changed abort of program to aborting based on value of "edit a
5627 replacement" question, and not caring about the replace loop
5628 return value. That way the user can get out of the replace loop
5629 and continue spell checking (very important to me anyway).
Chris Allegrettaff269f82000-12-01 18:46:01 +00005630 version()
5631 - Took out huge check for the various --disabled macros,
5632 eventually there will be too many to reasonably check for.
Chris Allegretta4eb7aa02000-12-01 18:57:11 +00005633 nano_small_msg(), nano_disabled_msg()
5634 - Added checks for disabled functions to see whether or not to
5635 declare them.
Chris Allegretta9e2934f2000-12-01 23:49:48 +00005636 do_next_word()
5637 - Update the previous line as well as the current one in case we
5638 have moved beyond COLS or back from COLS, patch submitted
5639 by Ryan Krebs.
Chris Allegrettae7a58932000-12-02 02:36:22 +00005640 die()
5641 - Now creates .save file using variable-length strings. Also
5642 calls write_file with tmp == 1, which happens to do exactly what
Chris Allegretta581bc602000-12-03 03:01:12 +00005643 we want (abort on save file exists and use mode 0600).
Chris Allegrettae7a58932000-12-02 02:36:22 +00005644 handle_sighup()
5645 - Now calls die instead of writing on its own and exiting normally.
Chris Allegrettad00e6df2000-11-29 04:33:26 +00005646- search.c:
Jordi Mallach72549042001-05-02 17:18:17 +00005647 do_replace_highlight()
5648 - New function, displays the currently selected word as highlighted
Chris Allegrettad00e6df2000-11-29 04:33:26 +00005649 in the spell check. Called from do_replace_loop (Rocco Corsi).
Jordi Mallach72549042001-05-02 17:18:17 +00005650 - Added calls to curs_set(0) and (1) to disable the cursor when
5651 highlighting, looks much better.
Jordi Mallachd819a4c2000-11-25 04:50:25 +00005652- es.po:
5653 - Traditional Spanish strings updates.
Chris Allegrettabe77c612000-11-24 14:00:16 +00005654
Chris Allegrettaca7a21d2000-11-24 01:35:40 +00005655nano 0.9.21 - 11/23/2000
Chris Allegrettaf26bca72000-11-21 03:04:45 +00005656- AUTHORS
5657 - Added Rocco Corsi.
Chris Allegretta31c76662000-11-21 06:20:20 +00005658- nano.c:
5659 main()
5660 - Changed check for argc == 1 to argv[optind] == NULL to decide
5661 whether or not to display "New File" in the statusbar.
Chris Allegrettaaaabe1f2000-11-19 18:20:07 +00005662- search.c:
5663 findnextstr()
Chris Allegretta88520c92001-05-05 17:45:54 +00005664 - Fix current_x increment bug by using another variable (Rocco Corsi).
Chris Allegrettaef601bb2000-11-19 19:15:03 +00005665 search_init()
5666 - Silly typo in our "one simple call" of statusq. Stopped
5667 previous search string from being displayed.
Chris Allegrettac793c432000-11-21 12:52:55 +00005668 do_replace()
5669 - Copy back the previous value of last_replace into answer if
5670 using PICO_MODE and answer == ""
Chris Allegretta6c5781b2000-11-23 01:19:58 +00005671- winio.c:
5672 do_up()
Chris Allegretta88520c92001-05-05 17:45:54 +00005673 - Deleted first update_line() call, screws up display when marker is
5674 set.
Chris Allegrettad466ab72000-11-19 20:36:41 +00005675- nano.1, nano.1.html
5676 - Updated man page for new -p definition.
Chris Allegrettaac0e63a2000-11-19 02:25:43 +00005677
Chris Allegretta6da149a2000-11-19 02:23:03 +00005678nano 0.9.20 - 11/18/2000
Chris Allegretta67574f42000-11-03 03:35:29 +00005679- General
5680 - Ran source through indent -kr again. Make everything pretty.
5681 - Changed behavior of "search" and "replace" prompts to make all
5682 previous values editable. This change was made so that you can
5683 replace with the null string without needing a special key for it.
5684 changed code in search_init(), do_replace(), nanogetstr (see
5685 below).
5686 - Added some missing gettext calls here and there (Jordi).
Chris Allegretta88520c92001-05-05 17:45:54 +00005687 - Revamped nanogetstr() and calls to it to use variable length
5688 strings.
Chris Allegretta67574f42000-11-03 03:35:29 +00005689 MANY changes in nanogetstr(), many chances in search.c, new
5690 function mallocstrcpy which is sure to be a programmatic
5691 nightmare, changed last_search, last_replace, answer to
5692 pointers. New function not_found_msg in search.c for displaying
Chris Allegretta88520c92001-05-05 17:45:54 +00005693 truncated strings in statusbar when the string is not found
Chris Allegrettacbb0f8b2000-11-15 03:50:02 +00005694 (-pedantic fixes by Rocco Corsi). We disable this feature when
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +00005695 using PICO_MODE (-p).
Chris Allegretta27eb13f2000-11-05 16:52:21 +00005696 - New spelling code by Rocco Corsi. New functions
5697 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
5698 New functions search_init_globals and do_replace_loop, changes
5699 to search_init(), do_replace, findnextstr, moved last_search and
5700 last_replace back to nano.c (*shrug*).
Chris Allegretta04d848e2000-11-05 17:54:41 +00005701 - New tab completion code. Used check_wildcard_match, input_tab,
5702 cwd_tab_completion, username_tab_completion from busybox,
Chris Allegretta7da4e9f2000-11-06 02:57:22 +00005703 hacked them a lot, changes to nanogetstr(). nanogetstr() and
5704 statusq() now take an arg for whether or not to allow tab
5705 completion.
Chris Allegretta5bf51d32000-11-16 06:01:10 +00005706 - Fixed value being input in statusbar during a search or replace
5707 and CASE_SENSITIVE or the other search is called and the
5708 string being typed in is blown away. Reported by Ken Tyler.
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +00005709 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
5710 accordingly.
Chris Allegretta92d2bab2000-11-02 14:53:46 +00005711- files.c:
5712 do_writeout()
5713 - Change strcpy to answer to mallocstrcpy.
Chris Allegrettad7934d42000-10-03 05:39:29 +00005714- global.c
Chris Allegretta105da332000-10-31 05:10:10 +00005715 - New global replace_list_2, for 2nd half of the replace dialog
5716 ("Replace with:"), has fewer options than first half because
Chris Allegretta88520c92001-05-05 17:45:54 +00005717 they were inappropriate.
Chris Allegrettad7934d42000-10-03 05:39:29 +00005718 toggle_init()
5719 - Added #ifdef around toggle_regex_msg to get rid of compiler
5720 warning.
Chris Allegretta1cc0b7f2000-11-03 01:29:04 +00005721
5722- nano.c:
5723 keypad_on()
5724 - New function, toggles turning the keypad on and off in edit and
5725 bottomwin(). Added call to this in finish(), fixes bug #45.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +00005726- search.c
Chris Allegretta88520c92001-05-05 17:45:54 +00005727 findnextstr()
Chris Allegrettaa0e957b2000-10-24 22:25:36 +00005728 - New arg for begin_x variable, basically a rewrite that
5729 makes a little more sense and isn't quite as messy (Rocco Corsi).
5730 - Update the line we're checking if not the whole screen, because
5731 it's quite possible the search team could exist somewhere way
5732 to the right on the same line, for example.
5733 replace_abort()
5734 - Add reset of placewewant, stops cursor from jumping when moving
5735 cursor after a replace.
Chris Allegretta810632d2000-10-27 04:36:01 +00005736 do_replace()
5737 - Added code for Gotoline key after entering the search term.
5738 Fixes bug #46.
Chris Allegretta88520c92001-05-05 17:45:54 +00005739 - Removed redundant code involving processing replacement string.
Chris Allegretta9c371a22000-10-27 05:48:05 +00005740 Converted if statements to switch statements.
5741 - Optimizations by Rocco Corsi.
Chris Allegretta105da332000-10-31 05:10:10 +00005742 - Removed code for deleted shortcuts from in replace_list_2.
Chris Allegretta9c371a22000-10-27 05:48:05 +00005743 do_search()
5744 - Converted if statements to one switch statement.
Chris Allegrettaf9b6c9b2000-10-18 19:35:59 +00005745- winio.c
5746 nanogetstr()
5747 - Added check for 343 in while loop to get rid of getting "locked"
5748 into statusbar" bug in odd $TERMs like iris-ansi.
Chris Allegretta105da332000-10-31 05:10:10 +00005749 - Changed check to return -2 on "enter" from answer == ""
5750 to answer == def.
Chris Allegretta04d848e2000-11-05 17:54:41 +00005751 - Fixed fallthrough code because there was no break. Make much
5752 more sense now.
Chris Allegretta5b1faac2000-11-16 19:55:30 +00005753 - Added check for ASCII 54[124] when using PDCURSES, ignore them
5754 if noticed.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +00005755 nanoget_repaint()
5756 - New function, removes about 30 lines of duplicate code in
5757 nanogetstr().
Chris Allegretta90594e22000-11-02 15:53:40 +00005758 - Black magic code to make $ appear in prompt if we're past
5759 COLS.
Chris Allegretta2c975222000-11-15 01:25:42 +00005760 blank_edit()
5761 - Removed wrefresh() call, much less choppy now. If there's a need
5762 for a wrefresh after a specific call, let me know.
Jordi Mallach0ae0dcd2000-10-28 12:38:02 +00005763- es.po:
Jordi Mallachd25385b2000-11-18 03:31:21 +00005764 - Updated translation for 0.9.20 (Jordi).
Chris Allegrettad7934d42000-10-03 05:39:29 +00005765
Chris Allegretta07e97d62000-10-03 01:52:50 +00005766nano 0.9.19 - 10/02/2000
Chris Allegrettaad1dacc2000-09-21 04:25:45 +00005767- General
5768 - Added PDCurses support under cygwin, which allows building
5769 a nice stand-alone nano.exe for those poor Windows users.
5770 Extra check in configure.in for initscr() in -lcurses (as
5771 PDcurses has no tgetent), some #ifdef PDCURSES statements
5772 in main().
Chris Allegretta66989d62000-09-27 03:16:11 +00005773 - Changed web site and email to new nano-editor.org domain.
Chris Allegretta7c44b682000-09-21 04:27:01 +00005774- nano.c
Chris Allegretta9e7efa32000-10-02 03:42:55 +00005775 - Added (int) casts to remove compile warnings with -Wall.
Chris Allegretta7c44b682000-09-21 04:27:01 +00005776 main()
5777 - Added check for _POSIX_VDISABLE around term variable definition.
Chris Allegrettadf3afdc2000-10-01 17:50:29 +00005778- search.c
5779 - Added initializations for last_search and last_replace (Rocco Corsi)
5780
Chris Allegretta629edad2000-09-19 00:27:19 +00005781nano 0.9.18 - 09/18/2000
Chris Allegretta805c26d2000-09-06 13:39:17 +00005782- General
5783 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
5784 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +00005785- configure.in:
5786 - Added default case for cross-compiling to get rid of annoying
5787 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +00005788- cut.c:
5789 do_cut_text()
5790 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +00005791 set (fixes bug #42).
Chris Allegrettaf45c18d2000-09-16 05:25:06 +00005792- files.c:
5793 open_file()
5794 - Fix for bug #44 (Rocco Corsi).
Chris Allegretta16e41682000-09-11 22:33:54 +00005795- global.c:
5796 shortcut_init()
5797 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +00005798- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +00005799 main()
Chris Allegretta9239d742000-09-06 15:19:18 +00005800 - Added check for _POSIX_VDISABLE and use raw mode if not
5801 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +00005802 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +00005803 - Revamped a great deal of the F-key and keypad key handling,
5804 because we not longer use keypad() (see below).
5805 - Removed keypad() call because nano was not working with the
5806 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +00005807 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +00005808 do_toggle()
Chris Allegretta88520c92001-05-05 17:45:54 +00005809 - Rewrote function to allow NOHELP toggle to work on systems
Chris Allegretta2a42af12000-09-12 23:02:49 +00005810 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +00005811 mouse_init()
5812 - Add keypad only if mouse support is on, otherwise mouse doesn't
5813 work. I guess you have to choose between having the mouse and
Chris Allegretta88520c92001-05-05 17:45:54 +00005814 having a working keypad for the time being (thank god for Meta-M).
Chris Allegretta2a42af12000-09-12 23:02:49 +00005815- winio.c:
5816 total_refresh()
5817 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +00005818 onekey()
5819 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +00005820
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +00005821- search.c:
5822 findnextstr()
5823 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +00005824- es.po:
5825 - Translated new strings and minor updates (Jordi).
Chris Allegretta834a69d2000-09-18 17:11:33 +00005826- de.po
5827 - Revised translations by floki@bigfoot.com
Chris Allegretta429a5512000-09-05 13:09:56 +00005828
Chris Allegretta423cbfd2000-09-04 16:21:29 +00005829nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +00005830- General
5831 - New shortcuts to toggle certain options that are normally only
5832 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
5833 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +00005834 called from shortcut_init(), and do_toggle in nano.c. Also
5835 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +00005836 signal_init(). Moved "struct sigaction act"into a static in
5837 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +00005838 - Changed from Alt-key symbol (@) which is completely nonstandard
5839 to the *nix "Meta" symbol (M-). Changed help_init to show
Chris Allegretta88520c92001-05-05 17:45:54 +00005840 the M-key usage and the help text to explain keys which generate
Chris Allegrettae49f1232000-09-02 07:20:39 +00005841 Meta. Moved the toggle Meta keystrokes to the first column
5842 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +00005843 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +00005844 - Changed last_search and last_replace vars to statically
5845 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +00005846- global.c:
5847 toggle_init()
5848 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
5849 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +00005850- nano.c:
5851 do_mouse()
5852 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +00005853 do_wrap()
5854 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +00005855 do_toggle()
5856 - Added checks for no help and no wrap mode, and print opposite
5857 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +00005858 do_suspend(), do_cont():
5859 - New functions, handle suspend signal in a Pico-like manner and
5860 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +00005861- winio.c:
5862 total_refresh()
5863 - Added edit_refresh() call to actually update the screen if messy.
5864 edit_refresh_clearok()
5865 - New function, does a total update for edit refresh, needed to fix
5866 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +00005867 onekey()
5868 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +00005869
Chris Allegretta6306a112000-09-02 07:55:41 +00005870 update_line()
5871 - Added check for binary data >= 1 and <= 26, and use ^+letter
5872 to display it. Should fix editing text files with binary
5873 data in them. Placing of the cursor seems to be a bit screwed
5874 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +00005875- search.c:
5876 search_abort()
5877 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
5878 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +00005879 findnextstr():
5880 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +00005881 - Fixed check for string that only occurs on the same line failing
5882 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +00005883
Chris Allegrettaba96f7a2000-08-09 21:38:28 +00005884nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +00005885- cut.c:
5886 do_cut_text()
5887 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +00005888 - Added check_statblank().
5889 - Check for fileptr == filebot, if so return, we shouldn't bother
5890 cutting the magic line.
5891 do_uncut_text()
5892 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +00005893- nano.c:
5894 main()
5895 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +00005896- po/Makefile.in.in:
5897 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
5898 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +00005899- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +00005900 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +00005901
Chris Allegretta0bf4e142000-08-04 02:42:04 +00005902nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +00005903- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
5904 Affects many many functions. Removed functions edit_update_top and
5905 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +00005906- Added global variable tabsize, we no longer screw with the curses
5907 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +00005908- configure.in:
5909 - Finally fixed check for slang to report "no" if not called
5910 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +00005911- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +00005912 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +00005913 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +00005914 null_at()
5915 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +00005916 delete_buffer()
5917 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +00005918 do_backspace()
5919 - Now calls page_up_center instead of page_up (as it should?)
5920 do_enter()
5921 - Fixed typo (?) in check for inptr->next. Caused lots of
5922 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +00005923 main()
Chris Allegretta88520c92001-05-05 17:45:54 +00005924 - Removed now useless usertabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +00005925- search.c:
5926 replace_abort()
5927 - redundant, now just calls search abort until it does something
5928 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +00005929- winio.c:
5930 edit_refresh()
5931 - Added check for current line "running" off the screen.
5932 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +00005933 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +00005934 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +00005935 edit_update()
5936 - Rewritten, hopefully this will remove a lot of the
5937 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +00005938- move.c:
5939 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +00005940 - do an edit_update() at last case. Made function more like
5941 Pico's version, only move down to two lines before editbot.
5942 page_up()
5943 - Made function more like Pico's version, only move down to two
5944 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +00005945
Chris Allegrettaa1a55c72000-07-28 00:36:03 +00005946nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +00005947- nano.h:
5948 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
5949- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +00005950 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +00005951 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +00005952 - Simplified check for freeing cutbuffer. Added checks for doing
5953 multiple cuts with -k, now sets marked_cut to 2 for later
5954 processing by do_uncut_text().
5955 do_uncut_text()
5956 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +00005957- files.c:
5958 write_file()
5959 - Removed (redundant) check for writing out files with -t.
5960 do_writeout()
5961 - Changed check for filename to filename[0]. Added some code,
5962 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +00005963- nano.c:
5964 do_justify() & do_wrap():
5965 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +00005966- de.po
5967 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +00005968
Chris Allegretta1d7110d2000-07-23 16:59:07 +00005969nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +00005970- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +00005971 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
5972 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +00005973- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
5974 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +00005975- move.c
5976 page_down()
5977 - Don't edit_refresh() if the bottom of the file is in the edit
5978 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +00005979- nano.c:
5980 main():
5981 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +00005982 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +00005983 die():
5984 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +00005985 do_spell():
Chris Allegretta88520c92001-05-05 17:45:54 +00005986 - Changed exit semantics a bit so that aspell wouldn't get
5987 all screwy (bug discovered by Joshua Jensen.
Chris Allegretta8f6c0692000-07-19 01:16:18 +00005988- files.c:
5989 read_file():
5990 - Added init of buf variable, hopefully this will stop the
5991 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +00005992 write_file():
5993 - Added code to check to see if using -l and the file is not
5994 in fact a link. This should fix the behavior where a file
5995 that does not have write permission but could be removed and
5996 rewritten is saved without error. Please test this feature
5997 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +00005998- search.c:
5999 search_init():
6000 - Added " (to replace)" statement to end of search string if
6001 we are doing a replace. Manually converted all the translations
6002 from '%s' to '%s%s' to ensure they still work with the new code.
6003 Also put in the translation for " (replace)" in the .po's. Hope
6004 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +00006005 do_search(), do_replace():
6006 - Removed call to search_abort()/replace_abort() before call to
6007 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +00006008 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +00006009 findnextstr()
Chris Allegretta88520c92001-05-05 17:45:54 +00006010 - do not center string found if it is currently visible. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +00006011- fr.po:
6012 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +00006013- es.po:
6014 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +00006015
Chris Allegrettae955dae2000-07-07 22:24:59 +00006016nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +00006017- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +00006018 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
6019 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
6020 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +00006021 search_init() and do_replace() and strstrwrapper().
6022 - Added _POSIX_VERSION check to regexp code. Better than nothing
6023 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +00006024 - Made search functions & keys more like Pico. Added goto line from
6025 search and replace function, changed wording to "No Replace" instead
6026 of "To Search", "To Replace" to simply "Replace", and changed to
6027 Pico's keystroke by default, ^R. Affects search_init(),
6028 do_search() in search.c, globals in nano.h and
6029 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +00006030 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +00006031- cut.c
6032 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +00006033- files.c:
6034 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +00006035 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +00006036- nano.c:
6037 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +00006038 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
6039 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +00006040 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +00006041 - Corrected FIXME in do_enter with explanation. (Rob)
6042 - Fixed FIXME in do_justify, resulted in creation of
6043 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +00006044 help_init():
6045 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +00006046 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +00006047 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +00006048 do_backspace(), do_delete():
6049 - Added magic line code here too.
6050
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +00006051- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +00006052 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +00006053- fi.po:
6054 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +00006055- utils.c:
6056 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +00006057- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +00006058 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +00006059 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +00006060 do_yesno(), nanogetstr():
6061 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +00006062 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
6063 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +00006064 clear_bottomwin():
6065 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +00006066 edit_update_top():
6067 - Fixed a bug that caused nano to not update when
6068 current->next == NULL (e.g. paging down to the very bottom of
6069 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +00006070 fix_editbot:
6071 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +00006072 edit_add:
6073 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +00006074
Chris Allegretta4da1fc62000-06-21 03:00:43 +00006075nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +00006076- New flag "-T" or "--tabsize" to specify how to display tab widths.
6077 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
Chris Allegretta88520c92001-05-05 17:45:54 +00006078 winio.c, and nano.h. Many hardcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +00006079 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +00006080- id.po:
6081 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +00006082- es.po:
6083 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +00006084- winio.c
Chris Allegretta88520c92001-05-05 17:45:54 +00006085 - Rewrite of display functions to correct the display problems
Robert Siemborski91413cf2000-06-07 02:20:46 +00006086 we had been seeing. Affects: add_marked_sameline, edit_add,
6087 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +00006088 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +00006089 total_refresh():
Chris Allegretta88520c92001-05-05 17:45:54 +00006090 - Cut display_main_list call, as this function is only supposed to
6091 refresh what's already on the screen, not go through the process
6092 of adding the text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +00006093- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +00006094 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +00006095- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +00006096 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +00006097 - Removed editwineob, as it was redundant for (editwinrows - 1).
6098 Changed all calls to editwinrows - 1 in nano.c and move.c.
6099 - Removed all functions that were split into other files.
6100 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +00006101 do_enter():
Chris Allegretta88520c92001-05-05 17:45:54 +00006102 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +00006103 do_insertfile():
6104 - Fix display problem when using ctrl-r to load a file
6105 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +00006106 handle_sigwinch():
Chris Allegretta88520c92001-05-05 17:45:54 +00006107 - Added titlebar(), edit_refresh() and display_main_list() calls
6108 because a resize wasn't picking up on possible different width
6109 correctly.
Chris Allegretta97accc62000-06-19 05:45:52 +00006110- utils.c:
6111 - Moved nmalloc() and nrealloc() here.
6112- move.c:
6113 - New file, contains movement functions (like do_home(), do_up(),
6114 do_down(), page_up(), etc...).
6115- files.c:
6116 - Contains functions for files (read_file, insert_file,
6117 do_writeout(), etc).
6118- search.c:
6119 - Contains all our searching and related functions, (do_search(),
6120 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +00006121
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006122nano-0.9.10 - 06/04/2000
6123- es.po:
6124 - Translation updates (Jordi).
6125- AUTHORS, nano.1.html, TODO, README:
6126 - Documentation and email address updates (Jordi).
6127- nano.c:
6128 main():
6129 - Moved Adam's termio code down to after getopt() and before initscr()
6130 to stop people losing their SIGINT character when using args that
6131 exit nano before it runs (--version, --help, etc).
6132
6133nano-0.9.9 - 05/31/2000
Chris Allegretta88520c92001-05-05 17:45:54 +00006134- Makefile.am:
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006135 - Added proper lines for defining LOCALEDIR.
6136- configure.in:
6137 - Spelling fixes (Jordi Mallach)
6138 - Removed CFLAGS changes for gcc, reduces portability according to
6139 some, and it certainly doesn't seem to decrease exe size.
6140- es.po:
Chris Allegretta88520c92001-05-05 17:45:54 +00006141 - Spanish translation updates (Jordi Mallach)
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006142- POTFILES.in:
6143 - Added global.c file, was screwing up translations (i.e. they
6144 weren't getting done).
6145- cut.c:
6146 add_to_cutbuffer():
6147 - Added totsize increment.
6148 - Cut fixes and optimizations (Rob Siemborski).
6149 do_uncut_text():
6150 - Added totsize increment in several places.
6151- nano.c:
6152 headers:
6153 - Removed LOCALEDIR define.
6154 do_justify():
6155 - Added edit_refresh() call (bug discovered by Adam).
6156 page_down_center():
6157 - Added call to edit_update(current) for last case. Removed
6158 increment of current_y since it's now just wasteful.
6159 do_enter():
6160 - Added totsize increment.
6161 renumber(), renumber_all():
6162 - Removed totsize-- and totsize init in renumber_all.
6163 do_mouse():
Chris Allegretta88520c92001-05-05 17:45:54 +00006164 - Added edit_refresh() call to show highlight updates. Removed
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006165 unnecessary wrefresh(edit).
6166 main():
6167 - Moved up locale calls so that translated --help messages would
6168 actually get translated.
6169 do_backspace(), do_delete():
6170 - Added decrement of totsize.
6171 init_help_msg():
6172 - New function, initializes help text if NANO_SMALL isn't set (fixes
6173 broken i18n).
6174 read_file():
6175 - malloc call changed to nmalloc (Rob Siemborski).
6176- winio.c:
6177 total_refresh():
Chris Allegretta88520c92001-05-05 17:45:54 +00006178 - Completely rewrote function, not quite so brain-damaged now.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006179
6180nano-0.9.8 - 05/18/2000
6181- nano.c:
6182 main():
6183 - Added awesome code that disables the CINTR and CQUIT
6184 character (Adam Rogoyski). Removed raw()/noraw() calls so that
6185 nano gets input in 'normal' mode, which is the Right Way(tm) to
6186 do it. ^S, ^Z and ^Q now work properly as a result, as well as
Chris Allegretta88520c92001-05-05 17:45:54 +00006187 ^C. New variable term, global variable oldterm to save previous
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006188 term settings, and changes to finish() and die().
6189 - Added extra #ifdefs in getopt code, so that above code and
6190 flag init is run even if GETOPT_LONG is not #defined.
6191 - Added memset line before sigactions. (Adam Rogoyski)
6192 do_suspend():
6193 Removed function, see above for why.
6194- winio.c:
6195 update_line(), center_cursor():
6196 - Removed wrefresh(edit) from bottom of functions. wrefresh
6197 should now only be called once, at the bottom of the main()
6198 loop.
6199- global.c:
6200 shortcut_init():
Chris Allegretta88520c92001-05-05 17:45:54 +00006201 - Removed suspend sc_init call and suspend message because suspend
6202 is no longer needed in the shortcut list to work properly.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006203
6204nano-0.9.7 - 05/14/2000
6205- nano.c:
6206 do_home(), do_end():
6207 - Added calls to update_line for the current line, fixes
6208 lack of update (bug discovered by Alberto García).
6209 main():
6210 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
6211 following symlinks even when -l isn't set, and "no changes"
6212 error when nano is called from crontab -e (Adam Rogoyski).
6213- cut.c:
6214 do_cut_text():
6215 - Added edit_update_top to cut when mark is set, fixes lack of
6216 display update (bug discovered by Ken Tyler).
6217
6218nano-0.9.6 - 05/08/2000
6219- New Italian translation (it.po), by Daniele Medri.
6220- nano.c:
6221 page_up(), page_down():
6222 - Added reset of placewewant to 0, as it should be.
6223 do_up(), do_down():
6224 - Added call to update_line() for line we move from and line we
6225 move to, in order to keep the highlighting correct.
6226 do_wrap():
6227 - Added var chop, new code to wrap lines more like Pico, mostly.
6228 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
6229- winio.c:
6230 do_help():
6231 - Added edit_refresh() before exit.
6232 update_cursor():
6233 - Removed cursor updating which really wasn't needed anyway.
6234 edit_update():
6235 - Removed yucky code that didn't work, this function now just
6236 computes edittop and editbot and calls edit_refresh() to do the
Chris Allegretta88520c92001-05-05 17:45:54 +00006237 rest, which removes a lot of duplicate code..
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006238
6239nano-0.9.5 - 05/01/2000
6240- Removed bytes from file struct because it was computationally wasteful.
6241- cut.c:
6242 do_uncut_text():
6243 - Added call to edit_refresh().
6244- nano.c:
6245 do_backspace():
6246 - Added reset of editbot when deleting the last line of the file
6247 (bug discovered by Adam).
6248 do_char():
6249 - Removed call to reset_cursor().
6250 do_delete():
6251 - Added similar check as to do_backspace().
6252 do_enter():
6253 - Added call to edit_refresh().
6254 do_left(), right():
6255 - Added call to update_line(), still redundant but better...
6256 do_up(), do_down():
6257 - Added refresh calls both for current line and line to which
6258 we are moving.
6259 main():
6260 - Removed inefficient call to edit_refresh() after every keystroke.
6261 It is now up each function to leave the screen in a good state.
6262- winio.c:
6263 do_cursorpos()
6264 - Rewritten to not use bytes from filestruct by an incremental sum.
6265 update_line(), reset_cursor():
6266 - Optimized calls to xplustabs() through a single variable.
6267 - update_line() now takes a new arg, an index into the string
6268 for where to update the line from. Needed for new update
6269 code.
6270- configure.in:
6271 - Better checks for slang, allows argument to --with-slang.
6272 (Albert Chin-A-Young)
6273 - Removed -Iintl from CFLAGS in gcc check.
6274- Makefile.am:
6275 - Addition of -Iintl for gettext (Albert Chin-A-Young)
6276
6277nano-0.9.4 - 04/25/2000
6278 - Fixed calls to no_help and changed them to the more consistent
6279 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
6280 not 1. Code to temporarily disable NO_HELP when in the
6281 help system. (Adam Rogoyski)
6282- cut.c:
6283 do_marked_cut(), do_cut(), do_uncut():
6284 - Commented out unnecessary bits when NANO_SMALL is being used.
6285- winio.c:
6286 xpt(), strlenpt(), actual_x():
6287 - Added check for value of data[i] & 0x80, if so do not make
6288 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
6289 edit_refresh():
6290 - New check for temp == NULL (bad thing), if so go back to the
6291 previous line. New filestruct var hold points to prev line.
6292 Fixes segfault when paging down to the end of a file.
6293- nano.c:
6294 write_file():
6295 - Added check for if file exists and is not equal to the current
6296 filename, prompt for overwrite (Adam Rogoyski).
6297 do_down():
6298 - Removed check for current->next == NULL, now checks return value
6299 of do_down before setting current_x = 0 (discovered by Adam).
6300 do_justify():
6301 - Fixed segfault when reaching the last line (tried to assign
Chris Allegretta88520c92001-05-05 17:45:54 +00006302 current->next->data when current->next == NULL) (discovered
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006303 by Adam).
6304- utils.c:
6305 - Removed extra macro defs that are now in nano.h.
6306- nano.h:
6307 - Changed macro SET() to use |= instead of ^=. Fixes bug in
6308 cut code when cutting more than one line, and cutbuffer gets
Chris Allegretta88520c92001-05-05 17:45:54 +00006309 blown away when it shouldn't.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006310
6311nano-0.9.3 - 04/29/2000
6312- cut.c:
6313 do_marked_cut():
6314 - Fixed off by one error in cut code for marked text.
6315 do_cut_text():
6316 - Removed check for being on the last line, part of
6317 magic line code.
6318 add_to_cutbuffer():
6319 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
6320 - Added inptr->prev = NULL for case where cutbuffer == NULL.
6321- nano.c:
6322 do_backspace(), do_char():
6323 - Removed "magic line" code. It was basically causing more bugs
Chris Allegretta88520c92001-05-05 17:45:54 +00006324 than it was helping for the sake of compatibility. This fixes
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006325 at least one known segfault condition.
6326 do_enter():
6327 - Added setting editbot to new node if the new node is the last
6328 node in the file.
6329 write_file():
Chris Allegretta88520c92001-05-05 17:45:54 +00006330 - Changed writing file behavior. Now, if last line of the file
6331 has any data on it, we write a newline on it, else we don't.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006332- winio.c:
6333 add_marked_sameline():
6334 - New code that checks for whether the begin and end of the marker
6335 are on different lines. Missing previously.
6336 edit_add():
Chris Allegretta88520c92001-05-05 17:45:54 +00006337 - added some more checks for text length. Cleaned up some
6338 mvwaddnstrs that could be written more simply as waddnstrs.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006339 edit_refresh():
Chris Allegretta88520c92001-05-05 17:45:54 +00006340 - Removed check for temp == filebot, it is now treated like any other
6341 line. Fixes a bug where selected text on the last line shows
6342 normally.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006343 xpt():
6344 - Removed an extra computation for tabs variable that was incorrect.
6345 xplustabs():
Chris Allegretta88520c92001-05-05 17:45:54 +00006346 - Since xpt now actually works, this func is now just a wrapper for
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006347 xpt(current, current_x)
6348- nano.1, nano.1.html:
6349 - Added -l option to man pages.
6350- configure.in:
6351 - New option --enable-tiny, #defines NANO_SMALL in config.h.
6352 Disables call to gettext in functions and other i18n stuff in
6353 nano.c, the detailed help mode, the resize functions, and the
6354 justify code which no one ever uses.
6355 - New option --with-slang. Enables slang libraries instead of
6356 ncurses, requires slcurses.h for wrapper functions. (Based
6357 on patches for 0.8.7 by Glenn McGrath).
6358
6359nano-0.9.2 - 04/15/2000
6360- This release just fixes the serious segfault problem if nano is
6361 invoked any way other than using the absolute path. The bug was
Chris Allegretta6df90f52002-07-19 01:08:59 +00006362 in the new code for checking whether nano is invoked as 'pico'.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006363
6364nano-0.9.1 - 04/14/2000
Chris Allegretta6df90f52002-07-19 01:08:59 +00006365- Added Pico compatibility for ^T when in search or switch to switch
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006366 to the opposite function. Added one to REPLACE_LIST_LEN and
6367 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
Chris Allegretta88520c92001-05-05 17:45:54 +00006368 new strings that will have to be gettext()ed. New argument 'replacing'
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006369 to search_init(). Handlers in do_replace and do_search().
6370- New write code, now follows symbolic links instead of replacing them
6371 with the new file. New option (-l, --nofollow) to enable the old
6372 (incorrect, but secure) behavior (Adam Rogoyski).
6373- nano.c:
6374 do_wrap():
6375 - Fixed another bug relating to wrapping, and which would cause
6376 a segfault *sigh*.
6377 do_replace():
6378 - Incremented current_x by the length of the replacement
Chris Allegretta88520c92001-05-05 17:45:54 +00006379 text inside the main replace loop. Fixes bug #15.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006380 add_marked_sameline():
6381 - New function, handles marked text when start & end of marker is
6382 on one line, also supports most marked text when cursor > COLS.
6383 main():
6384 - Code to check if nano is invoked as 'pico', and if so
6385 automatically set pico_msgs (Robert Jones).
6386
6387nano-0.9.0 - 04/07/2000
6388- nano.1, nano.1.html: Updated man page with my email address and homepage.
6389- winio.c:
6390 reset_cursor(), update_line():
6391 - Changed update algorithm for x value to (COLS - 7) multiple when x
6392 value > (COLS - 2).
6393- edit_refresh():
6394 - Removed inner loop code, now calls update_line() for each line
6395 in question, MUCH nicer.
6396- xplustabs(), xpt():
Chris Allegretta88520c92001-05-05 17:45:54 +00006397 - Removed redundant increment of tabs when column no % 8 == 0.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006398 - Added check for data[i] < 32, most of such bits are 2 chars wide.
6399- update_line():
6400 - Fixed a stupid call to strlenpt with col when we should have
6401 been using actual_col. Ugh.
6402
6403nano-0.8.9 - 03/22/2000
6404- nano.c:
6405 empty_line(), no_spaces(), justify_format(), do_justify():
6406 Actually added these (screwup applying patch).
6407 do_justify(): Added call to set_modified().
6408
6409nano-0.8.8 - 03/12/2000
6410- Preliminary internationalization support. Many many functions modified
6411 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
6412 New dirs po/ and intl/, changes to configure.in and Automake.am to
6413 support i18n.
6414- nano.c:
Chris Allegretta88520c92001-05-05 17:45:54 +00006415 includes: Added sys/param.h and limits.h. (Adam Rogoyski).
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006416 statics: Changed some things that were not necessarily static
6417 (Adam Rogoyski).
6418 nrealloc(): New function, similar to nmalloc(). Changed calls from
6419 realloc() to nrealloc (Adam Rogoyski).
6420 empty_line(), no_spaces(), justify_format(), do_justify():
6421 New functions for justify function (Adam Rogoyski).
6422- winio.c:
6423 blank_edit(): Added wrefresh call to edit so that screen updates (like
6424 on ^L) actually work.
6425 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
6426
6427nano-0.8.7 - 03/01/2000
6428- main.c:
Chris Allegretta88520c92001-05-05 17:45:54 +00006429 do_wrap(): Better fix for segfaults, and fix for lines being wrapped
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006430 to a single character on one line when no good place to
Chris Allegretta88520c92001-05-05 17:45:54 +00006431 break the line exists, and for wrapping lines longer than
6432 COLS.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006433- nano.1.html:
6434 Html version of man page, now included in dist. For
6435 the benefit of nano packages in Linux distributions.
6436
6437nano-0.8.6 - 02/24/2000
Chris Allegretta88520c92001-05-05 17:45:54 +00006438- global.c:
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006439 shortcut_init():
6440 Added shortcuts for goto_line and do_replace when using
6441 pico_msgs. Oops.
6442- nano.c:
6443 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
Chris Allegretta88520c92001-05-05 17:45:54 +00006444 do_wrap(): Added check for backing up past tabs, which we shouldn't do.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006445 Removed check for backing up past spaces first.
6446 main(): Added for loop to check for alt keys instead of hard list.
6447 do_enter(): Fix for bug #14, added call to reset_cursor and messed
6448 up do_char quite a bit.
6449 version(): Added time and date stamp for compile on version message.
6450 Added mail and web page info.
6451- README: Updated mailing list info.
6452
6453nano-0.8.5 - 02/18/2000
6454- nano.c:
6455 main(): Finally fixed tilde being input on page up/down keys in
6456 certain terminal types. Fix was input 26->91->5[34] check
6457 for 126, if so make the kbinput PAGE UP/DOWN, else unget
6458 the keystroke and continue. Added #include <ioctl.h> for
6459 ioctl call.
6460 handle_hup():
6461 Handler for hangup signal. Belated include of patch from
6462 Tim Sherwood.
6463- winio.c:
6464 edit_refresh():
6465 Temporary fix for selecting text when temp == current.
Chris Allegretta88520c92001-05-05 17:45:54 +00006466 edit_refresh() is now unmanageably complex, and must be
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006467 revamped.
6468 check_statblank():
6469 Added check for constupdate, makes things less choppy
6470 (Adam Rogoyski)
6471
6472nano-0.8.4 - 02/11/2000
6473- Moved global variables that were only (or mostly) used in one file into
6474 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
6475- global.c:
6476 shortcut_init():
6477 Removed redundant NANO_CONTROL_H from backspace shortcut,
6478 added char 127 which should have been there.
6479- nano.c:
6480 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
6481 segfaults (Adam Rogoyski).
6482- Makefile.am: Added all source filenames (Adam Rogoyski).
6483- nano.1: Fixed mail addressed and added mailing list address.
6484- README: Updated my email address and the nano web page.
6485
6486nano-0.8.3 - 02/08/2000
Chris Allegretta6df90f52002-07-19 01:08:59 +00006487- New Pico mode (-p, --pico), toggles (more) compatibility with the
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006488 Pico messages displayed in the shortcut list. Note that there are still
6489 small differences in this mode.
6490- nano.h: New shortcut struct format, for the benefit of i18n and
6491 our help menu. Removed shortcut message macros, they are
6492 now all in shortcut_init in global.c.
6493- nano.c:
6494 do_wrap(): Removed resetting of current_x when we are in fact
6495 wrapping to the next line, fixes a bug in -i mode.
6496 do_enter():
6497 Rewrote the autoindent mode code to be a lot less pretty,
6498 but a lot more magical.
6499 main():
6500 Removed case for ignoring char 126 (~). That's kind of
6501 important, we'll have to fix handling that sequence when
Chris Allegretta88520c92001-05-05 17:45:54 +00006502 paging up/down on a terminal some other way... Revamped
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006503 main switch loop in much snazzier fashion based on the
6504 shortcut list.
6505- winio.c:
6506 New function display_main_list. Affects all functions
6507 that used to call bottombars() with main_list. Added
6508 because we now only call bottombars with the macro
6509 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
6510 changes to the main_list shortcut list (see global.c below).
6511 New function do_help, our preliminary dynamic help system.
6512- Many many funcs:
6513 Changed from int to void to allow one uniform type to call
6514 from the shortcut struct. Also a few functions that do
6515 not simple have void argument have new functions called
6516 funcname_void(void) to be called from the shortcut list.
6517 do_cut_text and do_uncut_text were changed to void
6518 arguments because they were never called with a filestruct
6519 other than *current anyway.
6520- global.c:
6521 Shortcut list main_list was expanded to cover all
6522 shortcuts that could be caught in the main loop.
6523 Consequently there is a new macro MAIN_VISIBLE which tells
6524 how many items in the main list to actually show.
6525
6526nano-0.8.2 - 02/02/2000
6527- Added initial mouse (-m, --mouse) support. New global variable
6528 use_mouse. (Adam Rogoyski)
6529
Chris Allegretta88520c92001-05-05 17:45:54 +00006530- nano.c: Set initial value of fill to COLS - 8 rather than just 72
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006531 regardless. (Adam Rogoyski).
6532 do_delete():
6533 Deleted call to do_backspace() when on the end of a line,
6534 because it won't update the line properly.
6535 do_backspace():
6536 Removed unnecessary pointer manipulation that was being
6537 handled by unlink_node().
6538 open_file():
6539 Added check for trying to open a directory (currently we
6540 segfault on this). Bug pointed out by Chad Ziccardi.
6541
6542nano-0.8.1 - 01/28/2000
6543- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
6544 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
6545 global.c and proto.h.
6546- nano.c:
6547write_file(): Added (incredibly) necessary check for EPERM when
6548 link() fails. This allows us to actually save
6549 files via rename() on filesystems that dont
6550 support hard links (AIEEEEEE).
6551do_goto():
6552 Fixed a stupid mistake where we were calling
6553 bottombars() with replace_list instead of goto_list.
6554- nano.h:
6555 New char *help in shortcut structure for help
Chris Allegretta88520c92001-05-05 17:45:54 +00006556 feature. Added NANO_*_MSG and NANO_*_HELP #defines
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006557 for help function and i18n.
6558- global.c:
6559 New functions shortcut_init (called in nano.c) and
6560 sc_init_one() to initialize the shortcuts without
6561 using {}s (for i18n).
6562
6563nano-0.8.0 - 01/25/2000
6564- View flag (-v, --view) implemented. Global variable view_mode, affects
6565 main loop of nano.c and new_file(). (me)
6566- nano.c:
6567 split checks for TERMIOS_H and TERMIO_H up so we
6568 can (theoretically) include them both, which is good.
6569handle_sigwinch():
6570 Added check for ncurses.h. (Andy Kahn)
6571do_spell():
6572 We now only try ispell because we don't as of yet
6573 handle the 'spell' program the right way, now that
6574 I finally know what the right way is =-). Added
6575 call to edit_update(fileage) to stop segfaults.
6576global_init():
6577 Added initialization of edit* filestruct pointers
6578 to stop segfaults on spell check.
6579usage():
6580 Check for getopt_long, and if no leave out the
6581 GNU options everyone seems to love so much (Andy Kahn)
6582main():
6583 Added checks for getopt_long (Andy Kahn)
6584 We ignore character 126 because it gets put into
6585 the buffer when we page up/down on a vt terminal.
6586write_file():
6587 Fixes for umask (Adam Rogoyski). Renamed tmpfile
Chris Allegretta88520c92001-05-05 17:45:54 +00006588 variable to tmp. Documented the tmp option
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006589 better in the function comments. Fixed my
6590 stupidly commented out check for tmp on setting
6591 umask which I really like =>
6592- nano.h:
6593 Made desc variable in shortcut struct a pointer
6594 instead of a fixed-length string.
6595- utils.c:
6596 Fixed check for config.h before nano.h.
6597- configure.in:
6598 New checks for getopt_long, getopt.h, removed
6599 CFLAGS and LDFLAGS changes. Gonna have to run
6600 strip manually now =-) (Andy Kahn)
Chris Allegretta88520c92001-05-05 17:45:54 +00006601 Added check for HAVE_WRESIZE, new file acconfig.h
6602 (me).
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006603
6604nano-0.7.9 - 01/24/2000
6605- New autoindent feature. Command flag 'i' or '--autoindent'. New
6606 function do_char() to clean up character output, global
6607 variable autoindent in global.c. (Graham Mainwaring)
6608- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
6609 files on exit without prompting. Affects do_writeout(). Also
6610 do_writeout() now takes a parameter for if exiting.
6611 Global variable temp_opt in global.c (Graham Mainwaring)
6612- Preliminary spell program support. Added command flag '-s' or
6613 '--speller' for alternative speller command. Added function do_spell()
6614 and exit_spell() to nano.c. New global variable alt_speller.
6615- nano.c:
6616 main(): We now ignore input of decimal 410 because these get entered
6617 when we resize the screen. Sorted options in getopt()
6618 switch statement.
6619 usage(): Sorted options and changed tabs to make room for -s option.
6620 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
6621 doesn't print the number of lines written on the statusbar.
6622 global_init():
6623 Added more initializations to globals to support do_spell().
6624
6625nano-0.7.8 - 01/23/2000
6626- Stubbed justify function. Affects main() in nano.c and nano.h defines.
Chris Allegretta88520c92001-05-05 17:45:54 +00006627- Added Fkey equivalents for Pico compatibility. Affects nano.h defines
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006628 and main() in nano.c
6629- Removed redundant reset_cursor() calls from the blank() routines.
6630- nano.c:
6631 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
6632 Removed check for isprint() characters in main while loop
6633 for people with odd character sets *shrug*. Added some X
6634 window F-key combos.
6635 read_line(): New function, consolidates of most of the special
6636 sections of the file reading code. (Rob Siemborski)
6637 do_replace(): Many scattered fixes. (Rob Siemborski)
6638 write_file(): Added check for empty filename.
6639- winio.c:
6640 nanogetstr(): Fixes for deleting at places other than the end of the
6641 buffer, cut support. (Adam Rogoyski)
6642 blank_edit(): New function, blanks edit buffer. Added call to it in
6643 total_refresh().
6644- configure: Checks for glib if snprintf of vsnprintf aren't available
6645 (Andy Kahn). Changed warning message when no termcap lib
6646 is found.
6647
6648nano-0.7.7 - 01/19/2000
6649- Option '-v' for version moved to '-V', because -v is Pico's "read only"
6650 mode (affects getopt() in main() and usage() function in nano.c
6651- New flag -c, always show cursor position. Affects main() in nano.c and
6652 statusbar() in winio.c
6653- Option '-x' doesn't show help window at the bottom of the editor.
6654 New variable no_help in nano.h and proto.h, affects main(), usage(),
6655 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
6656 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
6657 hand =P) (Adam Rogoyski)
6658- nano.c:
6659 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
6660 page_up(), page_down():
6661 - New functions. We now set the cursor at the top right corner,
6662 not at the center line, and page up and down a full screen
6663 rather than a half screen. Original functions renamed to
6664 page_up_center() and page_down_center().
6665 main():
6666 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
6667 in main while loop because suspend mode was broken. This should
6668 fix it, at least for now.
6669 - Added long option support (By popular harassment ;-) - Added
6670 #include for getopt.h, changed getopt() to getopt_long().
6671 Options added so far: --version (-V), --nowrap (-w), --suspend
6672 (-z), --help (-h), --nohelp (-x).
6673 - Rewrote signal statements (Adam Rogoyski)
6674
6675nano 0.7.6 - 01/15/2000
6676- New ChangeLog format
6677- nano.c:
6678 main(): Bound CONTROL_H to backspace (oops)
6679 Added more Alt-[-key combinations, for page up & down.
6680 read_bytes(): New function (Adam Rogoyski)
6681 read_file(): Optimizations - malloc()s *buf a little at a time rather
6682 than one huge buffer, and replaced the strcat at the end
6683 with an index variable. Added call to read_bytes().
6684 do_next_word(): New function, binding is control-space (0) (me)
6685
6686- winio.c:
6687 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
6688 (formula is extra space needed = COLS / 6 - 13).
6689 actual_x() & strlenpt():
6690 Added bug#9 fix - when tabs % 8 == 0, we should only
6691 increment tabs by 1.
6692 titlebar(): Fixed overrun in titlebar on very long filenames.
6693
66940.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
6695 writing a newline at EOF. do_cursorpos and do_replace are now not
6696 directly bound to signals but picked up as their control sequences
6697 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
66980.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
6699 available memory, align bug fixed (Big Gaute).
6700
6701--- As of version 0.7.4 TIP is renamed to nano.
6702
67030.7.3 Fixed a double blank_statusbar() when jumping to first and last
6704 lines. Took out unnecessary updates in load_file. Bug fix in
6705 do_left. Missing updates to totlines, fixed bug #7 (last line not
Chris Allegretta88520c92001-05-05 17:45:54 +00006706 having a newline at the end doesn't get read, bugfix in do_replace
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006707 with replace all, more/better comments (Robert Siemborski)
67080.7.2 Our first patch accepted into the source! configure fixes
6709 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
6710 Bug fix in update_line for editing long lines. Fixed arguments
6711 being put into the filename when none is specified. Preliminary
6712 +line command argument function.
67130.7.1 configure tweak for better FreeBSD support. Removed refresh() from
6714 edit_refresh to stop cursor "jumping" during screen updates. This
6715 will probably cause a bug or two. Replace is now Alt-R (@R) and
6716 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
6717 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
6718 Control-G will become the Help key, but for now is stubbed out.
67190.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
6720 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
6721 length file. Added Esc-[-A,B,C,D cursor key sequences.
67220.6.9 Preliminary cursor position function. Split up tip.c more, made
6723 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
6724 that was leaving out a character.
67250.6.8 By request, optchr in main() is now an int. Removed unneeded
6726 globals. Bound functions for next/prev page, and wrote functions
6727 do_home and do_end.
67280.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
6729 created read_file. Implemented Insert File. Fixes in tipgetstr
6730 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
67310.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
6732 aborted searches and more Pico-compatible messages. statusq() now
6733 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
67340.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
6735 regarding buffers with filebot in them. Fixins in do_backspace
6736 and do_enter. Removed unused variables. Removed strip_newline.
67370.6.4 Took out the awful newlines from each string buffers. This will
6738 certainly cause more bugs. Fixes in do_exit(). Better empty file
6739 handling (I hope).
67400.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
6741 do_enter() rewritten.
67420.6.2 Better default file permissions. Complete rewrite of do_wrap().
6743 Better handling of editing with cursor near COLS - 1.
67440.6.1 Starting to implement wrapping toggle. Fix for unhandled control
6745 codes being entered into the buffer. Bug fix in actual_x; more
6746 > COLS - 1 functionality, especially on lines with TABs. Fixed being
Chris Allegretta88520c92001-05-05 17:45:54 +00006747 locked into cutbuffer when cutting more than one marked screen of
6748 text.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +000067490.6.0 We have TABs!!! To do this, placewewant is now set to the actual
6750 width on the screen we want to be, not an index of current->data.
6751 New functions xplustabs and actual_x convert the actual place
6752 the cursor should be on the screen to and from the place in the
6753 string.
67540.5.5 Changed do_right to test do_down before setting current_x to 0,
Chris Allegretta88520c92001-05-05 17:45:54 +00006755 eliminating the "looping" on the last line when holding the right
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006756 arrow. Preliminary support for longer than COLS - 1 lines.
6757 Wrote do_delete.
Chris Allegretta88520c92001-05-05 17:45:54 +000067580.5.4 Fixed a bug in total_update that wasn't repainting the screen
6759 properly. tipgetstr is much more messy but text is now more
6760 editable ;) Fixed crash on entering a new file, hopefully. Awful
6761 stub for tab handling, only in do_right() to save me some sanity.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +000067620.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
6763 Fixed a few bugs in do_uncut when not uncutting from marked text.
Chris Allegretta88520c92001-05-05 17:45:54 +00006764 I would not trust your data with the mark code right now, but then
6765 we're not at version 1.0 yet so dont trust anything ;)
67660.5.2 Added reset_cursor() before end of update_line so cursor doesn't
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006767 jump after each keystroke entered. Select text stubbed. Fixed
Chris Allegretta88520c92001-05-05 17:45:54 +00006768 a bug in total_refresh(). Setting a mark will highlight properly,
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006769 but does not actually affect what gets put in the cutbuffer (yet).
67700.5.1 Writing a file out causes modified to be set back to 0. Good.
6771 Set_modified function written. Cut and uncut text now set
6772 modified when called.
67730.5.0 Half way there! Implemented write out, save function seems
Chris Allegretta88520c92001-05-05 17:45:54 +00006774 stable. Changed statusbar blank routing to not refresh, a separate
Chris Allegrettaa2ea1932000-06-06 05:53:49 +00006775 program calls it and then refreshes. Made the program not clear
Chris Allegretta88520c92001-05-05 17:45:54 +00006776 the screen on exit, just the bottom two lines (like Pico).
Chris Allegrettaa2ea1932000-06-06 05:53:49 +000067770.4.2 Implemented replace all in replace function. Crude exit function
6778 (asks yes or no if modified but does not write to file).
67790.4.1 Implementing search & replace. Fixed crash on deleting at top of
6780 edit buffer. Implemented "timeout" of statusbar messages.
6781 Implemented ^A and ^E (beginning and end of line).
67820.4.0 Split code into global.c and proto.h to allow for better multiple
6783 file handling. Added #defines for the majority of the shortcut
Chris Allegretta88520c92001-05-05 17:45:54 +00006784 keys in tip.h for easy modification.
Chris Allegrettaa2ea1932000-06-06 05:53:49 +000067850.3.1 Write edit_refresh which doesn't move the screen around, just
6786 updates what's there already. do_wrap() and do_enter() added.
67870.3.0 Preliminary cutbuffer (cut and uncut) support.
67880.2.7 Check for Modification added. do_search() works.
67890.2.5 Rewrite of file data struct.
67900.2 Read in data to buffer, bound keystrokes to stub functions,
6791 initial cursor movement on screen. Initial autoconf support.
67920.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00006793
6794$Id$