ChangeLog 38 KB

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