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 05:09:39 -0600 Message-ID: <7942be6a-de0e-493e-85a7-97bfbbe41026@alphapapa.net> References: <461a0999-6005-4aa4-a4b3-988123855f92@alphapapa.net> 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="1948"; 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 12:10:50 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 1rEp2n-0000MU-PF for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Dec 2023 12:10:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEp1x-0007Dd-HM; Sun, 17 Dec 2023 06:09:57 -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 1rEp1u-0007DO-4t for emacs-devel@gnu.org; Sun, 17 Dec 2023 06:09:54 -0500 Original-Received: from rusty.tulip.relay.mailchannels.net ([23.83.218.252]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEp1r-0007xD-Hq; Sun, 17 Dec 2023 06:09:53 -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 D29188411C2; Sun, 17 Dec 2023 11:09:46 +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 605FF8415DC; Sun, 17 Dec 2023 11:09:46 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1702811386; a=rsa-sha256; cv=none; b=2BTDGAze0SeiRQjPUxroVC7mxZOi+DD9VMUUsB/3P0Nn7HRKa0V0dESuJNQUCNIbcbXJ0F zIQcVuKmaX63y5c4yFqMkX4vIRbIqUoX3KFIFi0fPLA16neErB5kqocNNHIt3DZ+xsWjFX VqtLxB7zfNNdO3t8RdX7f2pll7zHhMdVWYWzNX3Hcqx1tpq8m7igrfoWPFe4BEVpAj+TFF 3EjT+TG4gWOwVwcP85oVtKG+nzIF5GZ9SPHhJLkSZ5I7cIsSCJZxbbcT4TTGdpd3IXYaVD IIwQbNUA/CW3ljW9Mf4dyGwDKqlQYKRCp7Bws90MNZaUpRX/1syqozXr9O9Kuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1702811386; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=KkBWlhj5afU4drUT4mR8okVPCXEy+FtVZJ4U6k/Bmtk=; b=B3TRVMH/OXRNImdjn8ikf8xYG+7WkavJHZoDXlPAqDKxWu8eJqJbpxBw6YPYpX5BQsZoRl 5FaMnQHSYrpYWT5eoVrBDyKx1YdjxUwbusTrqidsUKdN2JsTFM3VnW7u92RNnXINaMXSGU MrO85pytfxMkG+S8I5/Hu7B1A9KCWjpkP8LON7yWqRpbk7D+C9ISONDQ3Q3A2qZtRwWXjr lYcu9B2/8gnTQFIitr85Q5PrGcvIoEjDnfaN6L1K3hpqHP4a/EFM0EldSH5dCz82Xla2jI rWuKoVjM3Lg1KHePULBKe95YI2g84mGrdBNsbiSlXTXGka2vurbX+bMDPpiUYw== ARC-Authentication-Results: i=1; rspamd-d8b88b4b9-rm742; 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-Glossy-Shade: 6594f90b7a68efbe_1702811386655_2908352993 X-MC-Loop-Signature: 1702811386655:1458324347 X-MC-Ingress-Time: 1702811386655 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.107.188.194 (trex/6.9.2); Sun, 17 Dec 2023 11:09:46 +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 4StKwn3522z7K; Sun, 17 Dec 2023 03:09:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1702811386; bh=KkBWlhj5afU4drUT4mR8okVPCXEy+FtVZJ4U6k/Bmtk=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=v9y3LglpiSF3RSpczKDUChldhtidfjVeigwzGDQQ4bq/wEmqCQMJhiqsuOHLeb1Kv b7vCUgoY2lJRsyyrpHeWfumFozsTM6cCb+rE+srxDiYhfszk7AqGOVWDeBEwvcoKUG TDWIt9mWOopNnBH4D7RA9O0ZQpd9ywmbkaihdc2/8I3CHFtKBnKuWNVFtR15W6BabQ xSwyp1gI5mnXl+DiNjLJvRnIi8uz5b3HbX+k2HppV+wJNMVJNFS1mW+PVziqC5rF6g dUYpU2rrXmz4dyj1NwqB4vMMzRUR3HJbcuNfu+KZdRvyZSNQgzur25ltewTu582ZiR Hx47cdORd16NA== Content-Language: en-US In-Reply-To: Received-SPF: neutral client-ip=23.83.218.252; envelope-from=adam@alphapapa.net; helo=rusty.tulip.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_H4=0.001, RCVD_IN_MSPIKE_WL=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:313914 Archived-At: On 12/17/23 01:49, Stefan Kangas wrote: >> 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)? It doesn't seem like an easy problem. My guess as to the most "correct" solution would be to limit how much time can be spent serializing the data, both as a whole and individual elements, and to cancel or interrupt the serialization of the whole or a part if the limit is exceeded--the goal being to avoid UI pauses. Then the limit could be disabled when desired (e.g. when exiting Emacs, wanting to be sure the data is saved). But doing that would require some bookkeeping in the background, which seems like it might be excessive complexity for what should be a simple feature.