aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-09-18 08:58:17 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-09-18 08:58:17 +0000
commit9be7529768994fbc8c08a3eaab78a1cd5c32ecbf (patch)
tree64397a8b29dbb45bb442c0b523ee5c61573ea62d /doc
parenta61b4ba14616998287aad030d7cb99991372c3a1 (diff)
downloadmailfromd-9be7529768994fbc8c08a3eaab78a1cd5c32ecbf.tar.gz
mailfromd-9be7529768994fbc8c08a3eaab78a1cd5c32ecbf.tar.bz2
* Makefile.am: Implement a dist-hook, preventing distributing
an unfinished NEWS file. * doc/mailfromd.texi: Document new mfl-mode customization variables. Add missing index entries. * NEWS: Update. * elisp/mfl-mode.el: Improve auto-indentation support. git-svn-id: file:///svnroot/mailfromd/trunk@1673 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'doc')
-rw-r--r--doc/mailfromd.texi67
1 files changed, 67 insertions, 0 deletions
diff --git a/doc/mailfromd.texi b/doc/mailfromd.texi
index 4b007b33..03d694f8 100644
--- a/doc/mailfromd.texi
+++ b/doc/mailfromd.texi
@@ -9685,6 +9685,8 @@ allows to break from nested loops.
It is similar to @code{break} statement in @sc{c} or shell.
+@kwindex next
+@cindex next statement
@item next [@var{label}]
Initiates next iteration of the loop. Control passes to @samp{2} in
the formal definition above. If @var{label} is supplied, the
@@ -10865,6 +10867,12 @@ statement;
@item Branch statements (@samp{case} and @samp{when}) are placed in
the same column as their controlling keyword (@samp{switch} and
@samp{on}, correspondingly (@pxref{mfl-case-line-offset}).
+@item Loop substatements (@pxref{Loops}) are offset 5 columns to the right
+from the controlling @code{loop} keyword.
+(@pxref{mfl-loop-statement-offset}). Continuation statements within
+loop header are offset 5 columns from the indentation of their
+controlling keyword, either @code{for} or @code{while}
+(@pxref{mfl-loop-continuation-offset}).
@end itemize
@cindex Finding function definition
@@ -10957,6 +10965,65 @@ done
@end smallexample
@end defvr
+@defvr {MFL-mode setting} mfl-returns-offset
+Indentation offset of @code{returns} and @code{alias} statements,
+relative to the controlling @code{func} keyword. The default value is
+2, which corresponds to:
+
+@smallexample
+@group
+func foo()
+ alias bar
+ returns string
+@end group
+@end smallexample
+@end defvr
+
+@defvr {MFL-mode setting} mfl-comment-offset
+Indentation increment for multi-line comments. The default value is
+1, which makes:
+
+@smallexample
+@group
+ /* first comment line
+ second comment line */
+@end group
+@end smallexample
+@end defvr
+
+@anchor{mfl-loop-statement-offset}
+@defvr {MFL-mode setting} mfl-loop-statement-offset
+Indentation increment for parts of a @code{loop} statement. The
+default value is 5, which corresponds to the following style:
+
+@smallexample
+@group
+loop for @var{stmt},
+ while @var{cond},
+ @var{incr}
+do
+@end group
+@end smallexample
+@end defvr
+
+@anchor{mfl-loop-continuation-offset}
+@defvr {MFL-mode setting} mfl-loop-continuation-offset
+If any of the @code{loop} parts occupies several lines, the
+indentation of continuation lines relative to the first line is
+controlled by @code{mfl-loop-continuation-offset}, which defaults
+to 5:
+
+@smallexample
+@group
+loop for set n 0
+ set z 1,
+ while %n != 10
+ or z != 2,
+ set n %n + 1
+@end group
+@end smallexample
+@end defvr
+
@node Mailfromd Configuration, Sendmail, Using MFL Mode, Top
@chapter Configuring @command{mailfromd}

Return to:

Send suggestions and report system problems to the System administrator.