From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12989: 24.3.50; buffer-file-type is not buffer-local Date: Sun, 25 Nov 2012 18:50:05 +0200 Message-ID: <837gp9zkxu.fsf@gnu.org> References: <87pq32pc52.wl%%xmue@d1.dion.ne.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1353862228 23746 80.91.229.3 (25 Nov 2012 16:50:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2012 16:50:28 +0000 (UTC) Cc: 12989@debbugs.gnu.org To: Kazuhiro Ito Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 17:50:39 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TcfPj-0008HS-3l for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2012 17:50:39 +0100 Original-Received: from localhost ([::1]:45707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcfPY-0002dk-0s for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2012 11:50:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcfPV-0002dV-NI for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2012 11:50:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TcfPU-0004CI-Mg for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2012 11:50:25 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcfPU-0004C5-FW for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2012 11:50:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TcfR4-0003Yq-10 for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2012 11:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Nov 2012 16:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12989 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12989-submit@debbugs.gnu.org id=B12989.135386230213663 (code B ref 12989); Sun, 25 Nov 2012 16:52:01 +0000 Original-Received: (at 12989) by debbugs.gnu.org; 25 Nov 2012 16:51:42 +0000 Original-Received: from localhost ([127.0.0.1]:38398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TcfQj-0003YK-GW for submit@debbugs.gnu.org; Sun, 25 Nov 2012 11:51:41 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:50287) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TcfQg-0003YA-F3 for 12989@debbugs.gnu.org; Sun, 25 Nov 2012 11:51:39 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0ME100900YNCPJ00@a-mtaout20.012.net.il> for 12989@debbugs.gnu.org; Sun, 25 Nov 2012 18:49:57 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ME10097KYR8QJ00@a-mtaout20.012.net.il>; Sun, 25 Nov 2012 18:49:57 +0200 (IST) In-reply-to: <87pq32pc52.wl%%xmue@d1.dion.ne.jp> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67454 Archived-At: > Date: Sun, 25 Nov 2012 12:58:01 +0900 > From: Kazuhiro Ito > > 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.