Commit Graph

5131 Commits

Author SHA1 Message Date
Pavel Roskin
9e24e41f9e * syntax/perl.syntax: Add separate context for function
declarations and definitions, highlight prototypes.
2002-12-19 21:32:34 +00:00
Andrew V. Samoilov
b6aa32d9b2 * extfs/patchfs.in: Fix patch size calculation. Use bytes to
count size in bytes, not characters (in multibyte encodings char
can be two or more bytes wide).
2002-12-19 18:20:11 +00:00
Pavel Roskin
1df0641954 * extfs/patchfs.in: Don't rely on tell() - it doesn't always
work on pipes.  Determine patch size by adding together the line
lengths.
2002-12-19 17:36:58 +00:00
Pavel Roskin
6ee35e2c55 * extfs/patchfs.in: Allow diffs with function names after "@@".
Don't consider an empty newline as the end of the diff.
2002-12-19 16:51:04 +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
Andrew V. Samoilov
76a86209d4 * extfs/patchfs.in (openread): Use quoted $archive when opening
archives.
(list): Set $archive to quoted $_[0].
2002-12-18 14:31:54 +00:00
Pavel Roskin
e12b5ddcb6 * hotlist.c (update_path_name): Update the title even when
opening an empty group.
2002-12-18 05:45:02 +00:00
Pavel Roskin
1f05866c5e * extfs/rpm: Don't check package signatures - it creates a lot
of noise on stderr if the signature is missing.
2002-12-17 00:32:38 +00:00
Marco Ciampa
8efa187646 Just a little trimming... 2002-12-16 19:30:59 +00:00
Marco Ciampa
b3fb20944c Last fuzzy updated... 2002-12-16 19:12:36 +00:00
David Martin
ef8331e3ac Update. 2002-12-16 13:17:06 +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
c820b04bfd Update. 2002-12-16 06:44:14 +00:00
Pavel Roskin
0e1af8e457 * dir.c (do_load_dir): Add an error message if mc_opendir()
fails.
(do_reload_dir): Likewise.
* screen.c (do_enter_on_file_entry): Add an error message if
do_cd() fails.
2002-12-16 06:42:15 +00:00
Pavel Roskin
1b2f7e7d13 s/Dir cache/Directory cache/
"Dir cache" should be in geek.po :-)
2002-12-16 06:04:02 +00:00
Pavel Roskin
446e1ebb08 Add for 4.6.1:
Filters in the editor should operate on the open file.  They don't work
on VFS now.  Don't close and reopen the file.
2002-12-16 05:42:54 +00:00
Pavel Roskin
0454cf6eb1 * edit.c: Use edit->stack_disable instead of static variable. 2002-12-16 05:21:42 +00:00
Pavel Roskin
74714227fb Fix closing the same file twice. 2002-12-16 05:01:02 +00:00
Pavel Roskin
6743211748 * view.c (do_view_init): Use non-blocking open() followed by
fstat() to avoid race conditions.  Unset O_NONBLOCK flag after
the open().
2002-12-16 03:43:49 +00:00
Pavel Roskin
382930fbf6 * cmd.c (mkdir_cmd): Don't try to create a directory with empty
name.
2002-12-16 02:12:22 +00:00
Pavel Roskin
857565ca21 * edit.c (check_file_access): Use non-blocking open() followed
by fstat() to avoid race conditions.  Don't ask users to
recompile the editor.
2002-12-16 01:59:49 +00:00
Pavel Roskin
2eb1245290 Comment change. 2002-12-16 01:38:24 +00:00
Pavel Roskin
8148b4973c * edit.c (edit_reload): Don't initialize edit->macro_i, because
edit_init() takes care of it.
* editwidget.c (edit): Likewise.
2002-12-16 01:27:44 +00:00
Pavel Roskin
5c76f171ac * global.h: Add replacement for O_NONBLOCK. 2002-12-16 00:41:06 +00:00
Pavel Roskin
2048c47dfb Comment change. 2002-12-15 22:58:33 +00:00
Pavel Roskin
1343933d07 Comment change. 2002-12-15 19:42:04 +00:00
Pavel Roskin
1a4ad10ec8 Comment changes. 2002-12-15 19:38:18 +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
77bd4c7f55 * edit.c (edit_load_file): Merge edit_open_file(). Disable fast
loading on non-local VFS because the file size can be wrong.
(init_dynamic_edit_buffers): Split into edit_init_buffers() and
edit_load_file_fast().
2002-12-15 09:47:25 +00:00
Pavel Roskin
433726e56b * (edit_init): Move file loading to ...
(edit_load_file): ... a separate function.
2002-12-15 08:07:02 +00:00
Pavel Roskin
6716e7ecff * edit.c (init_dynamic_edit_buffers): Remove unused code to
support loading text from buffer.
2002-12-15 06:53:52 +00:00
Pavel Roskin
ceb3e9eb60 Comment fixes. 2002-12-15 02:54:00 +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
90821fb2b8 * extfs/mailfs.in: Fixed bug when opening empty mailbox. Added
proper message size (not number of lines, like before) counting.
2002-12-14 20:05:29 +00:00
Pavel Roskin
5e039bf28f Comment fixes. 2002-12-14 05:31:12 +00:00
Pavel Roskin
9b4e62ef79 * extfs/uha.in (mchafs_list): Don't parse the month, use
DD-MM-YYYY output.
(mchafs_copyout): Use cat, not mv, because the files can be on
different filesystems.  Use "q" and don't suppress stderr.
2002-12-14 05:10:52 +00:00
Pavel Roskin
1ef9add08b Use lha, not lharc. 2002-12-14 04:41:19 +00:00
Pavel Roskin
6c465b4a6f * extfs/ulha.in: Don't suppress stderr. 2002-12-14 04:39:09 +00:00
Pavel Roskin
5773018d1f Add hp48 and uarj. 2002-12-14 04:29:58 +00:00
Pavel Roskin
f7a80d36ba * extfs/uzoo.in: Always use "q" option to avoid processing junk.
Always create symlink, do it in a safer directory.
2002-12-14 04:29:12 +00:00
Pavel Roskin
c72422925b Substitute hp48 and uarj. 2002-12-14 02:47:30 +00:00
Pavel Roskin
9a8ba89854 * extfs/uarj.in: New script working with open-source ARJ.
Contributed by Viatcheslav Odintsov.
* extfs/uarj: Remove.
* extfs/hp48: Rename to ...
* extfs/hp48.in: ... this.  It needs awk substitution.
* extfs/Makefile.am: Adjust for the above.
2002-12-14 02:46:03 +00:00
Pavel Roskin
4a8f3f2c2b Highlight Perl sources with @PERL@ on the first line. 2002-12-13 08:11:25 +00:00
Pavel Roskin
05a0c9236d * extfs/ulha.in: Strengthen quoting. 2002-12-13 08:07:33 +00:00
Pavel Roskin
5c038d2f12 * extfs/uha.in: Strengthen quoting. Remove unnecessary space
after filename.  Update URL.  Use safer temporary directory.
2002-12-13 07:53:20 +00:00
Pavel Roskin
c055823512 * extfs/uarj: New list-only implementation that doesn't need
patched unarj.
* extfs/unarj.diff: Remove.
* extfs/Makefile.am: Remove extfs/unarj.diff.
2002-12-13 07:20:54 +00:00
Pavel Roskin
0b9116d955 Restore setting current time if the date cannot be parsed. 2002-12-13 05:22:09 +00:00
Pavel Roskin
72da5347c4 Fix Y2K problem once again. 2002-12-13 05:08:14 +00:00
Pavel Roskin
84f178c86f * extfs/patchfs.in: "copyin" method added (with compressed files
support).  Files inside archive now have '.diff' extension.
Temporary file not needed any more.  Proper handling of
"/dev/null" filenames, filename heuristics based on diff info
page.  Set files owner and group as the archive.
* extfs/audio.in: CDDB_TIMEOUT variable added.
2002-12-13 04:42:08 +00:00