From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Turning on savehist-mode by default Date: Sat, 16 Dec 2023 10:56:28 -0800 Message-ID: References: <87wmufm7r7.fsf@catern.com> <87fs12jkik.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10522"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu , sbaugh@catern.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 16 19:56:56 2023 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 1rEZqK-0002ah-00 for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Dec 2023 19:56:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEZpz-00008q-Sl; Sat, 16 Dec 2023 13:56:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEZpx-00008T-MX for emacs-devel@gnu.org; Sat, 16 Dec 2023 13:56:34 -0500 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rEZpw-0002jJ-32 for emacs-devel@gnu.org; Sat, 16 Dec 2023 13:56:33 -0500 Original-Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-553032f17cfso542441a12.0 for ; Sat, 16 Dec 2023 10:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702752989; x=1703357789; darn=gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=bagOG9q0jTzDEq/xyut0O+AYKcdxtHwNktLAkcXJfvg=; b=HjN7TmZ1JnD/D7nI1UyvJy+aQJa0mIn1ooLmdCha43NSuKNxE+ihxwD1u+ru0GH39k 1rlZOiqjgEfb0UVB01qCb/0WBt51okIrbF29Sz1AumHDJcAby7dvWDFaBZoQLiSTplfU GRNGrBfryAvb+8TQBcpqVr+r+uXF3+EKbMMYZ2ujDGJ8Y+AG98MmNy2mMW4JectmAPHO DMGm7YJnN4A2k3OE8iEJ7lTiqfD8AZUJtpSyM1jRpr/dtbfrdQHQ6hqPHy7VTsB3PSzK TmsBgjQpu+4rz0N+YhSVCvvTAzYtd0juEyKAxptYH1ymVYOlXL5nsjZt+fpkz6dDFMC+ KORQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702752989; x=1703357789; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bagOG9q0jTzDEq/xyut0O+AYKcdxtHwNktLAkcXJfvg=; b=OJa2NrVS5jxqNm58D+fDHMch8ucJWATFZJ9MjYO6e+wrsPQtT7adYEue7BYkv03mON Isgm7dyHvRIWKPpYVG8mrJd2qqZL14RdcnBEzf7gD7Tg36RYYfU/KCuXmDBG1JKOHXUJ Js9Dqga08k4UNmaCMDHfnA5v9+hO365JnnstLbFzCUAIinKFjcmRaq4gVp2XNE+7b5sZ 6bp5eBlZrOgz3g4EHXc0/bFVpih2VmAhmtqssg8qQ6cVIPjPtNEEot1MrX7TSfgVME3v yTi3qqPgPADizrlf75kMsTVMy0MVUZ0DYm9mTeUOwzASaIv3Q6EcjjgvHl8tv4iGRV+Z p4vg== X-Gm-Message-State: AOJu0Yzz1iF6kacltYda3KPS28Loxe3H0LqpMTddkKz8DuK4PkuYtqd6 42+0uyYevewGYhiB4wmIOfZ8D1qdyWYqm/4UAHlfENIgqHvYZA== X-Google-Smtp-Source: AGHT+IFjIRuOYBlVd5EU1hMmNnGNiTdKYq8ajCVqrMlUztuCOBPFILUn4JyIbwqQeSa43BsX7uddZVVAbl26p9fd9f8= X-Received: by 2002:a50:8d5a:0:b0:552:e96c:2f36 with SMTP id t26-20020a508d5a000000b00552e96c2f36mr1117365edt.81.1702752988461; Sat, 16 Dec 2023 10:56:28 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 16 Dec 2023 10:56:28 -0800 In-Reply-To: <87fs12jkik.fsf@yahoo.com> Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313880 Archived-At: Po Lu writes: > Emacs will behave inconsistently, subject to whether it's been killed > such that the hook cannot run. And the latter runs the risk of files > being corrupted if the file is being saved, by chance, the instant > Emacs is killed. That just sounds like a bug in the hook function. I think we could fix it by creating the file separately and then moving it into place.