ChangeLog 44 KB

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