[email protected]
[Top] [All Lists]

Re: Mc Digest, Vol 68, Issue 18

Subject: Re: Mc Digest, Vol 68, Issue 18
From: chris glur
Date: Tue, 29 Dec 2009 06:17:24 +0300
> Who can tell how to use:
 >  /usr/lib/mc/cedit.menu
 > ??
 > PLEASE

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 ]
        do
            echo "%icase '':" >>%b
            echo "%i      break;" >>%b
            let NUMBER=$NUMBER-1
        done
        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, [email protected] <[email protected]> wrote:
> Send Mc mailing list submissions to
>       [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://mail.gnome.org/mailman/listinfo/mc
> or, via email, send a message with subject or body 'help' to
>       [email protected]
>
> You can reach the person managing the list at
>       [email protected]
>
> 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 <[email protected]>
> To: [email protected]
> Subject: Re: Mc Digest, Vol 68, Issue 13
> Message-ID:
>       <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Who can tell how to use:
>  /usr/lib/mc/cedit.menu
> ??
> PLEASE
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 25 Dec 2009 15:09:31 -0500
> From: Miguel de Icaza <[email protected]>
> To: Slava Zanko <[email protected]>
> Cc: [email protected], mc devel <[email protected]>
> Subject: Re: Release out mc-4.7.0
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> Hello,
>
>     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.
>
>     Tag current file is necessary for older terminals, and it is also the
> binding used for other terminal applications.
>
> Miguel.
>
> On Dec 25, 2009, at 2:20 PM, Slava Zanko wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi, folks.
>>
>> Subj. Download page: http://www.midnight-commander.org/downloads
>>
>> Major changes since 4.6.2:
>>
>> Core:
>>
>>    * 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
>> names;
>>    * 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
>> faster);
>>    * 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.
>>
>> VFS:
>>    * 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".
>>
>> Editor:
>>    * 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.
>>
>> Viewer:
>>    * 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.
>>
>> Misc:
>>    * Shared clipboard for the mc editor, form fields, panel and command
>> prompt;
>>    * 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,
>> etc.);
>>    * 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.
>>
>> Fixes:
>>    * 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;
>>    * Configure.ac: 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;
>>    * Configure.ac: 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
>> (#1543);
>>    * 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
>> entries);
>>    * 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.
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (GNU/Linux)
>> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAks1EJUACgkQb3oGR6aVLpo/PQCaAvWFX6Fg7a4+UmidAzMHXkWo
>> QLgAn383k4eh0A0DrNDZ7n0bSNtTWpd5
>> =nT6r
>> -----END PGP SIGNATURE-----
>> _______________________________________________
>> Mc mailing list
>> http://mail.gnome.org/mailman/listinfo/mc
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 26 Dec 2009 19:53:47 +0100
> From: "Yury V. Zaytsev" <[email protected]>
> To: chris glur <[email protected]>
> Cc: [email protected]
> Subject: Re: Mc Digest, Vol 68, Issue 13
> Message-ID: <[email protected]>
> Content-Type: text/plain
>
> On Sat, 2009-12-26 at 17:11 +0300, chris glur wrote:
>> Who can tell how to use:
>>  /usr/lib/mc/cedit.menu
>> ??
>> PLEASE
>
> man mc
>
> Menu File Edit
>
> --
> Sincerely yours,
> Yury V. Zaytsev
>
>
>
> ------------------------------
>
> Message: 4
> Date: Sun, 27 Dec 2009 13:17:38 +0300
> From: chris glur <[email protected]>
> To: [email protected]
> Subject: Re: Mc Digest, Vol 68, Issue 16
> Message-ID:
>       <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Re. Major changes since 4.6.2:
>
>> ...
>>Editor:
>>...
>> 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" <[email protected]>
> To: chris glur <[email protected]>
> Cc: [email protected]
> Subject: Re: Mc Digest, Vol 68, Issue 16
> Message-ID: <[email protected]>
> Content-Type: text/plain
>
> Hi!
>
> On Sun, 2009-12-27 at 13:17 +0300, chris glur wrote:
>> Re. Major changes since 4.6.2:
>>
>> > ...
>> >Editor:
>> >...
>> > 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
> http://mail.gnome.org/mailman/listinfo/mc
>
>
> End of Mc Digest, Vol 68, Issue 18
> **********************************
>
_______________________________________________
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc

<Prev in Thread] Current Thread [Next in Thread>