[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Buffer attributes?
From: |
Pascal J. Bourguignon |
Subject: |
Re: Buffer attributes? |
Date: |
Wed, 08 Apr 2015 16:13:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Doug Lewan <dougl@shubertticketing.com> writes:
> Is there a general idea of attributes of a buffer in emacs? A common
> facility, like stat(2) for files, would be nice.
There are buffer local variables. They're the dynamic attributes of the
buffer objects.
> The attribute I'm most interested in at the moment is the buffer's
> creation time, but I can't find such a thing.
You can write a meat function to add to the buffer-list-update-hook,
that will save the current time to the buffer-creation-time buffer local
variable.
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk