From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Emacs ignores modified state of "untitled" buffer Date: Fri, 21 May 2010 19:15:29 +0200 Message-ID: References: <51707DDA-8D52-4D9F-9FD4-461987F2DEDE@nf.mpg.de> <13332868-CB10-41EE-AED7-3980DEB97220@nf.mpg.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1274463012 12644 80.91.229.12 (21 May 2010 17:30:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 May 2010 17:30:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Kevin Rodgers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 21 19:30:10 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OFW2t-0000bX-QM for geh-help-gnu-emacs@m.gmane.org; Fri, 21 May 2010 19:30:06 +0200 Original-Received: from localhost ([127.0.0.1]:60125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFW2s-00079e-10 for geh-help-gnu-emacs@m.gmane.org; Fri, 21 May 2010 13:30:02 -0400 Original-Received: from [140.186.70.92] (port=59102 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFVp9-0006oa-R9 for help-gnu-emacs@gnu.org; Fri, 21 May 2010 13:15:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFVp8-0004DO-60 for help-gnu-emacs@gnu.org; Fri, 21 May 2010 13:15:51 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:33900) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFVp7-0004DJ-V3 for help-gnu-emacs@gnu.org; Fri, 21 May 2010 13:15:50 -0400 Original-Received: by gyg4 with SMTP id 4so761773gyg.0 for ; Fri, 21 May 2010 10:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=1nr4jvWY8tFLkWjDqZYfqNLzD2Q4yK+vgalPW49RWOc=; b=h55nrEcf0LFyhTdtuZGhftRHp09m6ckQwmFTVDW8CINAwghnlzZsEKpGWwQkK+zhEW tjyEdoSeUe0Nm+H/rF1iU9t5RNfJRf4YKF8SKb4EFT/CYC/arplCGjvuX/8v3v0OCNOq ZJ/pPl0wrM5yfU5c6k2zzUseh+/zunKZuSwHo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=XMVj+KiFytMxLH/cNvTZRSHUaP03TZMUNaAVoSS50stoO6+0obhbwxTR5DPArL3Hhb fOw49I0fcv9RQSE3uJSkM1JGelvpjPOZoNzIDr1plqYZNp7vrTlOAdchZ7++kRX7VkAT Feq3s3E34K4nOufC8SLWXVDaPbMDY3XWOBgr0= Original-Received: by 10.100.246.26 with SMTP id t26mr2695578anh.112.1274462149201; Fri, 21 May 2010 10:15:49 -0700 (PDT) Original-Received: by 10.100.177.20 with HTTP; Fri, 21 May 2010 10:15:29 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73720 Archived-At: On Fri, May 21, 2010 at 3:17 PM, Kevin Rodgers wrote: > =C2=A0 =C2=A0;; Protect against kill-emacs: > =C2=A0 =C2=A0(setq buffer-offer-save t) >> I guess changing the mode somehow overwrites the kill protections in >> switch-to-new-buffer? > > Yes, via kill-all-local-variables. You have to use (put 'buffer-offer-save 'permanent-local t) to protect against kill-all-local-variables. I think it is a bug that this is not already done in Emacs.