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: Fri, 3 Jan 2020 02:22:51 +0900 Message-ID: <611436E0-BF7E-4477-A97F-8566837C2B87@traduction-libre.org> References: <87k169okfu.fsf@igel.home> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="213861"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 02 18:23:22 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 1in4Bt-000tQ6-PT for ged-emacs-devel@m.gmane.org; Thu, 02 Jan 2020 18:23:21 +0100 Original-Received: from localhost ([::1]:43380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in4Bs-0001VY-4Q for ged-emacs-devel@m.gmane.org; Thu, 02 Jan 2020 12:23:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35535) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in4Bl-0001VR-Td for emacs-devel@gnu.org; Thu, 02 Jan 2020 12:23:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1in4Bk-0000u3-FH for emacs-devel@gnu.org; Thu, 02 Jan 2020 12:23:13 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:40677) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1in4Bk-0000mG-9I for emacs-devel@gnu.org; Thu, 02 Jan 2020 12:23:12 -0500 X-Originating-IP: 182.251.133.156 Original-Received: from [172.20.10.2] (KD182251133156.au-net.ne.jp [182.251.133.156]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 7459F1C0002 for ; Thu, 2 Jan 2020 17:23:05 +0000 (UTC) In-Reply-To: <87k169okfu.fsf@igel.home> 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.197 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:243869 Archived-At: > On Jan 3, 2020, at 2:08, Andreas Schwab wrote: >=20 > On Jan 03 2020, Jean-Christophe Helary wrote: >=20 >> =E2=86=92 for some reason, the foo.el buffer is now associated to = bar.txt >=20 > You asked for it. Where ? (write-region "" nil "~/Desktop/bar.txt" nil t nil t) write-region start end filename &optional append visit lockname = mustbenew 1) If start is a string, then write-region writes or appends that = string, rather than text from the buffer. end is ignored in this case. start is "", isn't it ? Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune