GNU bug report logs -
#12989
24.3.50; buffer-file-type is not buffer-local
Previous Next
Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Date: Sun, 25 Nov 2012 04:01:02 UTC
Severity: normal
Found in version 24.3.50
Fixed in version 24.4
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Mon, 26 Nov 2012 23:35:20 +0900
> From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
> Cc: 12989 <at> 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.
This bug report was last modified 12 years and 95 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.