blob: 6b5c76f07464bd99080fcd3dca1c77778421aa59 [file] [log] [blame]
Chris Allegretta7c1fee72001-01-31 23:24:54 +00001CVS code -
Chris Allegrettaaf6414a2001-02-11 19:05:05 +00002- General
Chris Allegretta1bf501c2001-02-12 03:24:46 +00003 GNU compliance issues:
4 - Reworked shortcut list, put "Get Help" into default list,
5 removed "Goto Line", aligned "Read File" with "Write Out" and
6 "Replace" with "Where is" for consistency.
7 - Added texinfo manual nano.texi. Added texi options to
Chris Allegrettac46dd812001-02-14 14:28:27 +00008 Makefile.am.
Chris Allegrettade48b412001-02-01 22:56:44 +00009- configure.in:
10 - Autoconf compatibility fixes (Pavel Roskin)
Chris Allegretta618f5d72001-02-16 04:48:30 +000011 - Added separate check for resizeterm().
Jordi Mallach82b18292001-02-17 01:31:32 +000012 - ALL_LINGUAS: added hu and ca.
Chris Allegretta09f39cb2001-02-05 13:43:23 +000013- cut.c:
14 do_cut_text()
15 - marked text cut fixes (Rocco) (Fixes bug #54).
Chris Allegretta00ae5df2001-02-05 18:24:33 +000016- nano.c:
Chris Allegretta4ed13152001-02-10 17:50:50 +000017 do_delete()
18 - Added check for current->next == fileptr, as we have a magic
19 line code again, fixes sillyness at the end of the last line
20 before the magic line (reported by J.A. Neitzel).
Chris Allegretta00ae5df2001-02-05 18:24:33 +000021 do_justify()
22 - If the keystroke after the justify is not the unjustify key,
23 blank the statsubar (bug reported by Neil Parks).
Chris Allegretta8bc03b62001-02-09 02:57:52 +000024 main()
25 - Added ENABLE_NLS check around gettext stuff.
Chris Allegretta4ce8e3b2001-02-16 01:49:31 +000026- winio.c:
27 do_yesno()
28 - Added localized yes, no and all strings to function and rewrote
29 handler for the new format.
Chris Allegrettab55999e2001-02-09 02:49:46 +000030- de.po:
Jordi Mallach81197652001-02-16 20:00:03 +000031 - Translation updates by Florian König.
Chris Allegrettab55999e2001-02-09 02:49:46 +000032- fi.po:
33 - Translation updates by Pauli Virtanen.
Chris Allegrettad096f682001-02-05 13:51:31 +000034- hu.po:
35 - Hungarian translation by Horvath Szabolcs.
Chris Allegrettab55999e2001-02-09 02:49:46 +000036- id.po:
37 - Translation updates by Tedi Heriyanto.
Jordi Mallach81197652001-02-16 20:00:03 +000038- es.po:
39 - Translation updates (Jordi).
Jordi Mallach82b18292001-02-17 01:31:32 +000040- ca.po:
41 - Catalan translation by Jordi Mallach :)
Chris Allegretta7c1fee72001-01-31 23:24:54 +000042
Chris Allegretta34318ed2001-01-31 23:22:36 +000043nano-0.9.99pre2 - 01/31/2001
Chris Allegretta17dcb722001-01-20 21:40:07 +000044General
Chris Allegrettad4ddd012001-01-23 01:17:07 +000045 - Removed center_x and center_y globals. center_y was
46 completely unused and center_x was only used a few places,
Chris Allegretta17276e52001-01-23 01:22:32 +000047 easily replaced with COLS / 2 (oops, not current_x & y (Rob)).
Chris Allegretta17dcb722001-01-20 21:40:07 +000048 - Deleted free_node, duplicate of delete_node, and changed all
49 free_node calls to delete_node.
Chris Allegretta08020882001-01-29 23:37:54 +000050 - Fix for resizing the window in modes other than normal edit mode
51 Changes to handle_sigwinch(), main(). Fixes bug #52 (Rocco).
Chris Allegretta0fc2b812001-01-18 15:04:20 +000052- files.c:
53 write_file()
54 - Don't free() realname on error, if it needs to be free()d later
55 it will be (fixes crash on successful write after failed write,
56 discovered by David Sobon).
Chris Allegretta8d9b11a2001-01-19 04:17:24 +000057 username_tab_completion()
58 - Optimization and removal of useless vars (Rocco).
Chris Allegretta2c2c5f22001-01-23 03:27:31 +000059 - Rewritten using getpwent (suggested by Rocco).
Chris Allegrettaa711f7e2001-01-23 04:16:31 +000060 - Removed redundant conditional (Rocco).
Chris Allegrettaee733e62001-01-22 22:17:08 +000061 real_dir_from_tilde()
Chris Allegrettae5e4d492001-01-23 03:09:15 +000062 - Rewritten using getpwent (suggested by Adam, much optimized by Rocco).
Chris Allegrettaf0b26df2001-01-20 22:18:18 +000063- global.c:
64 - Don't define toggles global or toggle_init_one if using --tiny.
Chris Allegretta17dcb722001-01-20 21:40:07 +000065- nano.c:
66 do_justify()
67 - Added restoration of totsize after unjustify command.
Chris Allegretta7f7ce562001-01-21 16:35:49 +000068 usage()
Chris Allegrettae9a2d032001-01-21 16:08:21 +000069 - Add arg to -T help (Rocco).
Chris Allegretta0a06e072001-01-23 02:35:04 +000070 global_init(), handle_sigwinch()
71 - Messy loops replaced with memset calls (Rocco).
Chris Allegretta169ee842001-01-26 01:57:32 +000072 do_alt_speller()
73 - Added code to parse multi-word alt_speller strings.
Chris Allegrettae434b452001-01-27 19:25:00 +000074 - Fix initialization before fork() (Rocco).
Chris Allegretta34318ed2001-01-31 23:22:36 +000075- proto.h:
76 - Fix do_credits() proto (oops!)
Chris Allegrettae434b452001-01-27 19:25:00 +000077- winio.c:
78 nanogetstr()
79 - Sanity check for x overrunning the string buffer len.
Chris Allegretta76745fb2001-01-18 04:40:06 +000080
Chris Allegretta9d6f3f32001-01-21 02:35:03 +000081nano 0.9.99pre1 - 01/17/2001
Chris Allegrettaa4d6d1d2001-01-10 23:44:10 +000082General
83 - Changed #ifdefs to check for both DISABLE_TABCOMP and
84 NANO_SMALL, makes tiny option leave out tab completion, which
Rocco Corsiaf5c3022001-01-12 07:51:05 +000085 should be left out in that circumstance. Saves at least 5k.
Rocco Corsi06aca1c2001-01-11 05:30:31 +000086 - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
Rocco Corsiaf5c3022001-01-12 07:51:05 +000087 back. (Rocco)
88 - Various #ifdef & #ifndef cleanups. (Rocco)
Chris Allegretta201d9bf2001-01-14 03:17:53 +000089 - Added message for when keypad goes awry. Added code in main and
90 function print_numlock_warning() to notify user, and added an
91 apropriate section in the faq to refer to this brokenness.
Chris Allegrettae61e8302001-01-14 05:18:27 +000092 - Added macros in nano.h for magic values that might be unclear in
Chris Allegretta2be96d02001-01-14 05:22:43 +000093 nano.c:global_init(). (Rocco)
Chris Allegrettabbebec62001-01-09 00:37:32 +000094- configure.in:
95 - Fix for _use_keypad check breaking slang support (Christian
96 Weisgerber).
Chris Allegretta4ee0b412001-01-11 15:11:00 +000097 - Changed to automatically define the 5 DISABLE varibles when
98 NANO_SMALL (enable-tiny) is requested at configure.
Chris Allegretta2c4feca2001-01-09 17:40:56 +000099- faq.html:
100 - Added some info on making the binary smaller with the configure
101 script.
Chris Allegretta201d9bf2001-01-14 03:17:53 +0000102 - Added section on keypad bugginess.
Chris Allegrettabf692612001-01-08 16:59:19 +0000103- files.c:
104 real_dir_from_tilde()
105 - Oops, fix case where buf ="~", silly crash (bug discovered by
106 Neil Parks).
Chris Allegretta8eac3b52001-01-08 21:14:04 +0000107 do_browser()
108 - Added space and - keys to do page up and down.
Chris Allegrettaa35ec042001-01-15 02:26:12 +0000109 cwd_tab_completion(), input_tab()
110 - Changed bare malloc/calloc calls to nmalloc (found by Rocco).
Chris Allegretta40587092001-01-16 04:45:38 +0000111 - Added memset() to matchBuf to ensure sanity (Rocco, Adam).
Rocco Corsiaf5c3022001-01-12 07:51:05 +0000112- nano.c:
Chris Allegretta1748cd12001-01-13 17:22:54 +0000113 ABCD()
114 - New function, figures out what kbinput to return given
115 input common to several switch statements, allows us to
116 support the default Konsole key settings.
Rocco Corsiaf5c3022001-01-12 07:51:05 +0000117 main()
118 - Alternate speller option no longer valid if DISABLE_SPELLER is
119 active. (Rocco)
Chris Allegrettaae4318d2001-01-16 04:18:26 +0000120 - Removed direct calls to usage() (#else) for -k (cut) or -s (speller)
121 options when these have been disabled. (Rocco)
Chris Allegretta36939442001-01-15 20:26:38 +0000122 - Initialized kbinput to get around stupid compiler warning.
Rocco Corsiaf5c3022001-01-12 07:51:05 +0000123 nano_small_msg()
124 - This function has been removed. All references now call
125 nano_disabled_msg. (Rocco)
126 version()
127 - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE
128 variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not
129 reported as enabled when Nano is called with -V (--version)
130 command-line option. (Rocco)
131 usage()
132 - Alternate speller option no longer valid if DISABLE_SPELLER is
133 active. (Rocco)
Chris Allegrettae61e8302001-01-14 05:18:27 +0000134 window_init(), handle_sigwinch()
135 - Added check for not having enough LINES to do anything useful,
136 if so die with an error. (Rocco)
137 die_too_small()
138 - Function to print the window too small error message, avoids
139 repeated string defs and globals.
Robert Siemborskic2eeb4e2001-01-17 03:29:02 +0000140 do_justify()
141 - Small fix for totsize calculation (Rob)
142
Chris Allegrettad9742c62001-01-12 15:51:53 +0000143- fi.po:
144 - Update by Pauli Virtanen.
Chris Allegretta7e080822001-01-08 02:31:03 +0000145
Chris Allegretta16991442001-01-07 22:06:11 +0000146nano 0.9.25 - 01/07/2001
Chris Allegrettaf4b96012001-01-03 07:11:47 +0000147General -
148 - New file browser code. New functions in files.c:do_browser(),
149 helper functions browser_init(), tail(), striponedir(),
150 filestat(). New shortcut list browser_list. Some new
Chris Allegretta150469a2001-01-05 21:13:14 +0000151 strings to translate. Added function do_browse_from().
Chris Allegrettac08f50d2001-01-06 18:12:43 +0000152 - Keypad code has been changed slightly. Now checks for
153 _use_keypad flag in window to see whether or not to turn
154 the keypad() back off when finished (taken from aumix). Moved
155 to winio.c where it should probably be anyway. New confgure
156 check for _use_keypad in window sstruct. This will have to do
157 for now.
Chris Allegretta155d6202001-01-08 01:50:37 +0000158 - Moved keypad() calls for PDCURSES from main() to window_init()
159 so the keypad continues to work after a Meta-X, for example.
160 Fixed bug #51.
Jordi Mallach56e6d722000-12-19 22:59:55 +0000161- faq.html:
162 - Fix typos and small mistakes (Jordi).
Chris Allegrettaee289d72000-12-27 16:12:47 +0000163- files.c:
Rocco Corsi8b6cccc2001-01-02 06:21:07 +0000164 username_tab_completion()
165 - Added the (char *) sizeof when allocating memory for the filename
166 array (Rocco).
Chris Allegrettaee289d72000-12-27 16:12:47 +0000167 cwd_tab_completion()
168 - removed skipping . and .. when tabulating matches.
Rocco Corsi8b6cccc2001-01-02 06:21:07 +0000169 - Added the (char *) sizeof when allocating memory for the filename
170 array (Rocco).
Chris Allegrettae1ebaf32001-01-07 05:50:36 +0000171 do_writeout()
172 - Now takes an argument so the string typed in can be retained
173 when calling the browser.
Chris Allegretta816a1652001-01-06 17:43:56 +0000174 do_browser()
175 - Don't decrement longest by the length of path. Fixes crashes
176 on entering various dirs (Rocco).
177 - Don't ungetch() the exit key, unneeded, fixes inerting a file
178 causes exit code.
Chris Allegretta155d6202001-01-08 01:50:37 +0000179- move.c:
180 page_down()
181 - Don't do an edit_update when there is only one page of text
182 (fileage == edittop && filebot == editbot). Fixes Bug #50.
Chris Allegrettad55655f2000-12-27 03:36:47 +0000183- nano.c:
184 main()
185 - Reorder the getopt options to be more or less alphabetical
186 (suggested by Sven Guckes).
Chris Allegretta66795ec2000-12-27 04:47:28 +0000187- winio.c:
188 do_cursorpos()
189 - Optimizations and cleanups by Rocco Corsi.
Chris Allegretta827b15f2001-01-03 02:09:04 +0000190 do_credits()
191 - Spell Erik Andersen's name right.
Chris Allegrettaf4b96012001-01-03 07:11:47 +0000192 titlebar()
193 - Now takes an arg, needed for browser function.
Chris Allegretta70444892001-01-07 23:02:02 +0000194 do_help()
195 - Changed way of temporarily bringing up shortcuts at the
196 bottom in the help screen (actually works).
Chris Allegretta150469a2001-01-05 21:13:14 +0000197- utils.c:
198 mallocstrcpy()
199 - Takes char pointers now instead of void (makes debugging a
200 helluva lot easier)
Chris Allegrettae1ebaf32001-01-07 05:50:36 +0000201 - Duh, don't do anything if src == dest!
Jordi Mallach75ef81b2001-01-04 16:48:59 +0000202- es.po:
203 - Updates for file browser (Jordi).
Chris Allegretta827b15f2001-01-03 02:09:04 +0000204
Chris Allegretta66149e72000-12-19 02:51:06 +0000205nano 0.9.24 - 12/18/2000
Chris Allegretta3bc8c722000-12-10 17:03:25 +0000206General
207 - Added --disable-help option, affects acconfig.h, configure(.in),
Chris Allegrettab7d00ef2000-12-18 05:36:51 +0000208 winio.c:do_help, nano.c:help_init,help_text_init,version.
Chris Allegretta1a6e9042000-12-14 13:56:28 +0000209 - Changed filename to no longer use PATH_MAX, so it can work on the
210 HURD. Changes in files.c:write_file(), new function
211 nano.c:clear_filename(), many changed in main(), a few other
212 places. Please test this!
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000213 - Added -b, -e, and -f flags, which we ignore as nano provides
214 their functionality already.
Chris Allegretta5146fec2000-12-10 05:44:02 +0000215- cut.c:
216 do_uncut_text()
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000217 - Fix renumbering bug when uncutting marked text at filebot.
Chris Allegretta5146fec2000-12-10 05:44:02 +0000218 - Fix screen not being displayed when we are uncutting marked
219 text at editbot (Bug discovered by Ken Tyler).
Chris Allegrettae51c95f2000-12-10 05:54:27 +0000220 - Fix magic line not getting created when (you guessed it)
221 uncutting marked text at filebot (Ryan Krebs).
Chris Allegrettaef123112000-12-10 00:04:13 +0000222- files.c:
Chris Allegretta3a7c0be2000-12-18 01:09:07 +0000223 read_file()
224 - If we encounter an error and insert is not set, run new_file().
225 (bug discovered by Ben Roberts).
Chris Allegrettaef123112000-12-10 00:04:13 +0000226 write_file()
227 - Change open call flags, basically copy joe's way of doing it so
228 a more recent version will actually be included in (un)stable.
Chris Allegretta1cd50662000-12-11 02:47:12 +0000229 - Remove useless fstat call.
Chris Allegretta7960dcf2000-12-13 15:01:29 +0000230 open_file()
231 - Added check for S_ISBLK and S_ISCHR, don't open device files!
Chris Allegretta5146fec2000-12-10 05:44:02 +0000232- nano.c:
233 renumber()
234 - Dont stupidly assign the value of prev->lineno if prev == NULL!
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000235 main()
236 - Added code to check for Alt-Alt (27-27) keystrokes and set the
237 next keystroke as a control sequence. New variable
238 modify_control_key. Removed #ifdef _POSIX_VDISABLE check
239 around Control-S,Q,Z handlers because we need it now for
240 the Alt-Alt-x code.
Chris Allegretta7492cec2000-12-18 04:55:21 +0000241 - Added --view option to getopt_long()call . Bug discovered
242 by Rocco Corsi.
Chris Allegretta220ba692000-12-18 03:40:00 +0000243 help_init()
244 - Fix off by one error that was making ^G help in normal mode and
Chris Allegretta92325e72000-12-18 03:44:22 +0000245 ^_ in pico mode not be displayed in the help (bug discovered by
246 Rocco Corsi).
Chris Allegrettaaffeda82000-12-18 04:03:48 +0000247 do_toggle()
248 - Added fix_editbot() call to fix improper redisplay of edit
249 window when using nohelp toggle (bug discovered by Rocco Corsi).
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000250- nano.1, nano.1.html:
251 - Updated man page for -b, -e, -f and expanded explanation for -p.
Chris Allegrettad1627cf2000-12-18 05:03:16 +0000252- winio.c
253 do_help()
254 - Force keypad on so F-keys and PageUp/Down will work properly.
255 Added check for NANO_EXIT_FKEY to loop.
Chris Allegrettae51c95f2000-12-10 05:54:27 +0000256- utils.c:
257 new_magicline()
Chris Allegretta321590a2000-12-10 06:03:40 +0000258 - Increment totsize!! We decrement it when we've read a file,
259 everywhere else it should automatically be incremented
Chris Allegrettaef123112000-12-10 00:04:13 +0000260
Chris Allegrettab29550e2000-12-09 03:34:12 +0000261nano 0.9.23 - 12/08/2000
Chris Allegretta7b36c522000-12-06 01:08:10 +0000262General
263 - Changed --disable-spell to --disable speller. The term is
264 "speller" for -s, so it should be --disable-speller.
Chris Allegretta59828492000-12-04 03:31:39 +0000265- files.c:
266 write_file()
Chris Allegretta20c131c2000-12-04 04:20:09 +0000267 - Added tmp check to TMP_OPT section (how apropriate).
Chris Allegretta07f9ee02000-12-04 05:15:39 +0000268 - Added new consistency checking code from securityfocus
Chris Allegrettafb2226a2000-12-04 05:25:47 +0000269 article by Oliver Friedrichs, and use O_EXCL if tmp == 1.
Chris Allegretta928a7f52000-12-04 05:31:34 +0000270 - We now run check on result of lstat(), not stat(), to be
271 safer. New variable anyexists, we use still use realexists
272 later in the program.
Chris Allegretta71e46402000-12-06 00:40:26 +0000273 - OOPS, line up link/unlink/rename check if conditional with
274 top if conditional. Option -l has been broken for 9 versions,
275 no one noticed?!
Chris Allegretta1bd0ce22000-12-06 05:56:08 +0000276 - Added saving perms at end of link so we can apply them to the
277 new file if --nofollow is used.
Chris Allegretta908805a2000-12-04 04:42:56 +0000278- winio.c:
279 edit_add()
280 - Off by one display error (fix by Rocco Corsi).
Chris Allegrettafb62f732000-12-05 11:36:41 +0000281 do_replace_highlight()
282 - New code to handle being past COLS (Roco Corsi).
283 - Moved from search.c, as it's definitely a winio function now =)
284 update_line()
285 - More '$' display fixes (Rocco Corsi).
Chris Allegretta59828492000-12-04 03:31:39 +0000286
Chris Allegrettafedd7242000-12-03 03:15:38 +0000287nano 0.9.22 - 12/02/2000
Chris Allegrettabe77c612000-11-24 14:00:16 +0000288- General
Chris Allegrettabe77c612000-11-24 14:00:16 +0000289 - Username tab completion code, and cleaned up existing tabcomp
290 code. New functions real_dir_from_tide(), append_slash_if_dir(),
291 username_tab_completion is more than a stub now =-).
Chris Allegretta72623582000-11-29 23:43:28 +0000292 - Ignore key sequence 543 & 545, right control and alt keys in
293 windows. Affects main() and winio.c:nanogetstr().
Chris Allegretta56b24b52000-11-29 23:57:20 +0000294 - Took out help from spell_list and changed SPELL_LIST_LEN to 1.
295 Is using a spell checker THAT difficult? =-)
Chris Allegrettaff269f82000-12-01 18:46:01 +0000296 - New function nano_disabled_msg(), to alert that certain
297 functions have been disabled, similaer to nano_tiny feature.
298- New configure options:
299 - Added configure argument --disable-tabcomp. Affects
300 bottom of files.c and write_file, utils.c:check_wildcard_match()
301 and winio.c:nanogettsr().
302 - New options --enable-extra. New code in nano.c:version() to
303 print out various options from ./configure, function do_credits().
304 - Added --disable-spell option for those who want to just disable
305 the spell check feature. Affects the spellinf fucntions
306 do_spell, do_int_speller and do_alt_speller.
307 - Added --disable-justify to get rid of the justify function.
308 Affects do_justify() (not surprisingly).
Chris Allegretta650e8a42000-11-24 14:15:17 +0000309- files.c:
310 write_file()
311 - Unsetting modified on temp files bug fixed (Rocco Corsi).
Chris Allegretta581bc602000-12-03 03:01:12 +0000312 - Okay, if tmp == 1 and the file exists, we abort.
Chris Allegretta25f4e582000-11-25 05:03:20 +0000313 do_insertfile()
Chris Allegretta09a80842000-11-30 02:31:13 +0000314 - Added call to real_name_from tilde, oops. Added check for
315 DISABLE_TABCOMP.
Chris Allegretta24946bd2000-11-26 21:34:47 +0000316 read_file()
317 - Added check for fileptr == NULL.
Chris Allegretta07798352000-11-27 22:58:23 +0000318- global.c:
319 shortcut_init()
320 - Now takes an argument as to whether to display the unjustify
321 shortcut or the normal uncut text one. Needed to accomodate
322 the klugey unjustify code.
Chris Allegretta8be8ce22000-11-28 02:15:30 +0000323- nano.1, nano.1.html:
324 - Updated date on pages because of -p changes.
Jordi Mallachd7ad75a2000-12-03 02:46:02 +0000325 - Added "NOTES" section, where I explain what nano.save & friends
326 are.
327 - Added a copyright notice for the manpage, under the GPL.
328 - Other minor changes.
Chris Allegretta9149e612000-11-27 00:23:41 +0000329- nano.c:
330 do_justify()
Chris Allegretta8be8ce22000-11-28 02:15:30 +0000331 - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
332 text there, then grabs the next keystroke and, if the unjustify
333 key, gets rid of the justified text and calls do_uncut_text.
334 Added macro NANO_UNJUSTIFY_KEY.
Chris Allegrettad00e6df2000-11-29 04:33:26 +0000335 do_int_spell*
336 - Various fixes (Rocco Corsi).
337 - Changed abort of program to aborting based on value of "edit a
338 replacement" question, and not caring about the replace loop
339 return value. That way the user can get out of the replace loop
340 and continue spell checking (very important to me anyway).
Chris Allegrettaff269f82000-12-01 18:46:01 +0000341 version()
342 - Took out huge check for the various --disabled macros,
343 eventually there will be too many to reasonably check for.
Chris Allegretta4eb7aa02000-12-01 18:57:11 +0000344 nano_small_msg(), nano_disabled_msg()
345 - Added checks for disabled functions to see whether or not to
346 declare them.
Chris Allegretta9e2934f2000-12-01 23:49:48 +0000347 do_next_word()
348 - Update the previous line as well as the current one in case we
349 have moved beyond COLS or back from COLS, patch submitted
350 by Ryan Krebs.
Chris Allegrettae7a58932000-12-02 02:36:22 +0000351 die()
352 - Now creates .save file using variable-length strings. Also
353 calls write_file with tmp == 1, which happens to do exactly what
Chris Allegretta581bc602000-12-03 03:01:12 +0000354 we want (abort on save file exists and use mode 0600).
Chris Allegrettae7a58932000-12-02 02:36:22 +0000355 handle_sighup()
356 - Now calls die instead of writing on its own and exiting normally.
Chris Allegrettad00e6df2000-11-29 04:33:26 +0000357- search.c:
358 do_replace_hilight()
359 - New function, displays the currently selected word as hilighted
360 in the spell check. Called from do_replace_loop (Rocco Corsi).
361 - Added calls to curs_set(0) and (1) to diable the cursor when
362 hilighting, looks much better.
Jordi Mallachd819a4c2000-11-25 04:50:25 +0000363- es.po:
364 - Traditional Spanish strings updates.
Chris Allegrettabe77c612000-11-24 14:00:16 +0000365
Chris Allegrettaca7a21d2000-11-24 01:35:40 +0000366nano 0.9.21 - 11/23/2000
Chris Allegrettaf26bca72000-11-21 03:04:45 +0000367- AUTHORS
368 - Added Rocco Corsi.
Chris Allegretta31c76662000-11-21 06:20:20 +0000369- nano.c:
370 main()
371 - Changed check for argc == 1 to argv[optind] == NULL to decide
372 whether or not to display "New File" in the statusbar.
Chris Allegrettaaaabe1f2000-11-19 18:20:07 +0000373- search.c:
374 findnextstr()
Chris Allegretta1cc29f62000-11-20 01:29:37 +0000375 - Fix curent_x increment bug by using another variable (Rocco Corsi).
Chris Allegrettaef601bb2000-11-19 19:15:03 +0000376 search_init()
377 - Silly typo in our "one simple call" of statusq. Stopped
378 previous search string from being displayed.
Chris Allegrettac793c432000-11-21 12:52:55 +0000379 do_replace()
380 - Copy back the previous value of last_replace into answer if
381 using PICO_MODE and answer == ""
Chris Allegretta6c5781b2000-11-23 01:19:58 +0000382- winio.c:
383 do_up()
384 - Deleted first update_line() call, screws up display when marker is set.
Chris Allegrettad466ab72000-11-19 20:36:41 +0000385- nano.1, nano.1.html
386 - Updated man page for new -p definition.
Chris Allegrettaac0e63a2000-11-19 02:25:43 +0000387
Chris Allegretta6da149a2000-11-19 02:23:03 +0000388nano 0.9.20 - 11/18/2000
Chris Allegretta67574f42000-11-03 03:35:29 +0000389- General
390 - Ran source through indent -kr again. Make everything pretty.
391 - Changed behavior of "search" and "replace" prompts to make all
392 previous values editable. This change was made so that you can
393 replace with the null string without needing a special key for it.
394 changed code in search_init(), do_replace(), nanogetstr (see
395 below).
396 - Added some missing gettext calls here and there (Jordi).
397 - Revamped nanogetsr() and calls to it to use variable length strings.
398 MANY changes in nanogetstr(), many chances in search.c, new
399 function mallocstrcpy which is sure to be a programmatic
400 nightmare, changed last_search, last_replace, answer to
401 pointers. New function not_found_msg in search.c for displaying
Chris Allegrettacbb0f8b2000-11-15 03:50:02 +0000402 truncated strings in satusbar when the string is not found
403 (-pedantic fixes by Rocco Corsi). We disable this feature when
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000404 using PICO_MODE (-p).
Chris Allegretta27eb13f2000-11-05 16:52:21 +0000405 - New spelling code by Rocco Corsi. New functions
406 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
407 New functions search_init_globals and do_replace_loop, changes
408 to search_init(), do_replace, findnextstr, moved last_search and
409 last_replace back to nano.c (*shrug*).
Chris Allegretta04d848e2000-11-05 17:54:41 +0000410 - New tab completion code. Used check_wildcard_match, input_tab,
411 cwd_tab_completion, username_tab_completion from busybox,
Chris Allegretta7da4e9f2000-11-06 02:57:22 +0000412 hacked them a lot, changes to nanogetstr(). nanogetstr() and
413 statusq() now take an arg for whether or not to allow tab
414 completion.
Chris Allegretta5bf51d32000-11-16 06:01:10 +0000415 - Fixed value being input in statusbar during a search or replace
416 and CASE_SENSITIVE or the other search is called and the
417 string being typed in is blown away. Reported by Ken Tyler.
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000418 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
419 accordingly.
Chris Allegretta92d2bab2000-11-02 14:53:46 +0000420- files.c:
421 do_writeout()
422 - Change strcpy to answer to mallocstrcpy.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000423- global.c
Chris Allegretta105da332000-10-31 05:10:10 +0000424 - New global replace_list_2, for 2nd half of the replace dialog
425 ("Replace with:"), has fewer options than first half because
426 they were inapropriate.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000427 toggle_init()
428 - Added #ifdef around toggle_regex_msg to get rid of compiler
429 warning.
Chris Allegretta1cc0b7f2000-11-03 01:29:04 +0000430
431- nano.c:
432 keypad_on()
433 - New function, toggles turning the keypad on and off in edit and
434 bottomwin(). Added call to this in finish(), fixes bug #45.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000435- search.c
436 findnexstr()
437 - New arg for begin_x variable, basically a rewrite that
438 makes a little more sense and isn't quite as messy (Rocco Corsi).
439 - Update the line we're checking if not the whole screen, because
440 it's quite possible the search team could exist somewhere way
441 to the right on the same line, for example.
442 replace_abort()
443 - Add reset of placewewant, stops cursor from jumping when moving
444 cursor after a replace.
Chris Allegretta810632d2000-10-27 04:36:01 +0000445 do_replace()
446 - Added code for Gotoline key after entering the search term.
447 Fixes bug #46.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000448 - Removed redundant code involving processing replacemenet string.
449 Converted if statements to switch statements.
450 - Optimizations by Rocco Corsi.
Chris Allegretta105da332000-10-31 05:10:10 +0000451 - Removed code for deleted shortcuts from in replace_list_2.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000452 do_search()
453 - Converted if statements to one switch statement.
Chris Allegrettaf9b6c9b2000-10-18 19:35:59 +0000454- winio.c
455 nanogetstr()
456 - Added check for 343 in while loop to get rid of getting "locked"
457 into statusbar" bug in odd $TERMs like iris-ansi.
Chris Allegretta105da332000-10-31 05:10:10 +0000458 - Changed check to return -2 on "enter" from answer == ""
459 to answer == def.
Chris Allegretta04d848e2000-11-05 17:54:41 +0000460 - Fixed fallthrough code because there was no break. Make much
461 more sense now.
Chris Allegretta5b1faac2000-11-16 19:55:30 +0000462 - Added check for ASCII 54[124] when using PDCURSES, ignore them
463 if noticed.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000464 nanoget_repaint()
465 - New function, removes about 30 lines of duplicate code in
466 nanogetstr().
Chris Allegretta90594e22000-11-02 15:53:40 +0000467 - Black magic code to make $ appear in prompt if we're past
468 COLS.
Chris Allegretta2c975222000-11-15 01:25:42 +0000469 blank_edit()
470 - Removed wrefresh() call, much less choppy now. If there's a need
471 for a wrefresh after a specific call, let me know.
Jordi Mallach0ae0dcd2000-10-28 12:38:02 +0000472- es.po:
Jordi Mallachd25385b2000-11-18 03:31:21 +0000473 - Updated translation for 0.9.20 (Jordi).
Chris Allegrettad7934d42000-10-03 05:39:29 +0000474
Chris Allegretta07e97d62000-10-03 01:52:50 +0000475nano 0.9.19 - 10/02/2000
Chris Allegrettaad1dacc2000-09-21 04:25:45 +0000476- General
477 - Added PDCurses support under cygwin, which allows building
478 a nice stand-alone nano.exe for those poor Windows users.
479 Extra check in configure.in for initscr() in -lcurses (as
480 PDcurses has no tgetent), some #ifdef PDCURSES statements
481 in main().
Chris Allegretta66989d62000-09-27 03:16:11 +0000482 - Changed web site and email to new nano-editor.org domain.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000483- nano.c
Chris Allegretta9e7efa32000-10-02 03:42:55 +0000484 - Added (int) casts to remove compile warnings with -Wall.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000485 main()
486 - Added check for _POSIX_VDISABLE around term variable definition.
Chris Allegrettadf3afdc2000-10-01 17:50:29 +0000487- search.c
488 - Added initializations for last_search and last_replace (Rocco Corsi)
489
Chris Allegretta629edad2000-09-19 00:27:19 +0000490nano 0.9.18 - 09/18/2000
Chris Allegretta805c26d2000-09-06 13:39:17 +0000491- General
492 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
493 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +0000494- configure.in:
495 - Added default case for cross-compiling to get rid of annoying
496 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +0000497- cut.c:
498 do_cut_text()
499 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +0000500 set (fixes bug #42).
Chris Allegrettaf45c18d2000-09-16 05:25:06 +0000501- files.c:
502 open_file()
503 - Fix for bug #44 (Rocco Corsi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000504- global.c:
505 shortcut_init()
506 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +0000507- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +0000508 main()
Chris Allegretta9239d742000-09-06 15:19:18 +0000509 - Added check for _POSIX_VDISABLE and use raw mode if not
510 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000511 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000512 - Revamped a great deal of the F-key and keypad key handling,
513 because we not longer use keypad() (see below).
514 - Removed keypad() call because nano was not working with the
515 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +0000516 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +0000517 do_toggle()
518 - Rewrote function to allow NOHELP toggle to wotk on systems
519 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +0000520 mouse_init()
521 - Add keypad only if mouse support is on, otherwise mouse doesn't
522 work. I guess you have to choose between having the mouse and
523 having a working keypad for the time being (thank god for Meta-m).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000524- winio.c:
525 total_refresh()
526 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +0000527 onekey()
528 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000529
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +0000530- search.c:
531 findnextstr()
532 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000533- es.po:
534 - Translated new strings and minor updates (Jordi).
Chris Allegretta834a69d2000-09-18 17:11:33 +0000535- de.po
536 - Revised translations by floki@bigfoot.com
Chris Allegretta429a5512000-09-05 13:09:56 +0000537
Chris Allegretta423cbfd2000-09-04 16:21:29 +0000538nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +0000539- General
540 - New shortcuts to toggle certain options that are normally only
541 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
542 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +0000543 called from shortcut_init(), and do_toggle in nano.c. Also
544 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +0000545 signal_init(). Moved "struct sigaction act"into a static in
546 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +0000547 - Changed from Alt-key symbol (@) which is completely nonstandard
548 to the *nix "Meta" symbol (M-). Changed help_init to show
549 the M-key usage and the help text to explain keys whcih generate
550 Meta. Moved the toggle Meta keystrokes to the first column
551 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +0000552 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +0000553 - Changed last_search and last_replace vars to statically
554 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000555- global.c:
556 toggle_init()
557 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
558 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +0000559- nano.c:
560 do_mouse()
561 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +0000562 do_wrap()
563 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000564 do_toggle()
565 - Added checks for no help and no wrap mode, and print opposite
566 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +0000567 do_suspend(), do_cont():
568 - New functions, handle suspend signal in a Pico-like manner and
569 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000570- winio.c:
571 total_refresh()
572 - Added edit_refresh() call to actually update the screen if messy.
573 edit_refresh_clearok()
574 - New function, does a total update for edit refresh, needed to fix
575 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +0000576 onekey()
577 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +0000578
Chris Allegretta6306a112000-09-02 07:55:41 +0000579 update_line()
580 - Added check for binary data >= 1 and <= 26, and use ^+letter
581 to display it. Should fix editing text files with binary
582 data in them. Placing of the cursor seems to be a bit screwed
583 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000584- search.c:
585 search_abort()
586 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
587 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +0000588 findnextstr():
589 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +0000590 - Fixed check for string that only occurs on the same line failing
591 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000592
Chris Allegrettaba96f7a2000-08-09 21:38:28 +0000593nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +0000594- cut.c:
595 do_cut_text()
596 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +0000597 - Added check_statblank().
598 - Check for fileptr == filebot, if so return, we shouldn't bother
599 cutting the magic line.
600 do_uncut_text()
601 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000602- nano.c:
603 main()
604 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +0000605- po/Makefile.in.in:
606 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
607 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +0000608- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +0000609 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000610
Chris Allegretta0bf4e142000-08-04 02:42:04 +0000611nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +0000612- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
613 Affects many many functions. Removed functions edit_update_top and
614 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +0000615- Added global variable tabsize, we no longer screw with the curses
616 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +0000617- configure.in:
618 - Finally fixed check for slang to report "no" if not called
619 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +0000620- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +0000621 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +0000622 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +0000623 null_at()
624 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +0000625 delete_buffer()
626 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +0000627 do_backspace()
628 - Now calls page_up_center instead of page_up (as it should?)
629 do_enter()
630 - Fixed typo (?) in check for inptr->next. Caused lots of
631 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +0000632 main()
633 - Removed now useless usrtabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +0000634- search.c:
635 replace_abort()
636 - redundant, now just calls search abort until it does something
637 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +0000638- winio.c:
639 edit_refresh()
640 - Added check for current line "running" off the screen.
641 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000642 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +0000643 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000644 edit_update()
645 - Rewritten, hopefully this will remove a lot of the
646 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +0000647- move.c:
648 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +0000649 - do an edit_update() at last case. Made function more like
650 Pico's version, only move down to two lines before editbot.
651 page_up()
652 - Made function more like Pico's version, only move down to two
653 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +0000654
Chris Allegrettaa1a55c72000-07-28 00:36:03 +0000655nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +0000656- nano.h:
657 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
658- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +0000659 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +0000660 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +0000661 - Simplified check for freeing cutbuffer. Added checks for doing
662 multiple cuts with -k, now sets marked_cut to 2 for later
663 processing by do_uncut_text().
664 do_uncut_text()
665 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +0000666- files.c:
667 write_file()
668 - Removed (redundant) check for writing out files with -t.
669 do_writeout()
670 - Changed check for filename to filename[0]. Added some code,
671 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +0000672- nano.c:
673 do_justify() & do_wrap():
674 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +0000675- de.po
676 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +0000677
Chris Allegretta1d7110d2000-07-23 16:59:07 +0000678nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +0000679- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +0000680 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
681 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +0000682- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
683 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000684- move.c
685 page_down()
686 - Don't edit_refresh() if the bottom of the file is in the edit
687 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +0000688- nano.c:
689 main():
690 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000691 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +0000692 die():
693 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000694 do_spell():
695 - Changed exit semantincs a bit so that aspell wouldn't get
696 all screwy (bug disovered by Joshua Jensen.
697- files.c:
698 read_file():
699 - Added init of buf variable, hopefully this will stop the
700 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +0000701 write_file():
702 - Added code to check to see if using -l and the file is not
703 in fact a link. This should fix the behavior where a file
704 that does not have write permission but could be removed and
705 rewritten is saved without error. Please test this feature
706 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +0000707- search.c:
708 search_init():
709 - Added " (to replace)" statement to end of search string if
710 we are doing a replace. Manually converted all the translations
711 from '%s' to '%s%s' to ensure they still work with the new code.
712 Also put in the translation for " (replace)" in the .po's. Hope
713 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +0000714 do_search(), do_replace():
715 - Removed call to search_abort()/replace_abort() before call to
716 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +0000717 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000718 findnextstr()
719 - do not center string found if it is currently visable. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +0000720- fr.po:
721 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +0000722- es.po:
723 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +0000724
Chris Allegrettae955dae2000-07-07 22:24:59 +0000725nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000726- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +0000727 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
728 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
729 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +0000730 search_init() and do_replace() and strstrwrapper().
731 - Added _POSIX_VERSION check to regexp code. Better than nothing
732 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000733 - Made search functions & keys more like Pico. Added goto line from
734 search and replace function, changed wording to "No Replace" instead
735 of "To Search", "To Replace" to simply "Replace", and changed to
736 Pico's keystroke by default, ^R. Affects search_init(),
737 do_search() in search.c, globals in nano.h and
738 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000739 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000740- cut.c
741 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +0000742- files.c:
743 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000744 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000745- nano.c:
746 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +0000747 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
748 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +0000749 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000750 - Corrected FIXME in do_enter with explanation. (Rob)
751 - Fixed FIXME in do_justify, resulted in creation of
752 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +0000753 help_init():
754 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000755 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +0000756 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000757 do_backspace(), do_delete():
758 - Added magic line code here too.
759
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000760- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +0000761 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000762- fi.po:
763 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +0000764- utils.c:
765 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000766- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +0000767 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +0000768 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +0000769 do_yesno(), nanogetstr():
770 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +0000771 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
772 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000773 clear_bottomwin():
774 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +0000775 edit_update_top():
776 - Fixed a bug that caused nano to not update when
777 current->next == NULL (e.g. paging down to the very bottom of
778 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +0000779 fix_editbot:
780 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +0000781 edit_add:
782 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000783
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000784nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +0000785- New flag "-T" or "--tabsize" to specify how to display tab widths.
786 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
787 winio.c, and nano.h. Many harcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000788 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000789- id.po:
790 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000791- es.po:
792 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000793- winio.c
794 - Rewrite of display functions to correct the display problems
795 we had been seeing. Affects: add_marked_sameline, edit_add,
796 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000797 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000798 total_refresh():
799 - Cut dispaly_main_list call, as this function is only supposed to refresh
800 what's already on the screen, not go through the process of adding the
801 text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000802- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000803 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +0000804- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000805 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000806 - Removed editwineob, as it was redundant for (editwinrows - 1).
807 Changed all calls to editwinrows - 1 in nano.c and move.c.
808 - Removed all functions that were split into other files.
809 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000810 do_enter():
811 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +0000812 do_insertfile():
813 - Fix display problem when using ctrl-r to load a file
814 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000815 handle_sigwinch():
816 - Added titlebar(), edit_refresh() and display_main_list() calls because
817 a resize wasn't picking up on possible different width correctly.
818- utils.c:
819 - Moved nmalloc() and nrealloc() here.
820- move.c:
821 - New file, contains movement functions (like do_home(), do_up(),
822 do_down(), page_up(), etc...).
823- files.c:
824 - Contains functions for files (read_file, insert_file,
825 do_writeout(), etc).
826- search.c:
827 - Contains all our searching and related functions, (do_search(),
828 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000829
Chris Allegrettaa2ea1932000-06-06 05:53:49 +0000830nano-0.9.10 - 06/04/2000
831- es.po:
832 - Translation updates (Jordi).
833- AUTHORS, nano.1.html, TODO, README:
834 - Documentation and email address updates (Jordi).
835- nano.c:
836 main():
837 - Moved Adam's termio code down to after getopt() and before initscr()
838 to stop people losing their SIGINT character when using args that
839 exit nano before it runs (--version, --help, etc).
840
841nano-0.9.9 - 05/31/2000
842- Makeile.am:
843 - Added proper lines for defining LOCALEDIR.
844- configure.in:
845 - Spelling fixes (Jordi Mallach)
846 - Removed CFLAGS changes for gcc, reduces portability according to
847 some, and it certainly doesn't seem to decrease exe size.
848- es.po:
849 - Spanish ranslation updates (Jordi Mallach)
850- POTFILES.in:
851 - Added global.c file, was screwing up translations (i.e. they
852 weren't getting done).
853- cut.c:
854 add_to_cutbuffer():
855 - Added totsize increment.
856 - Cut fixes and optimizations (Rob Siemborski).
857 do_uncut_text():
858 - Added totsize increment in several places.
859- nano.c:
860 headers:
861 - Removed LOCALEDIR define.
862 do_justify():
863 - Added edit_refresh() call (bug discovered by Adam).
864 page_down_center():
865 - Added call to edit_update(current) for last case. Removed
866 increment of current_y since it's now just wasteful.
867 do_enter():
868 - Added totsize increment.
869 renumber(), renumber_all():
870 - Removed totsize-- and totsize init in renumber_all.
871 do_mouse():
872 - Added edit_refresh() call to show hilight updates. Removed
873 unnecessary wrefresh(edit).
874 main():
875 - Moved up locale calls so that translated --help messages would
876 actually get translated.
877 do_backspace(), do_delete():
878 - Added decrement of totsize.
879 init_help_msg():
880 - New function, initializes help text if NANO_SMALL isn't set (fixes
881 broken i18n).
882 read_file():
883 - malloc call changed to nmalloc (Rob Siemborski).
884- winio.c:
885 total_refresh():
886 - Completely rewrote function, not quite so braindamaged now.
887
888nano-0.9.8 - 05/18/2000
889- nano.c:
890 main():
891 - Added awesome code that disables the CINTR and CQUIT
892 character (Adam Rogoyski). Removed raw()/noraw() calls so that
893 nano gets input in 'normal' mode, which is the Right Way(tm) to
894 do it. ^S, ^Z and ^Q now work properly as a result, as well as
895 ^C. New variable term, global bariable oldterm to save previous
896 term settings, and changes to finish() and die().
897 - Added extra #ifdefs in getopt code, so that above code and
898 flag init is run even if GETOPT_LONG is not #defined.
899 - Added memset line before sigactions. (Adam Rogoyski)
900 do_suspend():
901 Removed function, see above for why.
902- winio.c:
903 update_line(), center_cursor():
904 - Removed wrefresh(edit) from bottom of functions. wrefresh
905 should now only be called once, at the bottom of the main()
906 loop.
907- global.c:
908 shortcut_init():
909 - Removed suspend sc_init call and suspend message because suspend is no
910 longer needed in the shortcut list to work properly.
911
912nano-0.9.7 - 05/14/2000
913- nano.c:
914 do_home(), do_end():
915 - Added calls to update_line for the current line, fixes
916 lack of update (bug discovered by Alberto García).
917 main():
918 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
919 following symlinks even when -l isn't set, and "no changes"
920 error when nano is called from crontab -e (Adam Rogoyski).
921- cut.c:
922 do_cut_text():
923 - Added edit_update_top to cut when mark is set, fixes lack of
924 display update (bug discovered by Ken Tyler).
925
926nano-0.9.6 - 05/08/2000
927- New Italian translation (it.po), by Daniele Medri.
928- nano.c:
929 page_up(), page_down():
930 - Added reset of placewewant to 0, as it should be.
931 do_up(), do_down():
932 - Added call to update_line() for line we move from and line we
933 move to, in order to keep the highlighting correct.
934 do_wrap():
935 - Added var chop, new code to wrap lines more like Pico, mostly.
936 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
937- winio.c:
938 do_help():
939 - Added edit_refresh() before exit.
940 update_cursor():
941 - Removed cursor updating which really wasn't needed anyway.
942 edit_update():
943 - Removed yucky code that didn't work, this function now just
944 computes edittop and editbot and calls edit_refresh() to do the
945 rest, which removes a lot of dupliicate code..
946
947nano-0.9.5 - 05/01/2000
948- Removed bytes from file struct because it was computationally wasteful.
949- cut.c:
950 do_uncut_text():
951 - Added call to edit_refresh().
952- nano.c:
953 do_backspace():
954 - Added reset of editbot when deleting the last line of the file
955 (bug discovered by Adam).
956 do_char():
957 - Removed call to reset_cursor().
958 do_delete():
959 - Added similar check as to do_backspace().
960 do_enter():
961 - Added call to edit_refresh().
962 do_left(), right():
963 - Added call to update_line(), still redundant but better...
964 do_up(), do_down():
965 - Added refresh calls both for current line and line to which
966 we are moving.
967 main():
968 - Removed inefficient call to edit_refresh() after every keystroke.
969 It is now up each function to leave the screen in a good state.
970- winio.c:
971 do_cursorpos()
972 - Rewritten to not use bytes from filestruct by an incremental sum.
973 update_line(), reset_cursor():
974 - Optimized calls to xplustabs() through a single variable.
975 - update_line() now takes a new arg, an index into the string
976 for where to update the line from. Needed for new update
977 code.
978- configure.in:
979 - Better checks for slang, allows argument to --with-slang.
980 (Albert Chin-A-Young)
981 - Removed -Iintl from CFLAGS in gcc check.
982- Makefile.am:
983 - Addition of -Iintl for gettext (Albert Chin-A-Young)
984
985nano-0.9.4 - 04/25/2000
986 - Fixed calls to no_help and changed them to the more consistent
987 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
988 not 1. Code to temporarily disable NO_HELP when in the
989 help system. (Adam Rogoyski)
990- cut.c:
991 do_marked_cut(), do_cut(), do_uncut():
992 - Commented out unnecessary bits when NANO_SMALL is being used.
993- winio.c:
994 xpt(), strlenpt(), actual_x():
995 - Added check for value of data[i] & 0x80, if so do not make
996 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
997 edit_refresh():
998 - New check for temp == NULL (bad thing), if so go back to the
999 previous line. New filestruct var hold points to prev line.
1000 Fixes segfault when paging down to the end of a file.
1001- nano.c:
1002 write_file():
1003 - Added check for if file exists and is not equal to the current
1004 filename, prompt for overwrite (Adam Rogoyski).
1005 do_down():
1006 - Removed check for current->next == NULL, now checks return value
1007 of do_down before setting current_x = 0 (discovered by Adam).
1008 do_justify():
1009 - Fixed segfault when reaching the last line (tried to assign
1010 currrent->next->data when current->next == NULL) (discovered
1011 by Adam).
1012- utils.c:
1013 - Removed extra macro defs that are now in nano.h.
1014- nano.h:
1015 - Changed macro SET() to use |= instead of ^=. Fixes bug in
1016 cut code when cutting more than one line, and cutbuffer gets
1017 blown away when it shouldnt.
1018
1019nano-0.9.3 - 04/29/2000
1020- cut.c:
1021 do_marked_cut():
1022 - Fixed off by one error in cut code for marked text.
1023 do_cut_text():
1024 - Removed check for being on the last line, part of
1025 magic line code.
1026 add_to_cutbuffer():
1027 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
1028 - Added inptr->prev = NULL for case where cutbuffer == NULL.
1029- nano.c:
1030 do_backspace(), do_char():
1031 - Removed "magic line" code. It was basically causing more bugs
1032 than it was helping for the sake of compatibillity. This fixes
1033 at least one known segfault condition.
1034 do_enter():
1035 - Added setting editbot to new node if the new node is the last
1036 node in the file.
1037 write_file():
1038 - Changed writing file bahavior. Now, if last line of the file
1039 has any data on it, we write a newline on it, else we dont.
1040- winio.c:
1041 add_marked_sameline():
1042 - New code that checks for whether the begin and end of the marker
1043 are on different lines. Missing previously.
1044 edit_add():
1045 - added some more checks for text length. Cleaned up some mvwaddnstrs that
1046 could be written more simply as waddnstrs.
1047 edit_refresh():
1048 - Removed check for temp == filebot, it is now treated like any other line.
1049 Fixes a bug where selected text on the last line shows normally.
1050 xpt():
1051 - Removed an extra computation for tabs variable that was incorrect.
1052 xplustabs():
1053 - Since xpt now actualy works, this func is now just a wrapper for
1054 xpt(current, current_x)
1055- nano.1, nano.1.html:
1056 - Added -l option to man pages.
1057- configure.in:
1058 - New option --enable-tiny, #defines NANO_SMALL in config.h.
1059 Disables call to gettext in functions and other i18n stuff in
1060 nano.c, the detailed help mode, the resize functions, and the
1061 justify code which no one ever uses.
1062 - New option --with-slang. Enables slang libraries instead of
1063 ncurses, requires slcurses.h for wrapper functions. (Based
1064 on patches for 0.8.7 by Glenn McGrath).
1065
1066nano-0.9.2 - 04/15/2000
1067- This release just fixes the serious segfault problem if nano is
1068 invoked any way other than using the absolute path. The bug was
1069 in the new code for checking whether nano is invoked as pico.
1070
1071nano-0.9.1 - 04/14/2000
1072- Added pico compatibility for ^T when in search or switch to switch
1073 to the opposite function. Added one to REPLACE_LIST_LEN and
1074 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
1075 new strings that will have to be gettex()ed. New argument 'replacing'
1076 to search_init(). Handlers in do_replace and do_search().
1077- New write code, now follows symbolic links instead of replacing them
1078 with the new file. New option (-l, --nofollow) to enable the old
1079 (incorrect, but secure) behavior (Adam Rogoyski).
1080- nano.c:
1081 do_wrap():
1082 - Fixed another bug relating to wrapping, and which would cause
1083 a segfault *sigh*.
1084 do_replace():
1085 - Incremented current_x by the length of the replacement
1086 text inside the main repalce loop. Fixes bug #15.
1087 add_marked_sameline():
1088 - New function, handles marked text when start & end of marker is
1089 on one line, also supports most marked text when cursor > COLS.
1090 main():
1091 - Code to check if nano is invoked as 'pico', and if so
1092 automatically set pico_msgs (Robert Jones).
1093
1094nano-0.9.0 - 04/07/2000
1095- nano.1, nano.1.html: Updated man page with my email address and homepage.
1096- winio.c:
1097 reset_cursor(), update_line():
1098 - Changed update algorithm for x value to (COLS - 7) multiple when x
1099 value > (COLS - 2).
1100- edit_refresh():
1101 - Removed inner loop code, now calls update_line() for each line
1102 in question, MUCH nicer.
1103- xplustabs(), xpt():
1104 - Removed redundant increment of tabs when collumn no % 8 == 0.
1105 - Added check for data[i] < 32, most of such bits are 2 chars wide.
1106- update_line():
1107 - Fixed a stupid call to strlenpt with col when we should have
1108 been using actual_col. Ugh.
1109
1110nano-0.8.9 - 03/22/2000
1111- nano.c:
1112 empty_line(), no_spaces(), justify_format(), do_justify():
1113 Actually added these (screwup applying patch).
1114 do_justify(): Added call to set_modified().
1115
1116nano-0.8.8 - 03/12/2000
1117- Preliminary internationalization support. Many many functions modified
1118 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
1119 New dirs po/ and intl/, changes to configure.in and Automake.am to
1120 support i18n.
1121- nano.c:
1122 includes: Ddded sys/param.h and limits.h. (Adam Rogoyski).
1123 statics: Changed some things that were not necessarily static
1124 (Adam Rogoyski).
1125 nrealloc(): New function, similar to nmalloc(). Changed calls from
1126 realloc() to nrealloc (Adam Rogoyski).
1127 empty_line(), no_spaces(), justify_format(), do_justify():
1128 New functions for justify function (Adam Rogoyski).
1129- winio.c:
1130 blank_edit(): Added wrefresh call to edit so that screen updates (like
1131 on ^L) actually work.
1132 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
1133
1134nano-0.8.7 - 03/01/2000
1135- main.c:
1136 do_wrap(): Better fix for segfaults, and fix for lisnes being wrapped
1137 to a single character on one line when no good place to
1138 break the line exists, and for wrapping lines longer than COLS.
1139- nano.1.html:
1140 Html version of man page, now included in dist. For
1141 the benefit of nano packages in Linux distributions.
1142
1143nano-0.8.6 - 02/24/2000
1144- gobal.c:
1145 shortcut_init():
1146 Added shortcuts for goto_line and do_replace when using
1147 pico_msgs. Oops.
1148- nano.c:
1149 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
1150 do_wrap(): Added check for backing up past tabs, which we shouldnt do.
1151 Removed check for backing up past spaces first.
1152 main(): Added for loop to check for alt keys instead of hard list.
1153 do_enter(): Fix for bug #14, added call to reset_cursor and messed
1154 up do_char quite a bit.
1155 version(): Added time and date stamp for compile on version message.
1156 Added mail and web page info.
1157- README: Updated mailing list info.
1158
1159nano-0.8.5 - 02/18/2000
1160- nano.c:
1161 main(): Finally fixed tilde being input on page up/down keys in
1162 certain terminal types. Fix was input 26->91->5[34] check
1163 for 126, if so make the kbinput PAGE UP/DOWN, else unget
1164 the keystroke and continue. Added #include <ioctl.h> for
1165 ioctl call.
1166 handle_hup():
1167 Handler for hangup signal. Belated include of patch from
1168 Tim Sherwood.
1169- winio.c:
1170 edit_refresh():
1171 Temporary fix for selecting text when temp == current.
1172 edit_refresh() is now unmanagably complex, and must be
1173 revamped.
1174 check_statblank():
1175 Added check for constupdate, makes things less choppy
1176 (Adam Rogoyski)
1177
1178nano-0.8.4 - 02/11/2000
1179- Moved global variables that were only (or mostly) used in one file into
1180 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
1181- global.c:
1182 shortcut_init():
1183 Removed redundant NANO_CONTROL_H from backspace shortcut,
1184 added char 127 which should have been there.
1185- nano.c:
1186 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
1187 segfaults (Adam Rogoyski).
1188- Makefile.am: Added all source filenames (Adam Rogoyski).
1189- nano.1: Fixed mail addressed and added mailing list address.
1190- README: Updated my email address and the nano web page.
1191
1192nano-0.8.3 - 02/08/2000
1193- New pico mode (-p, --pico), toggles (more) compatibility with the
1194 Pico messages displayed in the shortcut list. Note that there are still
1195 small differences in this mode.
1196- nano.h: New shortcut struct format, for the benefit of i18n and
1197 our help menu. Removed shortcut message macros, they are
1198 now all in shortcut_init in global.c.
1199- nano.c:
1200 do_wrap(): Removed resetting of current_x when we are in fact
1201 wrapping to the next line, fixes a bug in -i mode.
1202 do_enter():
1203 Rewrote the autoindent mode code to be a lot less pretty,
1204 but a lot more magical.
1205 main():
1206 Removed case for ignoring char 126 (~). That's kind of
1207 important, we'll have to fix handling that sequence when
1208 pageing up/down on a terminal some other way... Revamped
1209 main switch loop in much snazzier fashion based on the
1210 shortcut list.
1211- winio.c:
1212 New function display_main_list. Affects all functions
1213 that used to call bottombars() with main_list. Added
1214 because we now only call bottombars with the macro
1215 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
1216 changes to the main_list shortcut list (see global.c below).
1217 New function do_help, our preliminary dynamic help system.
1218- Many many funcs:
1219 Changed from int to void to allow one uniform type to call
1220 from the shortcut struct. Also a few functions that do
1221 not simple have void argument have new functions called
1222 funcname_void(void) to be called from the shortcut list.
1223 do_cut_text and do_uncut_text were changed to void
1224 arguments because they were never called with a filestruct
1225 other than *current anyway.
1226- global.c:
1227 Shortcut list main_list was expanded to cover all
1228 shortcuts that could be caught in the main loop.
1229 Consequently there is a new macro MAIN_VISIBLE which tells
1230 how many items in the main list to actually show.
1231
1232nano-0.8.2 - 02/02/2000
1233- Added initial mouse (-m, --mouse) support. New global variable
1234 use_mouse. (Adam Rogoyski)
1235
1236- nano.c: Set intial value of fill to COLS - 8 rather than just 72
1237 regardless. (Adam Rogoyski).
1238 do_delete():
1239 Deleted call to do_backspace() when on the end of a line,
1240 because it won't update the line properly.
1241 do_backspace():
1242 Removed unnecessary pointer manipulation that was being
1243 handled by unlink_node().
1244 open_file():
1245 Added check for trying to open a directory (currently we
1246 segfault on this). Bug pointed out by Chad Ziccardi.
1247
1248nano-0.8.1 - 01/28/2000
1249- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
1250 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
1251 global.c and proto.h.
1252- nano.c:
1253write_file(): Added (incredibly) necessary check for EPERM when
1254 link() fails. This allows us to actually save
1255 files via rename() on filesystems that dont
1256 support hard links (AIEEEEEE).
1257do_goto():
1258 Fixed a stupid mistake where we were calling
1259 bottombars() with replace_list instead of goto_list.
1260- nano.h:
1261 New char *help in shortcut structure for help
1262 feature. Added NANO_*_MSG and NANO_*_HELP #deifnes
1263 for help function and i18n.
1264- global.c:
1265 New functions shortcut_init (called in nano.c) and
1266 sc_init_one() to initialize the shortcuts without
1267 using {}s (for i18n).
1268
1269nano-0.8.0 - 01/25/2000
1270- View flag (-v, --view) implemented. Global variable view_mode, affects
1271 main loop of nano.c and new_file(). (me)
1272- nano.c:
1273 split checks for TERMIOS_H and TERMIO_H up so we
1274 can (theoretically) include them both, which is good.
1275handle_sigwinch():
1276 Added check for ncurses.h. (Andy Kahn)
1277do_spell():
1278 We now only try ispell because we don't as of yet
1279 handle the 'spell' program the right way, now that
1280 I finally know what the right way is =-). Added
1281 call to edit_update(fileage) to stop segfaults.
1282global_init():
1283 Added initialization of edit* filestruct pointers
1284 to stop segfaults on spell check.
1285usage():
1286 Check for getopt_long, and if no leave out the
1287 GNU options everyone seems to love so much (Andy Kahn)
1288main():
1289 Added checks for getopt_long (Andy Kahn)
1290 We ignore character 126 because it gets put into
1291 the buffer when we page up/down on a vt terminal.
1292write_file():
1293 Fixes for umask (Adam Rogoyski). Renamed tmpfile
1294 variable to tmp. Documented the tmp opttion
1295 better in the function comments. Fixed my
1296 stupidly commented out check for tmp on setting
1297 umask which I really like =>
1298- nano.h:
1299 Made desc variable in shortcut struct a pointer
1300 instead of a fixed-length string.
1301- utils.c:
1302 Fixed check for config.h before nano.h.
1303- configure.in:
1304 New checks for getopt_long, getopt.h, removed
1305 CFLAGS and LDFLAGS changes. Gonna have to run
1306 strip manually now =-) (Andy Kahn)
1307 Added check for HAVE_WRESIZE, new file acconfig.h (me).
1308
1309nano-0.7.9 - 01/24/2000
1310- New autoindent feature. Command flag 'i' or '--autoindent'. New
1311 function do_char() to clean up character output, global
1312 variable autoindent in global.c. (Graham Mainwaring)
1313- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
1314 files on exit without prompting. Affects do_writeout(). Also
1315 do_writeout() now takes a parameter for if exiting.
1316 Global variable temp_opt in global.c (Graham Mainwaring)
1317- Preliminary spell program support. Added command flag '-s' or
1318 '--speller' for alternative speller command. Added function do_spell()
1319 and exit_spell() to nano.c. New global variable alt_speller.
1320- nano.c:
1321 main(): We now ignore input of decimal 410 because these get entered
1322 when we resize the screen. Sorted options in getopt()
1323 switch statement.
1324 usage(): Sorted options and changed tabs to make room for -s option.
1325 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
1326 doesn't print the number of lines written on the statusbar.
1327 global_init():
1328 Added more initializations to globals to support do_spell().
1329
1330nano-0.7.8 - 01/23/2000
1331- Stubbed justify function. Affects main() in nano.c and nano.h defines.
1332- Added Fkey equivalents for Pico compatibilty. Affects nano.h defines
1333 and main() in nano.c
1334- Removed redundant reset_cursor() calls from the blank() routines.
1335- nano.c:
1336 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
1337 Removed check for isprint() characters in main while loop
1338 for people with odd character sets *shrug*. Added some X
1339 window F-key combos.
1340 read_line(): New function, consolidates of most of the special
1341 sections of the file reading code. (Rob Siemborski)
1342 do_replace(): Many scattered fixes. (Rob Siemborski)
1343 write_file(): Added check for empty filename.
1344- winio.c:
1345 nanogetstr(): Fixes for deleting at places other than the end of the
1346 buffer, cut support. (Adam Rogoyski)
1347 blank_edit(): New function, blanks edit buffer. Added call to it in
1348 total_refresh().
1349- configure: Checks for glib if snprintf of vsnprintf aren't available
1350 (Andy Kahn). Changed warning message when no termcap lib
1351 is found.
1352
1353nano-0.7.7 - 01/19/2000
1354- Option '-v' for version moved to '-V', because -v is Pico's "read only"
1355 mode (affects getopt() in main() and usage() function in nano.c
1356- New flag -c, always show cursor position. Affects main() in nano.c and
1357 statusbar() in winio.c
1358- Option '-x' doesn't show help window at the bottom of the editor.
1359 New variable no_help in nano.h and proto.h, affects main(), usage(),
1360 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
1361 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
1362 hand =P) (Adam Rogoyski)
1363- nano.c:
1364 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
1365 page_up(), page_down():
1366 - New functions. We now set the cursor at the top right corner,
1367 not at the center line, and page up and down a full screen
1368 rather than a half screen. Original functions renamed to
1369 page_up_center() and page_down_center().
1370 main():
1371 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
1372 in main while loop because suspend mode was broken. This should
1373 fix it, at least for now.
1374 - Added long option support (By popular harassment ;-) - Added
1375 #include for getopt.h, changed getopt() to getopt_long().
1376 Options added so far: --version (-V), --nowrap (-w), --suspend
1377 (-z), --help (-h), --nohelp (-x).
1378 - Rewrote signal statements (Adam Rogoyski)
1379
1380nano 0.7.6 - 01/15/2000
1381- New ChangeLog format
1382- nano.c:
1383 main(): Bound CONTROL_H to backspace (oops)
1384 Added more Alt-[-key combinations, for page up & down.
1385 read_bytes(): New function (Adam Rogoyski)
1386 read_file(): Optimizations - malloc()s *buf a little at a time rather
1387 than one huge buffer, and replaced the strcat at the end
1388 with an index variable. Added call to read_bytes().
1389 do_next_word(): New function, binding is control-space (0) (me)
1390
1391- winio.c:
1392 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
1393 (formula is extra space needed = COLS / 6 - 13).
1394 actual_x() & strlenpt():
1395 Added bug#9 fix - when tabs % 8 == 0, we should only
1396 increment tabs by 1.
1397 titlebar(): Fixed overrun in titlebar on very long filenames.
1398
13990.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
1400 writing a newline at EOF. do_cursorpos and do_replace are now not
1401 directly bound to signals but picked up as their control sequences
1402 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
14030.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
1404 available memory, align bug fixed (Big Gaute).
1405
1406--- As of version 0.7.4 TIP is renamed to nano.
1407
14080.7.3 Fixed a double blank_statusbar() when jumping to first and last
1409 lines. Took out unnecessary updates in load_file. Bug fix in
1410 do_left. Missing updates to totlines, fixed bug #7 (last line not
1411 having a newline at the end doesnt get read, bugfix in do_replace
1412 with replace all, more/better comments (Robert Siemborski)
14130.7.2 Our first patch accepted into the source! configure fixes
1414 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
1415 Bug fix in update_line for editing long lines. Fixed arguments
1416 being put into the filename when none is specified. Preliminary
1417 +line command argument function.
14180.7.1 configure tweak for better FreeBSD support. Removed refresh() from
1419 edit_refresh to stop cursor "jumping" during screen updates. This
1420 will probably cause a bug or two. Replace is now Alt-R (@R) and
1421 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
1422 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
1423 Control-G will become the Help key, but for now is stubbed out.
14240.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
1425 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
1426 length file. Added Esc-[-A,B,C,D cursor key sequences.
14270.6.9 Preliminary cursor position function. Split up tip.c more, made
1428 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
1429 that was leaving out a character.
14300.6.8 By request, optchr in main() is now an int. Removed unneeded
1431 globals. Bound functions for next/prev page, and wrote functions
1432 do_home and do_end.
14330.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
1434 created read_file. Implemented Insert File. Fixes in tipgetstr
1435 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
14360.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
1437 aborted searches and more Pico-compatible messages. statusq() now
1438 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
14390.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
1440 regarding buffers with filebot in them. Fixins in do_backspace
1441 and do_enter. Removed unused variables. Removed strip_newline.
14420.6.4 Took out the awful newlines from each string buffers. This will
1443 certainly cause more bugs. Fixes in do_exit(). Better empty file
1444 handling (I hope).
14450.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
1446 do_enter() rewritten.
14470.6.2 Better default file permissions. Complete rewrite of do_wrap().
1448 Better handling of editing with cursor near COLS - 1.
14490.6.1 Starting to implement wrapping toggle. Fix for unhandled control
1450 codes being entered into the buffer. Bug fix in actual_x; more
1451 > COLS - 1 functionality, especially on lines with TABs. Fixed being
1452 locked into cutbuffer when cutting more than one marked screen of text.
14530.6.0 We have TABs!!! To do this, placewewant is now set to the actual
1454 width on the screen we want to be, not an index of current->data.
1455 New functions xplustabs and actual_x convert the actual place
1456 the cursor should be on the screen to and from the place in the
1457 string.
14580.5.5 Changed do_right to test do_down before setting current_x to 0,
1459 eliminiating the "looping" on the last line when holding the right
1460 arrow. Preliminary support for longer than COLS - 1 lines.
1461 Wrote do_delete.
14620.5.4 Fixed a big in total_update that wasn't repainting the screen properly.
1463 tipgetstr is much more messy but text is now more editable ;)
1464 Fixed crash on entering a new file, hopefully. Awful stub for tab
1465 handling, only in do_right() to save me some sanity.
14660.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
1467 Fixed a few bugs in do_uncut when not uncutting from marked text.
1468 I would not trust your data with the mark code right now, but then
1469 we're not at version 1.0 yet so dont trust anything ;)
14700.5.2 Added reset_cursor() before end of update_line so cursor doesnt
1471 jump after each keystroke entered. Select text stubbed. Fixed
1472 a bug in total_refresh(). Setting a mark will hilight properly,
1473 but does not actually affect what gets put in the cutbuffer (yet).
14740.5.1 Writing a file out causes modified to be set back to 0. Good.
1475 Set_modified function written. Cut and uncut text now set
1476 modified when called.
14770.5.0 Half way there! Implemented write out, save function seems
1478 stable. Changed statusbar blank routing to not refresh, a separte
1479 program calls it and then refreshes. Made the program not clear
1480 the srceen on exit, just the bottom two lines (like Pico).
14810.4.2 Implemented replace all in replace function. Crude exit function
1482 (asks yes or no if modified but does not write to file).
14830.4.1 Implementing search & replace. Fixed crash on deleting at top of
1484 edit buffer. Implemented "timeout" of statusbar messages.
1485 Implemented ^A and ^E (beginning and end of line).
14860.4.0 Split code into global.c and proto.h to allow for better multiple
1487 file handling. Added #defines for the majority of the shortcut
1488 kets in tip.h for easy modification.
14890.3.1 Write edit_refresh which doesn't move the screen around, just
1490 updates what's there already. do_wrap() and do_enter() added.
14910.3.0 Preliminary cutbuffer (cut and uncut) support.
14920.2.7 Check for Modification added. do_search() works.
14930.2.5 Rewrite of file data struct.
14940.2 Read in data to buffer, bound keystrokes to stub functions,
1495 initial cursor movement on screen. Initial autoconf support.
14960.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00001497
1498$Id$