1 ;; print buffers unsaved, unless within "seconds" below
4 ;; emacsclient --eval "$(cat /a/bin/ds/unsaved-buffers.el)" | sed 's/^..//;s/..$//'
11 (bpath (buffer-file-name buf)))
13 (buffer-modified-p buf)
15 (file-attribute-modification-time (file-attributes bpath))
16 (time-add (current-time) (- seconds))))