ChangeLog 38 KB

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