Function: custom-dirlocals-maybe-update-cons

custom-dirlocals-maybe-update-cons is a byte-compiled function defined in cus-edit.el.gz.

Signature

(custom-dirlocals-maybe-update-cons)

Documentation

If focusing out from the first widget in a cons widget, update its value.

Source Code

;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
(defun custom-dirlocals-maybe-update-cons ()
  "If focusing out from the first widget in a cons widget, update its value."
  (when-let* ((w (widget-at)))
    (when (widget-get w :custom-dirlocals-symbol)
      (widget-value-set (widget-get w :parent)
                        (cons (widget-value w) ""))
      (widget-setup))))