From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Atomic file replacement in Emacs Date: Wed, 21 Oct 2020 16:32:21 -0400 Message-ID: References: <868sbzk0hl.fsf@163.com> <87r1pr5phl.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37550"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Zhu Zihao , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 21 22:33:14 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVKnJ-0009es-Ee for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Oct 2020 22:33:13 +0200 Original-Received: from localhost ([::1]:43382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVKnI-0004GC-Fo for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Oct 2020 16:33:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVKmg-0003qX-Mz for emacs-devel@gnu.org; Wed, 21 Oct 2020 16:32:35 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:36126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVKmc-0003qv-UA for emacs-devel@gnu.org; Wed, 21 Oct 2020 16:32:33 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 9340B101C9D; Wed, 21 Oct 2020 16:32:28 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1CBA9100227; Wed, 21 Oct 2020 16:32:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1603312343; bh=mVJwv1aSH5ppM6+6Ls8kni/RMDRWv0Xk3IYDv8s7ZXs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=GS65wJ5LPCT56AY4Ucb00wrUrYgc5zTo7hUJJut0lAD93QlbssmmdJQUEKDUsYr89 /bjS60L1HX3tZBg/5kk0fDsG2GM9x1d5nhgPscMuCPywYbC5SFNjwFO6IPCzsULrHH rY7BBZJLq24VRxJGWYWvHHCxWtKIXqlkkbcC6RV3LW6otcdM+ixYxtKgYBzwDgnm3w D9mZqWrIx2/QoKud/mrWk2xiqvV1EaGBdBwYDh3ubzi7tc2UOY96yo8EeMyngJkYoh OqKcTU7HwOOo7uiFqErvARG4HhYkVQYikCWjmHGwKE1FNkTixZ9agdegH6YfLgVlL4 B9aniyIQ2tPvQ== Original-Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E1A8B120330; Wed, 21 Oct 2020 16:32:22 -0400 (EDT) In-Reply-To: <87r1pr5phl.fsf@igel.home> (Andreas Schwab's message of "Wed, 21 Oct 2020 21:49:10 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/21 16:32:28 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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.io gmane.emacs.devel:258255 Archived-At: > There is already file-precious-flag. This is used by `save-buffer` but not by `write-region`, so it only works if you use a proper "file buffer". Stefan