diff options
| author | Karl Heuer | 1996-01-04 23:46:19 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-01-04 23:46:19 +0000 |
| commit | 4a6fd75f1db43176d8c6228f83876196bf4fc02a (patch) | |
| tree | 91ceef086c29be7f3539fb29a18a3713657839d3 | |
| parent | 821db8fd07e39a8b30ecc8aa9d688c86222829af (diff) | |
| download | emacs-4a6fd75f1db43176d8c6228f83876196bf4fc02a.tar.gz emacs-4a6fd75f1db43176d8c6228f83876196bf4fc02a.zip | |
(pascal-auto-newline, pascal-mode, electric-pascal-hash):
Doc fix.
| -rw-r--r-- | lisp/progmodes/pascal.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el index de280ac5be4..cb274328da4 100644 --- a/lisp/progmodes/pascal.el +++ b/lisp/progmodes/pascal.el | |||
| @@ -176,8 +176,8 @@ | |||
| 176 | "*Indentation for case statements.") | 176 | "*Indentation for case statements.") |
| 177 | 177 | ||
| 178 | (defvar pascal-auto-newline nil | 178 | (defvar pascal-auto-newline nil |
| 179 | "*Non-nil means automatically newline after simcolons and the punctation mark | 179 | "*Non-nil means automatically newline after semicolons and the punctuation |
| 180 | after an end.") | 180 | mark after an end.") |
| 181 | 181 | ||
| 182 | (defvar pascal-tab-always-indent t | 182 | (defvar pascal-tab-always-indent t |
| 183 | "*Non-nil means TAB in Pascal mode should always reindent the current line, | 183 | "*Non-nil means TAB in Pascal mode should always reindent the current line, |
| @@ -290,8 +290,8 @@ Variables controlling indentation/edit style: | |||
| 290 | pascal-case-indent (default 2) | 290 | pascal-case-indent (default 2) |
| 291 | Indentation for case statements. | 291 | Indentation for case statements. |
| 292 | pascal-auto-newline (default nil) | 292 | pascal-auto-newline (default nil) |
| 293 | Non-nil means automatically newline after simcolons and the punctation mark | 293 | Non-nil means automatically newline after semicolons and the punctuation |
| 294 | after an end. | 294 | mark after an end. |
| 295 | pascal-tab-always-indent (default t) | 295 | pascal-tab-always-indent (default t) |
| 296 | Non-nil means TAB in Pascal mode should always reindent the current line, | 296 | Non-nil means TAB in Pascal mode should always reindent the current line, |
| 297 | regardless of where in the line point is when the TAB command is used. | 297 | regardless of where in the line point is when the TAB command is used. |
| @@ -406,7 +406,7 @@ no args, if that value is non-nil." | |||
| 406 | (pascal-indent-command)))) | 406 | (pascal-indent-command)))) |
| 407 | 407 | ||
| 408 | (defun electric-pascal-hash () | 408 | (defun electric-pascal-hash () |
| 409 | "Insert `#', and indent to coulmn 0 if this is a CPP directive." | 409 | "Insert `#', and indent to column 0 if this is a CPP directive." |
| 410 | (interactive) | 410 | (interactive) |
| 411 | (insert last-command-char) | 411 | (insert last-command-char) |
| 412 | (if (save-excursion (beginning-of-line) (looking-at "^[ \t]*#")) | 412 | (if (save-excursion (beginning-of-line) (looking-at "^[ \t]*#")) |
| @@ -1083,7 +1083,7 @@ indent of the current line in parameterlist." | |||
| 1083 | 1083 | ||
| 1084 | (defun pascal-get-completion-decl () | 1084 | (defun pascal-get-completion-decl () |
| 1085 | ;; Macro for searching through current declaration (var, type or const) | 1085 | ;; Macro for searching through current declaration (var, type or const) |
| 1086 | ;; for matches of `str' and adding the occurence tp `all' | 1086 | ;; for matches of `str' and adding the occurrence tp `all' |
| 1087 | (let ((end (save-excursion (pascal-declaration-end) | 1087 | (let ((end (save-excursion (pascal-declaration-end) |
| 1088 | (point))) | 1088 | (point))) |
| 1089 | match) | 1089 | match) |
| @@ -1133,7 +1133,7 @@ indent of the current line in parameterlist." | |||
| 1133 | (save-excursion | 1133 | (save-excursion |
| 1134 | (if (> start (prog1 (save-excursion (pascal-end-of-defun) | 1134 | (if (> start (prog1 (save-excursion (pascal-end-of-defun) |
| 1135 | (point)))) | 1135 | (point)))) |
| 1136 | () ; Declarations not reacable | 1136 | () ; Declarations not reachable |
| 1137 | (if (search-forward "(" (pascal-get-end-of-line) t) | 1137 | (if (search-forward "(" (pascal-get-end-of-line) t) |
| 1138 | ;; Check parameterlist | 1138 | ;; Check parameterlist |
| 1139 | (pascal-get-completion-decl)) | 1139 | (pascal-get-completion-decl)) |
| @@ -1172,7 +1172,7 @@ indent of the current line in parameterlist." | |||
| 1172 | (save-excursion | 1172 | (save-excursion |
| 1173 | (let ((pascal-all nil)) | 1173 | (let ((pascal-all nil)) |
| 1174 | ;; Set buffer to use for searching labels. This should be set | 1174 | ;; Set buffer to use for searching labels. This should be set |
| 1175 | ;; within functins which use pascal-completions | 1175 | ;; within functions which use pascal-completions |
| 1176 | (set-buffer pascal-buffer-to-use) | 1176 | (set-buffer pascal-buffer-to-use) |
| 1177 | 1177 | ||
| 1178 | ;; Determine what should be completed | 1178 | ;; Determine what should be completed |
| @@ -1282,7 +1282,7 @@ indent of the current line in parameterlist." | |||
| 1282 | (insert "" pascal-last-word-shown) | 1282 | (insert "" pascal-last-word-shown) |
| 1283 | (insert "" pascal-str) | 1283 | (insert "" pascal-str) |
| 1284 | (message "(No match)"))) | 1284 | (message "(No match)"))) |
| 1285 | ;; The other form of completion does not necessarly do that. | 1285 | ;; The other form of completion does not necessarily do that. |
| 1286 | 1286 | ||
| 1287 | ;; Insert match if found, or the original string if no match | 1287 | ;; Insert match if found, or the original string if no match |
| 1288 | (if (or (null match) (equal match 't)) | 1288 | (if (or (null match) (equal match 't)) |
| @@ -1358,7 +1358,7 @@ With optional second arg non-nil, STR is the complete name of the instruction." | |||
| 1358 | match) | 1358 | match) |
| 1359 | 1359 | ||
| 1360 | ;; Set buffer to use for searching labels. This should be set | 1360 | ;; Set buffer to use for searching labels. This should be set |
| 1361 | ;; within functins which use pascal-completions | 1361 | ;; within functions which use pascal-completions |
| 1362 | (set-buffer pascal-buffer-to-use) | 1362 | (set-buffer pascal-buffer-to-use) |
| 1363 | 1363 | ||
| 1364 | (let ((pascal-str pascal-str)) | 1364 | (let ((pascal-str pascal-str)) |