Andrew V. Samoilov
d9a88088d1
* editmenu.c (edit_wrap_cmd): Use g_free() on the result
...
of input_dialog().
2001-11-27 12:38:30 +00:00
Andrew V. Samoilov
08a8461efa
* editcmd.c (edit_save_file): Use g_free() on the result of
...
mc_mkstemps().
2001-11-22 10:56:09 +00:00
Andrew V. Samoilov
29dd051ce8
* edit.c (edit_renew): Release dir after use.
...
* editcmd.c (edit_replace_dialog): Eliminate tsearch_text,
treplace_text and targ_order.
(edit_replace_cmd): edit_replace_dialog gives g_malloced
strings, so g_strdup/g_free have to be used. Accept only
positive pattern number in Scanf search and replace.
(edit_save_file): Enable safe save and backups on remote VFS.
2001-11-19 07:31:32 +00:00
Andrew V. Samoilov
b6b8cd0433
* edit_key_translator.c (cooledit_key_map):
...
Add C-k, CK_Delete_To_Line_End.
* edit.c (user_menu): Don't assign block_file twice.
2001-11-16 07:23:36 +00:00
Andrew V. Samoilov
51b1972843
* edit.c (edit_reload): destroy_dlg g_free()s widgets, so
...
g_malloc/g_free have to be used.
(edit_init): Ditto. Eliminate st.
2001-11-07 08:43:15 +00:00
Andrew V. Samoilov
d3579ce57b
(edit_load_cmd): input_dialog returns g_malloc(ed) string,
...
so g_free has to be used.
(edit_save_block_cmd): Likewise.
(edit_insert_file_cmd): Likewise.
(edit_sort_cmd): Likewise.
(edit_save_as_cmd): Likewise. Memory leak fixed.
2001-11-06 08:52:13 +00:00
Andrew V. Samoilov
328cbcb954
* edit.h (edit_execute_cmd): Declare it here.
...
* edit.c: Remove edit_execute_cmd declaration.
(edit_execute_cmd): Use edit_print_string instead of edit_printf.
* editcmd.c: Remove edit_execute_cmd declaration.
(edit_search_dialog): Eliminate tsearch_text.
(edit_search_cmd): edit_search_dialog gives g_malloc()ed exp.
Use g_strdup/g_free instead of strdup/free.
(edit_mail_dialog): quick_dialog use g_strdup, so g_free
must be used.
* bookmark.c (book_mark_clear): Eliminate rend.
It's only written but never read.
(book_mark_flush): Likewise.
(book_mark_inc): Likewise.
(book_mark_dec): Likewise.
2001-11-05 09:23:05 +00:00
Pavel Roskin
edf0504087
* edit.c (user_menu): If the error file is missing, treat it as
...
success. Truncate block file unconditionally.
2001-10-23 05:40:13 +00:00
Pavel Roskin
b1c57095b2
* edit.c: Stop using _EDIT_C definition. Move variable
...
declarations from edit.h, make static or eliminate if possible.
Report errors immediately.
* edit.h: Likewise.
* editwidget.c (edit): Don't report errors from edit_init(),
they are reported in place.
2001-10-23 01:46:53 +00:00
Pavel Roskin
943bae02ad
* editcmd.c (sprintf_p): Declare with the printf attribute.
...
Make static.
2001-10-20 07:20:30 +00:00
Pavel Roskin
399d996408
* edit.h: Declare edit_printf() with the printf attribute.
2001-10-20 07:16:50 +00:00
Pavel Roskin
c932c4610a
* edit.c (check_file_access): Only allow to edit regular files.
...
Use stat() before open() to prevent hangs on pipes, use fstat()
afterwards if stat() was unsuccessful.
2001-10-18 09:35:22 +00:00
Pavel Roskin
b4324a149b
* edit.h: Don't use macro `stat' - it's already a macro on
...
Solaris 8 with large file support.
* editcmd.c: Replace stat() with mc_stat().
* edit.c: Likewise.
2001-09-17 21:32:47 +00:00
Pavel Roskin
6d8020ff3d
* syntax.c (syntax_text): Remove, it's a separate file now.
...
(upgrade_syntax_file): Remove.
(edit_read_syntax_file): Use check_for_default().
2001-09-11 21:44:52 +00:00
Pavel Roskin
ed1d72c662
* edit.h: Remove some useless definitions.
2001-09-08 05:45:27 +00:00
Pavel Roskin
14c07c5677
* Makefile.am: Don't define "MIDNIGHT" - it's unused now.
2001-09-07 21:24:11 +00:00
Pavel Roskin
afee09a276
* edit.c: Eliminate all code disabled for the text edition.
...
* editcmddef.h: Likewise.
* editmenu.c: Likewise.
* editwidget.c: Likewise.
* syntax.c: Likewise.
* wordproc.c: Likewise.
2001-09-07 20:10:45 +00:00
Pavel Roskin
944cfcffe6
* edit-widget.h: Change ~/.cedit to ~/.mc/cedit to keep mcedit
...
files separate from cooledit.
2001-09-07 19:10:44 +00:00
Pavel Roskin
d1caf46603
* bookmark.c: Eliminate all code disabled for the text edition.
...
* edit-widget.h: Likewise.
* editcmd.c: Likewise.
* editdraw.c: Likewise.
* editoptions.c: Likewise.
2001-09-07 18:56:07 +00:00
Pavel Roskin
89824f18f7
* edit.h: Eliminate all code disabled for the text edition.
...
Reorder and simplify includes.
* edit.c: Likewise.
2001-09-07 16:52:42 +00:00
Pavel Roskin
b88dbed3a0
* syntax.c (syntax_text): Add PHP support from Cooledit.
2001-09-06 05:26:04 +00:00
Pavel Roskin
ebc45d895d
* Makefile.am (AM_CFLAGS): Remove CFLAGS, don't use substituted
...
values directly.
2001-09-04 05:33:54 +00:00
Pavel Roskin
f743b68a21
* syntax.c (syntax_text): Remove useless ']' in the Perl and
...
Python rules. Change shell script rule to use more portable
regular expression.
2001-09-04 05:29:55 +00:00
Pavel Roskin
0b245d4db4
* editcmd.c (edit_block_process_cmd): Prepend space to the
...
command to avoid polluting bash history. Document arguments.
Fix crash if block is 0 - not used currently.
2001-09-04 04:16:06 +00:00
Pavel Roskin
6f8323907f
Trimmed using last chtrim. Ensure exactly 2 spaces before e-mail.
2001-09-01 20:12:16 +00:00
Pavel Roskin
deb0875b95
* Makefile.am: Don't install libedit.a.
2001-08-26 16:43:54 +00:00
Pavel Roskin
280ac1e9d6
* Makefile.in: Converted to ...
...
* Makefile.am: ... this.
2001-08-26 08:41:34 +00:00
Pavel Roskin
16e569e3a6
* Makefile.in (EDITSRC): Add headers.
...
(CPPFLAGS): Remove reference to gtkedit.
2001-08-24 19:04:13 +00:00
Pavel Roskin
b44a4e19c6
Copy all necessary files from gtkedit.
...
* Makefile.in (EDITLINKS): Merge with EDITSRC, remove all
references.
2001-08-24 18:23:17 +00:00