summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-06-21 11:05:39 +0300
committerEli Zaretskii <eliz@gnu.org>2014-06-21 11:05:39 +0300
commit637bce026b02dc188eea42188e1d8ea8f4d3de3f (patch)
tree86843f48ffe77a4d355fd552209d42465b089875
parent900f9384095f8e968e6149e72568e0547dc0d587 (diff)
downloademacs-637bce026b02dc188eea42188e1d8ea8f4d3de3f.tar.gz
Improve documentation of \n in a skeleton.
doc/misc/autotype.texi (Skeleton Language): Document the feature of \n when at eol.
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/autotype.texi5
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index d3a7f66cdaf..b1d7c3a7a0c 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
+2014-06-21 Eli Zaretskii <eliz@gnu.org>
+
+ * autotype.texi (Skeleton Language): Document the feature of \n
+ when at eol.
+
2014-06-15 Michael Albinus <michael.albinus@gmx.de>
* dbus.texi (Type Conversion): Formatting edits in example.
diff --git a/doc/misc/autotype.texi b/doc/misc/autotype.texi
index fd4477e1636..c5f0703cf19 100644
--- a/doc/misc/autotype.texi
+++ b/doc/misc/autotype.texi
@@ -232,8 +232,9 @@ Insert string or character. Literal strings and characters are passed through
@code{skeleton-transformation} when that is non-@code{nil}.
@item @code{?\n}
@c ??? something seems very wrong here.
-Insert a newline and align under current line. Use newline character
-@code{?\n} to prevent alignment.
+If not at end of line, insert a newline and align under current line.
+Use newline character @code{?\n} to prevent alignment. Use
+@code{"\n"} as a string to insert a newline unconditionally.
@item @code{_}
Interesting point. When wrapping skeletons around successive regions, they are
put at these places. Point is left at first @code{_} where nothing is wrapped.