# HG changeset patch # User Stefan Monnier # Date 1046137555 0 # Node ID 0b437aaddba53aaa93d60f00a4f9078c8ec5b73e # Parent afbb2d6d2f07720b6ba47795f693fde47c776d63 Move abbrev loading to after the fun it uses. (simula-install-standard-abbrevs): Use dolist. Use system-flag when calling define-abbrev. diff -r afbb2d6d2f07 -r 0b437aaddba5 lisp/progmodes/simula.el --- a/lisp/progmodes/simula.el Tue Feb 25 01:36:23 2003 +0000 +++ b/lisp/progmodes/simula.el Tue Feb 25 01:45:55 2003 +0000 @@ -399,11 +399,6 @@ (font-lock-syntactic-keywords . simula-font-lock-syntactic-keywords))) (abbrev-mode 1)) -(if simula-abbrev-file - (read-abbrev-file simula-abbrev-file)) -(let (abbrevs-changed) - (simula-install-standard-abbrevs)) - (defun simula-indent-exp () "Indent SIMULA expression following point." (interactive) @@ -1378,8 +1373,7 @@ "Define Simula keywords, procedures and classes in local abbrev table." ;; procedure and class names are as of the SIMULA 87 standard. (interactive) - (mapcar (function (lambda (args) - (apply 'define-abbrev simula-mode-abbrev-table args))) + (dolist (args '(("abs" "Abs" simula-expand-stdproc) ("accum" "Accum" simula-expand-stdproc) ("activate" "ACTIVATE" simula-expand-keyword) @@ -1609,7 +1603,14 @@ ("virtual" "VIRTUAL" simula-expand-keyword) ("wait" "Wait" simula-expand-stdproc) ("when" "WHEN" simula-electric-keyword) - ("while" "WHILE" simula-expand-keyword)))) + ("while" "WHILE" simula-expand-keyword))) + (define-abbrev simula-mode-abbrev-table + (nth 0 args) (nth 1 args) (nth 2 args) nil 'system))) + +(if simula-abbrev-file + (read-abbrev-file simula-abbrev-file)) +(let (abbrevs-changed) + (simula-install-standard-abbrevs)) ;; Hilit mode support. (if (and (fboundp 'hilit-set-mode-patterns)