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

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

Re: How to know is a buffer is a temporary one?


From: Thorsten Jolitz
Subject: Re: How to know is a buffer is a temporary one?
Date: Mon, 29 Jul 2013 18:19:21 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

"Sebastien Vauban" <sva-news@mygooglest.com>
writes:

> 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)?

#+begin_quote
...with-temp-buffer creates a buffer named ␣*temp* (note the leading
whitespace)...
#+end_quote

maybe its enough to identify all tmp buffers created by
`with-current-buffer' by their naming convention?

cheers,
Thorsten




reply via email to

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