Re: Mc Digest, Vol 68, Issue 18

Who can tell how to use:

man mc

Menu File Edit

 Sincerely yours,
 Yury V. Zaytsev
AFAICS you are just guessing.
I need info from someone who's been there and done it.

In writing my analyses, which I've now deleted,
I've discoved that mc+cedit gives a structured editor for your chosen language,
which is amazing, considering that structured editors are major projects.

Editable templates for some languages: perl, 'shell', C..etc.;  are included
and you can add your own/modifications/extentions.

Importantly, the template which is selected during the mc-edit session, is
determined by the extension [and initial content?] of the file being edited.

So the <F9> -> File -> User menu..: menu-path will never take you to eg. the
C/C++ node unless applied to eg. a *.c file.

To see the level of power/complexity/possibility-of-chaos it can be noted that
when exercising the part of the menu which reads:-----
+ f \.c$ | f \.cc$
6       switch ()
        NUMBER=%{ Enter number elements of switch:}
        echo "%iswitch () {" >%b
        while [ "$NUMBER" -gt 0 ]
            echo "%icase '':" >>%b
            echo "%i      break;" >>%b
            let NUMBER=$NUMBER-1
        echo "%i      default:" >>%b
        echo "%i}" >>%b
 you have <apparently>
1: selected the file-type/extension: *.c or *.cc
2: selected the 'switch construct'
3: been prompted for and entered the <number of cases>

So you're down 3-levels in a decision tree.

My prefered language is not included [I can add it], so I tried to build a
funct(while(IfThenElse()) construct in C, and experienced problems:
1. the next-deeper-construct would not correctly write immediately
after the "{",
 but needed the cursor to be placed on a new-line.
2. with no combined-indenting the structure was confusing; but since separate
  source-code-indenters are available, this may be fixable.

For syntaxes that the user seldom uses, the captured knowledge that is available
seems potentially very usefull. The related syntax-hi-lighting IS very usefull.
And user contributions could help to add value, it there was a mechanism to
capture them.

On 12/27/09, mc-request gnome org <mc-request gnome org> wrote:
Send Mc mailing list submissions to
      mc gnome org

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
      mc-request gnome org

You can reach the person managing the list at
      mc-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Mc digest..."

Today's Topics:

   1. Re: Mc Digest, Vol 68, Issue 13 (chris glur)
   2. Re: Release out mc-4.7.0 (Miguel de Icaza)
   3. Re: Mc Digest, Vol 68, Issue 13 (Yury V. Zaytsev)
   4. Re: Mc Digest, Vol 68, Issue 16 (chris glur)
   5. Re: Mc Digest, Vol 68, Issue 16 (Yury V. Zaytsev)


Message: 1
Date: Sat, 26 Dec 2009 17:11:45 +0300
From: chris glur <crglur gmail com>
To: mc gnome org
Subject: Re: Mc Digest, Vol 68, Issue 13
      <49dfd7e20912260611u6a676bc1uca693a689c4dcdda mail gmail com>
Content-Type: text/plain; charset=ISO-8859-1

Who can tell how to use:


Message: 2
Date: Fri, 25 Dec 2009 15:09:31 -0500
From: Miguel de Icaza <miguel novell com>
To: Slava Zanko <slavazanko gmail com>
Cc: mc gnome org, mc devel <mc-devel gnome org>
Subject: Re: Release out mc-4.7.0
Message-ID: <164DDDAC-04A8-4D5C-B09E-5CFAC89432DC novell com>
Content-Type: text/plain; charset=us-ascii


    I did not install this update, but the previous version remapped
Control-T to be some sort of selector for encodings, and it used to be

    Tag current file is necessary for older terminals, and it is also the
binding used for other terminal applications.


On Dec 25, 2009, at 2:20 PM, Slava Zanko wrote:

Hash: SHA1

Hi, folks.

Subj. Download page:

Major changes since 4.6.2:


   * Native UTF-8 support;
   * Scalable TUI;
   * Added support for skins;
   * Added support for key bindings;
   * Added the ability to sort files by mouse click on column header;
   * Added keybindings to change files sorting order via shortcuts
(PanelSelectSortOrder, PanelToggleSortOrderPrev,
PanelToggleSortOrderNext, PanelReverseSort, PanelSortOrderByName,
PanelSortOrderByExt, PanelSortOrderBySize, PanelSortOrderByMTime);
   * Now the indicator of the sorting type and sorting direction is
always drawn on the panel header (sorting direction indicator is drawn
near the current column in the long file list mode only);
   * Skin files: added new parameters 'sort-sign-up' and
'sort-sign-down' in the section '[widget-common]' to change the
indicator of the sorting order;
   * Added option 'extensions_case' to the filehighlight.ini file;
   * Menu engine was reimplemented: 1) now the menu is built
dynamically, 2) the shortcut displayed in the menu item is not a part of
the menu item text and it is synchronized with the keybindings defined
in mc.keymap file;
   * Removed own popt stuff (command line options parser), now using
glib parser;
   * Added filename highlighting in the panels;
   * Copy/Move overwrite query dialog is more friendly to the long file
   * On the first run the find file dialog now contains latest item
from history;
   * Charset support enabled by default (--enable-charset option);
   * Added cyclic menu navigation;
   * Changed the behavior of C-space: now it calculate size on "..",
and for selected dirs if there are any;
   * New find file option: find only first hit in file (make search
   * New find file option: whole words (find whole words only);
   * Support for the filename charset selection in panels;
   * Reworked 'Find File' dialog;
   * New unified search/replace engine with multiple search types:
plain, wildcard, regexp and hex;
   * Extended 'Learn Keys' capability;
   * Locale-based codepage autodetection;
   * Initial support for Doxygen generated docs;
   * Build system updates (autoconf);
   * Translation updates;
   * Multiple x86_64 fixes.

   * Fixed viewing the *.tar files with a colon in the name;
   * Now 'exit' command on non-local filesystems is allowed;
   * Added partial support for Microsoft CAB archives;
   * Added support for *.ico files;
   * Added support for *.djvu files;
   * Fixed segfaults in various cases while browsing various VFSs;
   * Fixed warnings when file is copied inside the archive;
   * Fixed the recognition of the *.tar.xz archives;
   * Added the recognition of the lzma archives by extension;
   * Added support for IPv6 protocol in FTPFS;
   * Updated extfs/iso9660 to support Joliet "UCS level 1".

   * Added scrolled percentage in status bar (only in "simple
statusbar" mode);
   * Fixed misbehaving rectangular selection in the editor (when
selecting from right to left and/or bottom to top);
   * Split editor menu 'Command' to 'Command' and 'Format';
   * Added option 'Check POSIX new line' into 'Save mode...' dialog,
add notification before save when no newline at EOF;
   * Added keybindings ('EditShiftBlockLeft', 'EditShiftBlockRight')
for shift block;
   * Fixed incorrect drawing CJK (double width) characters;
   * Enhanced 'Save as' dialog by allowing to select the line breaks
type: Windows/UNIX/Mac (CR LF/LF/CR);
   * Updated syntax highlighting for VerilogHDL, Shell script, mail, html;
   * Added syntax highlighting for yum *.repo files, pacman's PKGBUILD
and .install files, erlang, ebuild, named, strace, j;
   * New search/replace flag added "In selection";
   * New hotkeys for bookmarks, now bookmark is displayed in status
line and editor;
   * New cursor behavior: option "Cursor beyond end of line" allows
moving the cursor beyond the end of line.
   * Various editor enhancements (mark/move/copy/paste vertical blocks);
   * Source code navigation through ctags/etags TAGS files;
   * New option: 'Persistent selection';
   * Delete/Backspace deletes selected block if 'Persistent selection'
is off;
   * Ability to shift blocks to the right with Tab key and to the left
with Complete key if 'Persistent selection' is off;
   * Show line numbers (optional);
   * Highlighting of tabs and trailing spaces (optional);
   * Added some hotkeys.

   * Fixed tabs alignment;
   * Fixed view of next/prev file;
   * Fixed showing Windows/Mac (CR LF/CR) line terminator;
   * Reworked to improve the performance;
   * Implemented interruptible long-distance movements;
   * Splitted src/view.[ch] into many files in src/viewer/ subdir to
simplify the support of the codebase;
   * Fixed building of the format string at runtime (for better i18n);
   * Added 'Whole words' option to the viewer 'Search' dialog.

   * Shared clipboard for the mc editor, form fields, panel and command
   * Refactoring: now all filename constants are placed in
src/fileloc.h file;
   * Testing & development: added ability for change user config dir.
For example, type make CFLAGS='-DMC_USERCONF_DIR=\".mc2\"';
   * Changed Alt+Backspace behavior in command line;
   * Hotlist: support for the environment variables ($HOME, ~username,
   * Hotlist: support for the completion in path input;
   * All list widgets: support for the fast navigation by number keys
(i.e. 1 - first list item, 2 - second item etc.);
   * New option mouse_close_dialog, if mouse_close_dialog=1 clicking
outside of the dialog closes them;
   * New: SI-based size display;
   * Shared history for find file, editor search/replace, viewer;
   * Show free space on the current file system;
   * Show size of the selected files in the mini-status bar.

   * Fixed broken building under uclibc < 0.9.29;
   * Autoindent regression;
   * Viewer Hex editor regression;
   * Incorrect indentation block when selecting with F3 + keys;
   * Fixed ownership of the config files;
   * fixed broken option check '--disable-vfs-undelfs';
   * Learn keys: fixed incorrect save of keys configuration;
   * Fixed bug with 'The shell is already running a command';
   * Fixed 'B' artefact into OpenSuse root user console;
   * Segfault on incorrect color pair in [Color] section;
   * Incorrect position of panel codeset dialog;
   * Limit file size display to 9 digits only;
   * Lines drawing in -a stickchars mode;
   * Segfault when you try to use non-anonymous FTP;
   * Ctrl-O handling under GNU Screen in altscreen mode;
   * Support for CP866 (IBM866) locale;
   * checking for minimal version of glib and exit if
version less than 2.6;
   * Segfault by mouse wheel action in history list and menu;
   * Fixed behavior of Meta+PgDn? in editor;
   * Fixed behavior of the cursor movement by Ctrl+arrows when cursor
is beyond EOL;
   * Fixed editor autocompletion;
   * Fixed stealing the Kill Word shortcut by the Copy/Move dialog;
   * Fixed autoconf issue when configure with --with-gpm-mouse option;
   * Linking error with --enable-vfs-undelfs;
   * External editor won't open if there are spaces in EDITOR variable;
   * C-c kill mc if mc built with --without-subshell option and is run
with -d option;
   * Directory hotlist rendering;
   * Segfault on empty replace string;
   * Fixes for vfs/tarfs;
   * Removed bashizm from vfs/extfs/u7z;
   * Crash mc on create new file (Shift-F4) in external editor;
   * File copy/move dialog: asterisks are now handled as search groups
in the in replacement field;
   * VFS: Fixed SIGSERV (or heap corruption) on long filenames;
   * Restore correct current directory after switching from the Info
panel to List panel;
   * Fixed broken backwards search;
   * Fixed uninitialized value for mouse event in in
find.c#check_find_events() function;
   * Fixed Ctrl+Z signal handling;
   * Fixed incorrect prompt display;
   * Fixed incorrect vertical selection (if status line is switched on);
   * Fixed screen resize handle if mouse support is disabled;
   * Fixed mouse support in 'konsole-256color' terminal;
   * Fixed keycodes in 'xterm-256color' terminal;
   * Fixed incorrect regexp search by content in 'file find' dialog
   * Fixed incorrect backwards search;
   * Fixed incorrect detection of the compressed patchfs;
   * Fixed incorrect detection of the codeset when <no translation>
codeset is selected;
   * Editor undo fixes;
   * Upstreamed many fixes from the distributions (Debian, ...);
   * Fixed segfaults on fish permission checks;
   * Fixed fish symlinks handling and fancy names escaping;
   * Various mc.ext fixes;
   * Command line completion fixes (mainly escaping);
   * Small fixes in history handling (locale independent .mc/history
   * Code cleanups, various memleaks fixed (many thanks to valgrind).

MC dev team hopes to bring MC users exciting usage experience... ;)

Merry Christmas and happy New Year!

WBR, dev-team.
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora -

Mc mailing list


Message: 3
Date: Sat, 26 Dec 2009 19:53:47 +0100
From: "Yury V. Zaytsev" <yury shurup com>
To: chris glur <crglur gmail com>
Cc: mc gnome org
Subject: Re: Mc Digest, Vol 68, Issue 13
Message-ID: <1261853627 7024 22 camel mypride>
Content-Type: text/plain

On Sat, 2009-12-26 at 17:11 +0300, chris glur wrote:
Who can tell how to use:

man mc

Menu File Edit

Sincerely yours,
Yury V. Zaytsev


Message: 4
Date: Sun, 27 Dec 2009 13:17:38 +0300
From: chris glur <crglur gmail com>
To: mc gnome org
Subject: Re: Mc Digest, Vol 68, Issue 16
      <49dfd7e20912270217y1338a184l992109fef215552a mail gmail com>
Content-Type: text/plain; charset=ISO-8859-1

Re. Major changes since 4.6.2:

and .install files, erlang, ebuild, named, strace, j;
How does the editor 'handle' erlang...strace ?


Message: 5
Date: Sun, 27 Dec 2009 11:25:37 +0100
From: "Yury V. Zaytsev" <yury shurup com>
To: chris glur <crglur gmail com>
Cc: mc gnome org
Subject: Re: Mc Digest, Vol 68, Issue 16
Message-ID: <1261909537 6871 22 camel mypride>
Content-Type: text/plain


On Sun, 2009-12-27 at 13:17 +0300, chris glur wrote:
Re. Major changes since 4.6.2:

and .install files, erlang, ebuild, named, strace, j;
How does the editor 'handle' erlang...strace ?

Just as all the rest. It highlights its syntax.

Sincerely yours,
Yury V. Zaytsev


Mc mailing list

End of Mc Digest, Vol 68, Issue 18

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]