Function: dired--set-auto-toggle-b-switch

dired--set-auto-toggle-b-switch is a byte-compiled function defined in dired.el.gz.

Signature

(dired--set-auto-toggle-b-switch SYMBOL VALUE)

Documentation

The :set function for user option dired-auto-toggle-b-switch.

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired--set-auto-toggle-b-switch (symbol value)
  "The :set function for user option `dired-auto-toggle-b-switch'."
  (custom-set-default symbol value)
  (if value
      (add-hook 'post-command-hook #'dired--toggle-b-switch nil t)
    (remove-hook 'post-command-hook #'dired--toggle-b-switch t))
  (dolist (b (buffer-list))
    (with-current-buffer b
      (dired--toggle-b-switch))))