Joe Corneli wrote:
After running this
(eval-after-load "sh-script"
'(put 'sh-maybe-here-document 'disabled t))
and opening a bash script with this in it
grep "<<$SF>>" $HOME/.todo/$TODOLIST > $HOME/p
ade=$?
`ade=$?' and following text is still in sh-heredoc-face
So I guessed wrong, and disabling that command is not enough.
From the section of the emacs manual "Disabling commands":
Disabling a command has no effect on calling it as a function
from Lisp programs.
That is, it only affects interative use via M-x.
The incorrect identification of the line you quote as a heredoc is
fixed in the CVS version of emacs.