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: Fri, 06 Apr 2018 11:29:12 +0100 Organization: A noiseless patient Spider Message-ID: <877epkiq6f.fsf@bsb.me.uk> References: <874lkpv5wa.fsf@moondust.localdomain> <87h8opjqro.fsf@bsb.me.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523010512 11132 195.159.176.226 (6 Apr 2018 10:28:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2018 10:28:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 06 12:28:28 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 1f4Oba-0002da-4g for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2018 12:28:26 +0200 Original-Received: from localhost ([::1]:43266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4Ode-0005on-98 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2018 06:30:34 -0400 X-Received: by 10.28.249.23 with SMTP id x23mr115004wmh.27.1523010554645; Fri, 06 Apr 2018 03:29:14 -0700 (PDT) Original-Path: usenet.stanford.edu!69no474568wms.0!news-out.google.com!k195ni2939wmd.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: 26 Original-Injection-Info: reader02.eternal-september.org; posting-host="b4bcaf279210e5b5c4b6e02e681519c9"; logging-data="1316"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HpNUsXAFF6qtZ6H3xvi7N4WXVZDTX4sg=" Cancel-Lock: sha1:TuxskFYX3z2Cr9SU9YRvQ8xPCM4= sha1:m4VpJ0RmHLStOJAGDIOhiZWJKXY= X-BSB-Auth: 1.9422a78043288e155c27.20180406112913BST.877epkiq6f.fsf@bsb.me.uk Original-Xref: usenet.stanford.edu gnu.emacs.help:222247 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:116368 Archived-At: Eli Zaretskii writes: >> From: Ben Bacarisse >> Date: Thu, 05 Apr 2018 22:18:51 +0100 >> >> 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. > > "Same buffer" doesn't mean the same contents. When the file is > already being visited, you can get the same buffer, but its contents > will be erased and populated anew with literally what's in the file, > without any conversions. That paragraph started with the sentence "You cannot absolutely rely on this function to result in visiting the file literally." which certainly sounds like it might not do what is expected, but I think the warning is specifically about using find-file-literally in a program because when called interactively (at least in 25.1.1) I get a warning that emacs can only visit a file in one way at a time and I am prompted whether to "revisit" the file (so to speak) or take the existing buffer. -- Ben.