Variable: diff-hl-async-inhibit-functions

diff-hl-async-inhibit-functions is a customizable variable defined in diff-hl.el.

Value

(diff-hl-with-editor-p
 file-remote-p)

Documentation

Functions to call to check whether asynchronous method should be disabled.

When diff-hl-update-async is non-nil, these functions are called in turn and passed the value default-directory.

If any returns non-nil, diff-hl-update will run synchronously anyway.

Source Code

;; Defined in /nix/store/cfz56rl3lp066226i0bmmgiicls3gcq7-emacs-packages-deps/share/emacs/site-lisp/elpa/diff-hl-20261001.135/diff-hl.el
;; Threads are not reliable with remote files, yet.
(defcustom diff-hl-async-inhibit-functions (list #'diff-hl-with-editor-p
                                                 #'file-remote-p)
  "Functions to call to check whether asynchronous method should be disabled.

When `diff-hl-update-async' is non-nil, these functions are called in turn
and passed the value `default-directory'.

If any returns non-nil, `diff-hl-update' will run synchronously anyway."
  :type '(repeat :tag "Predicate" function))