diff options
author | Glenn Morris <rgm@gnu.org> | 2006-12-05 05:25:36 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2006-12-05 05:25:36 +0000 |
commit | e5a4bf48526ec975e61adbc0a61750c36ba22fdf (patch) | |
tree | 9dafcdaabdfa389de3a23eba75b1d4ee9e1e17e4 | |
parent | a48edb29fad38a1d04e69bac50a11c580bda8321 (diff) | |
download | emacs-e5a4bf48526ec975e61adbc0a61750c36ba22fdf.tar.gz |
(sql-mode-abbrev-table): Define abbrevs even if abbrev-table is
non-nil (saved user abbrevs may have been restored).
-rw-r--r-- | lisp/progmodes/sql.el | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index ff5493de364..4b5a8bb51f1 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el @@ -847,23 +847,24 @@ Based on `comint-mode-map'.") (defvar sql-mode-abbrev-table nil "Abbrev table used in `sql-mode' and `sql-interactive-mode'.") (unless sql-mode-abbrev-table - (define-abbrev-table 'sql-mode-abbrev-table nil) - (mapcar - ;; In Emacs 21.3+, provide SYSTEM-FLAG to define-abbrev. - '(lambda (abbrev) - (let ((name (car abbrev)) - (expansion (cdr abbrev))) - (condition-case nil - (define-abbrev sql-mode-abbrev-table name expansion nil 0 t) - (error - (define-abbrev sql-mode-abbrev-table name expansion))))) - '(("ins" "insert") - ("upd" "update") - ("del" "delete") - ("sel" "select") - ("proc" "procedure") - ("func" "function") - ("cr" "create")))) + (define-abbrev-table 'sql-mode-abbrev-table nil)) + +(mapcar + ;; In Emacs 21.3+, provide SYSTEM-FLAG to define-abbrev. + '(lambda (abbrev) + (let ((name (car abbrev)) + (expansion (cdr abbrev))) + (condition-case nil + (define-abbrev sql-mode-abbrev-table name expansion nil 0 t) + (error + (define-abbrev sql-mode-abbrev-table name expansion))))) + '(("ins" "insert") + ("upd" "update") + ("del" "delete") + ("sel" "select") + ("proc" "procedure") + ("func" "function") + ("cr" "create"))) ;; Syntax Table |