Eli Zaretskii writes: > [...] > You say "create an indirect buffer and set up...", but isn't that done > by some of the other code you submitted? If so, instead of > "create...and set up...", which implies that the user of this variable > must do so, the doc string should say something like > > If input fontification or indentation is enabled, function > `so-and-so' creates an indirect buffer and sets up its major mode > and syntax highlighting. This hook is useful for running in that > indirect buffer when its major mode is turned on. Okay, thanks for feedback, please find a refined patch attached.