Human readable last display time of killed buffer

* lisp/midnight.el (clean-buffer-list): Upon killing a buffer,
add a human readable last displayed information.  (Bug#73150)
This commit is contained in:
Manuel Giraud 2024-09-09 17:16:32 +02:00 committed by Eli Zaretskii
parent 06de3ae412
commit 31e8500b06

View file

@ -179,7 +179,8 @@ lifetime, i.e., its \"age\" when it will be purged."
(and (buffer-file-name buf) (buffer-modified-p buf))
(get-buffer-window buf 'visible)
(< delay cbld))
(message "[%s] killing `%s'" ts bn)
(message "[%s] killing `%s' (last displayed %s ago)" ts bn
(format-seconds "%Y, %D, %H, %M, %z%S" delay))
(kill-buffer buf))))))
;;; midnight hook