From 22c94cf2a61f49bde396dbc214b8caa0a892d7ac Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 3 Mar 2002 20:27:25 +0000 Subject: [PATCH] (Major Modes): Explain major mode functions, how they work, and how long the effect lasts. --- lispref/modes.texi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lispref/modes.texi b/lispref/modes.texi index 299595341f8..715eccd64ab 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi @@ -35,7 +35,12 @@ user. For related topics such as keymaps and syntax tables, see @cindex Fundamental mode Major modes specialize Emacs for editing particular kinds of text. -Each buffer has only one major mode at a time. +Each buffer has only one major mode at a time. For each major mode +there is a function to switch to that mode in the current buffer; its +name should end in @samp{-mode}. These functions work by setting +buffer-local variable bindings and other data associated with the +buffer, such as a local keymap. The effect lasts until you switch +to another major mode in the same buffer. The least specialized major mode is called @dfn{Fundamental mode}. This mode has no mode-specific definitions or variable settings, so each -- 2.39.5