GNU bug report logs - #12989
24.3.50; buffer-file-type is not buffer-local

Previous Next

Package: emacs;

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


Message #8 received at 12989 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Cc: 12989 <at> debbugs.gnu.org
Subject: Re: bug#12989: 24.3.50; buffer-file-type is not buffer-local
Date: Sun, 25 Nov 2012 18:50:05 +0200
> Date: Sun, 25 Nov 2012 12:58:01 +0900
> From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
> 
> When I evaluate below code, Emacs-23 and trunk on Windows return the
> different results.

The difference is intentional.  buffer-file-type was removed from the
C code, with the goal of removing it entirely, but there are still
traces of it in Lisp.  I'm surprised you only noticed this now.

> And, if buffer-file-type is set to t, many file coding system
> detections fail.  Docstring says that buffer-file-type autmatically
> becomes buffer-local, but that is not true on trunk.

Just don't use that variable.  You don't need it.  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.

I will work on removing the variable entirely from the sources, though
I guess it's too late for 24.3.  So I will do it on the trunk.

> Additionally, there is typo in docsstring of buffer-file-type.
> 
> > This variable is meaningful on MS-DOG and Windows NT.
>                                  ~~~~~~

It's not a typo.




This bug report was last modified 12 years and 125 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.