Eli Zaretskii writes: >> Date: Thu, 18 Nov 2021 10:47:37 +0100 >> From: miha--- via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> Please find the attached patches which enable fontification and >> indentation in M-x shell and ielm. The main fontification and >> indentation machinery is implemented in comint.el and should be general >> enough for use by other comint derived modes. It works by making an >> indirect buffer, putting it in a suitable major mode (sh-mode in >> M-x shell buffers, for example) and fontifying and indenting user input >> that buffer. > > Thanks. > > One general comment about the doc strings: > >> +(defvar-local comint-indirect-setup-function nil >> + "Function to set up an indirect buffer. > > here and elsewhere in the changes, please modify the first sentence of > the doc strings so that they don't sound too general. "Set up an > indirect buffer" doesn't hint on the fact that this is for comint > buffers, not in general about indirect buffers. The same problem > exists with many doc strings in these patches. Okay, attached are revised patches with improved doc strings and a fixed commit message.