|
From: | Emanuel Berg |
Subject: | Re: let, let*, oh, why [was: Elisp - Function returning a list] |
Date: | Sun, 27 Dec 2020 12:56:53 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> (defvar bot-version) > (setq bot-version (format-time-string "%Y-%m-%dT%H:%M:%S" > (nth 5 (file-attributes buffer-file-name)) )) Maybe better: (defvar bot-version) (setq bot-version (format-time-string "%Y-%m-%dT%H:%M:%S" (file-attribute-modification-time (file-attributes (buffer-file-name)) ))) Hm, actually in this case the Lisp isn't cool either! OK, just a bad example :) -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |