ChangeLog 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962
  1. 2002-12-07 Pavel Roskin <proski@gnu.org>
  2. * edit.c (check_file_access): Use O_EXCL when opening new files.
  3. Don't allow editing stale symlinks.
  4. Reported by Max Derzhak <max@linux.zp.ua>
  5. 2002-12-05 Pavel Roskin <proski@gnu.org>
  6. * edit-widget.h: Remove "from_here" and "to_here".
  7. * edit.c (edit_purge_widget): New function - clean struct WEdit
  8. except the Widget part.
  9. 2002-12-04 Pavel Roskin <proski@gnu.org>
  10. * editcmd.c: Include dialog.h.
  11. Reported by Frédéric L. W. Meunier <lists@pervalidus.net>
  12. 2002-11-30 Pavel Roskin <proski@gnu.org>
  13. * edit.h: Remove "dir" field in WEdit - it's always an empty
  14. string. Adjust all dependencies.
  15. * editcmd.c (edit_get_save_file): Remove first argument, it's
  16. unused.
  17. (edit_get_save_file): Likewise.
  18. * syntax.c: Make structures key_word, context_rule and
  19. _syntax_marker opaque.
  20. * edit.c: Use g_malloc() and g_free() on buffers1 and buffers2.
  21. Eliminate CMalloc.
  22. (edit_get_buffer_as_text): Remove, it's unused.
  23. * editcmd.c (edit_set_search_parameters): Use g_malloc().
  24. (edit_complete_word_cmd): Use g_free().
  25. 2002-11-29 Pavel Roskin <proski@gnu.org>
  26. * edit.h: Don't define HAVE_SYNTAXH.
  27. * syntax.c: Syntax highlighting is no more optional.
  28. (edit_check_spelling): Remove.
  29. * editoptions.c (edit_options_dialog): Add "Save file position"
  30. option, make "Syntax highlighting" unconditional.
  31. * edit.c: First part of the position saving code.
  32. (edit_move_to_column): New function.
  33. 2002-11-29 Andrew V. Samoilov <sav@bcs.zp.ua>
  34. * editoptions.c (edit_options_dialog): Use g_free() to release
  35. variables allocated in quick_dialog().
  36. 2002-11-28 Pavel Roskin <proski@gnu.org>
  37. * edit-widget.h: Move typedef WEdit and file names ...
  38. * edit.h: ... here. Don't include edit-widget.h. Adjust all
  39. dependencies.
  40. 2002-11-23 Andrew V. Samoilov <sav@bcs.zp.ua>
  41. * editoptions.c (edit_options_dialog): Clean up and use g_snprintf()
  42. instead of sprintf().
  43. 2002-11-14 Pavel Roskin <proski@gnu.org>
  44. * edit.h: Decentralize includes.
  45. * editmenu.c (edit_user_menu_cmd): Move to ../src/cmd.c.
  46. * edit.c (edit_delete_line): Don't remove and restore the
  47. preceding newline. Don't treat binary zero as newline.
  48. From Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
  49. 2002-11-12 Pavel Roskin <proski@gnu.org>
  50. * *.c: Fix all global functions without declarations - declare,
  51. make static or remove.
  52. * syntax.c (syntax_change_callback): Remove, it's unused.
  53. (edit_set_syntax_change_callback): Likewise.
  54. * edit.c (edit_execute_cmd): Fool gcc to prevent Y2K warning.
  55. * editwidget.c (edit_adjust_size): Use find_buttonbar().
  56. 2002-11-11 Pavel Roskin <proski@gnu.org>
  57. * editcmd.c: Warning fix for compilers that don't understand the
  58. "const" keyword and variable size arrays.
  59. 2002-11-06 Pavel Roskin <proski@gnu.org>
  60. * editcmd.c (edit_save_file): Restore ownership before access
  61. mode, not after. Otherwise suid bit is lost.
  62. Reported by Nerijus Baliunas <nerijus@users.sourceforge.net>
  63. 2002-10-30 Pavel Roskin <proski@gnu.org>
  64. * edit.c: Include charset.h unconditionally, use new conversion
  65. functions that don't require ifdefs.
  66. * edit_key_translator.c: Likewise.
  67. * editcmd.c: Likewise.
  68. * editdraw.c: Likewise.
  69. 2002-10-20 Pavel Roskin <proski@gnu.org>
  70. * edit-widget.h: Add new field macro_depth to control depth of
  71. macro recursion.
  72. * edit.c (edit_execute_macro): Make static. Increment
  73. macro_depth on entry, decrement on exit, don't allow it to be
  74. too large.
  75. * wordproc.c (line_start): Remove incorrect optimization abusing
  76. static variables. Internal formatting should be usable now.
  77. 2002-10-18 Pavel Roskin <proski@gnu.org>
  78. * wordproc.c (begin_paragraph): Fix the same off-by-one error as
  79. in end_paragraph() - it affects formatting of the paragraph
  80. after the first line in the file it that line starts with a dot.
  81. Remove unused argument.
  82. * wordproc.c (end_paragraph): The last line of the file wasn't
  83. tested for being blank, which resulted in the last newline
  84. becoming a space after formatting.
  85. 2002-10-17 Pavel Roskin <proski@gnu.org>
  86. * editoptions.c (edit_options_dialog): Don't allow
  87. option_tab_spacing to be 0. Reset invalid values to 8.
  88. Reported by Ury N. Stankevich <ury@bofh.homeunix.org>
  89. 2002-10-08 Pavel Roskin <proski@gnu.org>
  90. * wordproc.c (format_paragraph): If formatting was successful,
  91. scroll to the left to show the formatted paragraph.
  92. 2002-10-06 Pavel Roskin <proski@gnu.org>
  93. * editdraw.c (print_to_widget): Eliminate use of floating point.
  94. Change all callers.
  95. 2002-10-02 Andrew V. Samoilov <sav@bcs.zp.ua>
  96. * editcmd.c (edit_insert_column_of_text): Fix infinite loop if
  97. block of text is copied past the end of the buffer.
  98. By Paul Sheer <psheer@icon.co.za>.
  99. (stacked): Don't initialize static arrays by zeros.
  100. 2002-09-26 Andrew V. Samoilov <sav@bcs.zp.ua>
  101. * edit.h (struct key_word): Remove time field.
  102. * syntax.c: Remove MAD support.
  103. 2002-09-24 Pavel Roskin <proski@gnu.org>
  104. * editwidget.c (edit): Make edit_dlg local variable.
  105. * editmenu.c (edit_drop_menu_cmd): Don't use edit_dlg variable.
  106. * edit.c: Remove all references to CR_LF_TRANSLATION.
  107. * editcmd.c: Likewise.
  108. 2002-09-23 Pavel Roskin <proski@gnu.org>
  109. * editwidget.c (edit): Install handler for DLG_RESIZE.
  110. * editwidget.c (edit): Set edit_dlg to NULL after it's
  111. destroyed.
  112. * edit.h: Move style definitions ...
  113. * editdraw.c: ... here. Multiply them by 256. Remove unused
  114. styles.
  115. (print_to_widget): Don't divide style by 256. Simplify logic
  116. since we only have 4 styles now.
  117. * edit.c (edit_move_forward3): Use caret notation for code 127
  118. and below code 32.
  119. * editdraw.c (edit_draw_this_line): Likewise. Print '.' for
  120. other non-printable characters and remove this code from ...
  121. (print_to_widget): ... here.
  122. * edit.c (edit_move_forward3): Show '\r' as ^M.
  123. * editdraw.c (edit_draw_this_line): Likewise. Use MOD_ABNORMAL
  124. attribute.
  125. From Alexander Varakin <avarakin00@hotmail.com>
  126. * edit.h: Remove all references to O_TEXT, USE_O_TEXT and
  127. MY_O_TEXT.
  128. * edit.c: Use O_BINARY when opening files.
  129. * editcmd.c: Likewise.
  130. From Alexander Varakin <avarakin00@hotmail.com>
  131. 2002-09-20 Pavel Roskin <proski@gnu.org>
  132. * editwidget.c (edit_event): Add support for mouse wheel events.
  133. * edit.h: Add missing declarations for edit_move_up() and
  134. edit_move_down().
  135. 2002-09-20 Andrew V. Samoilov <sav@bcs.zp.ua>
  136. * edit.c: Don't initialize static selection and selection_history.
  137. * editdraw.c (status_string): Remove font_width argument.
  138. (edit_status): Fix calculation to use last column in the
  139. status string.
  140. 2002-09-04 Pavel Roskin <proski@gnu.org>
  141. * edit.c (edit_filters): Use gzip, not compress for *.Z files
  142. for consistency with other parts of the code (viewer, mc.ext).
  143. 2002-09-03 Pavel Roskin <proski@gnu.org>
  144. * editcmd.c: Recheck and fix all calls to create_dlg().
  145. * editwidget.c: Likewise.
  146. 2002-09-02 Pavel Roskin <proski@gnu.org>
  147. * editcmd.c (edit_raw_key_query): Eliminate
  148. x_set_dialog_title().
  149. 2002-09-01 Pavel Roskin <proski@gnu.org>
  150. * editcmd.c (edit_block_process_cmd): Restore third argument
  151. (but make it /dev/null) for compatibility with old scripts.
  152. Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
  153. 2002-08-31 Pavel Roskin <proski@gnu.org>
  154. * editwidget.c (edit): Avoid passing an uninitialized color
  155. array to create_dlg() - pass NULL instead.
  156. 2002-08-27 Andrew V. Samoilov <sav@bcs.zp.ua>
  157. * editcmd.c (edit_printf): Use g_vsnprintf() instead of sprintf().
  158. 2002-08-24 Pavel Roskin <proski@gnu.org>
  159. * edit-widget.h: Eliminate ERROR_FILE.
  160. * edit.c: Remove all references to ERROR_FILE.
  161. * editcmd.c (edit_block_process_cmd): Revert to using catstrs(),
  162. those strings are freed now. Use system(), not execute() to
  163. execute commands. Use open_error_pipe() and close_error_pipe()
  164. to keep track of errors.
  165. 2002-08-22 Pavel Roskin <proski@gnu.org>
  166. * editcmd.c: Clean up global variables in the completion code.
  167. * editwidget.c: Use new dialog flags.
  168. * editcmd.c: Likewise.
  169. (edit_completion_dialog): Set DLG_COMPACT for the dialog.
  170. * editcmd.c (compl_callback): Use common_dialog_repaint().
  171. * editcmd.c (raw_callback): Use standard common_dialog_repaint()
  172. to handle DLG_DRAW.
  173. 2002-08-21 Pavel Roskin <proski@gnu.org>
  174. * editwidget.c (edit): Make edit_bar a local variable.
  175. 2002-08-20 Pavel Roskin <proski@gnu.org>
  176. * editcmd.c (freestrs): Set freed strings to NULL.
  177. (catstrs): Use g_malloc() and g_free().
  178. * editcmd.c (freestrs): New function to clean temporary strings.
  179. * edit.c (edit_clean): Call freestrs().
  180. 2002-08-20 David Martin <dmartina@excite.com>
  181. * editmenu.c: Use new create_menu() interface.
  182. 2002-08-18 Pavel Roskin <proski@gnu.org>
  183. * editoptions.c: Make some variables static.
  184. * edit.h: Take extern declarations from all C files.
  185. * editcmd.c (edit_block_process_cmd): Plug memory leak.
  186. Simplify logic, reformat.
  187. 2002-08-02 Paul Sheer <psheer@icon.co.za>
  188. * edit.c (edit_push_action): Fix access to uninitialized memory.
  189. Found by Valgrind.
  190. 2002-08-01 Pavel Roskin <proski@gnu.org>
  191. * syntax.c: Remove all references to MAD.
  192. * edit.h: Don't include mad.h.
  193. 2002-07-29 Andrew V. Samoilov <kai@cmail.ru>
  194. * edit.h (edit_get_load_file): Mark message for translation.
  195. (edit_get_save_file): Ditto.
  196. 2002-07-20 Pavel Roskin <proski@gnu.org>
  197. * syntax.c (apply_rules_going_right): Recheck keyword rules when
  198. a keyword is found on the left border of a context.
  199. 2002-07-14 Pavel Roskin <proski@gnu.org>
  200. * syntax.c (edit_get_syntax_color): Return colorpair index, not
  201. attribute, when syntax highlighting is disabled. Handle black
  202. and white mode separately.
  203. * syntax.c (edit_load_syntax): Do nothing in black and white
  204. mode.
  205. * edit.h [!HAVE_SLANG]: Enable syntax highlighting.
  206. * editdraw.c [!HAVE_SLANG]: Respect attributes for color pairs
  207. by using MY_COLOR_PAIR macro.
  208. * edit.h (struct key_word): Remove unused "bg" field, rename
  209. "fg" to "color", since it keeps all color information.
  210. * syntax.c (edit_get_syntax_color): Replace "fg" and "bg"
  211. arguments with a single argument "color".
  212. Adjust all dependencies.
  213. * editdraw.c (edit_draw_this_line): Fix setting MOD_ABNORMAL
  214. attribute.
  215. (print_to_widget): Fix displaying non-printable characters with
  216. ncurses. Set color for every character even if syntax
  217. highlighting is not compiled - it's needed to reset color after
  218. non-printable characters.
  219. * editdraw.c (edit_status): Use EDITOR_NORMAL_COLOR instead of
  220. NORMAL_COLOR.
  221. * syntax.c (edit_get_syntax_color) [!HAVE_SYNTAXH]: Likewise.
  222. 2002-06-24 Pavel Roskin <proski@gnu.org>
  223. * edit.c (check_file_access): Return 1 on all errors, document
  224. this behavior. Set edit->delete_file to 1 for newly created
  225. files.
  226. (edit_open_file): Don't set edit->delete_file, it's now done in
  227. check_file_access().
  228. Reported by Saso <saso@bojler.dhs.org>
  229. 2002-05-13 Andrew V. Samoilov <kai@cmail.ru>
  230. * editcmd.c (edit_save_file): Call mc_chown() and mc_chmod()
  231. before mc_open() to prevent hangs over ftpfs.
  232. * edit.h: Remove open, close, write, read and mkdir definitions.
  233. * edit.c: Use mc_open, mc_close, mc_write, mc_read, mc_rename,
  234. mc_chmod and mc_chown. Don't cast (char *) to (unsigned long)
  235. in pointer arithmetics.
  236. * editcmd.c: Likewise.
  237. 2002-03-25 Andrew V. Samoilov <kai@cmail.ru>
  238. * syntax.c (edit_read_syntax_file): Use system wide Syntax
  239. Highlighting definitions' file if there is no users one.
  240. 2002-03-18 Pavel Roskin <proski@gnu.org>
  241. * edit.h: Use eregex.h, not regex.h.
  242. From Alexander Varakin <avarakin00@hotmail.com>
  243. 2002-02-27 Andrew V. Samoilov <kai@cmail.ru>
  244. * editcmd.c (edit_replace_cmd): Eliminate fin_string
  245. and use message() to fix possible buffer overflow.
  246. (edit_search_cmd): Likewise.
  247. 2002-02-18 Andrew V. Samoilov <kai@cmail.ru>
  248. * syntax.c (convert): Fix buffer overflow for ".*\" cases.
  249. 2002-01-22 Pavel Roskin <proski@gnu.org>
  250. * editdraw.c (edit_scroll_screen_over_cursor): Do nothing if the
  251. edit widget has zero width or height.
  252. 2002-01-21 Pavel Roskin <proski@gnu.org>
  253. * edit.c: Rename DELETE to DELCHAR to avoid macro redefinition
  254. on Win32.
  255. * edit.h: Likewise.
  256. 2002-01-21 Matthias Urban <murban@cs.uni-magdeburg.de>
  257. * edit.c: Add support for CK_Complete_Word event.
  258. * editcmddef.h: Likewise.
  259. * edit_key_translator.c (cooledit_key_map): Bind Alt-Tab to
  260. CK_Complete_Word.
  261. (emacs_key_map): Likewise.
  262. * editcmd.c: Implement word completion.
  263. 2002-01-21 Pavel Roskin <proski@gnu.org>
  264. * editmenu.c (CmdMenuEmacs): Add mail command without shortcut.
  265. Users of emacs keys should be able to send mail too.
  266. 2002-01-15 Andrew V. Samoilov <kai@cmail.ru>
  267. * syntax.c (syntax_g_free): New macro to release and NULLify
  268. glib allocated memory area(s).
  269. (strdup_convert): Rename to ...
  270. (convert): ... this. Don't strdup() passed string.
  271. (get_args): Use convert() instead of strdup_convert().
  272. (free_args): Make it do nothing macro.
  273. (open_include_file): Eliminate p array. Use glib function to
  274. construct error_file_name. Use PATH_SEP instead of '/';
  275. (edit_read_syntax_file): Use PATH_SEP_STR.
  276. (edit_load_syntax): Use syntax_g_free to release error_file_name.
  277. (edit_read_syntax_rules): Likewise.
  278. Eliminate c->single_char. It's only written but never read.
  279. * edit.h (struct context_rule): Comment out single_char field.
  280. It is written once but never read.
  281. * edit-widget.h: Use PATH_SEP_STR.
  282. 2001-12-22 Andrew V. Samoilov <kai@cmail.ru>
  283. * editcmd.c (edit_goto_cmd): Use g_free() to release f.
  284. (edit_save_file): Use PATH_SEP instead of '/'.
  285. Undefine "close" before closing file created by mc_mkstemps.
  286. Define close to mc_close() after it - temporary fix.
  287. (sprintf_p): Don't cast (char *) to (unsigned long).
  288. * syntax.c (read_one_line): Undo last patch - errno is a
  289. function on some systems. Check ferror() status before
  290. everything else if fgetc() returns EOF.
  291. Accept last line without trailing newline.
  292. (compare_word_to_right): Don't cast p and q to unsigned long.
  293. (apply_rules_going_right): Likewise.
  294. 2001-12-21 Pavel Roskin <proski@gnu.org>
  295. * edit.c (user_menu): Don't move the cursor before and after
  296. inserting the block.
  297. Reported by Matthias Urban <murban@cs.uni-magdeburg.de>
  298. * syntax.c (read_one_line): Clear errno before using it. Don't
  299. use the result of fgetc() if errno is EINTR.
  300. 2001-11-28 Andrew V. Samoilov <kai@cmail.ru>
  301. * syntax.c (apply_rules_going_right): Fix crash for lines like
  302. \s+ \n lightgray/13 red
  303. in Syntax file.
  304. (read_one_line): Use EOF instead of -1.
  305. (get_args): Fix buffer overflow for l without trailing
  306. whitespace(s).
  307. (break_a): New macro.
  308. (edit_read_syntax_rules): Use break_a to fix memory leaks.
  309. (edit_load_syntax): Eliminate s and use message to prevent
  310. buffer overflow.
  311. * editdraw.c (edit_render): Eliminate f. It's only written
  312. but never read.
  313. 2001-11-27 Andrew V. Samoilov <kai@cmail.ru>
  314. * editmenu.c (edit_wrap_cmd): Use g_free() on the result
  315. of input_dialog().
  316. 2001-11-22 Andrew V. Samoilov <kai@cmail.ru>
  317. * editcmd.c (edit_save_file): Use g_free() on the result of
  318. mc_mkstemps().
  319. (edit_replace_cmd): Fix rare memory leaks.
  320. 2001-11-19 Andrew V. Samoilov <kai@cmail.ru>
  321. * edit.c (edit_renew): Release dir after use.
  322. * editcmd.c (edit_replace_dialog): Eliminate tsearch_text,
  323. treplace_text and targ_order.
  324. (edit_replace_cmd): edit_replace_dialog gives g_malloced
  325. strings, so g_strdup/g_free have to be used. Accept only
  326. positive pattern number in Scanf search and replace.
  327. (edit_save_file): Enable safe save and backups on remote VFS.
  328. 2001-11-16 Andrew V. Samoilov <kai@cmail.ru>
  329. * edit_key_translator.c (cooledit_key_map):
  330. Add C-k, CK_Delete_To_Line_End.
  331. * edit.c (user_menu): Don't assign block_file twice.
  332. 2001-11-07 Andrew V. Samoilov <kai@cmail.ru>
  333. * edit.c (edit_reload): destroy_dlg g_free()s widget(s), so
  334. g_malloc/g_free have to be used.
  335. (edit_init): Ditto. Eliminate st.
  336. 2001-11-05 Andrew V. Samoilov <kai@cmail.ru>
  337. * edit.h (edit_execute_cmd): Declare it here.
  338. * edit.c: Remove edit_execute_cmd declaration.
  339. (edit_execute_cmd): Use edit_print_string instead of edit_printf.
  340. * editcmd.c: Remove edit_execute_cmd declaration.
  341. (edit_search_dialog): Eliminate tsearch_text.
  342. (edit_search_cmd): edit_search_dialog gives g_malloc()ed exp.
  343. Use g_strdup/g_free instead of strdup/free.
  344. (edit_mail_dialog): quick_dialog use g_strdup, so g_free
  345. must be used.
  346. (edit_load_cmd): input_dialog returns g_malloc(ed) string,
  347. so g_free has to be used.
  348. (edit_save_block_cmd): Likewise.
  349. (edit_insert_file_cmd): Likewise.
  350. (edit_sort_cmd): Likewise.
  351. (edit_save_as_cmd): Likewise. Memory leak fixed.
  352. * bookmark.c (book_mark_clear): Eliminate rend.
  353. It's only written but never read.
  354. (book_mark_flush): Likewise.
  355. (book_mark_inc): Likewise.
  356. (book_mark_dec): Likewise.
  357. 2001-10-23 Pavel Roskin <proski@gnu.org>
  358. * edit.c (user_menu): If the error file is missing, treat it as
  359. success. Truncate block file unconditionally.
  360. 2001-10-22 Pavel Roskin <proski@gnu.org>
  361. * edit.c: Stop using _EDIT_C definition. Move variable
  362. declarations from edit.h, make static or eliminate if possible.
  363. Report errors immediately.
  364. * edit.h: Likewise.
  365. * editwidget.c (edit): Don't report errors from edit_init(),
  366. they are reported in place.
  367. 2001-10-20 Pavel Roskin <proski@gnu.org>
  368. * editcmd.c (sprintf_p): Declare with the printf attribute.
  369. Make static.
  370. * edit.h: Declare edit_printf() with the printf attribute.
  371. 2001-10-18 Pavel Roskin <proski@gnu.org>
  372. * edit.c (check_file_access): Only allow to edit regular files.
  373. Use stat() before open() to prevent hangs on pipes, use fstat()
  374. afterwards if stat() was unsuccessful.
  375. 2001-09-17 Pavel Roskin <proski@gnu.org>
  376. * edit.h: Don't use macro `stat' - it's already a macro on
  377. Solaris 8 with large file support.
  378. * editcmd.c: Replace stat() with mc_stat().
  379. * edit.c: Likewise.
  380. 2001-09-11 Pavel Roskin <proski@gnu.org>
  381. * syntax.c (syntax_text): Remove, it's a separate file now.
  382. (upgrade_syntax_file): Remove.
  383. (edit_read_syntax_file): Use check_for_default().
  384. 2001-09-08 Pavel Roskin <proski@gnu.org>
  385. * edit.h: Remove some useless definitions.
  386. 2001-09-07 Pavel Roskin <proski@gnu.org>
  387. * Makefile.am: Don't define "MIDNIGHT" - it's unused now.
  388. * edit.c: Eliminate all code disabled for the text edition.
  389. * editcmddef.h: Likewise.
  390. * editmenu.c: Likewise.
  391. * editwidget.c: Likewise.
  392. * syntax.c: Likewise.
  393. * wordproc.c: Likewise.
  394. * edit-widget.h: Change ~/.cedit to ~/.mc/cedit to keep mcedit
  395. files separate from cooledit.
  396. * bookmark.c: Eliminate all code disabled for the text edition.
  397. * edit-widget.h: Likewise.
  398. * editcmd.c: Likewise.
  399. * editdraw.c: Likewise.
  400. * editoptions.c: Likewise.
  401. * edit.h: Eliminate all code disabled for the text edition.
  402. Reorder and simplify includes.
  403. * edit.c: Likewise.
  404. 2001-09-06 Pavel Roskin <proski@gnu.org>
  405. * syntax.c (syntax_text): Add PHP support from Cooledit.
  406. 2001-09-04 Pavel Roskin <proski@gnu.org>
  407. * Makefile.am (AM_CFLAGS): Remove CFLAGS, don't use substituted
  408. values directly.
  409. * syntax.c (syntax_text): Remove useless ']' in the Perl and
  410. Python rules. Change shell script rule to use more portable
  411. regular expression.
  412. * editcmd.c (edit_block_process_cmd): Prepend space to the
  413. command to avoid polluting bash history. Document arguments.
  414. Fix crash if block is 0 - not used currently.
  415. 2001-08-26 Pavel Roskin <proski@gnu.org>
  416. * Makefile.am: Don't install libedit.a.
  417. * Makefile.in: Converted to ...
  418. * Makefile.am: ... this.
  419. 2001-08-24 Pavel Roskin <proski@gnu.org>
  420. * Makefile.in (EDITSRC): Add headers.
  421. (CPPFLAGS): Remove reference to gtkedit.
  422. Copy all necessary files from gtkedit.
  423. * Makefile.in (EDITLINKS): Merge with EDITSRC, remove all
  424. references.
  425. 2001-08-24 Pavel Roskin <proski@gnu.org>
  426. * syntax.c (syntax_text): Fix recognizing pdksh and zsh scripts.
  427. 2001-08-23 Pavel Roskin <proski@gnu.org>
  428. * editcmd.c (edit_block_process_cmd): Use execute(), not
  429. my_system() to relieve interactive scripts, such as spell
  430. checker, from saving and restoring the terminal.
  431. 2001-08-19 Pavel Roskin <proski@gnu.org>
  432. * gtkedit.c: Include <sys/param.h> if present - it should always
  433. be included before <glib.h> to avoid redefining MIN and MAX.
  434. * editcmd.c [!MIDNIGHT]: Undefine B_ENTER and B_CANCEL before
  435. redefining them.
  436. * edit.h: Include <sys/param.h> if present. Include Gtk+
  437. headers as system headers.
  438. * gtkedit.c: Include Gtk+ headers as system headers.
  439. 2001-08-18 Pavel Roskin <proski@gnu.org>
  440. * syntax.c (syntax_text): Highlight *.pot as PO files.
  441. * edit.h [GTK]: Fix definition of edit_message_dialog().
  442. * gtkedit.c (gtk_edit_dialog_message): Use "OK" button, not
  443. "Cancel", for consistency with the text edition.
  444. 2001-08-17 Pavel Roskin <proski@gnu.org>
  445. * syntax.c (syntax_text): Add support for PO files.
  446. 2001-08-12 Pavel Roskin <proski@gnu.org>
  447. * edit.c: Handle CK_Shell.
  448. * editcmddef.h: Define CK_Shell.
  449. * editmenu.c (FileMenu): Remove C-o from the "Open file..."
  450. item.
  451. (FileMenuEmacs): Likewise.
  452. 2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
  453. * editcmd.c (edit_replace_prompt): Fix menu location calculation.
  454. 2001-08-01 Pavel Roskin <proski@gnu.org>
  455. * editcmd.c (edit_save_file): Temporarily disable safe save
  456. and backups on remote VFS because it doesn't work. Use
  457. mc_mkstemps() instead of tempnam().
  458. 2001-07-29 Pavel Roskin <proski@gnu.org>
  459. * syntax.c (syntax_text): Add support for S-Lang.
  460. 2001-07-28 Pavel Roskin <proski@gnu.org>
  461. * editcmd.c (menu_save_mode_cmd): Resurrect i18n code lost in
  462. the last resync with Cooledit.
  463. Reported by David Martin <dmartina@excite.es>
  464. * gtkedit.c (gtk_edit_delete_cb): Handler for "delete_event".
  465. (edit): Connect it.
  466. 2001-07-27 Pavel Roskin <proski@gnu.org>
  467. * edit.c: Fix include.
  468. 2001-07-20 Pavel Roskin <proski@gnu.org>
  469. * syntax.c (open_include_file) [GTK]: Use mc_home instead of
  470. LIBDIR.
  471. 2001-07-19 Pavel Roskin <proski@gnu.org>
  472. * editcmd.c (edit_canonicalize_pathname): Don't ever use
  473. getwd(), use g_get_current_dir() instead.
  474. * editoptions.c (edit_options_dialog): Call edit_load_syntax()
  475. if user turned syntax highlighting off to unload the rules.
  476. 2001-07-17 Pavel Roskin <proski@gnu.org>
  477. * edit.h [MIDNIGHT]: Declare wedit.
  478. * editmenu.c: Remove wedit declaration.
  479. * editoptions.c (edit_options_dialog): Load syntax rules if user
  480. turned syntax highlighting on.
  481. * syntax.c (edit_load_syntax): Don't load rules if syntax
  482. highlighting is disabled.
  483. 2001-07-13 Pavel Roskin <proski@gnu.org>
  484. * editoptions.c (edit_options_dialog): Allow numbers for tab
  485. spacing. Reported by mharris@redhat.com.
  486. http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=34852
  487. * editcmd.c (menu_save_mode_cmd): Give meaningful names to the
  488. input fields instead of "i" so that they have separate history.
  489. * editoptions.c (edit_options_dialog): Likewise.
  490. 2001-07-11 Pavel Roskin <proski@gnu.org>
  491. * editdraw.c (status_string): Use g_snprintf() instead of
  492. snprintf().
  493. From Libor Motyèka <l_motycka@ortex.cz>
  494. 2001-07-10 Pavel Roskin <proski@gnu.org>
  495. * gtkeditkey.c (edit_translate_key): When processing bindings
  496. with Alt check that Shift is not pressed - it's handled later.
  497. 2001-07-05 Pavel Roskin <proski@gnu.org>
  498. * editdraw.c: Comment fixes.
  499. 2001-06-26 Pavel Roskin <proski@gnu.org>
  500. * edit-widget.h (editor_widget): Rename `stat' to `stat1' to
  501. avoid problems on Solaris with 64-bit file access, when `stat'
  502. is a macro. All users adjusted.
  503. Reported by Maksym Polyakov <polyama@yahoo.com>.
  504. 2001-06-25 Pavel Roskin <proski@gnu.org>
  505. * gtkedit.c: Remove home_dir - it's declared in main.c.
  506. 2001-06-15 Pavel Roskin <proski@gnu.org>
  507. * editcmd.c (canonicalize_pathname) [GTK]: Rename to ...
  508. (edit_canonicalize_pathname): ... this to avoid namespace clash.
  509. * edit.h [MIDNIGHT]: Include "src/cmd.h" and "src/user.h".
  510. Remove declarations duplicating "src/user.h".
  511. [GTK]: Include "src/dialog.h" and "src/util.h".
  512. * editmenu.c (edit_wrap_cmd): Fix declaration.
  513. (edit_about_cmd): Likewise.
  514. * editwidget.c (get_key_state): Likewise.
  515. * editcmd.c (edit_quit_cmd): Don't use strcmp on the result of
  516. gtk_dialog_cauldron() since it's NULL if the dialog has been
  517. closed without using buttons.
  518. * edit.c (edit_execute_cmd): Put time format to a variable to
  519. avoid gcc warning about Y2K issues with %c in strftime().
  520. 2001-06-14 Pavel Roskin <proski@gnu.org>
  521. * edit.c: Declare cmd_F* static. Comment out cmd_F9.
  522. * edit.c: Use indented #error for compatibility with old C
  523. compilers.
  524. 2001-06-13 Pavel Roskin <proski@gnu.org>
  525. * edit.c (edit_execute_cmd) [GTK]: Disable user menu - it
  526. doesn't work.
  527. (user_menu) [GTK]: Disable.
  528. * gtkedit.c (tb_items): Use complete words. Disable pull-down
  529. menu.
  530. 2001-06-09 Pavel Roskin <proski@gnu.org>
  531. * editcmd.c (catstrs): Use interactive_display() without
  532. specifying the help file.
  533. From Andrew V. Samoilov.
  534. 2001-06-08 Andrew V. Samoilov <sav@bcs.zp.ua>
  535. * editcmd.c [HAVE_CHARSET]: Really include charset.h.
  536. * editmenu.c (edit_wrap_cmd): Memory leaking fixed.
  537. 2001-06-05 Pavel Roskin <proski@gnu.org>
  538. * edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
  539. * editcmd.c [HAVE_CHARSET]: Add charset conversion support.
  540. * editdraw.c [HAVE_CHARSET]: Likewise.
  541. From Andrew V. Samoilov <sav@bcs.zp.ua>
  542. and Walery Studennikov <hqsoftware@mail.ru>.
  543. 2001-06-01 Pavel Roskin <proski@gnu.org>
  544. * gtkedit.h: Warning fix - use stricter declarations for
  545. destroy_me and destroy_me_user_data.
  546. 2001-05-31 Pavel Roskin <proski@gnu.org>
  547. * Makefile.in: Define HAVE_X and HAVE_GNOME, not just GTK -
  548. header files are using them.
  549. * editdraw.c (edit_render) [GTK]: Revert previous patch, it
  550. broke compilation.
  551. 2001-05-31 Andrew V. Samoilov <sav@bcs.zp.ua>
  552. * editdraw.c (edit_status): Use strcpy (s, ) instead of
  553. sprintf (s, "%s", ).
  554. (set_color) [MIDNIGHT]: Became a macro.
  555. (render_edit_text) [defined(MIDNIGHT) || defined(GTK)]: Warning fix.
  556. (edit_render) [GTK]: Eliminate win variable.
  557. (key_pending) [!GTK]: Warning fix.
  558. 2001-05-30 Pavel Roskin <proski@gnu.org>
  559. * editdraw.c (status_string): Use is_printable(). Declare
  560. static. Eliminate intermediate buffer. Use memset() for filling.
  561. Print byte as unsigned. Use C notation for hex numbers.
  562. * editdraw.c (status_string): Don't print non-printable chars.
  563. Better formatting. Print "<EOF>" at the end of file instead of
  564. -1. Use snprintf instead of sprintf.
  565. 2001-05-30 Andrew V. Samoilov <sav@bcs.zp.ua>
  566. * syntax.c (open_include_file) [MIDNIGHT]: Don't hardcode location
  567. of syntax file(s) with LIBDIR, use mc_home instead.
  568. From Ludovic Drolez <ludovic.drolez@freealter.com>.
  569. (syntax_text): Use perl.syntax to highlight perl modules (.pm).
  570. 2001-05-18 Pavel Roskin <proski@gnu.org>
  571. * editcmd.c (edit_replace_prompt): Warning fix.
  572. 2001-02-26 Pavel Roskin <proski@gnu.org>
  573. * editcmd.c (edit_delete_macro_cmd) [MIDNIGHT]: Don't use
  574. CK_Macro on the argument to edit_delete_macro().
  575. * edit.c (edit_init_file): Remove, it's useless. All the
  576. necessary files should be created when needed.
  577. * edit.h: Remove declaration of edit_init_file().
  578. 2000-11-01 Andrew V. Samoilov <sav@bcs.zp.ua>
  579. * editcmd.c (canonicalize_pathname) [GTK]: memory leaking fixed
  580. 2000-10-30 Pavel Roskin <proski@gnu.org>
  581. * editcmd.c (canonicalize_pathname) [GTK]: Make the argument
  582. constant.
  583. (edit_split_filename) [GTK]: Make the second argument constant
  584. to match the declaration.
  585. 2000-10-30 Andrew V. Samoilov <sav@bcs.zp.ua>
  586. * editcmd.c (edit_save_file): better error handling on writing
  587. (edit_sort_cmd): saved sort options proposed in dialog
  588. edit.h, editcmd.c: declaration for edit_save_block () added
  589. (edit_split_filename): f constified
  590. * edit.c (edit_init) [ENABLE_NLS]: option_whole_chars_search
  591. expanded by national letters using current locale on first call
  592. (edit_file_is_open) [MIDNIGHT]: all occurrences and related code
  593. are commented
  594. (edit_execute_cmd): typo in error message fixed
  595. 2000-09-30 Pavel Roskin <proski@gnu.org>
  596. * libgettext.h: Removed, shouldn't be here.
  597. * Makefile.in: Adjusted to remove libgettext.h
  598. 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
  599. * editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't
  600. translate keywords written to macro file or macro don't work, at least
  601. for Cyrillic. Made this as separate commit, so, if it seriously breaks
  602. compatibility it's easy to revert it.
  603. 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
  604. * editcmd.c (edit_save_file): fopen()+fwrite()+fclose() replaced
  605. by open()+write()+close() to restore possibility to edit files
  606. over Midnight Commander's VFSes
  607. (edit_replace_cmd) [MIDNIGHT]: some more right algorithm to calculate
  608. menu coordinates used. I don't like if menu hides replaced text.
  609. (edit_goto_cmd): Memory leaking fixed when f is empty string
  610. 2000-09-07 Andrew V. Samoilov <sav@bcs.zp.ua>
  611. * edit.c (check_file_access) [MIDNIGHT,GTK]: error message localized;
  612. some cosmetics changes to avoid annoying warnings
  613. * editcmd.c (edit_save_file): pclose returns 0 on success,
  614. file fclose()d when fwrite fails
  615. (pipe_mail): malloc () + sprintf () replaced by g_strdup_printf ()
  616. * syntax.c (syntax_text): Makefile replaced by [Mm]akefile to cover
  617. makefile and GNUmakefile
  618. (upgrade_syntax_file): infinitive loop fixed when rule file
  619. is outdated but it cannot be unlinked/overwritten
  620. 2000-08-30 Pavel Roskin <proski@gnu.org>
  621. * editwidget.c [!MIDNIGHT]: include xdnd.h
  622. * Makefile.in: distribute xdnd.h
  623. 2000-08-18 Pavel Roskin <proski@gnu.org>
  624. * Makefile.in: adjusted list of distributed files.
  625. Added rule for rebuilding Makefile
  626. 2000-08-08 Pavel Roskin <proski@gnu.org>
  627. * gtkedit.c [GTK]: don't include mousemark.h
  628. * gtkedit.h [GTK]: likewise
  629. 2000-08-03 Pavel Roskin <proski@gnu.org>
  630. * mousemark.c, mousemark.h: removed
  631. * Makefile.in: don't distribute mousemark.h
  632. * gtkedit.c [MIDNIGHT]: don't include mousemark.h
  633. * gtkedit.h [MIDNIGHT]: likewise
  634. 2000-07-20 Andrew V. Samoilov <sav@bcs.zp.ua>
  635. * gtkedit/editcmd.c (edit_save_file): check fclose()s return value
  636. to prevent loss of data
  637. (edit_block_process_cmd): don't translate empty string
  638. * gtkedit/edit.h (edit_get_write_filter, edit_write_stream,
  639. edit_init_file): added declarations
  640. * edit.c (edit_filters): constified
  641. (edit_get_write_filter): filename constified
  642. (user_menu): don't translate empty string
  643. * syntax.c (syntax_text): constified
  644. (upgrade_syntax_file): syntax_line constified, f closed after use