From: Eli Zaretskii <eliz@gnu.org>
To: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
Cc: 12989@debbugs.gnu.org
Subject: bug#12989: 24.3.50; buffer-file-type is not buffer-local
Date: Mon, 26 Nov 2012 19:24:48 +0200 [thread overview]
Message-ID: <83sj7wxonz.fsf@gnu.org> (raw)
In-Reply-To: <87624sh1p3.wl%%xmue@d1.dion.ne.jp>
> Date: Mon, 26 Nov 2012 23:35:20 +0900
> From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
> Cc: 12989@debbugs.gnu.org
>
> But I think I found it out just now. Modifying and saving gzipped
> text on Windows causes the problem. Because jka-compr-write-region
> (in lisp/jka-compr.el) sets buffer-file-type to t.
Yes, this is one of the places left that set this variable. Another
one is in bytecomp.el, in Tramp, and a few more elsewhere. I will
remove them all in the trunk, after careful consideration what to
replace them with.
To repeat what I wrote in emacs-devel, for the record: revision 110960
on the emacs-24 branch made buffer-file-type buffer-local again, and
find-file-not-found-set-buffer-file-coding-system no longer sets this
variable if buffer-file-coding-system is no-conversion.
> > If you want to force Emacs to treat certain files as binary, bind
> > coding-system-for-read to 'binary or modify file-coding-system-alist
> > accordingly.
>
> In my report, coding-system-for-read is bound to 'no-conversion. Do
> you mean we should use 'binary instead of 'no-conversion?
No. (These two are the same.) I thought you were setting the
variable in your code or in your customizations, and suggested to use
the standard facilities instead. But since the problem comes from
Emacs itself, that advice is no longer valid.
next prev parent reply other threads:[~2012-11-26 17:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-25 3:58 bug#12989: 24.3.50; buffer-file-type is not buffer-local Kazuhiro Ito
2012-11-25 16:50 ` Eli Zaretskii
2012-11-25 21:16 ` Stefan Monnier
2012-11-25 21:26 ` Eli Zaretskii
2012-11-25 23:47 ` Richard Stallman
2012-11-26 0:47 ` Juanma Barranquero
2012-11-26 1:26 ` Stefan Monnier
2012-11-26 14:35 ` Kazuhiro Ito
2012-11-26 17:24 ` Eli Zaretskii [this message]
2013-02-09 13:01 ` Eli Zaretskii
2013-02-09 14:29 ` Stefan Monnier
2013-02-09 16:21 ` Eli Zaretskii
2013-02-09 16:08 ` Michael Albinus
2013-02-09 16:17 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83sj7wxonz.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=12989@debbugs.gnu.org \
--cc=kzhr@d1.dion.ne.jp \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.