changeset 43677:8d02880abeaa

(Major Modes): Explain major mode functions, how they work, and how long the effect lasts.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 Mar 2002 20:27:25 +0000
parents 48171c57082c
children 402411174ef9
files lispref/modes.texi
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/modes.texi	Sun Mar 03 20:11:42 2002 +0000
+++ b/lispref/modes.texi	Sun Mar 03 20:27:25 2002 +0000
@@ -35,7 +35,12 @@
 @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