From 0fd4ef15aa2449865a4f17982247e592d8d90184 Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Mon, 9 Sep 2024 17:16:32 +0200 Subject: [PATCH] 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) (cherry picked from commit 31e8500b061b6963708e66468fc89db1006226d7) --- lisp/midnight.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/midnight.el b/lisp/midnight.el index 18a4e437f91..6e1e7b5ccb7 100644 --- a/lisp/midnight.el +++ b/lisp/midnight.el @@ -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 -- 2.39.2