ChangeLog 24 KB

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