From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: write-region bug ? Date: Wed, 08 Jan 2020 18:05:51 +0200 Message-ID: <83o8veaq74.fsf@gnu.org> References: <87k169okfu.fsf@igel.home> <83zhf5ixe1.fsf@gnu.org> <83woa7ezzb.fsf@gnu.org> <83r20efua9.fsf@gnu.org> <83k165gbl5.fsf@gnu.org> <046646BD-7C4A-4D42-93F0-9B45980DD9BC@traduction-libre.org> <83y2uldzlz.fsf@gnu.org> <8587D3AF-EB7F-4AF1-806A-5C5EBB5DF8AA@traduction-libre.org> <219F7B4D-88EA-4EE3-A8EB-244A08F43B63@traduction-libre.org> <81246516-A350-4E2A-9F1C-F80BFA0C0316@traduction-libre.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="71253"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 08 17:10:00 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ipDu6-0009LW-V3 for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 17:09:55 +0100 Original-Received: from localhost ([::1]:46136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipDu5-00084t-N4 for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 11:09:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38702) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipDq3-0001R4-To for emacs-devel@gnu.org; Wed, 08 Jan 2020 11:05:45 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ipDq3-0004f0-JQ; Wed, 08 Jan 2020 11:05:43 -0500 Original-Received: from [176.228.60.248] (port=1588 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ipDpx-0006R2-Le; Wed, 08 Jan 2020 11:05:38 -0500 In-reply-to: <81246516-A350-4E2A-9F1C-F80BFA0C0316@traduction-libre.org> (message from Jean-Christophe Helary on Thu, 9 Jan 2020 00:27:35 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244125 Archived-At: > From: Jean-Christophe Helary > Date: Thu, 9 Jan 2020 00:27:35 +0900 > > 25.1 Visiting Files > > "Visiting a file means reading a file into a buffer. Once this is done, we say that the buffer is visiting that file, and call the file the visited file of the buffer." > > > → My understanding from the above manual quotes is that file B.txt is read into the buffer where file A.txt is. > > I don't know how that should look like, but what I see is seemingly the opposite: full contents of file A.txt is written to file B.txt. > > There is obviously something that I am missing in the documentation. This: Saving Saving a buffer means copying its text into the file that was visited (q.v.) in that buffer. IOW, the association established by visiting means that saving the buffer well update the visited file.