From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to know is a buffer is a temporary one?
Date: Mon, 29 Jul 2013 18:19:21 +0200 [thread overview]
Message-ID: <87d2q1z6d2.fsf@gmail.com> (raw)
In-Reply-To: 86k3k975fj.fsf@somewhere.org
"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
next prev parent reply other threads:[~2013-07-29 16:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-29 15:26 How to know is a buffer is a temporary one? Sebastien Vauban
2013-07-29 16:19 ` Thorsten Jolitz [this message]
2013-07-29 18:34 ` Stefan Monnier
[not found] ` <mailman.2054.1375122929.12400.help-gnu-emacs@gnu.org>
2013-07-29 19:00 ` Sebastien Vauban
2013-07-29 20:06 ` Sebastien Vauban
2013-07-29 21:09 ` Drew Adams
2013-07-29 21:24 ` Stefan Monnier
[not found] ` <mailman.2061.1375133109.12400.help-gnu-emacs@gnu.org>
[not found] ` <mailman.2061.1375133109.12400.help-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-07-30 7:33 ` Sebastien Vauban
2013-07-30 13:26 ` Stefan Monnier
[not found] ` <mailman.2130.1375190796.12400.help-gnu-emacs@gnu.org>
[not found] ` <mailman.2130.1375190796.12400.help-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-07-30 13:58 ` Sebastien Vauban
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2q1z6d2.fsf@gmail.com \
--to=tjolitz@gmail.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.