From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: gmane.emacs.help Subject: Re: How to view raw text in Emacs? Date: Thu, 05 Apr 2018 22:18:51 +0100 Organization: A noiseless patient Spider Message-ID: <87h8opjqro.fsf@bsb.me.uk> References: <874lkpv5wa.fsf@moondust.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1522963109 15895 195.159.176.226 (5 Apr 2018 21:18:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2018 21:18:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 05 23:18:25 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f4CH2-00040l-VX for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Apr 2018 23:18:25 +0200 Original-Received: from localhost ([::1]:55270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4CJ8-0007xl-3X for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Apr 2018 17:20:34 -0400 X-Received: by 10.28.94.5 with SMTP id s5mr1505643wmb.10.1522963131417; Thu, 05 Apr 2018 14:18:51 -0700 (PDT) Original-Path: usenet.stanford.edu!1no9796341wmv.0!news-out.google.com!k195ni34633wmd.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-Injection-Info: reader02.eternal-september.org; posting-host="ce55c9ef57678a0c49782cb2554fe14d"; logging-data="16311"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/k34IQjSZwk8Ak9uhmZezYGyIRX39PgnI=" Cancel-Lock: sha1:z//YLmaCldu2xW3ulG/Q+Lwgd+k= sha1:fNY6g7zWaQ8/g74OPhJreZl1Pcw= X-BSB-Auth: 1.bb7811b579e4c463e0e8.20180405221851BST.87h8opjqro.fsf@bsb.me.uk Original-Xref: usenet.stanford.edu gnu.emacs.help:222239 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116360 Archived-At: Alex Kost 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.