From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: ESC 4 causes part of file to be missing from buffer
Date: Thu, 28 Apr 2005 13:04:41 -0600 [thread overview]
Message-ID: <d4rbpr$ocj$1@sea.gmane.org> (raw)
In-Reply-To: <ud5seap67.fsf@verizon.net>
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
prev parent reply other threads:[~2005-04-28 19:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 15:38 ESC 4 causes part of file to be missing from buffer Joe Fineman
2005-04-28 19:04 ` Kevin Rodgers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='d4rbpr$ocj$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).