1
1

564 Коммитов

Автор SHA1 Сообщение Дата
Pavel Roskin
ec00659ad4 * fixhlp.c: fixed compile errors and warnings 2000-09-01 18:49:01 +00:00
Pavel Roskin
097e88621d * dirhist.c, dirhist.h: removed 2000-08-30 21:15:58 +00:00
Pavel Roskin
6c7f15c285 * features.h, keys.h, textconf.h, x.h: added protection against
multiple inclusion
2000-08-30 20:51:03 +00:00
Pavel Roskin
95b52b597c * Make.common.in: removed hack for "make distcopy"
* doc/Makefile.in, edit/Makefile.in, gnome/Makefile.in,
gtkedit/Makefile.in, slang/Makefile.in, src/Makefile.in,
vfs/Make-mc.in: added "distdir" target. Now "make dist" works
for external builds.
* edit/Makefile.in, slang/Makefile.in: added "Makefile" target
2000-08-28 18:51:22 +00:00
Pavel Roskin
0784168a37 * features.c: include <sys/param.h> to avoid a warning 2000-08-23 18:35:32 +00:00
Pavel Roskin
efe9d499fc features.inc removed 2000-08-23 14:42:49 +00:00
Pavel Roskin
0cc57d07e0 * POTFILES.in: src/features.inc renamed to src/features.c
* main.c [HAVE_X]: print_mc_usage() and print_color_usage()
removed.
version() moved to ...
* features.inc: ... here, renamed to features.c
* main.h: status_using_ncurses moved to ...
* features.h: ... here
* cmd.c, text.c: include "features.h"
* cmd.h: include "panel.h"
* Makefile.in: changed to use features.h and features.c
2000-08-23 14:41:59 +00:00
Pavel Roskin
e828211662 Updated address of Free Software Foundation 2000-08-22 22:50:00 +00:00
Pavel Roskin
7264379530 * main.c [HAVE_GNOME]: disable chmod and chown - they were
broken and obsoleted by the "Properties" dialog
2000-08-22 22:07:26 +00:00
Pavel Roskin
c9cc154b7d * cmd.c [HAVE_X]: Removed dependency on status_using_ncurses 2000-08-22 20:32:50 +00:00
Pavel Roskin
923540c16f * man2hlp.c: Removed undocumented feature - when converting
to HTML some output would go to index.html instead of stdout
2000-08-22 19:37:33 +00:00
Pavel Roskin
56916dd9b8 gindex.pl: Enable warnings. Existing warnings fixed. 2000-08-17 21:04:02 +00:00
Pavel Roskin
86f713b070 Makefile.in: mc.hlp now depends on man2hlp.c instead of
man2hlp - this avoids some rebuilds of mc.hlp
2000-08-16 22:03:00 +00:00
Pavel Roskin
927a2ced37 Removed ync.hlp - no longer used
Added mc.hlp - now a generated file
2000-08-16 21:36:02 +00:00
Pavel Roskin
9d02eaba26 mc.hlp: removed. It's a derived file
Makefile.in: Fixed dependencies for $(srcdir)/mc.hlp
Build $(srcdir)/mc.hlp but allow a failure (e.g. no perl)
2000-08-15 21:27:55 +00:00
Pavel Roskin
9ae68cd8bc * Makefile.in, */Makefile.in: Fail if $(RMF) fails - it may
indicate serious problems. Fixes for uninstall.
* doc/Makefile.in: Rebuild if it is out of date.
2000-08-15 16:56:33 +00:00
Pavel Roskin
22f08d7ba1 Makefile.in: Don't compile mfmt, compile mcmfmt directly. 2000-08-15 14:29:04 +00:00
Andrew V. Samoilov
3a18921cd0 2000-08-08 Andrew V. Samoilov <sav@bcs.zp.ua>
* hotlist.c (done_hotlist): static tkn_buf, tkn_buf_length and
	tkn_length nullified after tkn_buf is freed to prevent crushes.

	(new_hotlist): became a macro

	* background.c (real_message_[123]s): title is really prepended
	by "Background process:" string now if mode == Background

	(background_attention): resstr NULLified to prevent warning
2000-08-08 16:21:25 +00:00
Pablo Saratxaga
a998bc8f4f made 8bit in/output the default 2000-07-21 13:15:53 +00:00
Andrew V. Samoilov
c69b346d55 display_mini_info () changed to use existed translates 2000-06-27 16:16:05 +00:00
Andrew V. Samoilov
fa7295db28 2000-06-26 Andrew V. Samoilov <sav@bcs.zp.ua>
* screen.c (display_mini_info): two different patterns are
	used now: for one file and for other cases
2000-06-26 17:06:50 +00:00
Jacob Berkman
30fba8c073 2000-06-20 Jacob Berkman <jacob@helixcode.com>
* configure.in: check for gnome-libs with window icon support

	* acconfig.h: add icon define
2000-06-20 19:50:31 +00:00
Jonathan Blandford
97c053032e 2000-06-16 Jonathan Blandford <jrb@redhat.com>
* gpopup2.c (handle_empty_trash): Finished trash can.  Now I just
	need an icon.

2000-06-15  Jonathan Blandford  <jrb@redhat.com>

	* gpopup2.c: Add "Move to Trash" as an option to the popup menu.
	Also, "Empty Trash" as appropriate.

	* gscreen.c (file_list_popup): Removed New File command.  It
	wasn't working, and didn't do anything useful, anyways.  Added
	"Empty Trash" to the options for the menu.
2000-06-16 18:16:44 +00:00
Pavel Machek
ce6e42f45a Support linux with devfs 2000-06-16 11:40:23 +00:00
Andrew V. Samoilov
40c1c50201 2000-06-14 Andrew V. Samoilov <sav@bcs.zp.ua>
* panel.h, util.[ch] (struct WPanel, size_trunc, size_trunc_sep): size
	parameters and WPanel.total field became double, thus, total size
	of selected files/directories is shown in the mini status correctly
	when it exceeds 2 GB.
2000-06-15 07:03:49 +00:00
Pavel Machek
fd6d7391dd 2000-05-25 Andrew V. Samoilov <sav@bcs.zp.ua>
* slint.c (init_pair): segfault fixed when mcedit -b called

	* user.c (check_format_var): error messages are localized

	(expand_format, user_menu_cmd): memory leaking for %e and %k macro
	fixed; segfault fixed when %m macro is used outside user_menu_cmd ()

	* ext.c (regex_command): memory leaking fixed when user extension
	file is absent

	(exec_extension): error message for changed mc.ext file format
	are localized -- does we really must be worry about mc 3.0 ?

	* widget.c (history_put): counter is initialized again
2000-05-25 16:21:42 +00:00
Miguel de Icaza
a1505f4319 Prepare for next 2000-05-15 23:51:19 +00:00
Miguel de Icaza
892feeb26c Two bug fixes from Valery, check the ChangeLogs 2000-05-12 20:05:58 +00:00
Miguel de Icaza
b028900fdd 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add macro %k it is block file name
       Add macro %e it is error file name
       Add macro %i it is cursor column indent of spaces, only for edit
       Add macro %y, it is syntax of current file in editor, only for edit
       Add condition y , it is syntax pattern of current file in edit
       Add macro %x it is extension of current file
       Add macro %m it is current menu filename

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
	Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
	edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
	(the message of David H. Martin <dmartina@usa.net>)

2000-05-05  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* src/user.c:	Add condition (x filename) into mc.menu .
			for "Open next a free console" and like.

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	src/user.c: fix segfault in chunk_alloc of glibc, when into condition
	of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* gtkedit/edit.c:
       Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
	* gtkedit/editmenu.c:        home: ~/.cedit.menu, local: .cedit.menu
	Marked block is access now from an user edit menu
	Access ~/.cedit/cooledit.block for insert to cursor place from
	user edit menu.
	Created system cedit.menu

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

    	* gtkedit/editdraw.c:
	Improved a status string of cool editor for best understand,
	and to add char,hex view.

2000-05-04 Richard Hestilow <hestgray@ionet.net>

	* gnome/gdesktop.c: Fixes snap to grid.
2000-05-09 01:18:27 +00:00
Pavel Machek
7c13fd5558 Cleanup from Andrew. 2000-04-18 08:58:42 +00:00
Timur Bakeyev
45c9c7b748 2000-04-15 Timur Bakeyev <mc@bat.ru>
* dir.c (string_sortcomp): strcmp() replaced with strcoll() to make
	directory listing LOCALE sensitive. I assume, strcoll exists everywhere,
	as it is in POSIX.
2000-04-14 08:58:37 +00:00
Timur Bakeyev
b04694fe79 2000-04-15 Timur Bakeyev <mc@bat.ru>
* dlg.c: Commited at last patch, that fixes screwed up right panel in
	a long format. Occasionaly, all my colors problems also gone. All thanks
	to Norbert Warmuth <nwarmuth@privat.circular.de>, who tracked down the
	problem, blames to me and Federico :)
2000-04-14 01:19:58 +00:00
Timur Bakeyev
592e809966 2000-04-12 Timur Bakeyev <mc@bat.ru>
* widget.c ([forward|backward]_word): Changed one more time - now it
	skips alpnums and THEN spaces+punct. That gives almost the same re-
	sults, but twice quicker. Hope, this will be accepted.
2000-04-13 21:06:30 +00:00
Timur Bakeyev
7ea86f14c0 2000-04-06 Timur Bakeyev <mc@bat.ru>
* widget.c ([forward|backward]_word): Changed logic of moving - now,
	it skips only spaces+punct OR alnum. Reason to have it deleting lines
	like "lynx http://www.gnome.org", where "lynx http:" part was erased
	in one operation. That's nasty, IMHO. Made this a separate commit, so,
	if it seriously breaks compatability it's easy to revert it. Still hope,
	nobody'll do that.
2000-04-09 23:13:33 +00:00
Timur Bakeyev
b192f71a88 2000-04-06 Timur Bakeyev <mc@bat.ru>
* file.c, widget.[ch]: Fixed long existing problems with filenames
	and input widgets, then char is greater than 128. They were processed
	incorrectly. As usual, char != unsigned char problem.

2000-03-03  Bjrn Eriksson  <mdeans@algonet.se>

	* Similar patches came from Andrew V. Samoilov <sav@bcs.zp.ua>.

	* mad.[ch]: Some functions wrongly by-passed mad_alloc*() (causing
	problems when later g_free()ed.

	* Added mad_strndup().

	* Repeated code collected in mad_fatal_error().

	* The gcc-extension/C99-standard variable argument macros (adding
	__FILE__, __LINE__ before ', ...') would be nice.

	* Alloc_idx_hint and code added, the mad code was way too slow for my
	poor computer. A hash-table would be nice.

	* (mad_strconcat, mad_strdup_vprintf): g_malloc and g_new are
	undefined at the top of mad.c, so mad_alloc must be used.
2000-04-09 22:37:50 +00:00
Norbert Warmuth
e37737c0c9 2000-02-23 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/ftpfs.c: Definition of PORT changed in the middle of ftpfs.c
with unexpected side effects (only when HSC_PROXY was
defined). Introduce HSC_PROXY_PORT and FTP_COMMAND_PORT and use
where appropriate.

(dir_load): Do not hard code the directory cache timeout to 10
seconds. Instead use the setting from Options/Virtual VFS ...

* vfs/fish.c (file_store): honour changed semantics for return value
(on error -1 is expected).

* vfs/ftpfs.c (file_store): dito


* gtkedit/editcmd.c (edit_replace_prompt): fix incorrect
initialization of array of structure (gcc version 2.96 20000131
chokes on it).

* lib/mc.hint: C-y and not C-u can be used to insert text in input
lines (e. g. text which has been deleted with M-d).

* configure.in: Fix the extfs-configure-fragment-in-final-output bug

* src/main.c (parse_control_file): add missing right parentheses

* src/boxes.c: fix incorrect initialization of array of structure (gcc
version 2.96 20000131 chokes on it).
2000-02-23 07:43:14 +00:00
Paul Sheer
1b2472c9ef *** empty log message *** 2000-02-18 11:34:58 +00:00
Pavel Machek
1c96509f76 2000-02-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* setup.c (load_setup): remove duplicate loading of anonymous
	passwd by do_load_string(), it is doing by
	ftpfs_init_passwd. (Patch by sav@bcs.zp.ua)
2000-02-11 00:33:28 +00:00
Dan Winship
221bc1cb83 * mountlist.c: use a better feature test for distinguishing
old-style 4.4BSD getmntinfo from new-style 4.4BSD getmntinfo.
	(NetBSD defines MOUNT_UFS, etc, but as strings rather than
	integers.)
2000-02-07 22:25:00 +00:00
Pavel Machek
1469e74810 Fixes from "David H.Martin" <dmartina@usa.net> 2000-02-03 15:00:12 +00:00
Pavel Machek
06744a04b7 Avoid segfault by ftpfs_init_passwd 2000-02-02 16:57:51 +00:00
Pavel Machek
8dcb55ce88 2000-02-01 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* gicon.c (gicon_init): make missing icons non-fatal error

        * gmain.c, gdesktop.c: added option not to display desktop icons
2000-01-31 15:05:23 +00:00
Pavel Machek
5124817446 2000-01-24 Andrew V. Samoilov <sav@bcs.zp.ua>
* main.c (parse_control_file): add extra secutity checks for
	 control file. It cannot be group/world writable;
	(ctl_x_map, default_map, argument_table): added const qualifier.

	* fixed segfault in print_mc_usage

	(pavel@ucw.cz did the commit)
2000-01-24 13:27:43 +00:00
Pavel Machek
28eb60242d ftpfs can not handle homes nicely. Is there good way to solve this? 2000-01-24 12:35:52 +00:00
Miguel de Icaza
0a1238fe83 2000-01-03 Aaron Lehmann <aaronl@vitelus.com>
* gdesktop.c, gdnd.c, gaction.c, gicon.c,
	gnome-file-property-dialog.c, gpopup.c, gpopup2.c, gprefs.cgmain.h,
	setup.c: Add option of using GNOME "magic" routines to determine file
	types. This makes MC intelligently look at the data in the file to see
	what type of file it is, rather than looking at the filename extension.
	This slows down MC quite a bit, so it has been made an optional
	preference item. Type detection is expected to improve as mime-magic
	matures.
2000-01-23 22:25:26 +00:00
Miguel de Icaza
71f50408e0 2000-01-02 viro@math.psu.edu
* src/subshell.c: Reason: in feed_subshell() we are trying to read
	from shell pty,check for retval==-1 && errno != EIO. In that case
	we flame and exit. Otherwise we are trying to write what we've
	read. Good luck doing it if we got errno==EIO, which is _normal_
	for situation when shell just died. Resulting write(1,foo,~0U) is
	somewhat excessively, erm, verbose.
2000-01-02 23:52:49 +00:00
Pavel Roskin
36facc201c vfs/vfs.h: use #warning only for gcc. Not all compilers
understand it
src/main.c, src/view.c: #warning's replaced with FIXME's.
They were not for users, but for developers
1999-12-22 04:04:23 +00:00
Miguel de Icaza
82f7db351a Small fixes from Sav 1999-12-10 16:04:35 +00:00
Miguel de Icaza
b8c215a830 Patch to support +line 1999-12-08 22:15:13 +00:00
Pavel Machek
bcfd532240 1999-12-08 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* ftpfs.c: basically replaced ftpfs with new one. Unlike the
        previous one, this uses new direntry.c layer, so shared_ftp_fish.c
        can be killed.

        This is new code, so beware.
1999-12-08 11:39:14 +00:00