From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: write-region bug ? Date: Mon, 6 Jan 2020 12:50:55 +0900 Message-ID: <8587D3AF-EB7F-4AF1-806A-5C5EBB5DF8AA@traduction-libre.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> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="183378"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 06 04:51:17 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane.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 1ioJQC-000lYU-Bd for ged-emacs-devel@m.gmane.org; Mon, 06 Jan 2020 04:51:16 +0100 Original-Received: from localhost ([::1]:47770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioJQA-0008Vq-8f for ged-emacs-devel@m.gmane.org; Sun, 05 Jan 2020 22:51:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57726) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioJQ2-0008Vg-5Y for emacs-devel@gnu.org; Sun, 05 Jan 2020 22:51:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioJQ0-00029Q-RA for emacs-devel@gnu.org; Sun, 05 Jan 2020 22:51:05 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:44685) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ioJQ0-00027h-LK for emacs-devel@gnu.org; Sun, 05 Jan 2020 22:51:04 -0500 X-Originating-IP: 210.160.37.45 Original-Received: from [10.254.2.142] (unknown [210.160.37.45]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 9F759C0003 for ; Mon, 6 Jan 2020 03:51:00 +0000 (UTC) In-Reply-To: <83y2uldzlz.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.198 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244018 Archived-At: > On Jan 6, 2020, at 12:37, Eli Zaretskii wrote: >=20 >> From: Jean-Christophe Helary = >> Date: Mon, 6 Jan 2020 01:42:35 +0900 >>=20 >> Now, I am no insisting that my t value for VISIT is correct, and I = don't know where I got the idea of setting it to t. But the fact is that = I don't see much value in sending a string to a file and right after it = having the file overwritten with the whole buffer where the write-region = command was. >=20 > It is not an uncommon situation that some feature doesn't look like > being of much value to us, until we get into a use case where it does. Indeed.=20 And I wish I understood better what=20 (docstring) "the buffer is marked as visiting FILENAME." (lisp reference) "Emacs establishes an association between the buffer = and the file: the buffer is then visiting that file." mean practically speaking, because nowhere in those sentences does it = imply (to me) that the buffer contents will overwrite the file. Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune