unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* so-long and special major modes
@ 2020-12-08  5:30 Richard Stallman
  2020-12-08 20:08 ` Phil Sainty
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2020-12-08  5:30 UTC (permalink / raw)
  To: Phil Sainty; +Cc: emacs-devel

[[[ 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)





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-09 10:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08  5:30 so-long and special major modes Richard Stallman
2020-12-08 20:08 ` Phil Sainty
2020-12-09  6:48   ` Richard Stallman
2020-12-09 10:46     ` Phil Sainty

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).