ChangeLog 23 KB

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