[Top][All Lists]

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

RFC: enable ^Z by default?

From: Benno Schulenberg
Subject: RFC: enable ^Z by default?
Date: Thu, 28 Oct 2021 10:11:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Hi all,

When typing ^T^Z, nano says: "Suspension is not enabled" (in the default setup).
I think this is silly -- if '^Z Suspend' is listed in the Execute menu, then it
should work.  However, to have ^T^Z work and have a plain ^Z say "Suspension is
not enabled"... that doesn't make sense.  So the question becomes: should we
enable ^Z by default?

In the archives of the mailing list I cannot find any reasoning for disabling
the ^Z keystroke by default and requiring an option (-z) or a toggle (M-Z) to
enable it.  I can imagine two reasons: 1) the inexperienced user might think
that ^Z is Undo, and to prevent these users from being "thrown out" of nano...
2) users might sometimes hit ^Z when they mean to type ^X, and since both
keystrokes kind of stop nano, to prevent any confusion...

But in editors like vim, emacs, lpe and ne, ^Z simply works, no enabling is
required, so why not in nano?  And if the effect of the ^Z keystroke bothers
the user, they can (since version 2.1.0 from 2008) unbind the key in their
nanorc.  And since version 5.0 they can then still suspend nano with ^T^Z,
no need for a re-enabling keystroke.

Furthermore, Debian and Ubuntu have had 'set suspend' in their /etc/nanorc
for years, so a considerable portion of Linux users have had ^Z enabled by
default for a long time, and no one seems to have complained.

Therefore, I propose to enable ^Z by default, to make -z, --suspendable,
and 'set suspendable' no-ops (recognized but ignored), and to remove the
M-Z toggle and its bindable function.  See attached patch.

Thoughts?  Comments?  Opinions?


Attachment: 0001-suspension-enable-Z-by-default-drop-the-z-option-and.patch
Description: Text Data

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]