From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: How to know is a buffer is a temporary one? Date: Mon, 29 Jul 2013 17:26:56 +0200 Organization: Sebastien Vauban Message-ID: <86k3k975fj.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375111816 6051 80.91.229.3 (29 Jul 2013 15:30:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2013 15:30:16 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Mon Jul 29 17:30:19 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V3pOs-0002la-NC for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jul 2013 17:30:18 +0200 Original-Received: from localhost ([::1]:34055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3pOs-00013q-8p for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jul 2013 11:30:18 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Injection-Info: mx05.eternal-september.org; posting-host="402b34550bd938aa98825778083dce0e"; logging-data="32721"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX1+g1P1HFdMD9jTUtxpGo9YH" User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (windows-nt) X-Url: Under construction... X-Archive: encrypt Cancel-Lock: sha1:jN2mEDIZi+U3Lp/uCtKGCktQHbg= sha1:PIs1FX+lqYK2KKJ/epQuvSWJzEU= Original-Xref: usenet.stanford.edu gnu.emacs.help:200244 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:92511 Archived-At: 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