mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(sh-must-be-shell-mode): Allow modes derived from sh-mode.
This commit is contained in:
parent
c9d557f595
commit
4aa3ba0a81
1 changed files with 2 additions and 2 deletions
|
|
@ -1662,7 +1662,7 @@ region, clear header."
|
|||
;; 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 @@ region, clear header."
|
|||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue