ChangeLog 57 KB

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