[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add-mode-abbrev only writes to fundamental-mode
From: |
Richard Stallman |
Subject: |
Re: add-mode-abbrev only writes to fundamental-mode |
Date: |
Sun, 01 Aug 2004 18:39:46 -0400 |
Does this patch fix it? You'll need to recompile and reload
sh-script.
*** sh-script.el 27 Apr 2004 04:35:54 -0400 1.139
--- sh-script.el 01 Aug 2004 17:32:28 -0400
***************
*** 353,358 ****
--- 353,363 ----
(defvar sh-shell (sh-canonicalize-shell (file-name-nondirectory
sh-shell-file))
"The shell being programmed. This is set by \\[sh-set-shell].")
+ (defvar sh-mode-abbrev-table nil)
+
+ (define-abbrev-table 'sh-mode-abbrev-table ())
+
+
;; I turned off this feature because it doesn't permit typing commands
;; in the usual way without help.
;;(defvar sh-abbrevs
***************
*** 1483,1489 ****
(setq require-final-newline tem)))
(setq
comment-start-skip "#+[\t ]*"
! ;;; local-abbrev-table (sh-feature sh-abbrevs)
mode-line-process (format "[%s]" sh-shell)
sh-shell-variables nil
sh-shell-variables-initialized nil
--- 1488,1494 ----
(setq require-final-newline tem)))
(setq
comment-start-skip "#+[\t ]*"
! local-abbrev-table sh-mode-abbrev-table
mode-line-process (format "[%s]" sh-shell)
sh-shell-variables nil
sh-shell-variables-initialized nil