emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lispref/modes.texi


From: Lute Kamstra
Subject: [Emacs-diffs] Changes to emacs/lispref/modes.texi
Date: Thu, 12 May 2005 09:20:56 -0400

Index: emacs/lispref/modes.texi
diff -c emacs/lispref/modes.texi:1.99 emacs/lispref/modes.texi:1.100
*** emacs/lispref/modes.texi:1.99       Fri Apr 29 13:02:54 2005
--- emacs/lispref/modes.texi    Thu May 12 13:20:56 2005
***************
*** 71,80 ****
  parent argument, since it automatically enforces the most important
  coding conventions for you.
  
- @findex define-generic-mode
    For a very simple programming language major mode that handles
! comments and fontification, you can use @code{define-generic-mode}
! in @file{generic.el}.
  
    Rmail Edit mode offers an example of changing the major mode
  temporarily for a buffer, so it can be edited in a different way (with
--- 71,79 ----
  parent argument, since it automatically enforces the most important
  coding conventions for you.
  
    For a very simple programming language major mode that handles
! comments and fontification, you can use @code{define-generic-mode}.
! @xref{Generic Modes}.
  
    Rmail Edit mode offers an example of changing the major mode
  temporarily for a buffer, so it can be edited in a different way (with
***************
*** 873,879 ****
  @code{define-generic-mode}.  See the file @file{generic-x.el} for some
  examples of the use of @code{define-generic-mode}.
  
! @defmac define-generic-mode mode comment-list keyword-list font-lock-list 
auto-mode-list function-list &optional docstring &rest custom-keyword-args
  This macro creates a new generic mode.  The argument @var{mode} (an
  unquoted symbol) is the major mode command.  The optional argument
  @var{docstring} is the documentation for the mode command.  If you do
--- 872,878 ----
  @code{define-generic-mode}.  See the file @file{generic-x.el} for some
  examples of the use of @code{define-generic-mode}.
  
! @defmac define-generic-mode mode comment-list keyword-list font-lock-list 
auto-mode-list function-list &optional docstring
  This macro creates a new generic mode.  The argument @var{mode} (an
  unquoted symbol) is the major mode command.  The optional argument
  @var{docstring} is the documentation for the mode command.  If you do
***************
*** 902,917 ****
  
  @var{function-list} is a list of functions to call to do some
  additional setup.  The mode command calls these functions just before
! it runs the mode hook.
! 
! The optional @var{custom-keyword-args} are pairs of keywords and
! values to include in the generated @code{defcustom} form for the mode
! hook variable @address@hidden  The default value for the
! @samp{:group} keyword is @var{mode} with the final @samp{-mode} (if
! any) removed.  Don't use this default group name unless you have
! written a @code{defgroup} to define that group properly (@pxref{Group
! Definitions}).  You can specify keyword arguments without specifying a
! docstring.
  @end defmac
  
  @node Mode Hooks
--- 901,907 ----
  
  @var{function-list} is a list of functions to call to do some
  additional setup.  The mode command calls these functions just before
! it runs the mode hook variable @address@hidden
  @end defmac
  
  @node Mode Hooks




reply via email to

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