[Top][All Lists]
[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: |
Richard Stallman |
Subject: |
Re: emacs refuses to save file in the same encoding it was read |
Date: |
Thu, 23 Oct 2003 14:38:13 -0400 |
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?
*** subr.el.~1.365.~ Mon Oct 20 19:26:00 2003
--- subr.el Thu Oct 23 06:10:42 2003
***************
*** 852,857 ****
--- 852,859 ----
function, it is changed to a list of functions."
(or (boundp hook) (set hook nil))
(or (default-boundp hook) (set-default hook nil))
+ (if (local-variable-if-set-p hook)
+ (setq local t))
(if local (unless (local-variable-if-set-p hook)
(set (make-local-variable hook) (list t)))
;; Detect the case where make-local-variable was used on a hook
- emacs refuses to save file in the same encoding it was read, Sam Steingold, 2003/10/10
- Re: emacs refuses to save file in the same encoding it was read, Kenichi Handa, 2003/10/13
- Re: emacs refuses to save file in the same encoding it was read, Juri Linkov, 2003/10/22
- Re: emacs refuses to save file in the same encoding it was read,
Richard Stallman <=
- Re: emacs refuses to save file in the same encoding it was read, Stefan Monnier, 2003/10/23
- Re: emacs refuses to save file in the same encoding it was read, Richard Stallman, 2003/10/24
- Re: emacs refuses to save file in the same encoding it was read, Stefan Monnier, 2003/10/24
- Re: emacs refuses to save file in the same encoding it was read, Richard Stallman, 2003/10/25
- Re: emacs refuses to save file in the same encoding it was read, Stefan Monnier, 2003/10/26
- Re: emacs refuses to save file in the same encoding it was read, Alan Shutko, 2003/10/23