Function: treemacs--dont-diff-in-treemacs-window

treemacs--dont-diff-in-treemacs-window is a byte-compiled function defined in treemacs-compatibility.el.

Signature

(treemacs--dont-diff-in-treemacs-window)

Documentation

Select next-window before ediff's window setup.

Treemacs is by default a side-window, meaning it'll throw an error if ediff trys to split it.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-compatibility.el
(with-eval-after-load 'ediff
  (add-hook
   'ediff-before-setup-hook
   (defun treemacs--dont-diff-in-treemacs-window ()
     "Select `next-window' before ediff's window setup.
Treemacs is by default a side-window, meaning it'll throw an error if ediff trys
to split it."
     (when treemacs--in-this-buffer
       (select-window (next-window))))))