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: Re: How to know is a buffer is a temporary one? Date: Mon, 29 Jul 2013 21:00:34 +0200 Organization: Sebastien Vauban Message-ID: <861u6h42el.fsf@somewhere.org> References: <86k3k975fj.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375124721 26250 80.91.229.3 (29 Jul 2013 19:05:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2013 19:05:21 +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 21:05:24 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 1V3sl1-0001Lt-AX for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jul 2013 21:05:23 +0200 Original-Received: from localhost ([::1]:52054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3sl0-0006UA-Ty for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jul 2013 15:05:22 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!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: 19 Injection-Info: mx05.eternal-september.org; posting-host="6f05eaee171434c896d44feeaf7179f0"; logging-data="12394"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX1+SWEATDLCwSw8QGYuBXnuY" User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (windows-nt) X-Archive: encrypt Cancel-Lock: sha1:bdmX37LyQG/n0AgbbRsAzbCpzfU= sha1:Ya3MTEIKZ+TjQ+OGUe/wOMEXGEI= X-Url: Under construction... Original-Xref: usenet.stanford.edu gnu.emacs.help:200251 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:92518 Archived-At: Hello Stefan, Stefan Monnier wrote: >> So, is there a way for my code not to be applied for temp buffers? > > Emacs doesn't really have a formal definition of "temp buffer". That was my (unknown) point. > Maybe you're better off trying to define "useful buffer" for your > particular case. E.g. maybe check `buffer-file-name'. Thanks for you answer! Best regards, Seb -- Sebastien Vauban