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.help Subject: Re: safe way to add contents to a file ? Date: Thu, 19 Dec 2019 07:27:11 +0900 Message-ID: <15823398-1AA2-41B2-A02A-1B795CF1FA47@traduction-libre.org> References: <0FE61EAF-672C-4348-8107-F4C3D176FCF4@traduction-libre.org> <08057AA1-387E-489F-9DB9-CF1768172251@traduction-libre.org> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\)) 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="143734"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 18 23:27:30 2019 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ihhn0-000bFT-JN for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Dec 2019 23:27:30 +0100 Original-Received: from localhost ([::1]:33250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihhmz-0006Eu-7J for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Dec 2019 17:27:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44322) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihhmp-0006Em-Al for help-gnu-emacs@gnu.org; Wed, 18 Dec 2019 17:27:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihhmo-0007wS-Cm for help-gnu-emacs@gnu.org; Wed, 18 Dec 2019 17:27:19 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:40829) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ihhmo-0007v8-6h for help-gnu-emacs@gnu.org; Wed, 18 Dec 2019 17:27:18 -0500 X-Originating-IP: 182.251.132.170 Original-Received: from [172.20.10.2] (KD182251132170.au-net.ne.jp [182.251.132.170]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 37E471BF209 for ; Wed, 18 Dec 2019 22:27:14 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3601.0.10) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.201 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:122066 Archived-At: > On Dec 18, 2019, at 23:10, Stefan Monnier = wrote: >=20 >> Sometimes the whole *line* above (contained in file "test.el") would = be >> copied to the file "test.txt" and I have no idea why. >=20 > Very curious. If you can come up with a recipe to reproduce it > somewhat-reliably, then please `M-x report-emacs-bug`. It first happened in a piece of longer code I had written, then I wanted = to isolate the file insertion part and improve/fix it so I just started = working on that one line and the thing happened again. I'll definitely report a bug when I can reproduce that because it is = super weird. Thank you. Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune