From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Turning on savehist-mode by default Date: Sun, 17 Dec 2023 19:48:02 +0800 Message-ID: <877cldxd71.fsf@yahoo.com> References: <87wmufm7r7.fsf@catern.com> <83h6kikkag.fsf@gnu.org> <8334w1l12c.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19884"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: stefankangas@gmail.com, sbaugh@catern.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 17 12:49:18 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 1rEpe2-0004wJ-Hi for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Dec 2023 12:49:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEpdJ-0005bJ-5r; Sun, 17 Dec 2023 06:48:34 -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 1rEpd9-0005as-LU for emacs-devel@gnu.org; Sun, 17 Dec 2023 06:48:24 -0500 Original-Received: from sonic314-20.consmr.mail.ne1.yahoo.com ([66.163.189.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rEpd5-0005su-5x for emacs-devel@gnu.org; Sun, 17 Dec 2023 06:48:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702813695; bh=G+hv55UadnFutPsKqhF6LOeWmfgrdkeGeNu73D9QHuA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=Bhplk80ATw6j8D7Pl0eEJxi5aAPP1JEcDPgmr3e/lxLh6iZ1wRHX57Rbjqn0rAFdft7TN6uZ94lnaE7ndHufwcQ9qibKn7DttzPdUCV3HGD7eKy+TSfgTanuOzBhV4myDJcOwnoN+O49ScOApdXhibzsa3M2sUcfPzur2ujI8Ti4bCI8PxRYKdx2GLoxneo3nabuo66I14EvSJ+8+EcbyCZ+9NuQBVm06252Ah3E+C2QK4tPAoBqiollNOkIRcszHJD6/N8rmMCvV/vlwX0o7C5m81lSNlZmoV5lHYKczJROdU9qHpwqxAzaKYsnp5ybDLaQU4z9tFAwK5saVNVeXQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702813695; bh=4IEd2yVtbJ942a7Ols5WFi/HC36hcCARA4OVIKZURql=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=U+qct5xUDn22CFJwmj9HMNUdrZUaLaCdeqA9UWmiG7OvfdqhnMfwKg/2HgKQq2jr18fB2h4a5Au8MIAmhOItPyxJeNkb3o0AWJLl927NT/i4MuuxMyrZqkTx8QkJ5hN7xx1OJVcc5bL2Gzn7ePnPZrOLuYF+IfiHXQG6zSMWeVxChpwHyGM9Nb98MLtPmZkOGNM2QK/+GnMuQY0eryF/uuSKbI0I/48aw+faxVQge1tUZdWGbdOPSCmnAWPQTVD1bgoOMxUCFfBgikvqUPmSYgDQ78RYcBU5Jh3xGVxmwP322qbuTuH5JHdmf8g6thLDHJ/Qz9YD35NsdqzODlvQOA== X-YMail-OSG: WAwJTaoVM1li6dNYhPGysVqtDjXFkYwiwBgynrlXV8_eypagphmnY2ziE2SI6NW PeuwelsxTFgCJziBU9mR.YyvOw.2GdHIJjElVrXP2QW0iWOTmdpKmGcez4.aS9ofKEqFHQRCy7g4 _BKswYOmf8sL.9paZ3RdgZqWWaYpi7BFKNqQ2Y3W2131ritgcSg9PlZw.XBcz8nsxmq1m.uXCSet oJKokRtoZH_EvErXclRwOqiylyvIqhPOywWyznsxbNCrD8ccPNT9Yk4jYlB8XmwYMTN5fONTXYvh N9L5OYd7FtFD27JUQZgmF2DV7rF5J9Mj_o8E.lPfbSyOWOJ1OvGF2KoBvBQeWV7ejzgN8nkdQbk8 4PlbpU7eFhq8lMnrschogPxK2n8X4oLZs6m7ibOXXMXFYNttgAzon5kfZauB9otA10mlN1pCGL6q 8Se2Id9u1kM0ZAhqiuNRxMAYAEbMrgaiJmijvB8uD531LY7aJ4aqg4jpE2cn6gPen6bUAzhiFubc d89.3SNdYi5zg44rtmYJ_OnrNTmvK0LaL6wG.BPOw8coOFwsj.XDR60fnfhKFQopIh.mzayArx1y kktFelsX9D4LWuP7ymmfXB5pDYvvC9to8ZXUyiEoag.piSRtrhgk8DgjMicUGanRm6YCRG4OjQF7 SqnlJRxHY9gSKFv4O21TkOFwKVmMO.Ou4EJDsf6QqualWxGsy3PCbcKIFNTHAkrbaaVSDSpUNfuv hfawN.wPR1fvxRsU6fhtzvf2sjRNHsyAUM814w2xv2aTtlFBUoB5TacDUKlvI4758d5Vqb3cm3j6 J_jiLUt9dU76jfOy1kpnI7m_dD0ugIf1rTcpPD_k2j X-Sonic-MF: X-Sonic-ID: 036e9cc9-7e1d-4a31-9296-aac8acdb325f Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sun, 17 Dec 2023 11:48:15 +0000 Original-Received: by hermes--production-sg3-65d57d948b-slmm8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 120388fd5a0f6e33b2d136a3a7272ae1; Sun, 17 Dec 2023 11:48:09 +0000 (UTC) In-Reply-To: <8334w1l12c.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 Dec 2023 09:50:51 +0200") X-Mailer: WebService/1.1.21952 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.146; envelope-from=luangruo@yahoo.com; helo=sonic314-20.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, 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:313916 Archived-At: Eli Zaretskii writes: > Isn't this a general issue with saving any customizations? E.g., > saving options, saving desktop, etc. etc.? Saving history from Bash, > GDB, etc. has the same problems, AFAIK. Yes, and that's one reason I'm glad Emacs isn't Bash! > And anyway, the problem already exists for those who turn on savehist > in their customizations. If your usage patterns must avoid the > overwriting you mention above, simply disable savehist in your init > file, and Bob's your uncle. What about emacs -q, or if an error is signaled by savehist itself on loading a malformed savehist file, or any other of the myriad of circumstances that might cause Emacs to start without completely loading the user initialization file? > IOW, once again: personal preferences should NOT affect the defaults, > nor are they too important when discussing those defaults. Unless the > feature we want to turn on is buggy (in which case it must be fixed > first), turning it on by default cannot possibly cause problems we > don't already have. These aren't personal preferences. Running multiple sessions at once is a feature which Emacs has long supported six ways from Sunday, and it should continue to work by default. Hence we should resolve this problem with savehist in advance, if only to avoid confusing users who do run Emacs in this manner. This is by no means all that is necessary to enable savehist-mode by default, of course; savehist establishes the location of the savehist file when it is loaded, and loads its history file upon the major mode being enabled, so this change will certainly be more involved than loading and enabling savehist-mode during loadup. Thus with the aforementioned disadvantages on one hand, and all the toil entailed on the other, is it any wonder that some people are averse to this proposal? Just my two cents, thanks.