From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: Turning on savehist-mode by default Date: Fri, 22 Dec 2023 17:18:11 +0530 Message-ID: <87bkai1mro.fsf@gmail.com> 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 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37936"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Adam Porter , luangruo@yahoo.com, eliz@gnu.org, emacs-devel@gnu.org, sbaugh@catern.com To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 22 12:49:01 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 1rGe1V-0009ad-0M for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Dec 2023 12:49:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGe0q-0004Iq-3m; Fri, 22 Dec 2023 06:48:20 -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 1rGe0o-0004If-JL for emacs-devel@gnu.org; Fri, 22 Dec 2023 06:48:18 -0500 Original-Received: from mail-il1-x141.google.com ([2607:f8b0:4864:20::141]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rGe0n-0003wH-37; Fri, 22 Dec 2023 06:48:18 -0500 Original-Received: by mail-il1-x141.google.com with SMTP id e9e14a558f8ab-35fd9e40039so4217715ab.1; Fri, 22 Dec 2023 03:48:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703245695; x=1703850495; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bQeLs2YnrVj49aYLkQGuk3tYO6GwIGaew2eANLnXcGg=; b=He9qEhj/2rw1mGC2rNzlSpLtJOOSL012pze6EsIlQCaEW4S3z6DAvlDD9NJxZaqRO5 uAOQm3yG6zZ1RHlI3YOv2qaJ6HAjglCtsX4moGHJj1eSpvTJPxn9pvWPUDD7BcYKY6eq HkplBHlhVEc4RfYGSaF9CnP0MRBCoWCT9MhXcNtVd7qTte7FfsDN4BHTcAt8lbX0M5aE QczvFteVKWRyjY1pgrS3B5Gp+LkQi3KZiMwZNzaQx41CUY9ZIe3sAgjAKn76iar40iSV YBSptUSdrEwviJCHbmnS168XzXV0ht/NAy7+olDm1AkRghsAg+fRGsRjvLdjp/zxmT/O T1fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703245695; x=1703850495; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bQeLs2YnrVj49aYLkQGuk3tYO6GwIGaew2eANLnXcGg=; b=PX0VFF0SyJtfpUxjcimkKTC6GMsHExFHFOKobL6gPB5fe6FnW/Wds9eZTzEEwPzo0F nfOZgWTL6aCMmMdLbu7Vtit7y49cEdmTOaXrr6SFQacVGyLHmewYVw1UE/uQ3wTucCxa T/fBcsXIhelWOSF0auu+oKc14+SKIL9yS/6tJ0DAqGpEolZ1hUyAjPoS4kgPHsLAvSjt kBZzP05ErMzXvMlAVt9Z5bWy4rHo5QycxIqEEeQ+Pqz2zYetx52/v5LH5IojhRMj2L7V rcIPtVvLDtEQ1eLEuM0A8vUU6jhrZ5sJQSGf+8agiEsYceHWzBpggYg6LXAURyL/GD40 4gEg== X-Gm-Message-State: AOJu0YwiCjogNovN8rvM9zoMi0f81fKYFk1XthiDIvALR8Rjn/3+YRR3 1sSulfPRXLTKAt3Hw2IxSk01TE7Q1uRdDg== X-Google-Smtp-Source: AGHT+IFI+R0lUfS+8FWYAKiBH7Kb7IeZ0KYyU5pzIMzJTgUesj+GY7W7WMjLgHjUh99j5uH4DVZY+g== X-Received: by 2002:a05:6e02:1609:b0:35d:5995:1d62 with SMTP id t9-20020a056e02160900b0035d59951d62mr1626733ilu.39.1703245695102; Fri, 22 Dec 2023 03:48:15 -0800 (PST) Original-Received: from localhost ([49.204.138.160]) by smtp.gmail.com with ESMTPSA id a8-20020a656548000000b005cdf90c21ecsm847576pgw.67.2023.12.22.03.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 03:48:14 -0800 (PST) In-Reply-To: (Stefan Kangas's message of "Fri, 22 Dec 2023 02:45:10 -0800") Received-SPF: pass client-ip=2607:f8b0:4864:20::141; envelope-from=visuweshm@gmail.com; helo=mail-il1-x141.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:314067 Archived-At: [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9F=E0=AE=BF= =E0=AE=9A=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0=AF=8D 22, 2023] Stefan Kan= gas wrote: > 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? AFAIU the problem, ement does not store any such data in -history variable. It passes those large data as arguments to oft used functions and these calls get added to command-history. Over time the history grows large because serialisation time for these ement forms start to accumulate.