diff options
author | Eli Zaretskii <eliz@gnu.org> | 2014-06-22 19:59:30 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2014-06-22 19:59:30 +0300 |
commit | f3953a24ea8b800170bde3db98565f2040b2f915 (patch) | |
tree | b6282c9049ff5dc5cb34d779f6177742abb466f8 /lisp/skeleton.el | |
parent | 6692a64cc4c6929175c1d55a826ca35d1db3e652 (diff) | |
download | emacs-f3953a24ea8b800170bde3db98565f2040b2f915.tar.gz |
More tweaks of skeleton documentation wrt \n behavior at bol/eol.
lisp/skeleton.el (skeleton-insert): Yet another fix of the doc string
wrt behavior of \n as the first/last element of a skeleton.
doc/misc/autotype.texi (Skeleton Language): Document the \n feature
better.
Diffstat (limited to 'lisp/skeleton.el')
-rw-r--r-- | lisp/skeleton.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/skeleton.el b/lisp/skeleton.el index 86c8ed49c74..54dce9e43b7 100644 --- a/lisp/skeleton.el +++ b/lisp/skeleton.el @@ -200,8 +200,9 @@ not needed, a prompt-string or an expression for complex read functions. If ELEMENT is a string or a character it gets inserted (see also `skeleton-transformation-function'). Other possibilities are: - \\n if not the last element of the skeleton, or not at eol, - go to next line and indent according to mode + \\n go to next line and indent according to mode, unless + this is the first/last element of a skeleton and point + is at bol/eol _ interesting point, interregion here - interesting point, no interregion interaction, overrides interesting point set by _ @@ -218,7 +219,8 @@ or at the first occurrence of _ or at the end of the inserted text. Note that \\n as the last element of the skeleton only inserts a newline if not at eol. If you want to unconditionally insert a newline -at the end of the skeleton, use \"\\n\" instead. +at the end of the skeleton, use \"\\n\" instead. Likewise with \\n +as the first element when at bol. Further elements can be defined via `skeleton-further-elements'. ELEMENT may itself be a SKELETON with an INTERACTOR. The user is prompted |