From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Turning on savehist-mode by default Date: Sun, 19 Nov 2023 16:08:44 +0200 Message-ID: References: <87wmufm7r7.fsf@catern.com> <87fs12jkik.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30558"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 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 Sun Nov 19 15:09:16 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 1r4iU7-0007kE-Hq for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Nov 2023 15:09:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4iTk-0006Wi-AQ; Sun, 19 Nov 2023 09:08:52 -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 1r4iTh-0006WH-Q6 for emacs-devel@gnu.org; Sun, 19 Nov 2023 09:08:49 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4iTg-0001qx-B1 for emacs-devel@gnu.org; Sun, 19 Nov 2023 09:08:49 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B800A5C0230; Sun, 19 Nov 2023 09:08:46 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 19 Nov 2023 09:08:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1700402926; x=1700489326; bh=AlqxabPagRjZJoR0KAWpoWUkLrlYxjFLoKH dnaF8R84=; b=C/a8mmzCLmcYJiIgRJcVSLx1P6weQkfbw6euK1dwMhzSCnFMzzO nTAv6jczAOFLPqF+eyTrRW3KzMcpThGHFruKpoFIBoTsE1vWPeeR4brb0ZIxW0Yi xDh213hpEjIEkVVhNPxcFNJX+4UoLUdTMSYXe0NdD+mEG7XfBYqZcx3OMNO13MoN Kv6NhzsHzGgaANUh7ULTHTYxs6jbo6sHtW+TENAcRDOHjAm6AGsqxnmuu5ktIpLP pr9a/QBelhAHGIKoL6ijdJZxWILNo1CS1/JWyPSt/BCRNpVFR+CZjwO/0AVkgKqy hMx/R5+McbBUMSit4iwWpGAaJfC1P1U18oA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700402926; x=1700489326; bh=AlqxabPagRjZJoR0KAWpoWUkLrlYxjFLoKH dnaF8R84=; b=RSwsFBmx99X3qLHLk6xZD0nTuFW7c9Nrvc0IrPSk2N2lw+bB4Xz KTKGhTH51OUbHFVfLk7ZcMnZB9GoHBHEt5EclDJeBq973TaJVjO3l4BV8aBs5me4 Zz3/NsAPrNdOiodz0sNCQeoF/YlOllAEnNkgLLmgisuqbeQzIFAhpLOcweHsC+fB t0U4mEEtf5IinfaZukPycxNX4QW5XoNWCenK+Fv8VOV+RH7NAnpbxa4pDNxpfHjQ OynS+504YtuPwVOVhVeF8DYZRNHfrdtiEPNdf2aB4vpZ4i57H0BT3ej34DKYS6rx +ynofSqZMXvHh1x8kqrasWCOnYztTleVFMg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeggedgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth ejredttdefjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehg uhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpeeigfetveehveevffehledtueekie eikeeufeegudfgfeeghfdulefgfeevledvveenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 Nov 2023 09:08:45 -0500 (EST) Content-Language: en-US In-Reply-To: <87fs12jkik.fsf@yahoo.com> Received-SPF: pass client-ip=66.111.4.26; envelope-from=dmitry@gutov.dev; helo=out2-smtp.messagingengine.com X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 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, NICE_REPLY_A=-3.74, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-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:312978 Archived-At: On 19/11/2023 08:59, Po Lu wrote: > There is a grave disadvantage to introducing kill-emacs-hooks or saving > files periodically from a timer. In the case of the former, 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 would be a real problem if the information saved by savehist-mode were of grave importance. Completion input histories are not usually in that category. People can repeat their inputs manually; it's just a time-saving feature.