Commit Graph

122 Commits

Author SHA1 Message Date
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
Paul Sheer c08fe849ea links to ../gtkedit directory 1998-09-15 21:30:31 +00:00
Paul Sheer 2d93c2e0ff removeing these files. Makefile will create symlinks 1998-09-15 21:20:29 +00:00
Paul Sheer f36e99f150 *** empty log message *** 1998-09-14 21:26:41 +00:00
Paul Sheer c57d9e424e *** empty log message *** 1998-09-14 21:20:01 +00:00
Pavel Roskin 66919ad808 Added "../" before some includes in edit.h to avoid unnecessary "-I"
options for the PC port makefiles.
1998-08-12 14:57:59 +00:00
Pavel Roskin 943177c616 makefile (small letters) should be highlighted too (as Makefile) 1998-07-31 08:06:37 +00:00
Paul Sheer df04c09b47 * edit.c, editwidget.c, * syntax.c: Syntax
editdraw.c, editmenu, editcmd.c:   highlighting for Pascal
Added column text highlighting     added.
and block movements.
1998-07-14 23:39:15 +00:00
Paul Sheer 3cc82b6f4a editdraw.c, editmenu, editcmd.c: highlighting for Pascal
Added column text highlighting     added.
	and block movements.
1998-07-14 23:17:26 +00:00
Vincent Renardias d23d4ad0de Fri, 26 Jun 1998 15:10:25 +0200 [Vincent]
* Contributed by Martin Schulze:
  + de.po: more translated strings
  + edit.c/file.c: Fix typo.
* Updated fr.po accordingly.
1998-06-26 13:12:22 +00:00
Norbert Warmuth 5b31e4afe5 Mon May 25 23:32:35 1998 Norbert Warmuth <k3190@fh-sw.de>
* editdraw.c (print_to_widget): Ifdef'd SLang specific code in order
to make it compile with ncurses. Syntax highlighting in the
internal editor is already disabled when SLang isn't used.
1998-05-25 21:40:00 +00:00
Pavel Machek 0a4550ca9f Mcedit: changed some #include's. This makes it possible to remove some
-I options from makefiles, at least for the PC port
1998-05-12 16:47:52 +00:00
Paul Sheer 70db5514a2 more minor syntax highlighting mods 1998-05-12 16:00:11 +00:00
Norbert Warmuth 293b05aaac Sun May 10 13:21:45 1998 Norbert Warmuth <k3190@fh-sw.de>
* edit/syntax.c: Disable debug messages on stderr.

* edit/edit.h: Added missing _()


Sun May 10 14:51:03 1998  Norbert Warmuth  <k3190@fh-sw.de>

* ftpfs.c (__ftpfs_chdir): CWD command wasn't sent at all. This
optimation is wrong because for directories containing spaces we
have to "CWD <pathname>" and "LIST -la" instead of
"LIST -la <pathname>".
I implemented a different optimation. Now ftpfs_chdir only stores
the new working directory and sets a flag. __ftpfs_chdir is called
when we really want to change the directory on the ftp server.

(resolve_symlink): Log the directory listing to the logfile.

* ftpfs.h (struct ftpfs_connection): Added a (per connection)
cwd_defered flag.


Sun May 10 13:27:50 1998  Norbert Warmuth  <k3190@fh-sw.de>

* widget.c (handle_char): Don't try to to delete default text in
input widget more than once. Right after MC's start copy_filename
(ESC Enter) failed because a flag wasn't cleared while characters
were stuffed into the commandline (Andrej reported this bug).

* main.c (copy_readlink): usr mc_readlink instead of readlink

* file.c: Changed default for the copy/move option "dive into
subdir if exists" to off (note: this was only possible after the
change in setup.c).

(copy_dir_dir): Activated the previously uncommented code which
implements "Dive into subdirs". Even when there's no case where we
actually would like that behaviour it is a documented feature.
Though I don't wanted to change the default behavour. Hence the
option change.

(file_mask_defaults): set dive_into_subdirs

(file_mask_dialog): Fix for debian Bug #20727: Move operation with
"[ ] Dive into subdir if exists" and destination filename not
wildcarded. If destination is an existing directory then files
will be moved into this directory. If destination is not an
existing directory then src file will be renamed (one file
selected) or an error will be displayed (more than one file
selected).

(file_mask_dialog): made the option "Using shell patterns" local
to the current copy/move operation, i.e. this option is always
initialized with the global options's value. Previously it affected
the global Options/Configuration/shell Patterns.
Another possiblilty would be to make the global option a default
option on startup and keep changes in the copy/move dialog
(without saving these changes with save setup).

* setup.c: Don't save and load options which can be changed
outside the options menu. For example I don't like that
preserve_uid_gid and dive_into_subdirs from the copy/move dialog
are saved and restored (strange, what about the other options from
this dialog?).
It would be much cleaner to make these option read-only. This way
one could edit ~/.mc/ini to provide default option setting on
startup and "Save setup" wouldn't have side effects outside the
option's menu.

Sun May 10 13:24:20 1998  Norbert Warmuth  <k3190@fh-sw.de>

* doc/mc.1.in, doc/mc.sgml, mc.hlp: Updated to reflect new default
for dive into subdirs.
1998-05-10 13:41:43 +00:00
Miguel de Icaza e82bcc2bfc Various changes:
- Fix for the gmc crashes when no window is open and you
	  start a program.

	- Bad attempts at fixing the sigwinch propagation.

	- Internationalization fixes from Alex (ru.po and
	  bunch of updates to the text mode edition to deal
	  wiht this).

Miguel.
1998-05-06 20:04:08 +00:00
Paul Sheer aa95c74fd2 syntax highlighting fixes 1998-05-06 12:22:03 +00:00
Paul Sheer 251a78b2bd ALT('H') now does a directory history list.
syntax higlhighting support for LaTeX 2.09 (prelimninary) (did
I enter this already?). Syntax high. fixes.
1998-05-02 12:31:41 +00:00
Paul Sheer f6e27d5018 syntax highlighting segfault fix 1998-05-01 09:32:43 +00:00
Paul Sheer eec0d1d3b9 Syntax highlighting optimisations, bug fixes,
and support for ChangeLog entries and Makefiles
1998-04-29 01:15:19 +00:00
Miguel de Icaza 8c34e0837f i18n compilation fixes for the new gnome-i18n.h changes.
fix a bug in the panel-widget selection.
i18n changes from Andrej Borsenkow.
Menus renamed, better texts -- thanks Havoc.
lav's fixes for curses compilation.

Miguel
1998-04-28 04:29:19 +00:00
Paul Sheer 7beb4c1266 optimisations to syntax highlighting 1998-04-25 11:52:29 +00:00
Paul Sheer 38a912e1e2 editor updated to reflect cooledit-3.6.0
syntax highlighting added and doc files updated
1998-04-24 15:18:08 +00:00
Paul Sheer 003c7b8e49 updated to reflect cooledit 3.6.0 1998-04-24 13:52:53 +00:00
Miguel de Icaza 1f9fcf18e0 Andrej Borsenkow's i18n compilation fixes 1998-04-14 16:53:04 +00:00
Miguel de Icaza 26f6e92abf Fri Apr 3 05:23:20 1998 Alex Tkachenko <alex@bcs.zp.ua>
* configure.in: ALL_LINGUAS test added, to allow specify list
	of languages to be installed by setting env variable before
	configure. If it is empty, it defaults to full list.

	* src/menu.h menu_entry.{hot_pos, is_dupped} dropped

	* src/menu.c: consistency fixes: pull-down menu items are now
	accessible either with arrow keys or with hotkeys, denoted with &
	(and highlighted). (key combinations, placed to the right of items
	intended to be used from outside the menus). Freeing menu entries
	removed as it no longer needed

	* src/main.c, edit/editmenu.c: menubar init code is changed to conform
	above fixes.

	* edit/edit.h: use of "Cancel" in error_dialogs replaced with
	"Dismiss", to avoid collisions in translation of "Cancel" in other
	places with this case.

	* src/boxes.c: select_format() and it's support removed, as it is
	obsoleted by input line history feature. display_init()/display_callback
	fixed to suite i18n changes. sort_box() - alike.

	* src/option.c: pause_options added &'s and gettext calls to expand
	statically assigned values.

	* src/widget.c: (radio_callback) hotkey recognition is changed to
	&-notation, rather than simple uppercase.

	* src/dlg.c: (dlg_try_hotkey) plain symbol comparison replaced with
	call to isalpha(), this fixes errorneous exit from input line, when
	button hotkey is 8-bit NLS char.
1998-04-03 20:00:00 +00:00
Miguel de Icaza 60c595aa91 1998-03-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* menu.c (destroy_menu): Implement destroy_menu for all of the
	ports as a routine that frees the menu entries if
	internationalization has been enabled.

	* wtools.c (quick_dialog_skip): Do not i18n any string that is empty.

Sun Mar 29 23:02:09 1998 Alex Tkachenko <alex@bcs.zp.ua>

	* src/menu.[ch]: new member to menu_entry (hot_pos) introduced to make
	internationalized version of menu use externally defined hotkeys
	(denoted with preceding &). create_menu() fixed to load intl text of
	the entries. Some fixes around menu.c to enable usage of reloaded
	hotkeys.

	* main.c, editmenu.c: menu initialization code fixed to conform new
	menu structure. editmenu init code includes N_(..) now.

	* menu.c, layout.c, editwidget.c: bar menu items displacement is made
	dynamically upon initialization and window size changes. Mouse event
	processing is fixed accordingly.

Sat Mar 28 13:18:36 1998 Alex Tkachenko <alex@bcs.zp.ua>

	* src/screen.c: (repaint_file) last patches to format_file() in the
	same file broke appearance of panels in brief mode -- fixed.
1998-03-30 20:59:37 +00:00
Pavel Machek 303cd55bce Minor changes for IBM CSet.
#include <direct.h> is not needed anymore
We need #include <io.h> somewhere
1998-03-29 22:23:24 +00:00
Miguel de Icaza ac70e34d02 MC goes Internationallsls./gmc Spanish translation almost complete -mig 1998-03-25 05:16:00 +00:00
Pavel Machek b8da58830e Numerous patches for OS/2 and Windows NT. lstat detects executables
(stat is broken in Borland C). Help looks better.
1998-03-23 23:06:36 +00:00
Miguel de Icaza 179eae1dd0 More .cvsignore for mc 1998-03-07 20:40:21 +00:00
Vincent Renardias 4ab0e653f8 Sun, 1 Mar 1998 05:05:34 +0100 [Vincent]
* fr.po: Nouveau Fichier.
1998-03-01 04:18:33 +00:00
Miguel de Icaza eb6b3842ab Initial revision 1998-02-27 04:54:42 +00:00