diff options
| author | Richard M. Stallman | 1997-04-22 04:42:21 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-22 04:42:21 +0000 |
| commit | a80d3563db68b72dbd40efc2c9f47a710a4bf867 (patch) | |
| tree | fd6cb34f7701322de67822c3dc6a59c003340beb | |
| parent | c410bd65f5cb14d844f6894206c408c4011d48ed (diff) | |
| download | emacs-a80d3563db68b72dbd40efc2c9f47a710a4bf867.tar.gz emacs-a80d3563db68b72dbd40efc2c9f47a710a4bf867.zip | |
(m2-end-comment-column): New defvar.
(modula-2-mode, m2-end-comment): Use m2-end-comment-column
instead of end-comment-column.
(m2-compile, m2-link): Don't set `modulename',
| -rw-r--r-- | lisp/progmodes/modula2.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/progmodes/modula2.el b/lisp/progmodes/modula2.el index 0681cc4e953..2aa1bc5baae 100644 --- a/lisp/progmodes/modula2.el +++ b/lisp/progmodes/modula2.el | |||
| @@ -32,6 +32,8 @@ | |||
| 32 | (defvar m2-link-name nil | 32 | (defvar m2-link-name nil |
| 33 | "Name of the executable.") | 33 | "Name of the executable.") |
| 34 | 34 | ||
| 35 | (defvar m2-end-comment-column nil | ||
| 36 | "*Column for aligning the end of a comment, in Modula-2.") | ||
| 35 | 37 | ||
| 36 | (if m2-mode-syntax-table | 38 | (if m2-mode-syntax-table |
| 37 | () | 39 | () |
| @@ -119,8 +121,8 @@ followed by the first character of the construct. | |||
| 119 | (setq mode-name "Modula-2") | 121 | (setq mode-name "Modula-2") |
| 120 | (make-local-variable 'comment-column) | 122 | (make-local-variable 'comment-column) |
| 121 | (setq comment-column 41) | 123 | (setq comment-column 41) |
| 122 | (make-local-variable 'end-comment-column) | 124 | (make-local-variable 'm2-end-comment-column) |
| 123 | (setq end-comment-column 75) | 125 | (setq m2-end-comment-column 75) |
| 124 | (set-syntax-table m2-mode-syntax-table) | 126 | (set-syntax-table m2-mode-syntax-table) |
| 125 | (make-local-variable 'paragraph-start) | 127 | (make-local-variable 'paragraph-start) |
| 126 | (setq paragraph-start (concat "$\\|" page-delimiter)) | 128 | (setq paragraph-start (concat "$\\|" page-delimiter)) |
| @@ -486,22 +488,20 @@ FROM SysStreams IMPORT sysIn, sysOut, sysErr; | |||
| 486 | (defun m2-end-comment () | 488 | (defun m2-end-comment () |
| 487 | (interactive) | 489 | (interactive) |
| 488 | (if (not (bolp)) | 490 | (if (not (bolp)) |
| 489 | (indent-to end-comment-column)) | 491 | (indent-to m2-end-comment-column)) |
| 490 | (insert "*)")) | 492 | (insert "*)")) |
| 491 | 493 | ||
| 492 | (defun m2-compile () | 494 | (defun m2-compile () |
| 493 | (interactive) | 495 | (interactive) |
| 494 | (setq modulename (buffer-name)) | 496 | (compile (concat m2-compile-command " " (buffer-name)))) |
| 495 | (compile (concat m2-compile-command " " modulename))) | ||
| 496 | 497 | ||
| 497 | (defun m2-link () | 498 | (defun m2-link () |
| 498 | (interactive) | 499 | (interactive) |
| 499 | (setq modulename (buffer-name)) | ||
| 500 | (if m2-link-name | 500 | (if m2-link-name |
| 501 | (compile (concat m2-link-command " " m2-link-name)) | 501 | (compile (concat m2-link-command " " m2-link-name)) |
| 502 | (compile (concat m2-link-command " " | 502 | (compile (concat m2-link-command " " |
| 503 | (setq m2-link-name (read-string "Name of executable: " | 503 | (setq m2-link-name (read-string "Name of executable: " |
| 504 | modulename)))))) | 504 | (buffer-name))))))) |
| 505 | 505 | ||
| 506 | (defun m2-execute-monitor-command (command) | 506 | (defun m2-execute-monitor-command (command) |
| 507 | (let* ((shell shell-file-name) | 507 | (let* ((shell shell-file-name) |