From: Ben Bacarisse <ben.lists@bsb.me.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: How to view raw text in Emacs?
Date: Thu, 05 Apr 2018 22:18:51 +0100 [thread overview]
Message-ID: <87h8opjqro.fsf@bsb.me.uk> (raw)
In-Reply-To: mailman.11755.1522955247.27995.help-gnu-emacs@gnu.org
Alex Kost <alezost@gmail.com> writes:
> N. Jackson (2018-04-05 14:56 -0400) wrote:
>
>> Sometimes when I'm using Emacs I want to see "what's really there"
>> rather than the view of the text that Emacs is showing me. So far, I
>> have not figured out how to do this. Usually after casting about in
>> Emacs for a solution, the frustration builds sufficiently that I switch
>> to Kate of Gedit to see what I want to see. I would like to learn how to
>> do this in Emacs.
>>
>> For example, I open etc/enriched.txt. I realise that there is more there
>> than I'm seeing and am curious to see what is actually in the file. I
>> try `M-x fundamental-mode RET' which changes nothing. (I don't know why
>> I think it should, but that always seems to be what I try first.) Then I
>> see in the mode line that I'm in "Enriched" mode, so I try `M-x
>> enriched-mode RET' to turn it off, which does seem to turn it off (it's
>> nice that it's intuitive that way), but the view in the buffer doesn't
>> change. I try `M-x set-buffer-coding-system RET raw-text RET', but that
>> doesn't help either. I try `M-x set-buffer-coding-system RET
>> no-conversion RET', but again there is no apparent change.
>>
>> Clearly I'm missing something here, but I'm not sure what it is. Any
>> pointers would be welcome.
>
> Perhaps "M-x find-file-literally" is what you are looking for.
A word of caution from this function's description
If Emacs already has a buffer which is visiting the file, you
get the existing buffer, regardless of whether it was created
literally or not.
And another option... Sometimes I find hexl-mode the right thing,
though it involves more learning because it's such a different kind of
view of the buffer.
--
Ben.
next prev parent reply other threads:[~2018-04-05 21:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-05 18:56 How to view raw text in Emacs? N. Jackson
2018-04-05 19:07 ` Alex Kost
[not found] ` <mailman.11755.1522955247.27995.help-gnu-emacs@gnu.org>
2018-04-05 21:18 ` Ben Bacarisse [this message]
2018-04-06 2:57 ` Will Parsons
2018-04-06 7:18 ` Eli Zaretskii
2018-04-06 7:17 ` Eli Zaretskii
[not found] ` <mailman.11771.1522999021.27995.help-gnu-emacs@gnu.org>
2018-04-06 10:29 ` Ben Bacarisse
2018-04-06 12:59 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h8opjqro.fsf@bsb.me.uk \
--to=ben.lists@bsb.me.uk \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.