Mercurial > emacs
comparison lisp/progmodes/modula2.el @ 13997:a56ed7721b43
(m2-case, m2-for, m2-if): Doc fix.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 04 Jan 1996 23:45:36 +0000 |
parents | e0db27f18a43 |
children | 4cb9ccf6b6b8 |
comparison
equal
deleted
inserted
replaced
13996:83174bce6c29 | 13997:a56ed7721b43 |
---|---|
164 (insert "BEGIN") | 164 (insert "BEGIN") |
165 (m2-newline) | 165 (m2-newline) |
166 (m2-tab)) | 166 (m2-tab)) |
167 | 167 |
168 (defun m2-case () | 168 (defun m2-case () |
169 "Build skeleton CASE statment, prompting for the <expression>." | 169 "Build skeleton CASE statement, prompting for the <expression>." |
170 (interactive) | 170 (interactive) |
171 (let ((name (read-string "Case-Expression: "))) | 171 (let ((name (read-string "Case-Expression: "))) |
172 (insert "CASE " name " OF") | 172 (insert "CASE " name " OF") |
173 (m2-newline) | 173 (m2-newline) |
174 (m2-newline) | 174 (m2-newline) |
192 (insert "ELSE") | 192 (insert "ELSE") |
193 (m2-newline) | 193 (m2-newline) |
194 (m2-tab)) | 194 (m2-tab)) |
195 | 195 |
196 (defun m2-for () | 196 (defun m2-for () |
197 "Build skeleton FOR loop statment, prompting for the loop parameters." | 197 "Build skeleton FOR loop statement, prompting for the loop parameters." |
198 (interactive) | 198 (interactive) |
199 (insert "FOR ") | 199 (insert "FOR ") |
200 (let ((name (read-string "Loop Initialiser: ")) limit by) | 200 (let ((name (read-string "Loop Initialiser: ")) limit by) |
201 (insert name " TO ") | 201 (insert name " TO ") |
202 (setq limit (read-string "Limit: ")) | 202 (setq limit (read-string "Limit: ")) |
222 (insert (user-full-name)) | 222 (insert (user-full-name)) |
223 (insert (concat "\n\t\t<" (user-login-name) "@" (system-name) ">\n")) | 223 (insert (concat "\n\t\t<" (user-login-name) "@" (system-name) ">\n")) |
224 (insert "*)\n\n")) | 224 (insert "*)\n\n")) |
225 | 225 |
226 (defun m2-if () | 226 (defun m2-if () |
227 "Insert skeleton IF statment, prompting for <boolean-expression>." | 227 "Insert skeleton IF statement, prompting for <boolean-expression>." |
228 (interactive) | 228 (interactive) |
229 (insert "IF ") | 229 (insert "IF ") |
230 (let ((thecondition (read-string "<boolean-expression>: "))) | 230 (let ((thecondition (read-string "<boolean-expression>: "))) |
231 (insert thecondition " THEN") | 231 (insert thecondition " THEN") |
232 (m2-newline) | 232 (m2-newline) |