Mercurial > emacs
comparison lisp/expand.el @ 39831:ef785a6f6245
(expand-c-for-skeleton): Add explicit terminating \n.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 12 Oct 2001 16:39:20 +0000 |
parents | b174db545cfd |
children | 83f879e86675 |
comparison
equal
deleted
inserted
replaced
39830:aed9c3afb7ed | 39831:ef785a6f6245 |
---|---|
98 | 98 |
99 (define-skeleton expand-c-for-skeleton "For loop skeleton" | 99 (define-skeleton expand-c-for-skeleton "For loop skeleton" |
100 "Loop var: " | 100 "Loop var: " |
101 "for(" str _ @ "=0; " str @ "; " str @ ") {" \n | 101 "for(" str _ @ "=0; " str @ "; " str @ ") {" \n |
102 @ _ \n | 102 @ _ \n |
103 "}" > | 103 "}" > \n) |
104 ) | |
105 | 104 |
106 (defconst expand-c-sample-expand-list | 105 (defconst expand-c-sample-expand-list |
107 '(("if" "if () {\n \n} else {\n \n}" (5 10 21)) | 106 '(("if" "if () {\n \n} else {\n \n}" (5 10 21)) |
108 ("ifn" "if () {}" (5 8)) | 107 ("ifn" "if () {}" (5 8)) |
109 ("uns" "unsigned ") | 108 ("uns" "unsigned ") |