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: Fri, 22 Dec 2023 02:45:10 -0800 Message-ID: References: <461a0999-6005-4aa4-a4b3-988123855f92@alphapapa.net> <7942be6a-de0e-493e-85a7-97bfbbe41026@alphapapa.net> 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="16838"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, emacs-devel@gnu.org, sbaugh@catern.com To: Adam Porter , luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 22 11:45:32 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 1rGd23-00046p-9Q for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Dec 2023 11:45:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGd1n-0001sc-5L; Fri, 22 Dec 2023 05:45:15 -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 1rGd1m-0001sQ-H7 for emacs-devel@gnu.org; Fri, 22 Dec 2023 05:45:14 -0500 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rGd1l-0006ZD-3J; Fri, 22 Dec 2023 05:45:14 -0500 Original-Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-554473c653aso872798a12.0; Fri, 22 Dec 2023 02:45:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703241911; x=1703846711; 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=TfYIL1rLvs9AsmerjRAXqkjbqLP7+I5a/JF5m1u5o5A=; b=munogWohuF0YuvGXqnMVRQdJD0Gn7ol+3vzlNe9lvdK/vEHcRdIGbkvTH1khjWdu6w HD2HbLw0tVfLf7FS5JzEs8dCwC4AXFKkte8xivLkoz1Y8Egzb1AfKLcoqvYiLejwxMcO UOLZnW4xdlEUKPDjsBMOF7Nhhj1MkSR0wayrh5az/KBIdVo+/uwTdMEQ3OSNpHGRPPFu UlNEbbyLmmXop6mc9cEzyMPNYG4eoOAIx7dZ/7Vwzwm9R49lo9bJZ7CgCY/YyjPuk19/ s11lnk0RZxoknOso38tIxOzl2ws16f62Zle/PJlGoWGl842NvN0vsn1iW9lv14xBTFOb 9kdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703241911; x=1703846711; 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=TfYIL1rLvs9AsmerjRAXqkjbqLP7+I5a/JF5m1u5o5A=; b=jYJJalxRMUruMt9uBmTXPHXExo+MoqvjVZ4HYF5Nj4dQxGVKaiw5i5iQuVgMMOD45U vHU3IB93jGZ6g6yChUzEJ9KRZssF/Auw0BYylIj3aZGErKT+Si5PBk7+75NP3CxAlrVT P/iyjO0b9pVbvgZrMkFr+NA0Ez3oeN+XAnMkCoXdb8IV83t9Sr+aa7Zk85UhPSXQWnUy 8mM79CKbUG+eGW3Wf4VJ0HiJjNFJ7FTCW8R4s7muCfV4Clb1MWM7KDh+jcPAFyeGkRhc mD01i+V4EupJJ3mGz/5gSeI2OdOF54hFzg9mhW9JfyDJ2N2pfpO0jtw6X/J/cJbh2SFk nJTQ== X-Gm-Message-State: AOJu0YwnyHj73gJPhNG+ZaGe/cVPinUYloa8Ly+Z3u8J6oOnmTjxom3u sU0V4IZpD1aU7D8ViMWyd/pAqw3XnxRIYPBE1SUBO4KIu8RvPA== X-Google-Smtp-Source: AGHT+IHTWfqlM1i1XnrFhps1HQFrtJBUQcfgm3getu7XKMIhAn8uYqMkX4czPTDe+ZNESKl3+FTJhGTS463UjYOW6bM= X-Received: by 2002:a50:9983:0:b0:552:9915:fab1 with SMTP id m3-20020a509983000000b005529915fab1mr538715edb.47.1703241911165; Fri, 22 Dec 2023 02:45:11 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 22 Dec 2023 02:45:10 -0800 In-Reply-To: <7942be6a-de0e-493e-85a7-97bfbbe41026@alphapapa.net> Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x52e.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:314065 Archived-At: Adam Porter writes: > 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. Thinking about this a bit more, why is this not to be considered a bug in ement? It does seem like that package is quite unusual in that it stores both non-serializable and large data in the -history variable. Perhaps we should simply say that you should not do that?