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





reply via email to

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