Commit Graph

81 Commits

Author SHA1 Message Date
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
Pavel Roskin
3bfbd5368a * edit/edit_key_translator.c (cooledit_key_map): Use Ctrl-O for
subshell, not for "Open file...".
(emacs_key_map): Likewise.
2001-08-12 18:04:16 +00:00
Pavel Roskin
7e625c9153 * edit/Makefile.in: Allow running "make install" before "make all".
* gtkedit/Makefile.in: Likewise.
2001-08-01 16:17:52 +00:00
Pavel Roskin
3fa13073a6 * edit/edit_key_translator.c (cooledit_key_map): Bind
Ctrl-Shift-Up and Ctrl-Shift-Down to scroll with highlight.
From Steef Boerrigter <sxmboer@sci.kun.nl>
2001-07-10 19:22:10 +00:00
Pavel Roskin
0c08ee1fdd * edit/Makefile.in: Make edit.o depend on edit_key_translator.c.
* edit/edit_key_translator.c (cooledit_key_map): Add support
for bracket matching on Alt-B.
* gtkedit/gtkeditkey.c: Likewise.
From Steef Boerrigter <sxmboer@sci.kun.nl>
2001-07-10 15:05:55 +00:00
Pavel Roskin
998bbab143 * edit/edit_key_translator.c [HAVE_CHARSET]: Add charset
conversion support.
From Walery Studennikov <hqsoftware@mail.ru>.
2001-06-05 23:04:38 +00:00
Pavel Roskin
b0593ec1e2 * Make.common.in: Remove obsolete dependency tracking system.
* configure.in: Likewise.
* edit/Makefile.in: Likewise.
* gnome/Makefile.in: Likewise.
* gtkedit/Makefile.in: Likewise.
* slang/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* vfs/Make-mc.in: Likewise.
* src/depend.awk: Remove.
2001-05-27 04:34:12 +00:00
Pavel Roskin
d1fcdbf64a * edit/Makefile.in: Don't install or uninstall mcedit -
it cannot be installed before mc on systems without symlinks.
* gtkedit/Makefile.in: Likewise.
* src/Makefile.in: Install mcedit (if enabled) and mcview.
Uninstall them.
2001-01-11 16:48:13 +00:00
Andrew V. Samoilov
85e1a9472d key_map, cooledit_key_map, emacs_key_map, key_pad_map are constified 2000-10-31 17:49:47 +00:00
Pavel Roskin
c69627ffdd * configure: Always include Make.common as file, otherwise
"make distclean" breaks.
        * edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
        slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: $(RMF)
        replaced with "rm -f" - the stangard says that "rm" is portable.
        Ditto $(MV). Adjusted *clean targets to match those in
        Automake. Removed "cross" target.
2000-09-23 05:14:31 +00:00
Pavel Roskin
769b082e1b * Make.common.in: Added installcheck to placate "make distcheck"
* configure.in, Make.common.in, doc/Makefile.in,
        edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
        slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: Replacing
        variable MKINSTALLDIRS and builddir with Automake-compatible
        mkinstalldirs and top_builddir.
        * doc-gnome/C/Makefile.am: Only maintainers regenerate html
        files. Added uninstall-local target.
2000-09-18 04:57:29 +00:00
Pavel Roskin
7b7cb9878d * doc/Makefile.in, edit/Makefile.in, gnome/Makefile.in,
gtkedit/Makefile.in, slang/Makefile.in, src/Makefile.in,
vfs/Make-mc.in: preserve timestamp on "make distdir", otherwise
mc.pot becomes out of date in the tarball.
2000-09-15 06:05:22 +00:00
Pavel Roskin
35003a05c3 * edit/Makefile.in: Don't link headers, add extra includes
to CPPFLAGS instead. Put links to the build directory.
Remove the hack with "mx" - it is not needed anymore.
2000-09-14 16:50:54 +00:00
Pavel Roskin
969d11e456 * configure.in: remove any manupulations with top_srcdir.
Don't change CPPGLAGS when the internal editor is enabled,
instead do it ...
* edit/Makefile.in, gtkedit/Makefile.in: ... here
2000-09-14 15:31:25 +00:00
Pavel Roskin
91e7526108 * configure.in, Make.common.in, doc/Makefile.in,
edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: rootdir
changed to top_srcdir for Automake compatability
2000-09-14 15:12:00 +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
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
86a19caf07 Added mx 2000-08-08 14:12:07 +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 Roskin
43409be694 edit/edit_key_translator.c: interpret code 0177 as
backspace unless recognized otherwise
2000-02-25 15:01:46 +00:00
Elliot Lee
0bd6d7504a Have 'make dist' work with builddir != srcdir. 1999-08-19 20:17:40 +00:00
Paul Sheer
7785ef44db *** empty log message *** 1999-03-21 15:42:55 +00:00
Paul Sheer
b8a5b011a5 *** empty log message *** 1999-03-21 15:39:33 +00:00
Paul Sheer
eb88159c64 *** empty log message *** 1999-03-21 01:57:34 +00:00
Norbert Warmuth
d37e959b67 Fri Mar 19 06:32:36 1999 David Martin <dmartina@usa.net>
* po/es.po: update

* edit/edit_key_translator.c: Added missing translation tags.
1999-03-19 06:14:56 +00:00
Miguel de Icaza
5f2350b395 more makedistcheck fixes 1998-12-16 05:04:13 +00:00
Pavel Roskin
ec5351e438 "make dist" is working again 1998-09-18 19:45:27 +00:00
Norbert Warmuth
1d7c27d090 Thu Sep 17 07:32:23 1998 Norbert Warmuth <k3190@fh-sw.de>
* Makefile.in: After creating symlinks invoke another instance of
make to build libvfs.a. Otherwise make will not know how to build
the object files if symlinks have been created.
Added target cleansourcelinks (invoked with make distclean).
1998-09-17 05:44:03 +00:00
Paul Sheer
0978691d5d *** empty log message *** 1998-09-15 21:31:41 +00:00