unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: emacs refuses to save file in the same encoding it was read
Date: Thu, 23 Oct 2003 14:38:13 -0400	[thread overview]
Message-ID: <E1ACkLd-0004jk-4W@fencepost.gnu.org> (raw)
In-Reply-To: <87u1617hxe.fsf@mail.jurta.org> (message from Juri Linkov on 22 Oct 2003 12:14:37 +0300)

    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

  parent reply	other threads:[~2003-10-23 18:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-10 20:08 emacs refuses to save file in the same encoding it was read Sam Steingold
2003-10-14  0:52 ` Kenichi Handa
2003-10-14  3:42   ` Pascal J.Bourguignon
2003-10-22  9:14 ` Juri Linkov
2003-10-22 12:43   ` Stefan Monnier
2003-10-22 15:17     ` Juri Linkov
2003-10-22 17:15       ` Stefan Monnier
2003-10-23 18:38   ` Richard Stallman [this message]
2003-10-23 19:15     ` Stefan Monnier
2003-10-24 10:42       ` Richard Stallman
2003-10-24 14:14         ` Stefan Monnier
2003-10-25 22:26           ` Richard Stallman
2003-10-26 18:52             ` Stefan Monnier
2003-10-23 19:27     ` Alan Shutko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1ACkLd-0004jk-4W@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).