From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.devel Subject: Re: [External] : Turning on savehist-mode by default Date: Sun, 19 Nov 2023 15:09:30 +0000 (UTC) Message-ID: <87y1etlqzh.fsf@catern.com> References: <87wmufm7r7.fsf@catern.com> <87edgmq601.fsf@posteo.net> <87jzqeybz8.fsf@posteo.net> <86cyw6wb27.fsf@mail.linkov.net> <83bkbqkv2u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@linkov.net, drew.adams@oracle.com, philipk@posteo.net, emacs-devel@gnu.org To: Yuri Khan , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 19 16:10:36 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 1r4jRT-000A2R-6Q for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Nov 2023 16:10:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4jQZ-0005WH-3p; Sun, 19 Nov 2023 10:09:39 -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 1r4jQW-0005W8-89 for emacs-devel@gnu.org; Sun, 19 Nov 2023 10:09:36 -0500 Original-Received: from s.wfbtzhsw.outbound-mail.sendgrid.net ([159.183.224.105]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4jQT-00017Z-9t for emacs-devel@gnu.org; Sun, 19 Nov 2023 10:09:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=Cj6wjrK4qfExYvu8B7h3+9dFk8wekfOGoTupplznb6Q=; b=NShCvaSaaAnVTPWYHw6ZIWNWQdVrDqSAwuVvk7vppAmWhFpF25qprCdk2fcreIIh0brS ta86umkMrrveccXDeshRZuY3omK7VFONPu4r9yoBbsVmjBtfyi61GZ9aqBg2uBuneLkRD1 fPXO2Nr9sodxCcA3Ujbt95gZe2tJb8DaB8UjH3s+49QPnAqItEwPHycdLIl4bWGvNi4kjD VJA7B2XvuuC3Pvdof32vTyPv+G38RIUe2IHtLROC5NpXcBglD4+FLezCLmYcBVABsUCiaR paO+bgn4TWZRTi+En5zQVjBo/ZeZPT0dJKaTS0d+fCVPv4DrHbj89n4iL06qfTBQ== Original-Received: by filterdrecv-655bd866f5-l7lp4 with SMTP id filterdrecv-655bd866f5-l7lp4-1-655A252A-58 2023-11-19 15:09:30.805327081 +0000 UTC m=+2838517.498584269 Original-Received: from earth.catern.com (unknown) by geopod-ismtpd-38 (SG) with ESMTP id pZHBY4ffRduSBMsOjM-nwQ Sun, 19 Nov 2023 15:09:30.737 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.101.51.129; helo=localhost; envelope-from=sbaugh@catern.com; receiver=gmail.com Original-Received: from localhost (unknown [74.101.51.129]) by earth.catern.com (Postfix) with ESMTPSA id 839A662E3C; Sun, 19 Nov 2023 15:09:22 +0000 (UTC) In-Reply-To: X-SG-EID: =?us-ascii?Q?GW3oCMoYnalRiojMOuLzE6x2H5kORXvlCdz1UwQVRMVT4fbh9ODEfCogOe74cO?= =?us-ascii?Q?rI4e0V+MFZgakz9Re5a6=2FCggFm=2FEbcfMjGeaQoF?= =?us-ascii?Q?lrmgz1llqkDz04iBgGXHWstkU4SIZ5145Y2FxEu?= =?us-ascii?Q?w3QF4Q8ogstiSs1PLTvMBwcJEhG6dBk2k1k3Isn?= =?us-ascii?Q?k3AmpEUrLiislrXwBeDy08XsHCR7Edbt+v2XjVG?= =?us-ascii?Q?93+en5dc91bVwyRGHFHzSLSvmZniEFYpjS=2FKiD?= X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q== Received-SPF: pass client-ip=159.183.224.105; envelope-from=bounces+21787432-489d-emacs-devel=gnu.org@em8926.catern.com; helo=s.wfbtzhsw.outbound-mail.sendgrid.net 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 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:312992 Archived-At: Yuri Khan writes: > I can see three reasons for *not* saving histories: > > (1) risk of information disclosure if sensitive data such as passwords > is stored in histories; > (2) reduced startup performance if too much > history gets accumulated; and > (3) cross-process interference if the application is typically running > in multiple instances. > > (1) is solved by a blacklist (opt-out for a few specific histories), > (2) by pruning saved histories to some configurable maximum depth, and > (3) by saying Emacs is not typically used like that[citation needed]. I agree with your problem statements and solutions. To add further suggestions: maybe part of a solution for (2) would be for emacs -Q to not load or save history (e.g. it doesn't enable savehist-mode). Possibly even also emacs -q. That may also help with (3), because 99% of times I have multiple Emacsen running, it's because I'm running a test emacs -Q or emacs -q. (3) could also be solved by some intelligent merging of histories; it would be relatively straightforward to merge the histories when saving them. Although probably unnecessary complexity - everyone has been getting along fine without it.