ChangeLog 58 KB

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