help-gnu-emacs
[Top][All Lists]
Advanced

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

How to know is a buffer is a temporary one?


From: Sebastien Vauban
Subject: How to know is a buffer is a temporary one?
Date: Mon, 29 Jul 2013 17:26:56 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (windows-nt)

Hello,

I want to attach some code on first-change-hook, but I noticed *a lot* of
temporary buffers are created (and modified), hence my code running in many
situations where it doesn't need to.

So, is there a way for my code not to be applied for temp buffers? Function to
use in a `(when ...)' construct? Or do I have to look for the pattern `^ *' in
the name of the buffer (that is, a name beginning with a space and a star)?

Best regards,
  Seb

-- 
Sebastien Vauban


reply via email to

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