Mercurial > emacs
diff lispref/modes.texi @ 90185:5b029ff3b08d
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-55
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 320-323)
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 26 May 2005 05:42:19 +0000 |
parents | f042e7c0fe20 e89d01c0c1c4 |
children | 01137c1fdbe9 |
line wrap: on
line diff
--- a/lispref/modes.texi Sun May 22 08:23:26 2005 +0000 +++ b/lispref/modes.texi Thu May 26 05:42:19 2005 +0000 @@ -1032,9 +1032,6 @@ are evaluated. The following keywords are currently supported: @table @code -@item :group -If this is specified, it is the customization group for this mode. - @item :syntax-table You can use this to explicitly specify a syntax table for the new mode. If you specify a @code{nil} value, the new mode uses the same @@ -1049,6 +1046,13 @@ abbrev table as @var{parent}, or @code{fundamental-mode-abbrev-table} if @var{parent} is @code{nil}. (Again, a @code{nil} value is @emph{not} equivalent to not specifying this keyword.) + +@item :group +If this is specified, the value should be the customization group for +this mode. (Not all major modes have one.) Only the (still +experimental and unadvertised) command @code{customize-mode} currently +uses this. @code{define-derived-mode} does @emph{not} automatically +define the specified customization group. @end table Here is a hypothetical example: @@ -2364,7 +2368,9 @@ resulting syntax table is stored in @code{font-lock-syntax-table}. The fifth element, @var{syntax-begin}, specifies the value of -@code{font-lock-beginning-of-syntax-function}. +@code{font-lock-beginning-of-syntax-function}. We recommend setting +this variable to @code{nil} and using @code{syntax-begin-function} +instead. All the remaining elements (if any) are collectively called @var{other-vars}. Each of these elements should have the form @@ -2876,10 +2882,6 @@ @code{font-lock-defaults}. @end defvar -@c ??? -@c The docstring says that font-lock-syntax-table is semi-obsolete. -@c How the alternative should be used is not clear. --lute - @defvar font-lock-beginning-of-syntax-function If this variable is non-@code{nil}, it should be a function to move point back to a position that is syntactically at ``top level'' and @@ -2892,9 +2894,10 @@ be outside a syntactic block), or @code{beginning-of-defun} for programming modes, or @code{backward-paragraph} for textual modes. -If the value is @code{nil}, the beginning of the buffer is used as a -position outside of a syntactic block. This cannot be wrong, but it -can be slow. +If the value is @code{nil}, Font Lock uses +@code{syntax-begin-function} to move back outside of any comment, +string, or sexp. This variable is semi-obsolete; we recommend setting +@code{syntax-begin-function} instead. Specify this variable using @var{syntax-begin} in @code{font-lock-defaults}.