Variable: helpful-max-highlight

helpful-max-highlight is a variable defined in helpful.el.

Value

5000

Documentation

Don't highlight code with more than this many characters.

This is currently only used for C code, as lisp highlighting seems to be more efficient. This may change again in future.

See this-command as an example of a large piece of C code that can make Helpful very slow.

Source Code

;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
;; TODO: explore whether more basic highlighting is fast enough to
;; handle larger functions. See `c-font-lock-init' and its use of
;; font-lock-keywords-1.
(defconst helpful-max-highlight 5000
  "Don't highlight code with more than this many characters.

This is currently only used for C code, as lisp highlighting
seems to be more efficient. This may change again in future.

See `this-command' as an example of a large piece of C code that
can make Helpful very slow.")