diff options
author | Glenn Morris <rgm@gnu.org> | 2014-06-24 00:15:26 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2014-06-24 00:15:26 -0700 |
commit | 131a3a12c4b0171c71c122c3330f85fc19e9bb8f (patch) | |
tree | 83776ccda3b3d170c956b33afc7293c02213153c /lisp/skeleton.el | |
parent | 2fde356acb722a54aa0a4f18cbe2b56c216dbb1e (diff) | |
parent | b950752961eb3d9207e4b4bd61a57071cdbe31eb (diff) | |
download | emacs-131a3a12c4b0171c71c122c3330f85fc19e9bb8f.tar.gz |
Merge from emacs-24; up to 2014-06-08T18:27:22Z!eggert@cs.ucla.edu
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 28792ac558e..bb019db502c 100644 --- a/lisp/skeleton.el +++ b/lisp/skeleton.el @@ -197,8 +197,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 _ @@ -215,7 +216,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 |