From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: [External] : Turning on savehist-mode by default Date: Sun, 19 Nov 2023 16:06:17 +0700 Message-ID: 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="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12457"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@linkov.net, drew.adams@oracle.com, philipk@posteo.net, sbaugh@catern.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 19 10:07:35 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 1r4dmB-00037K-TH for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Nov 2023 10:07:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4dlE-0007HN-Re; Sun, 19 Nov 2023 04:06:36 -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 1r4dlB-0007Gy-OM for emacs-devel@gnu.org; Sun, 19 Nov 2023 04:06:34 -0500 Original-Received: from mail-ua1-x935.google.com ([2607:f8b0:4864:20::935]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4dl9-0007HG-UL; Sun, 19 Nov 2023 04:06:33 -0500 Original-Received: by mail-ua1-x935.google.com with SMTP id a1e0cc1a2514c-7c3e26c1830so430102241.0; Sun, 19 Nov 2023 01:06:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700384789; x=1700989589; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=00Z+0BZX4ykBiVPkqtvj7ZOQ6C6JGB/iu66GztEJMXA=; b=hThKm1MfCG9ig9WkyLzNgF62Z0kAoz4f5DJ4ebhM3ih6BfCaZTwecwHajrhxxPgp4B X52DcImXIOvtdYDSsIjsJgH2slJNE+PUtDW1MiQa/abHWGKpuXFXkO6LtdOzX+g7C0bU Nje26Sj2l6vwHSkjclV/RcGxTcOHGIQOvi/XyPjE4qljcjbsarX187Oy7uuMceh4I80Z dbtirSKd0w7l/F8kfoUmwOm6wL4IvMdHB3SOapOuq7LoxE+vasvf9FYTHIsQti19Z4OL +lWdpTpmarvsxujsnq7PbZDqZOYg++CXIDqKarkvHxUl/mErAuzeAh/hcjIQUosa4NGT j5HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700384789; x=1700989589; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=00Z+0BZX4ykBiVPkqtvj7ZOQ6C6JGB/iu66GztEJMXA=; b=dpEzflbCs+YNw70f9c44I6yPwqQMAgErTHiNCaCU7d5OZ99hBjKiH2+5xC7NRyuZpJ YUz2HYwA3Nlo+7IOkcYR0+7LGV45QrNqSuhhd8u3UeOQy8KviaPgO2cHr0tw5cqFb7tC vjp017f03WT5qfojyE9421WNrWzDkga8+b7U8KgQaa0TC86SMfFUqAbwioY+94IlEiJL n8h6wa5b/Mg1+BCy3eBK36ZGoh6WSjIXT3o57g45/hRYsQ1yDdCvqe2RMBheV40KMAY2 LaMkPWYmXtVBPWfdmZLmtKp/+ofo6K7NvjSd+cc/iQDaToXzXFQHWAvt+Uq7pALCvioY Ytwg== X-Gm-Message-State: AOJu0YymBU3wZ0+6KPp7V+FCJGqcWHEl8yHcUtfr7iZy2XoOEItzj8Uk zFlRwhGeAwD9lSvhZdHNY8GQI93mQpKhFD4/pl80y33J X-Google-Smtp-Source: AGHT+IErUxSyLuv14kg57bA3jYTeK9rbIdQgxL2QAorS+Hayy3yPf4bpKLpg3A/kvxG/GTn2IZVSK1QM7CuaKXlOW9c= X-Received: by 2002:a1f:de82:0:b0:49a:bff1:23 with SMTP id v124-20020a1fde82000000b0049abff10023mr2904533vkg.5.1700384789470; Sun, 19 Nov 2023 01:06:29 -0800 (PST) In-Reply-To: <83bkbqkv2u.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::935; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x935.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:312958 Archived-At: On Sun, 19 Nov 2023 at 15:26, Eli Zaretskii wrote: > > > Please don't forget there is also `desktop.el' > > > that is a superset of `savehist.el' > > > > Is it though? I=E2=80=99m using =E2=80=98desktop-save-mode=E2=80=99, no= t observing > > preservation of histories, and not seeing any user option in the > > Desktop group that would shout to me =E2=80=9Cenable this to save all > > histories=E2=80=9D. I see =E2=80=98file-name-history=E2=80=99 in =E2=80= =98desktop-globals-to-save=E2=80=99 but > > I wouldn=E2=80=99t like to whitelist all the histories I care about. > > Why not? Why would I? Histories are user data. User data is precious. Losing user data on a restart is a bug. (Slightly exaggerating.) 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 remember seeing an implementation of input histories that also allowed pinning important entries so they would never be pruned, and explicitly deleting specific entries, right from the UI that displayed history entries.) > I do precisely that, FWIW. It's a one-time configuration, > so not a lot of effort. It=E2=80=99s only a one-time configuration if your workflow is constant. If= I start using a feature I had not been using previously, its histories will initially not be saved, and I=E2=80=99ll have to interrupt my work and amend my configuration. So it=E2=80=99s a recurring cost.