diff options
| author | Stefan Monnier | 2001-02-04 20:57:37 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-02-04 20:57:37 +0000 |
| commit | 3bb34a0214262bb0b23f3373f0f9b4ba576a3c0b (patch) | |
| tree | 0917fe7934933e067f6300600450ef3a7635dd1f /lisp | |
| parent | 02399da7a645b1aae59f863a43f82ee346a71797 (diff) | |
| download | emacs-3bb34a0214262bb0b23f3373f0f9b4ba576a3c0b.tar.gz emacs-3bb34a0214262bb0b23f3373f0f9b4ba576a3c0b.zip | |
Docstring fixes.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/skeleton.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/skeleton.el b/lisp/skeleton.el index 0733f065262..45a43ebbe5f 100644 --- a/lisp/skeleton.el +++ b/lisp/skeleton.el | |||
| @@ -261,7 +261,7 @@ If ELEMENT is a string or a character it gets inserted (see also | |||
| 261 | `skeleton-transformation'). Other possibilities are: | 261 | `skeleton-transformation'). Other possibilities are: |
| 262 | 262 | ||
| 263 | \\n go to next line and indent according to mode | 263 | \\n go to next line and indent according to mode |
| 264 | _ interesting point, interregion here, point after termination | 264 | _ interesting point, interregion here |
| 265 | > indent line (or interregion if > _) according to major mode | 265 | > indent line (or interregion if > _) according to major mode |
| 266 | @ add position to `skeleton-positions' | 266 | @ add position to `skeleton-positions' |
| 267 | & do next ELEMENT if previous moved point | 267 | & do next ELEMENT if previous moved point |
| @@ -270,6 +270,9 @@ If ELEMENT is a string or a character it gets inserted (see also | |||
| 270 | resume: skipped, continue here if quit is signaled | 270 | resume: skipped, continue here if quit is signaled |
| 271 | nil skipped | 271 | nil skipped |
| 272 | 272 | ||
| 273 | After termination, point will be positioned at the first occurrence | ||
| 274 | of _ or @ or at the end of the inserted text. | ||
| 275 | |||
| 273 | Further elements can be defined via `skeleton-further-elements'. ELEMENT may | 276 | Further elements can be defined via `skeleton-further-elements'. ELEMENT may |
| 274 | itself be a SKELETON with an INTERACTOR. The user is prompted repeatedly for | 277 | itself be a SKELETON with an INTERACTOR. The user is prompted repeatedly for |
| 275 | different inputs. The SKELETON is processed as often as the user enters a | 278 | different inputs. The SKELETON is processed as often as the user enters a |
| @@ -425,6 +428,7 @@ automatically, and you are prompted to fill in the variable parts."))) | |||
| 425 | (or (eolp) (newline)) | 428 | (or (eolp) (newline)) |
| 426 | (indent-region (line-beginning-position) | 429 | (indent-region (line-beginning-position) |
| 427 | (car skeleton-regions) nil)) | 430 | (car skeleton-regions) nil)) |
| 431 | ;; \n as last element only inserts \n if not at eol. | ||
| 428 | ((and (null (cdr skeleton)) (eolp)) nil) | 432 | ((and (null (cdr skeleton)) (eolp)) nil) |
| 429 | (skeleton-newline-indent-rigidly | 433 | (skeleton-newline-indent-rigidly |
| 430 | (indent-to (prog1 (current-indentation) (newline)))) | 434 | (indent-to (prog1 (current-indentation) (newline)))) |
| @@ -445,11 +449,9 @@ automatically, and you are prompted to fill in the variable parts."))) | |||
| 445 | (or skeleton-point | 449 | (or skeleton-point |
| 446 | (setq skeleton-point (point))))) | 450 | (setq skeleton-point (point))))) |
| 447 | ((eq element '&) | 451 | ((eq element '&) |
| 448 | (if skeleton-modified | 452 | (when skeleton-modified (pop skeleton))) |
| 449 | (setq skeleton (cdr skeleton)))) | ||
| 450 | ((eq element '|) | 453 | ((eq element '|) |
| 451 | (or skeleton-modified | 454 | (unless skeleton-modified (pop skeleton))) |
| 452 | (setq skeleton (cdr skeleton)))) | ||
| 453 | ((eq element '@) | 455 | ((eq element '@) |
| 454 | (push (point) skeleton-positions) | 456 | (push (point) skeleton-positions) |
| 455 | (unless skeleton-point (setq skeleton-point (point)))) | 457 | (unless skeleton-point (setq skeleton-point (point)))) |