emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs refuses to save file in the same encoding it was read


From: Stefan Monnier
Subject: Re: emacs refuses to save file in the same encoding it was read
Date: 22 Oct 2003 08:43:59 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>> when I answer affirmatively, the file is saved, but a line
>> ;; -*- coding: iso-2022-7bit; -*-
>> is added in front of my cookie.
>> 
>> what is going on?

> 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.

Since when dos it do that and why ?


        Stefan


PS: If the hook should be modified locally, you should set the `local'
    argument to a non-nil value.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]