Function: ghostel--buffer-identification-update

ghostel--buffer-identification-update is a natively compiled function defined in ghostel.el.

Signature

(ghostel--buffer-identification-update)

Documentation

Recompute mode-line-buffer-identification from the configured format.

No-op when ghostel-buffer-identification-format is nil.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--buffer-identification-update ()
  "Recompute `mode-line-buffer-identification' from the configured format.
No-op when `ghostel-buffer-identification-format' is nil."
  (when ghostel-buffer-identification-format
    (let ((new (ghostel--buffer-identification
                ghostel-buffer-identification-format)))
      ;; Property-aware comparison: a truncated %t can render identically
      ;; for different titles while the help-echo differs.
      (unless (equal-including-properties new mode-line-buffer-identification)
        (setq-local mode-line-buffer-identification new)
        (force-mode-line-update)))))