emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 31e8500b061: Human readable last display time of killed buffer


From: Eli Zaretskii
Subject: master 31e8500b061: Human readable last display time of killed buffer
Date: Thu, 12 Sep 2024 05:31:03 -0400 (EDT)

branch: master
commit 31e8500b061b6963708e66468fc89db1006226d7
Author: Manuel Giraud <manuel@ledu-giraud.fr>
Commit: Eli Zaretskii <eliz@gnu.org>

    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)
---
 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]