]> git.eshelyaron.com Git - emacs.git/commit
Make bash-ts-mode fall back to sh-mode if the file isn't in Bash
authorYuan Fu <casouri@gmail.com>
Sat, 26 Nov 2022 23:31:48 +0000 (15:31 -0800)
committerYuan Fu <casouri@gmail.com>
Sat, 26 Nov 2022 23:40:25 +0000 (15:40 -0800)
commit3fe5fc3dc164fbc12c7716d6b5430f2b85833290
tree8587a95fdcdfc7d50f2ef7c47ced29914be730ea
parentbd10c3cfa29af24295f067b08a0c9d6a4fd02736
Make bash-ts-mode fall back to sh-mode if the file isn't in Bash

* lisp/progmodes/sh-script.el (sh--guess-shell): Take out into a new
function.
(sh-base-mode): Use the new function.
(bash-ts-mode): Update docstring.
(sh--redirect-recursing): New variable.
(sh--redirect-bash-ts-mode): New function.
lisp/progmodes/sh-script.el