order of buttons in Edit->Quit

Sergei Ivanov svivanov at pdmi.ras.ru
Fri Feb 1 02:13:30 UTC 2008


In mc's internal editor, the dialog about unsaved file on quit has an
unusual order of buttons: the first and default one is "Cancel quit".
In all other editors I've seen (including Norton Commander and clones)
the default action is "Save file". Moreover this is inconsistent with other
parts of MC itself (consider, for example, Copy File dialog when
a target exists - the default is "Overwrite", not "Abort").
This default action is also useless because there is always a standard
cancel key (F10, Esc) in any context.

I use the attached patch to change it to the "classic" behavior. If this change
is not acceptable, can this dialog be made configurable?

I am using a packaged version of mc from Ubuntu. The output of mc -V is:

GNU Midnight Commander 4.6.1
Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish, smbfs
With builtin Editor
Using system-installed S-Lang library with terminfo database
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support

Please Cc me on replies.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: editquit.patch
Type: text/x-diff
Size: 670 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20080201/86882830/attachment.patch>


More information about the mc-devel mailing list