From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: write-region bug ? Date: Sat, 04 Jan 2020 14:58:09 -0500 Message-ID: References: <87k169okfu.fsf@igel.home> <83zhf5ixe1.fsf@gnu.org> Mime-Version: 1.0 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="76184"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: jean.christophe.helary@traduction-libre.org, Andreas Schwab , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 04 20:58:23 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 1inpZ0-000JjA-AW for ged-emacs-devel@m.gmane.org; Sat, 04 Jan 2020 20:58:22 +0100 Original-Received: from localhost ([::1]:36470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inpYz-0000Nn-6N for ged-emacs-devel@m.gmane.org; Sat, 04 Jan 2020 14:58:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49415) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inpYt-0000Nb-Uq for emacs-devel@gnu.org; Sat, 04 Jan 2020 14:58:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inpYt-0005EP-0y for emacs-devel@gnu.org; Sat, 04 Jan 2020 14:58:15 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:33549) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1inpYq-000599-Uy; Sat, 04 Jan 2020 14:58:13 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 75AF044D9DE; Sat, 4 Jan 2020 14:58:12 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 3ECF044D9CF; Sat, 4 Jan 2020 14:58:11 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1578167891; bh=L0shbszDO+1Xo3ORyWRYnzY+hYMj7JaqHfE9E39Qo0E=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=mcvCWuVnJT7wohtFiSLJvJq+FnOx5t5fglgMy5uJLvpytGvj8Yw6qjnM0SdKQkv/c 6K94ItrtXhF2pAXlhfzNjsa5T1KliJTxfr0gM3NsT9y9Mhv3z6BLJ8QVHGSfdoyPpH yjhb0r4V2jCXZJhKpY+poRR3rFltIN0PeBA1TZqHFCVIHsQyupODY+gJR+JsVaEvDM rk4yHcMl+iC2+oPx88Daw0neGePRXVLL1c3IIBOopxEDDMvnRJ5TeAg2F3IkEvQN0u /Lek68h9H3DP6ZDxha9zw3IP9q/whLtXYUn5aCbRTqUcODL/4psw+QCJ44dCrBASl6 2OKdTFnZhEhfg== Original-Received: from alfajor (65-110-220-116.cpe.pppoe.ca [65.110.220.116]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D5BB2120C13; Sat, 4 Jan 2020 14:58:10 -0500 (EST) In-Reply-To: <83zhf5ixe1.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 02 Jan 2020 19:25:10 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 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:243937 Archived-At: >> > =E2=86=92 for some reason, the foo.el buffer is now associated to bar.= txt >> You asked for it. > Indeed, because the VISIT argument of write-region was non-nil, and > that's what it does. It's in the documentation. OTOH, the VISIT argument can't make sense when the text comes from a string rather than from a buffer. So maybe we should signal an error rather than doing something that's clearly wrong. Stefan