From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: emacs refuses to save file in the same encoding it was read Date: 23 Oct 2003 15:15:40 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87u1617hxe.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066936676 13349 80.91.224.253 (23 Oct 2003 19:17:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2003 19:17:56 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Oct 23 21:17:53 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACky1-0003Ry-00 for ; Thu, 23 Oct 2003 21:17:53 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACky1-0001Dm-00 for ; Thu, 23 Oct 2003 21:17:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACkxQ-0003ZG-Pn for emacs-devel@quimby.gnus.org; Thu, 23 Oct 2003 15:17:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ACkx7-0003Y6-Nq for emacs-devel@gnu.org; Thu, 23 Oct 2003 15:16:57 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ACkwa-0003Rv-W9 for emacs-devel@gnu.org; Thu, 23 Oct 2003 15:16:56 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACkw4-0003NB-Vm; Thu, 23 Oct 2003 15:15:53 -0400 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id h9NJFfnR007594; Thu, 23 Oct 2003 15:15:41 -0400 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id D05343C63E; Thu, 23 Oct 2003 15:15:40 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner: Found to be clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17382 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17382 > This line is added by the function `bbdb-write-file-hook-fn'. > Up to now it was added to `local-write-file-hooks' locally only in > the bbdb buffer. But now the value of `local-write-file-hooks' > is set by the function `add-hook' globally, so this hook adds > this line in the beginning of every saved buffer. > it looks like my change in add-hook is not right for > variables that become local when set. > dies ths chg work in general? I think the code is already pretty messy, so I'd rather avoid adding yet-another-test. Could you explain the reason for the recent change that introduced the new problem? Maybe we can fix it in some other way? Stefan