emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el
Date: Sun, 11 Nov 2001 15:07:46 -0500

Index: emacs/lisp/progmodes/sh-script.el
diff -u emacs/lisp/progmodes/sh-script.el:1.103 
emacs/lisp/progmodes/sh-script.el:1.104
--- emacs/lisp/progmodes/sh-script.el:1.103     Fri Oct 26 11:37:54 2001
+++ emacs/lisp/progmodes/sh-script.el   Sun Nov 11 15:07:46 2001
@@ -1662,7 +1662,7 @@
 ;; Indentation stuff.
 (defun sh-must-be-shell-mode ()
   "Signal an error if not in Shell-script mode."
-  (unless (eq major-mode 'sh-mode)
+  (unless (derived-mode-p 'sh-mode)
     (error "This buffer is not in Shell-script mode")))
 
 (defun sh-must-support-indent ()
@@ -1670,7 +1670,7 @@
 Also, the buffer must be in Shell-script mode."
   (sh-must-be-shell-mode)
   (unless sh-indent-supported-here
-    (error "This buffer's shell type is not supported for this command")))
+    (error "This buffer's shell does not support indentation through Emacs")))
 
 (defun sh-make-vars-local ()
   "Make the indentation variables local to this buffer.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]