From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Turning on savehist-mode by default Date: Sat, 16 Dec 2023 21:40:55 +0200 Message-ID: <83h6kikkag.fsf@gnu.org> References: <87wmufm7r7.fsf@catern.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28900"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@catern.com, emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 16 20:42:16 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 1rEaYA-0007IJ-HK for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Dec 2023 20:42:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEaXK-0001ll-RZ; Sat, 16 Dec 2023 14:41:22 -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 1rEaXD-0001lQ-8q for emacs-devel@gnu.org; Sat, 16 Dec 2023 14:41:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEaXC-00062n-NJ; Sat, 16 Dec 2023 14:41:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RYxcnuYa1UzO2KyP822FvGcZnBi/gfwLFH9BpWHepMM=; b=czIC9/2CgyzB numY2B8d2Ez4jNYUDJfIDPaQSM5X1ZGZZjce34pESrCZZJAsq9tMCekzo7FloZTVhTgwtlONBIEjX 11kiy8pWFNMgLgio0uiM59KZWvASdxER1p+6VV9haa5PawQKUvmAHGUnN8YxH2Ns5phXUllYQlX/d Sy3SkxrjolT5O908g7YgfpH6wXXG0JzjpjGWjHQiaDBcXbRN33yKlvAfLxI0duI7noZloqD3qa0Ku rL8w2pWCvcRgJfTVGFoE1PTUPT4KuqvzZbP494IvObpp4+udLQSXch4Gj93bLhnekIrjyik6+xJQ/ ZWUKLEt57C7sV76j2omLfA==; In-Reply-To: (message from Stefan Kangas on Sat, 16 Dec 2023 11:01:22 -0800) 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:313885 Archived-At: > From: Stefan Kangas > Date: Sat, 16 Dec 2023 11:01:22 -0800 > > sbaugh@catern.com writes: > > > savehist-mode is a useful mode which is turned on by many Emacs > > users. [1] It matches the default behavior of programs like bash and > > vim, which save command history by default. I suggest that we should > > find some way to enable savehist by default. > > Yes, good idea. This functionality seems to be expected in modern > software, so I don't see why we shouldn't provide it. > > I saw some discussion about desktop.el as an alternative. To me that's > a separate discussion. (FWIW, I'd rather see that we unified > savehist-mode and desktop.el instead of maintaining duplicate > functionality. I have no idea if that can be done in a reasonable way.) (FWIW, if savehist-mode will be on by default, I will turn it off in my init file, because I already use desktop.el to save the few history variables I care about.) > I didn't see any serious objections, so perhaps we could move forward > with this proposal. Eli, WDYT? There wasn't a compelling reason to turn it on, either. "Other programs save history" is not enough in my book. Other programs also have the equivalent of recentf ON by default, but we don't. On disadvantage that was never discussed is that if we turn it on by default, we'd need to preload savehist. All in all, I'm not sure we should do this. Perhaps a more wide user poll is in order.