From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: ESC 4 causes part of file to be missing from buffer Date: Thu, 28 Apr 2005 13:04:41 -0600 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114715551 27876 80.91.229.2 (28 Apr 2005 19:12:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2005 19:12:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 28 21:12:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DREPo-0003j3-EX for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Apr 2005 21:11:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DREVz-0005b3-Kx for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Apr 2005 15:17:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DREVj-0005ag-LM for help-gnu-emacs@gnu.org; Thu, 28 Apr 2005 15:17:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DREVi-0005aP-5T for help-gnu-emacs@gnu.org; Thu, 28 Apr 2005 15:17:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DREVi-0001nd-0f for help-gnu-emacs@gnu.org; Thu, 28 Apr 2005 15:17:18 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DREOh-0004tM-Po for help-gnu-emacs@gnu.org; Thu, 28 Apr 2005 15:10:03 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DREEY-000232-4B for help-gnu-emacs@gnu.org; Thu, 28 Apr 2005 20:59:34 +0200 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Apr 2005 20:59:34 +0200 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Apr 2005 20:59:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 32 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26113 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26113 Joe Fineman wrote: > I am using Emacs 21.3.1 under Windows. > > When I visit a file that contains the sequence ESC 4, I find that the > resulting buffer is missing all the text from there up till the next > ESC (or till the end, if there is no such ESC). I have determined > that the text is not merely missing from the display, but from the > buffer itself. On the other hand, the file itself seems not to be > corrupted: if I view it using cat in the Cygwin shell, it is still > all there. The buffer is not marked as modified. > > Is this a feature that I can turn off, or is it a bug? It's a feature. Notice the "-J" at the very beginning of the mode line: that indicates the buffer's coding system. Then `C-h C RET' or `M-x describe-coding-system RET' explains: Coding system for saving this buffer: J -- iso-2022-7bit-unix ... You can used `M-x find-file-literally' or `C-x RET c raw-text RET C-x C-v' or `C-x RET c binary RET C-x C-v' to see the text as-is. You can prevent this particular coding system from ever being automatically detected with (setq inhibit-iso-escape-detection t) in your .emacs file. See the "Coding Systems ==============" and "Recognizing Coding Systems ==========================" nodes of the Emacs manual for much more information. -- Kevin Rodgers