unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Buffer attributes?
Date: Wed, 08 Apr 2015 16:13:29 +0200	[thread overview]
Message-ID: <87y4m2so6u.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.202.1428501864.904.help-gnu-emacs@gnu.org

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


       reply	other threads:[~2015-04-08 14:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.202.1428501864.904.help-gnu-emacs@gnu.org>
2015-04-08 14:13 ` Pascal J. Bourguignon [this message]
2015-04-08 17:15 ` Buffer attributes? Emanuel Berg
2015-04-08 14:04 Doug Lewan
2015-04-08 14:21 ` Eli Zaretskii
2015-04-10 15:15 ` Doug Lewan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4m2so6u.fsf@kuiper.lan.informatimago.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).