From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: Re: Turning on savehist-mode by default Date: Sun, 17 Dec 2023 06:02:03 -0600 Message-ID: References: <461a0999-6005-4aa4-a4b3-988123855f92@alphapapa.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------acLsFVtcQanMT2EUbYOsun7K" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3811"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: eliz@gnu.org, emacs-devel@gnu.org, sbaugh@catern.com To: Stefan Kangas , luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 17 13:02:54 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 1rEprB-0000kC-Cz for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Dec 2023 13:02:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEpqW-00089l-Du; Sun, 17 Dec 2023 07:02:12 -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 1rEpqU-00089K-NF for emacs-devel@gnu.org; Sun, 17 Dec 2023 07:02:10 -0500 Original-Received: from heron.birch.relay.mailchannels.net ([23.83.209.82]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEpqS-0003wy-Fw; Sun, 17 Dec 2023 07:02:10 -0500 X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A9D3C901DA8; Sun, 17 Dec 2023 12:02:05 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a209.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 42038902101; Sun, 17 Dec 2023 12:02:05 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1702814525; a=rsa-sha256; cv=none; b=zpnkxsarql1kd+rBdH/iQ5/dBtv5EvhmiRT6B/5o2QMdVcxkcrogdRTQckTDMEdQ77xvuy Fa3xqSu/kDujsVkVctCbns4oyR3WusOpF/GzFf7lDHFUgDV7Gh23JfZ0gZvl77E6b7JdKE ks1l8guXCK8nUqP4zUG1/B0ep4Ja6C/7ybdd9+Hsr95yLIrbWmZiJD7dHOXm3vliUy2Tnh ACRLMvUbDqUXLJlg+8ISBGru6Cxz1FlMFuQATHvSfn6dtvaHq7y+SgQJBe5fGEweud4m4b 64dXV7jARDpUiGS+DW8wQYFFLxQKG3tcOL3EQIVNEqW7rzhLyav+7msaXFbftw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1702814525; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=QINnTjZiYeK+iLzwoFoBujHtwVOAKwWER9JVmaEwbJU=; b=PEdimTE7WTyOS5ufmWG/a9hteWv45vEDHqXrSxRl4vXF2IZBTohIjGabCmmp5knZzGZe5n FJU7B6R3w6HF5bGnH5B6coyvkf3gb4Dl7eES4YxS0z/RBXOqaNxTlCGNe2VLzDfBtTqT9G LdOPd3XWm9BE3+QOb6GYrXXl2GxW1mAIWkRzIBVuwgRJU3/QSJk/ZFZoOCB5AMn5mBYoyW cQOXfStul4aKUMlAVGbceP3RadwOpcityfCjv9CuNSB6qf88kgl7+gtUR/A3/kfipo3afS esc4MoV733MBSk2bAcKeAAnssc00FvgrAe7Ca58npTzxYnJ3Ig1iuVLNf5qXPg== ARC-Authentication-Results: i=1; rspamd-d8b88b4b9-lb5pv; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|adam@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Army-Minister: 77b4f0440e4e057f_1702814525533_2108750726 X-MC-Loop-Signature: 1702814525533:3296646425 X-MC-Ingress-Time: 1702814525533 Original-Received: from pdx1-sub0-mail-a209.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.120.248.42 (trex/6.9.2); Sun, 17 Dec 2023 12:02:05 +0000 Original-Received: from [10.66.2.14] (unknown [91.193.232.98]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adam@alphapapa.net) by pdx1-sub0-mail-a209.dreamhost.com (Postfix) with ESMTPSA id 4StM582gwFzN4; Sun, 17 Dec 2023 04:02:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1702814525; bh=QINnTjZiYeK+iLzwoFoBujHtwVOAKwWER9JVmaEwbJU=; h=Content-Type:Date:Subject:To:Cc:From; b=OYMSzQzxaqCgiBtVpL4amGsxTDu5IQu6n55BaECcmAcwLklT7bk4AJsrkiIt6AH7l lUyw9mA1c2IFdj7b2eriQ7FNFdtvM8SJ7vAyo8lLaeb/BCYsb0kp3s3/LnjpnPhP0G ch8Lmo/jZfT9CuGeyX9N+aZHdgBltOL6IiaXQYHCL1JswDZyPYYbstrnfTrzlPOAxA rIYAf7wv0lyZYvlnSNom3Y2NcKtHHRreTVaobmx8aifm0CMmWATuEfDElVFVjKjhVu H7EFLpp5k5NExskHLGa9BQ6HQmtAWCB1BIpyWBqnVjMuzaiTEn8+vMwf2fJ87rlNCe tsT/NrwDUk5ww== Content-Language: en-US In-Reply-To: Received-SPF: neutral client-ip=23.83.209.82; envelope-from=adam@alphapapa.net; helo=heron.birch.relay.mailchannels.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:313919 Archived-At: This is a multi-part message in MIME format. --------------acLsFVtcQanMT2EUbYOsun7K Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/17/23 01:49, Stefan Kangas wrote: > It seems to me that savehist-mode is*not* ready for being enabled by > default. I think the best we can do at this point is to start working > on improve and/or replace it. > > Would anyone like to volunteer to do that? > >> 0:https://github.com/alphapapa/ement.el/issues/216 > Did you think about how issues like the above could be solved (in > general, not necessarily in savehist specifically)? FWIW, I hacked this up, and it's very basic, but it seems to work (very lightly tested). Might be a useful starting point. --------------acLsFVtcQanMT2EUbYOsun7K Content-Type: text/x-emacs-lisp; charset=UTF-8; name="varhist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