From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kazuhiro Ito Newsgroups: gmane.emacs.bugs Subject: bug#12989: 24.3.50; buffer-file-type is not buffer-local Date: Mon, 26 Nov 2012 23:35:20 +0900 Message-ID: <87624sh1p3.wl%%xmue@d1.dion.ne.jp> References: <87pq32pc52.wl%%xmue@d1.dion.ne.jp> <837gp9zkxu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1353940592 16931 80.91.229.3 (26 Nov 2012 14:36:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2012 14:36:32 +0000 (UTC) Cc: 12989@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 26 15:36:44 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 1Tcznf-0002th-AS for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Nov 2012 15:36:43 +0100 Original-Received: from localhost ([::1]:41221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcznU-0004ak-DH for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Nov 2012 09:36:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcznN-0004aO-9K for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2012 09:36:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TcznH-0004O6-9Y for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2012 09:36:25 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcznH-0004O2-5v for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2012 09:36:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tczow-0005CG-3X for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2012 09:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kazuhiro Ito Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Nov 2012 14:38: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: notabug Original-Received: via spool by 12989-submit@debbugs.gnu.org id=B12989.135394063619920 (code B ref 12989); Mon, 26 Nov 2012 14:38:01 +0000 Original-Received: (at 12989) by debbugs.gnu.org; 26 Nov 2012 14:37:16 +0000 Original-Received: from localhost ([127.0.0.1]:39486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TczoB-0005BC-Gh for submit@debbugs.gnu.org; Mon, 26 Nov 2012 09:37:15 -0500 Original-Received: from msa101.auone-net.jp ([61.117.18.161]:58539) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tczo6-0005B0-8T for 12989@debbugs.gnu.org; Mon, 26 Nov 2012 09:37:13 -0500 Original-Received: from GUNGNIR.med.osaka-cu.ac.jp (112-68-160-32f1.nar1.eonet.ne.jp [112.68.160.32]) by msa101.auone-net.jp (au one net msa) with ESMTP id AB8071E0043; Mon, 26 Nov 2012 23:35:22 +0900 (JST) In-Reply-To: <837gp9zkxu.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.3.50 (i386-mingw-nt6.1.7601) MULE/6.0 (HANACHIRUSATO) 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:67481 Archived-At: > 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. A symptom of the problem is that Emacs becomes not to decode contents of files before one knows while I use Emacs (with some elisp packages). The problem is long standing and annoying me and I had not been able to find out the trigger of the problem. 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. > 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? In lisp/dos-w32.el > (defun find-file-not-found-set-buffer-file-coding-system () (snip) > (setq buffer-file-type (eq buffer-file-coding-system 'no-conversion))))) The above line modifies buffer-file-type's value and makes the difference between 'binary and 'no-conversion. But I would doubt that the difference is intentionally made. -- Kazuhiro Ito