From: Richard Stallman <rms@gnu.org>
To: Phil Sainty <psainty@orcon.net.nz>
Cc: emacs-devel@gnu.org
Subject: so-long and special major modes
Date: Tue, 08 Dec 2020 00:30:31 -0500 [thread overview]
Message-ID: <E1kmVa3-0001HU-Vj@fencepost.gnu.org> (raw)
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Emacs distinguishes two kinds of major modes: those that are for a
kind of data, and those that correspond to special applications. In
the former, q will self-insert. In the latter, q probably means
"quit". The way to distinguish is to test the mode-class property of
the major mode symbol.
Dired, Rmail and Info are examples of special major modes.
so-long-major-mode may be ok to use in an ordinary major mode, but it
is no good in a special mode. In that situation, it is necessary to
use so-long-minor-mode.
--
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
next reply other threads:[~2020-12-08 5:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-08 5:30 Richard Stallman [this message]
2020-12-08 20:08 ` so-long and special major modes Phil Sainty
2020-12-09 6:48 ` Richard Stallman
2020-12-09 10:46 ` Phil Sainty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1kmVa3-0001HU-Vj@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=psainty@orcon.net.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).