aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-08-06 01:45:08 +0000
committerRichard M. Stallman2003-08-06 01:45:08 +0000
commit690a6d089ad61ded63d9532fbc7268f91355bea3 (patch)
treeea7ae043be13677089beabe7600ba8340663ac87
parentca99e35810485a719b49eb3c6c33fc9618197b18 (diff)
downloademacs-690a6d089ad61ded63d9532fbc7268f91355bea3.tar.gz
emacs-690a6d089ad61ded63d9532fbc7268f91355bea3.zip
(Lisp Indent): Don't describe lisp-indent-function property here.
Use xref to Lisp Manual.
-rw-r--r--man/programs.texi47
1 files changed, 4 insertions, 43 deletions
diff --git a/man/programs.texi b/man/programs.texi
index a6fa49b2ec7..49729c2f98e 100644
--- a/man/programs.texi
+++ b/man/programs.texi
@@ -486,49 +486,10 @@ expression.
486 486
487@cindex @code{lisp-indent-function} property 487@cindex @code{lisp-indent-function} property
488 You can override the standard pattern in various ways for individual 488 You can override the standard pattern in various ways for individual
489functions, according to the @code{lisp-indent-function} property of the 489functions, according to the @code{lisp-indent-function} property of
490function name. There are four possibilities for this property: 490the function name. Normally you would use this for macro definitions
491 491and specify it using the @code{declare} construct (@pxref{Defining
492@table @asis 492Macros,,, elisp, the Emacs Lisp Reference Manual}).
493@item @code{nil}
494This is the same as no property---use the standard indentation pattern.
495@item @code{defun}
496Handle this function like a @samp{def} construct: treat the second
497line as the start of a @dfn{body}.
498@item a number, @var{number}
499The first @var{number} arguments of the function are
500@dfn{distinguished} arguments; the rest are considered the body
501of the expression. A line in the expression is indented according to
502whether the first argument on it is distinguished or not. If the
503argument is part of the body, the line is indented @code{lisp-body-indent}
504more columns than the open-parenthesis starting the containing
505expression. If the argument is distinguished and is either the first
506or second argument, it is indented @emph{twice} that many extra columns.
507If the argument is distinguished and not the first or second argument,
508the line uses the standard pattern.
509@item a symbol, @var{symbol}
510@var{symbol} should be a function name; that function is called to
511calculate the indentation of a line within this expression. The
512function receives two arguments:
513@table @asis
514@item @var{state}
515The value returned by @code{parse-partial-sexp} (a Lisp primitive for
516indentation and nesting computation) when it parses up to the
517beginning of this line.
518@item @var{pos}
519The position at which the line being indented begins.
520@end table
521@noindent
522It should return either a number, which is the number of columns of
523indentation for that line, or a list whose car is such a number. The
524difference between returning a number and returning a list is that a
525number says that all following lines at the same nesting level should
526be indented just like this one; a list says that following lines might
527call for different indentations. This makes a difference when the
528indentation is being computed by @kbd{C-M-q}; if the value is a
529number, @kbd{C-M-q} need not recalculate indentation for the following
530lines until the end of the list.
531@end table
532 493
533@node C Indent 494@node C Indent
534@subsection Commands for C Indentation 495@subsection Commands for C Indentation