aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/simula.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/progmodes/simula.el b/lisp/progmodes/simula.el
index 60235fef8d0..74dafc3faf6 100644
--- a/lisp/progmodes/simula.el
+++ b/lisp/progmodes/simula.el
@@ -399,11 +399,6 @@ with no arguments, if that value is non-nil."
399 (font-lock-syntactic-keywords . simula-font-lock-syntactic-keywords))) 399 (font-lock-syntactic-keywords . simula-font-lock-syntactic-keywords)))
400 (abbrev-mode 1)) 400 (abbrev-mode 1))
401 401
402(if simula-abbrev-file
403 (read-abbrev-file simula-abbrev-file))
404(let (abbrevs-changed)
405 (simula-install-standard-abbrevs))
406
407(defun simula-indent-exp () 402(defun simula-indent-exp ()
408 "Indent SIMULA expression following point." 403 "Indent SIMULA expression following point."
409 (interactive) 404 (interactive)
@@ -1378,8 +1373,7 @@ If not nil and not t, move to limit of search and return nil."
1378 "Define Simula keywords, procedures and classes in local abbrev table." 1373 "Define Simula keywords, procedures and classes in local abbrev table."
1379 ;; procedure and class names are as of the SIMULA 87 standard. 1374 ;; procedure and class names are as of the SIMULA 87 standard.
1380 (interactive) 1375 (interactive)
1381 (mapcar (function (lambda (args) 1376 (dolist (args
1382 (apply 'define-abbrev simula-mode-abbrev-table args)))
1383 '(("abs" "Abs" simula-expand-stdproc) 1377 '(("abs" "Abs" simula-expand-stdproc)
1384 ("accum" "Accum" simula-expand-stdproc) 1378 ("accum" "Accum" simula-expand-stdproc)
1385 ("activate" "ACTIVATE" simula-expand-keyword) 1379 ("activate" "ACTIVATE" simula-expand-keyword)
@@ -1609,7 +1603,14 @@ If not nil and not t, move to limit of search and return nil."
1609 ("virtual" "VIRTUAL" simula-expand-keyword) 1603 ("virtual" "VIRTUAL" simula-expand-keyword)
1610 ("wait" "Wait" simula-expand-stdproc) 1604 ("wait" "Wait" simula-expand-stdproc)
1611 ("when" "WHEN" simula-electric-keyword) 1605 ("when" "WHEN" simula-electric-keyword)
1612 ("while" "WHILE" simula-expand-keyword)))) 1606 ("while" "WHILE" simula-expand-keyword)))
1607 (define-abbrev simula-mode-abbrev-table
1608 (nth 0 args) (nth 1 args) (nth 2 args) nil 'system)))
1609
1610(if simula-abbrev-file
1611 (read-abbrev-file simula-abbrev-file))
1612(let (abbrevs-changed)
1613 (simula-install-standard-abbrevs))
1613 1614
1614;; Hilit mode support. 1615;; Hilit mode support.
1615(if (and (fboundp 'hilit-set-mode-patterns) 1616(if (and (fboundp 'hilit-set-mode-patterns)