Ilia Maslakov
4ba7d47fba
Add edit_move_block_to_left, edit_move_block_to_right procedure for shift block.
...
Tab: if block selected, shift block to right.
M-Tab(complete): if block selected, shift block to left.
Remove "static" from insert_spaces_tab.
Add define insert_spaces_tab in edit.h
2009-03-24 14:48:18 +00:00
Ilia Maslakov
f3dcf1b3aa
replace malloc to g_malloc.
...
fix some leak (thx andrew_b)
define TAGS_NAME, MAX_WIDTH_DEF_DIALOG vars
2009-03-06 15:28:54 +00:00
Slava Zanko
00567b61b2
etags: make new type 'etags_hash_t'
2009-03-05 12:31:16 +02:00
Ilia Maslakov
474d22d6c9
change width listbox, change output format
2009-03-05 12:31:16 +02:00
Ilia Maslakov
4be6c1c2c5
some little bug fix
2009-03-05 12:31:16 +02:00
Slava Zanko
8abf76df7c
edit/editcmd.c
...
* changed searching algorithm of 'TAGS' file
* changed #include "etags.h" to "../edit/etags.h" for building outside of sources tree
edit/etags.c:
* apply template from maint/template.c file
* rename all functions with prefix etags_*
* make function "etags_get_pos_from" in file-scope visibility
edit/etags.h:
* added logic block "#ifndef ... #define ... #endif" for correctly processing of header file
* remove declaration of file-scope function etags_get_pos_from (ex. get_pos_from)
2009-03-02 16:43:22 +02:00
Ilia Maslakov
ffca67e3cb
one word bug fix
2009-02-27 22:07:01 +00:00
Ilia Maslakov
889233a7dd
add canonicalize_pathname for displayed files in list, replace get curren dir from panel->cwd to g_get_current_dir()
2009-02-27 21:31:30 +00:00
Ilia Maslakov
351f42ac24
add recursive search file TAGS
2009-02-26 20:50:58 +00:00
Ilia Maslakov
20c769b063
Add stack navigation structure. Add hotkeys A-'-' backward A-'=' forward navigation to files.
...
add edit/etags.c edit/etags.h
2009-02-25 21:55:35 +00:00
Mikhail S. Pobolovets
6a209bdb59
Simple doxygen description for files in edit directory.
...
Mostly \file and \brief tag added.
Some fixes for warnings with existing comments.
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-10 16:07:59 +02:00
Slava Zanko
e54f318cef
Completely removed MHL stuff
...
Changed all source files relative to remove MHL
Some string-related functions moved into src/util.c
This stable fix.
2009-02-06 14:01:28 +02:00
Patrick Winnertz
3b8f37b99e
Moved some functions out of mhl into src/util.c
...
This commit moves the mhl_str_concat_dir_and_file back into src/util.c whitout changing atm the functionality.
Please note that this is an incomplete fix and needs to be partially enhanced in order to keep the full functionality with glib.
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-06 11:17:03 +01:00
Patrick Winnertz
589ffd0b10
Use g_snprintf instead of snprintf as we switch back to glib
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:49:00 +01:00
Patrick Winnertz
d84586ba82
Reverted the use of mhl_str_dup and use g_strdup instead.
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:40:32 +01:00
Patrick Winnertz
1c287d798d
First bunch of mhl_mem_free removal patches
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:36:58 +01:00
Patrick Winnertz
3d0f9e419a
Reverted some more GString removals. (See f235b1976e
)
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:22:08 +01:00
Enrico Weigelt, metux IT service
463a18623d
removed obsolete own memmove implementation ( #242 )
2009-02-03 19:51:01 +01:00
Enrico Weigelt, metux IT service
9b9cab5874
manually merged 234_remove_g_string
2009-02-02 22:39:12 +01:00
Enrico Weigelt, metux IT service
8b38cf44da
manully merged 227_replace_g_free
2009-02-02 22:34:05 +01:00
Enrico Weigelt, metux IT service
035fa47c06
manually merged 228_replace_g_strdup
2009-02-02 21:28:01 +01:00
Enrico Weigelt, metux IT service
0434e3de5d
manually merged 235_remove_g_snprintf
2009-02-02 20:53:03 +01:00
Enrico Weigelt, metux IT service
e4a4f77ac2
replaced g_snprintf() by snprintf()
2009-02-01 20:03:28 +01:00
Sergei Trofimovich
df4129517b
Merge branch 'mc-4.6'
...
* mc-4.6: (38 commits)
mhl: mhl_shell_unescape_buf(): fixed memory array OOB.
completion: fixed complete already escaped secuences.
completion: added changelog entry for solved #147
completion: fixed completion of escaped commands in commandline
Removed unused char*.
mhl: added mhl_strmove() function (memmove semantics)
completion: added escapes in command line on completion
complete: cleanup: #define to enum INPUT_COMPLETION_FLAGS
added a new parameter for completion flags to input_new
fish: cleanup: unboxed quoted strings when generate shell commands
introduced new type SHELL_ESCAPED_STR for more type safety
added mhl/types.h which defines bool enum, escape.h now using this type
Removed unused variable
Changes for use MHL.
Fixed bug with renamig/copying files with backshashes in names
Remove some testing stuff
Temporarry commit. Fixed completion in browse by directoryes.
Fixed some memory leaks.
Add $ and ` for escaping and reorder it according to the ascii values
Rewrite it to use g_string_append_c instead of some homebrew stuff
...
2009-02-01 14:26:54 +02:00
Enrico Weigelt, metux IT service
f235b1976e
replaced GString stuff by static buffers
2009-01-31 21:55:51 +01:00
Sergei Trofimovich
ff4de3d66f
Merge branch 'mc-4.6' into 147_escaping
...
* mc-4.6:
replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()
fixed out-of-tree-builds
Updated the NEWS file for 4.6.2 and added the bugnumbers behind the items in the list.
Update for OpenOffice and StarOffice viewer.
changelog: added entry for python syntax
syntax: python: keywords update (patch by NNemec) fixes #216
AC_USE_SYSTEM_EXTENSIONS macro requires autoconf >= 2.60
po/ru.po: In russian translation, there are some hotkey conficts in menu.
ChangeLog/NEWS: added entry for #181 ticket (copy to deleted dir)
Now a trailing slash will only be added in copy & move dialogs if the path itselfs
copy/move dialog: add trailing '/' to default destination path (fix #181 )
fixed comments to /* ... */
Not only comment it out but removing it
Removed unneeded var to make build process a bit cleaner
Add code snipplet by il.smind which should fix issues with putty and
Conflicts:
ChangeLog
mhl/string.h
src/command.c
src/complete.c
src/file.c
src/util.c
2009-01-31 22:18:19 +02:00
Enrico Weigelt, metux IT service
5f77615b35
Merge commit 'origin/mc-4.6'
2009-01-31 18:20:54 +01:00
Enrico Weigelt, metux IT service
54d6ec88dc
replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()
2009-01-31 16:51:58 +01:00
Enrico Weigelt, metux IT service
f921cc40cd
replaced calls to g_strdup() by mhl_str_dup()
2009-01-30 20:10:40 +01:00
Enrico Weigelt, metux IT service
15d7d47c15
replaced g_free() by mhl_mem_free()
2009-01-30 19:28:35 +01:00
Enrico Weigelt, metux IT service
7639b364af
added a new parameter for completion flags to input_new
2009-01-29 19:17:43 +01:00
Enrico Weigelt, metux IT service
7cef5b112e
Merge commit 'origin/50_history_sections.metux'
2009-01-25 07:00:32 +01:00
Enrico Weigelt, metux IT service
0dcb057459
separated out history section names to history.h
2009-01-24 21:51:29 +01:00
Enrico Weigelt, metux IT service
b9b09436c4
Merge commit 'origin/50_history_section_names' into 50_history_sections.metux
2009-01-24 21:26:41 +01:00
Patrick Winnertz
106616423e
Merge branch 'mc-4.6'
2009-01-24 13:21:18 +01:00
Patrick Winnertz
786f68dd4f
Merge branch '207_minor_regex_fixes' into mc-4.6
2009-01-24 13:17:28 +01:00
Enrico Weigelt, metux IT service
5d150562aa
merged 158_message_codes branch
2009-01-24 04:53:51 +01:00
Patrick Winnertz
88c320822a
Fix some smaller errors concerning regex searches in mcedit
2009-01-23 20:01:15 +01:00
Patrick Winnertz
b7ac1e0484
Applied patch from debian which fixes a test if a file can be opened.
2009-01-23 19:55:43 +01:00
Slava Zanko
22fada9ce0
History sections names:
...
Make names of sections with function name as prefix string.
for example:
[inp:mc_mkdir Enter directory name ]
0=...
2009-01-20 00:57:09 +02:00
Patrick Winnertz
a144f2e4f6
Apply patch to fix localised history headers to mc-4.6 branch.
...
This is bad as if the localised string changed or you start mc
in another language your history will be lost.
2009-01-14 01:01:18 +01:00
Enrico Weigelt, metux IT service
154feb5160
2009-01-10 Enrico Weigelt, metux ITS <weigelt@metux.de>
...
* edit/editcmd.c:
* src/achown.c src/background.c src/boxes.c src/chmod.c:
* src/chown.c src/cmd.c src/command.c src/dir.c src/execute.c:
* src/ext.c src/file.c src/filegui.c src/find.c src/help.c:
* src/learn.c src/main.c src/panelize.c src/screen.c:
* src/selcodepage.c src/subshell.c src/tree.c src/user.c:
* src/utilunix.c src/view.c:
* vfs/cpio.c vfs/direntry.c vfs/extfs.c vfs/fish.c vfs/ftpfs.c:
* vfs/mcfs.c vfs/sfs.c vfs/smbfs.c vfs/tar.c vfs/undelfs.c:
* vfs/utilvfs.c vfs/vfs.c:
Changed message type codes on calls to message(), query_dialog(),
close_error_pipe() from numeric IDs to symbols D_ERROR, D_NORMAL
2009-01-10 14:13:56 +01:00
Pavel Tsekov
2f3df3af4e
* edit/bookmark.c: Update copyright notice.
...
* edit/edit.c: Likewise.
* edit/editcmd.c: Likewise.
* edit/editdraw.c: Likewise.
* edit/editkeys.c: Likewise.
* edit/editlock.c: Likewise.
* edit/editmenu.c: Likewise.
* edit/editoptions.c: Likewise.
* edit/editwidget.c: Likewise.
* edit/syntax.c: Likewise.
* src/background.c: Likewise.
* src/boxes.c: Likewise.
* src/complete.c: Likewise.
* src/execute.c: Likewise.
* src/ext.c: Likewise.
* src/file.c: Likewise.
* src/filegui.c: Likewise.
* src/fileopctx.c: Likewise.
* src/find.c: Likewise.
* src/hotlist.c: Likewise.
* src/key.c: Likewise.
* src/keyxdef.c: Likewise.
* src/layout.c: Likewise.
* src/learn.c: Likewise.
* src/listmode.c: Likewise.
* src/main.c: Likewise.
* src/panelize.c: Likewise.
* src/slint.c: Likewise.
* src/textconf.c: Likewise.
* src/tree.c: Likewise.
* src/treestore.c: Likewise.
* src/tty.c: Likewise.
* src/util.c: Likewise.
* src/utilunix.c: Likewise.
* src/view.c: Likewise.
* src/widget.c: Likewise.
* src/wtools.c: Likewise.
* src/x11conn.c: Likewise.
* vfs/cpio.c: Likewise.
* vfs/extfs.c: Likewise.
* vfs/fish.c: Likewise.
* vfs/ftpfs.c: Likewise.
* vfs/gc.c: Likewise.
* vfs/mcfs.c: Likewise.
* vfs/mcserv.c: Likewise.
* vfs/smbfs.c: Likewise.
* vfs/tar.c: Likewise.
2007-09-25 15:33:35 +00:00
Pavel Tsekov
23361694b6
* src/background.c: Use the correct form of FSF's name in the copyright
...
notice.
* src/boxes.c: Ditto.
* src/complete.c: Ditto.
* src/execute.c: Ditto.
* src/ext.c: Ditto.
* src/file.c: Ditto.
* src/filegui.c: Ditto.
* src/fileopctx.c: Ditto.
* src/fileopctx.h: Ditto.
* src/find.c: Ditto.
* src/hotlist.c: Ditto.
* src/key.c: Ditto.
* src/keyxdef.c: Ditto.
* src/layout.c: Ditto.
* src/learn.c: Ditto.
* src/listmode.c: Ditto.
* src/main.c: Ditto.
* src/panelize.c: Ditto.
* src/slint.c: Ditto.
* src/textconf.c: Ditto.
* src/tree.c: Ditto.
* src/treestore.c: Ditto.
* src/tty.c: Ditto.
* src/util.c: Ditto.
* src/utilunix.c: Ditto.
* src/view.c: Ditto.
* src/widget.c: Ditto.
* src/wtools.c: Ditto.
* src/x11conn.c: Ditto.
* vfs/cpio.c: Ditto.
* vfs/extfs.c: Ditto.
* vfs/fish.c: Ditto.
* vfs/ftpfs.c: Ditto.
* vfs/gc.c: Ditto.
* vfs/mcfs.c: Ditto.
* vfs/mcserv.c: Ditto.
* vfs/smbfs.c: Ditto.
* vfs/tar.c: Ditto.
* vfs/undelfs.c: Ditto.
* vfs/utilvfs.c: Ditto.
* vfs/vfs.c: Ditto.
* edit/bookmark.c: Ditto.
* edit/edit.c: Ditto.
* edit/edit.h: Ditto.
* edit/editcmd.c: Ditto.
* edit/editdraw.c: Ditto.
* edit/editkeys.c: Ditto.
* edit/editlock.c: Ditto.
* edit/editmenu.c: Ditto.
* edit/editoptions.c: Ditto.
* edit/editwidget.c: Ditto.
* edit/syntax.c: Ditto.
2007-09-24 09:28:32 +00:00
Pavel Tsekov
46d039e0e1
* edit/editcmd.c (edit_find_string): Fix an off-by-one error when matching
...
against a RE.
2007-05-02 11:22:01 +00:00
Pavel Tsekov
fb01c26098
* edit/editcmd.c (edit_replace_cmd): Disable scanf-printf replacement
...
if "Regular expression" is selected. Fix for savannah bug #19333 .
2007-04-27 08:53:50 +00:00
Roland Illig
45bb7dbe50
The file's mtime is checked before saving.
2006-11-17 21:50:33 +00:00
Pavel Tsekov
2a7a8fa19d
* edit/edit-widget.h (struct WEdit): Add new field.
...
* edit/editcmd.c (edit_save_file): Prompt whether to detach a hardlinked
file if in "Quick save" mode.
Return -1 to indicated that the user requested to cancel the operation.
(edit_save_as_cmd): Adjust the code to handle the new return value of
edit_save_file().
(edit_save_cmd): Likewise.
2006-03-17 15:41:21 +00:00
Pavel Tsekov
1ab4a2b41c
* edit/editcmd.c (edit_save_as_cmd): If saving of the file fails
...
remove only the _save_ lock.
2006-03-17 10:24:50 +00:00
Pavel Tsekov
fcc6f9bbea
* edit/editcmd.c (edit_new_cmd): Remove redundant call to
...
`edit_unlock_file()'.
(edit_ok_to_exit): Likewise.
2006-03-15 13:20:24 +00:00
Roland Illig
c29b321563
* edit.h: Removed the leading PATH_SEP_STR from EDIT_DIR, as the
...
latter is not an absolute directory.
* edit.c: Adjusted the users of EDIT_DIR.
* editcmd.c: Likewise.
* syntax.c: Likewise.
* src/user.c: Likewise.
2006-02-04 14:41:41 +00:00
Pavel Tsekov
b0ced33741
* edit/editcmd.c: Do not set the field histname' of
QuickWidget' unless
...
the widget is of type `quick_input'.
* src/boxes.c: Likewise.
* src/filegui.c: Likewise.
* src/hotlist.c: Likewise.
2006-01-30 09:22:33 +00:00
Pavel Tsekov
60658b4b35
* editcmd.c (edit_block_copy_cmd): Allow a block of selected
...
columns as created by Shift + F3 to be copied anywhere in
the editor area.
2006-01-27 15:00:59 +00:00
Leonard den Ottolander
689681db31
* edit/editcmd.c (edit_replace_dialog): Use Alt-m on pro&Mpt in replace
...
dialog. Alt-p is in use for the previous entry.
* po/*.po: Update pro&Mpt string.
2005-11-22 22:05:44 +00:00
Leonard den Ottolander
cd2061a883
* edit/editcmd.c (edit_replace_dialog): Replace duplicate hotkey.
...
* po/*.po: Update changed string.
2005-10-04 21:15:06 +00:00
Roland Illig
9be77996d6
Replaced the
...
editor_option_backup_ext_int hack with a string configuration
variable, which allows the backup extension to have more than
just four characters.
2005-09-07 08:54:11 +00:00
Roland Illig
d12e66fb17
* editcmd.c: Fixed some of the gcc warnings.
2005-09-05 01:25:34 +00:00
Roland Illig
3b1fcf6792
* editcmd.c (edit_completion_dialog): Code cleanup.
2005-08-15 21:35:33 +00:00
Leonard den Ottolander
f21564b9e6
* edit/choosesyntax.c: Create file. Menu option to override syntax
...
highlighting.
* edit/Makefile.am: Add choosesyntax.c.
* edit/edit.c (edit_init): Set option_auto_syntax to 1 on every invokation
of the editor.
* edit/edit.h: Pass char*** to edit_load_syntax(). Add parameters for
syntax dialog and override.
* edit/editmenu.c (menu_options): Add menu option to override syntax
hightlighting.
* edit/editoptions.c (edit_options_dialog): Pass option_syntax_type to
edit_load_syntax().
* edit/syntax.c (edit_read_syntax_file): Dynamically allocate and fill
syntax list pnames.
* edit/syntax.c (edit_load_syntax): Use char*** for syntax list.
* src/wtools.h: #include "widget.h" and remove redundant declarations
of Dlg_head and WListbox.
2005-07-24 13:37:58 +00:00
Roland Illig
073907ec5f
* usermap.c: Allow user-defined keyboard bindings for mcedit.
...
* usermap.h: Likewise.
* Makefile.am: Likewise.
* editcmd.c: Define new editor commands which had been coded
inline before.
This change also affects some other files.
* edit-widget.h: Invented a new type edit_key_map_type instead of
using long for.
* editkeys.c: Using that type.
2005-07-20 11:56:30 +00:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Pavel Roskin
7511729690
* edit.h: Eliminate edit_message_dialog macro - it's used
...
inconsistently. Fix all callers to use query_dialog().
2005-05-20 19:27:45 +00:00
Pavel Roskin
071f70d0e9
* edit-widget.h: Revert signedness fixes. We need unsigned char
...
for character classification.
* editcmd.c: Likewise. Use casts to suppress warnings instead.
Thanks to Roland Illig <roland.illig@gmx.de>
2005-05-10 23:04:32 +00:00
Pavel Roskin
21ea3f6740
* *.c: Remove duplicate includes.
2005-05-10 20:57:11 +00:00
Pavel Roskin
4adb9bfe13
* edit-widget.h: Use char instead of unsigned char to fix
...
warnings from gcc 4.0.
* editcmd.c: Likewise.
2005-05-03 23:40:15 +00:00
Pavel Roskin
b2999839e8
* editcmd.c (edit_replace_cmd): Restore correct behavior of
...
Shift-F4.
2005-03-17 21:18:23 +00:00
Roland Illig
ecc08f6c60
* edit.h: Removed unnecessary #include directives ...
...
* *.c: ... and added them here.
2005-02-22 17:00:36 +00:00
Roland Illig
5dbdfb07ba
* editcmd.c: Explicitly declared unused variables to make gcc
...
quiet.
2005-02-08 17:14:34 +00:00
Roland Illig
e5e3a8f87d
* editcmd.c: Fixed whitespacing issues.
...
* editdraw.c: Likewise.
* syntax.c: Likewise.
2005-02-07 20:32:17 +00:00
Roland Illig
2a281ad18d
* *.c: Removed unused parameters for static functions. Marked
...
unused parameters for global functions. Removed redundant
comments.
2005-02-07 20:08:01 +00:00
Roland Illig
05d2881a71
* *.c: Removed trailing whitespace.
2005-02-07 07:31:19 +00:00
Roland Illig
e8e0035587
* edit.h: Removed catstrs, as it is only used in editcmd.c.
...
* editcmd.c (catstrs): Changed declaration to be static.
2005-02-07 06:34:08 +00:00
Roland Illig
64eed6e12b
* edit.h (catstrs): Changed the return type to "const char *".
...
* editcmd.c (catstrs): Likewise.
* edit.c (user_menu): Added const qualifiers.
* editcmd.c: Likewise.
* syntax.c: Likewise.
2005-02-07 06:02:59 +00:00
Roland Illig
521be0ef82
* editcmd.c (edit_replace_cmd): Separated input and output arguments.
...
* editcmd.c (edit_replace_dialog): Code cleanup.
2004-12-02 21:02:07 +00:00
Andrew V. Samoilov
26e400227a
* editcmd.c (edit_replace_prompt): Fix warning with 'unused' label_len.
2004-12-02 08:31:52 +00:00
Roland Illig
badf915e39
* editcmd.c: Introduced a type edit_getbyte_fn to get rid of
...
the many function type casts.
2004-12-01 00:55:17 +00:00
Roland Illig
188b970477
* editcmd.c (edit_replace_prompt): Fixed codepage conversion bug
...
introduced in on 2004-09-25 by me.
2004-11-10 06:50:50 +00:00
Andrew V. Samoilov
5d5f56d4ee
* editcmd.c (regexp_error): Small text fix.
...
(edit_search_cmd): Likewise.
2004-10-11 05:31:29 +00:00
Roland Illig
7a505ea99d
* editcmd.c (edit_ext_cmd): Revoked my last change.
2004-09-26 11:42:17 +00:00
Roland Illig
8d75409e60
* editcmd.c (edit_ext_cmd): Don't delete the current block if no
...
block has been selected. In that case, just insert the output.
2004-09-25 21:39:11 +00:00
Roland Illig
d0a8da7cef
* editcmd.c (edit_ext_cmd): Replaced the old version with a new
...
one that uses ../src/pipethrough. The new version feeds the
currently selected block (or an empty input) into the command
which reduces the chance of a deadlock when the command tried
to read from stdin. It also allows the user to insert the output
of a command that has exited with a nonzero result. Another
feature is that it does not use temporary files.
2004-09-25 21:34:36 +00:00
Roland Illig
2a2b478f67
* syntax.c (this_try_alloc_color_pair): Added const qualifiers.
...
* editcmd.c (snprintf_p): Likewise. (edit_replace_prompt):
Simplified the code.
2004-09-25 20:53:32 +00:00
Andrew V. Samoilov
12d24222db
* edit.c (edit_clean): g_free handles NULL argument too,
...
no need for the comparison.
(edit_move_backward_lots): Likewise.
* editcmd.c (edit_set_filename): Likewise.
(edit_replace_cmd): Likewise.
(edit_search_cmd): Likewise.
(edit_sort_cmd): Likewise.
(edit_mail_dialog): Likewise.
* syntax.c (syntax_g_free): Likewise.
(edit_read_syntax_rules): Likewise.
2004-09-24 22:37:00 +00:00
Roland Illig
9c65d36bdd
* edit.c: Replaced NULL with (char *) NULL. Likewise for 0, where
...
NULL was meant.
* editcmd.c: Likewise.
* editlock.c: Likewise.
* editwidget.c: Likewise.
* syntax.c: Likewise.
2004-09-24 14:57:57 +00:00
Roland Illig
6c29de339b
* editcmd.c (edit_replace_prompt): Allocate the label text
...
dynamically instead of using catstrs. Don't handle
ENABLE_CHARSET specially.
2004-09-19 17:23:52 +00:00
Roland Illig
d5f70f2ab8
* editcmd.c (edit_replace_cmd): Added const qualifier.
...
* editwidget.c (edit_my_define): likewise.
2004-09-19 15:40:09 +00:00
Andrew V. Samoilov
32cdf184ba
* editcmd.c (edit_replace_prompt) [HAVE_CHARSET]: Warning hack.
2004-09-17 03:07:37 +00:00
Andrew V. Samoilov
0758929ef1
* editwidget.c (edit_adjust_size): Fix warnings.
...
(edit_dialog_callback): Likewise.
edit.c (menu_save_mode_cmd): Likewise.
2004-09-02 20:36:17 +00:00
Andrew V. Samoilov
f379b30232
* editcmd.c (edit_save_as_cmd): Add hotkey to dialog.
...
(edit_save_confirm_cmd): Likewise. (edit_new_cmd): Likewise.
(edit_load_cmd): Likewise. (edit_block_move_cmd): Likewise.
(edit_block_delete): Likewise. (edit_ok_to_exit): Likewise.
2004-09-01 22:40:45 +00:00
Roland Illig
03913065b4
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 23:27:40 +00:00
Roland Illig
243e84706e
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 18:45:56 +00:00
Andrew V. Samoilov
761406cfdf
* edit/editcmd.c: Fix buffer overflows in edit replace code.
2004-08-25 22:12:02 +00:00
Roland Illig
640f3a163c
Added more const-ness to variables and functions.
2004-08-16 17:49:57 +00:00
Roland Illig
6cefb6d3bb
Made the data type of some variables more appropriate.
2004-08-16 03:12:05 +00:00
Roland Illig
9902c1b885
Added missing initializers for QuickDialog.i18n.
2004-08-15 22:55:17 +00:00
Roland Illig
c6ecc5b303
Marked the last item of a QuickWidget array as NULL_QuickWidget.
2004-08-15 18:24:06 +00:00
Pavel Roskin
a7c0bbac62
* editcmd.c: Use input_expand_dialog() instead of input_dialog()
...
for loading and saving files.
2003-11-27 10:23:50 +00:00
Pavel Roskin
f51e86a184
* editcmd.c (pipe_mail): Eliminate g_strdup_printf().
...
(edit_complete_word_cmd): Fix possible buffer overflow.
2003-11-24 20:27:34 +00:00
Pavel Roskin
4bc92accff
* editcmd.c (edit_mail_dialog): Trivial clean-up.
2003-11-03 18:59:50 +00:00
Pavel Roskin
8bc40b44f0
Fix includes not to rely on $(top_srcdir) being in the include path.
2003-10-29 08:54:22 +00:00
Pavel Roskin
e90a7540a2
* edit.h: Make static all functions and variables that don't
...
need to be global. Remove unused functions. Adjust all
dependencies.
2003-10-14 21:48:40 +00:00
Pavel Roskin
e0f9b7ab83
* editcmd.c (edit_raw_key_query): Use straight widget order.
...
(edit_completion_dialog): Likewise.
* editwidget.c (edit): Likewise.
2003-09-12 21:30:29 +00:00
Pavel Roskin
e14f56d71b
* dlg.h: Replace DLG_BACKWARD to DLG_REVERSE with a better
...
defined meaning. Make it default to populate dialogs from the
top. Change all calls to create_dlg().
2003-09-12 21:22:01 +00:00
Pavel Roskin
0c794a4e95
Fix unsafe defines.
2003-09-10 21:33:12 +00:00
Pavel Roskin
13a02ef978
* dlg.h: Use new types for dialog callbacks.
...
(dlg_cb_fn): Swap msg and parm arguments for consistency with
widget callbacks. Adjust all dependencies.
2003-09-07 21:24:01 +00:00
Pavel Roskin
f8e00e7b6a
* widget.c (listbox_new): Remove "action" argument. Listboxes
...
without callbacks default to closing the dialog. Adjust all
users. This fixes double click on completion listbox.
* widget.h: Use uppercase names for the return values of the
listbox callback.
2003-09-01 07:31:56 +00:00
Pavel Roskin
58545e65c2
* widget.h: Use exact type in the listbox callback. Adjust all
...
legitimate users, remove all unused callbacks.
2003-09-01 05:43:20 +00:00
Pavel Roskin
2b9b18150e
* widget.h (button_new): Remove unused extra argument. Adjust
...
all dependencies.
2003-09-01 02:07:02 +00:00
Pavel Roskin
fab6e8a493
* widget.h: Completely get rid of tkname. Rename it to histname
...
for the input widget. Adjust all dependencies.
2003-09-01 00:18:37 +00:00
Pavel Roskin
10f65ac83d
* dlg.h (struct Widget): Remove tkname field.
...
(init_widget): Remove tkname argument.
* widget.h (listbox_new): Likewise.
Adjust all dependencies.
2003-08-31 23:29:49 +00:00
Pavel Roskin
d521073663
Add missing include.
2003-08-18 05:20:52 +00:00
Pavel Roskin
cf9acd036e
* edit-widget.h: Resurrect "dir" field in WEdit to store
...
directory for relative filenames.
* edit.c (edit_clean): Release edit->dir.
* editcmd.c (edit_save_file): Use absolute filename.
Temporarily disable safe save and backups on remote VFS because
it doesn't work - again.
2003-07-31 16:38:07 +00:00
Pavel Roskin
81d396da33
Remove useless initialization.
2003-07-31 16:32:30 +00:00
Pavel Roskin
dadbdd25e9
* editcmd.c (edit_quit_cmd): Rename to ...
...
(edit_ok_to_exit): ... this. Don't stop dialog - this function
is called by the dialog code.
* editwidget.c (edit_dialog_callback): Process DLG_VALIDATE
event. Don't exit it the user wants to continue editing.
* edit.c (edit_execute_cmd): Close the dialog - it will ask user
if necessary.
2003-07-21 03:54:47 +00:00
Pavel Roskin
7a5c9a3834
Kill another instance of using delete_file in a wrong place.
2003-07-20 23:34:29 +00:00
Pavel Roskin
9bc8df86ad
* editcmd.c (edit_quit_cmd): Don't save this command in the undo
...
stack. Don't force any refresh. Don't delete unsaved files, do
it ...
* edit.c (edit_clean): ... here. This ensures that unsaved
files from the mcedit command line are erased on Ctrl-n.
2003-07-20 23:24:25 +00:00
Pavel Roskin
59593d0e1b
* edit-widget.h: Eliminate unused explicit_syntax field.
2003-07-08 23:58:36 +00:00
Pavel Roskin
4a398f0ee7
* editcmd.c (edit_ext_cmd): Fix memory leak.
2003-06-05 17:55:50 +00:00
Pavel Roskin
69a16471a9
edit_ext_cmd(): trivial simplification.
2003-06-05 04:06:37 +00:00
Pavel Roskin
3cd4571dc9
Typos and britainisms.
2003-06-02 18:39:44 +00:00
Pavel Roskin
a66e5f511f
Add comment for edit_ext_cmd.
2003-05-30 21:14:07 +00:00
Pavel Roskin
bdc56f331b
* editcmd.c: Implement pasting the output of any external
...
command.
* editmenu.c: Add menu entries for that.
* editcmddef.h: Add new command CK_ExtCmd.
2003-05-30 21:06:10 +00:00
Pavel Roskin
d88b75838a
* editlock.c, editlock.h: New files. Implement file locking in
...
Emacs style, as documented in JED editor sources.
* Makefile.am: Add those files to build tree.
* edit-widget.c (WEdit): New property 'locked', 0 on edit_init.
* edit.c (edit_modification): Lock buffer on modification.
* editcmd.c (edit_save_cmd, edit_save_as_cmd): Handle locking
during file save.
(edit_load_file_from_filename): Unlock. Remove 2 duplicate
lines (handled by edit_init).
(edit_quit_cmd): Unlock.
2003-04-02 19:36:10 +00:00
Andrew V. Samoilov
4718c1105d
* editcmd.c (edit_block_process_cmd): Quote filename.
2002-12-19 13:01:34 +00:00
Andrew V. Samoilov
bce2ba99e9
* edit.h (edit_save_mode_t): New enum for file saving mode.
...
* editcmd.c (): Use edit_save_mode_t.
(pipe_mail): Quote to, subject and cc with name_quote().
* edit.c (edit_get_filter): Use quoted filename.
(edit_get_write_filter): Use quoted writename.
(edit_push_action): Use g_realloc().
2002-12-18 20:04:39 +00:00
Pavel Roskin
e0a241f570
* editcmd.c (edit_goto_cmd): Add support for negative line
...
numbers, which are counted from the last line. Use strtol(), so
hex numbers are supported as well.
2002-12-16 07:13:12 +00:00
Pavel Roskin
aaf569bd48
* edit.h: Don't inclide malloc.h. Use g_malloc() and g_free()
...
instead. Adjust all dependencies.
2002-12-15 18:55:53 +00:00
Pavel Roskin
ca658f44a6
* editcmd.c (edit_split_filename): Rename to edit_set_filename,
...
use g_malloc() and g_free() on edit->filename.
2002-12-15 02:40:38 +00:00
Pavel Roskin
46958e5630
s/Error trying to/Cannot/
2002-12-08 09:27:18 +00:00
Pavel Roskin
581cf41929
* edit.c (edit_open_file): Remove "text" and "text_size"
...
arguments. Adjust all callers.
2002-12-08 09:10:38 +00:00
Pavel Roskin
b64955fbbd
s/Failed trying to/Cannot/
2002-12-08 00:40:11 +00:00
Pavel Roskin
dceb3b50d4
* editcmd.c: Include dialog.h.
...
Reported by Frédéric L. W. Meunier <lists@pervalidus.net>
2002-12-04 07:20:19 +00:00
Pavel Roskin
dd7f5798fa
* edit.h: Remove "dir" field in WEdit - it's always an empty
...
string. Adjust all dependencies.
2002-11-30 19:50:51 +00:00
Pavel Roskin
9a4513aceb
* editcmd.c (edit_get_save_file): Remove first argument, it's
...
unused.
(edit_get_save_file): Likewise.
2002-11-30 18:49:20 +00:00
Pavel Roskin
29f1543919
* editcmd.c (edit_set_search_parameters): Use g_malloc().
...
(edit_complete_word_cmd): Use g_free().
2002-11-30 17:41:07 +00:00
Pavel Roskin
18de4488e3
* edit-widget.h: Move typedef WEdit and file names ...
...
* edit.h: ... here. Don't include edit-widget.h. Adjust all
dependencies.
2002-11-29 03:01:06 +00:00
Pavel Roskin
7969f851bb
* edit.h: Decentralize includes.
2002-11-14 19:38:26 +00:00
Pavel Roskin
e741be7a5d
* *.c: Fix all global functions without declarations - declare,
...
make static or remove.
2002-11-13 04:32:00 +00:00
Pavel Roskin
4061502e82
* editcmd.c: Warning fix for compilers that don't understand the
...
"const" keyword and variable size arrays.
2002-11-11 08:06:01 +00:00
Pavel Roskin
c626f5fdcc
* editcmd.c (edit_save_file): Restore ownership before access
...
mode, not after. Otherwise suid bit is lost.
Reported by Nerijus Baliunas <nerijus@users.sourceforge.net>
2002-11-06 18:09:40 +00:00
Pavel Roskin
b2fd313167
* edit.c: Include charset.h unconditionally, use new conversion
...
functions that don't require ifdefs.
* edit_key_translator.c: Likewise.
* editcmd.c: Likewise.
* editdraw.c: Likewise.
2002-10-30 23:56:49 +00:00
Pavel Roskin
a84b0fc9cd
Fix some of the most ugly abuses of mixed caps in English texts,
...
especially in button captions.
2002-10-21 22:26:39 +00:00
Pavel Roskin
31f1ddd081
Reuse message " Insert File ".
2002-10-21 05:31:47 +00:00
Pavel Roskin
b3614cbd31
Reuse text " Delete macro " with different capitalization.
2002-10-21 05:26:55 +00:00
Pavel Roskin
370797a3e2
Use "Cancel" and "Continue" without spaces.
2002-10-21 05:03:01 +00:00
Pavel Roskin
de81dccac6
Reuse " Save macro " message.
2002-10-21 04:31:14 +00:00
Pavel Roskin
d3f0a2f61b
Remove spaces around "Error" and "Warning" together with their translations.
...
Also remove spaces from "Quit" and "Search", but leave alone the
translations, that already have them without spaces.
2002-10-21 04:13:49 +00:00
Pavel Roskin
b79fe53f97
Remove unnecessary and incorrect declaration of edit_cursor_to_bol().
2002-10-08 04:50:20 +00:00
Andrew V. Samoilov
b8d41cad3b
* (edit_insert_column_of_text): Fix infinite loop if
...
block of text is copied past the end of the buffer.
By Paul Sheer <psheer@icon.co.za>.
(stacked): Don't initialize static arrays by zeros.
2002-10-02 15:44:35 +00:00
Pavel Roskin
da7e82d253
Global removal of RCS Id: flags.
2002-09-26 23:13:45 +00:00