diff options
author | Miha Rihtaršič <miha@kamnitnik.top> | 2022-09-11 12:59:02 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-09-11 12:59:02 +0200 |
commit | 1d08e480201f39c99a964f090672308b8c92bef8 (patch) | |
tree | 2e4ead65b78b2c246f956c094c15564af6a2451c /lisp/comint.el | |
parent | a380ce2008e944486946b0083aa58cc8161176c6 (diff) | |
download | emacs-1d08e480201f39c99a964f090672308b8c92bef8.tar.gz emacs-1d08e480201f39c99a964f090672308b8c92bef8.tar.bz2 emacs-1d08e480201f39c99a964f090672308b8c92bef8.zip |
Improve some shell highlight doc strings
* lisp/shell.el (shell-highlight-undef-mode-restart): Rename function.
* lisp/shell.el (shell-comint-fl-enable):
(shell--highlight-undef-indirect)
* lisp/ielm.el (ielm-comint-fl-enable):
* lisp/comint.el: (comint--fl-fontify-region): Improve doc strings.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r-- | lisp/comint.el | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 751e561d3e3..696dac3d12b 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -4030,9 +4030,13 @@ to calling this function and `change-major-mode-hook' along with `after-change-major-mode-hook' are bound to nil.") (defcustom comint-indirect-setup-hook nil - "Hook run after setting up an indirect comint fontification buffer. -It is run after the indirect buffer is set up for fontification -of input regions." + "Hook run in an indirect buffer for input fontification. +Input fontification and indentation, if enabled, is performed in +an indirect buffer, whose major mode and syntax highlighting are +set up according to `comint-indirect-setup-function'. After this +setup is done, run this hook with the indirect buffer as the +current buffer. This can be used to further customize +fontification and other behaviour of the indirect buffer." :group 'comint :type 'hook :version "29.1") @@ -4117,8 +4121,8 @@ setting." (defun comint--fl-fontify-region (fun beg end verbose) "Fontify process output and user input in the current comint buffer. -First, highlight the region between BEG and END using FUN. Then -highlight only the input text in the region with the help of an +First, fontify the region between BEG and END using FUN. Then +fontify only the input text in the region with the help of an indirect buffer. VERBOSE is passed to the fontify-region functions. Skip fontification of input regions with non-nil `comint--fl-inhibit-fontification' text property." |