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: Sun, 17 Dec 2023 09:50:51 +0200 Message-ID: <8334w1l12c.fsf@gnu.org> References: <87wmufm7r7.fsf@catern.com> <83h6kikkag.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2805"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefankangas@gmail.com, sbaugh@catern.com, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 17 08:51:33 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 1rElvx-0000aK-Iv for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Dec 2023 08:51:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rElva-00051i-Ly; Sun, 17 Dec 2023 02:51:10 -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 1rElvY-00050p-7c for emacs-devel@gnu.org; Sun, 17 Dec 2023 02:51:08 -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 1rElvX-000870-UX; Sun, 17 Dec 2023 02:51:07 -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=mRAPRVAyXgfvZRwWjqf/alTusv0AeSWP5MwirrB2NWA=; b=clT3rfxIZ53R kXUyi5CA553zXHqxMJdXVgVlTuPrp0Z5V2n80ysGPgc6YOhyHsZAyfCDveuru/OiM0PJqW4nJIG5Y 45Ky5LBXsw4uTLGFeWyzKrdYUDg5pUjVly27I33iDNyANF1WnMZZ1QquxMM5OCHFjvQIKca9ap0qF z7JmDMvKvs7mpufyt++5tFbmeohZXq6kmeAPwLav8GRqiiunuiWk97MKnBc8zIxopF8fzxrqQe3EQ 6YlOytstafAHW8IP065yIP6b8ldiZdPPMRnEELsMx0C7++jF/eWkt4GmbtfFvYZf/V2QcmbAFDx96 0sU0gdXC7q93Q92bH2xdEA==; In-Reply-To: (message from Po Lu on Sun, 17 Dec 2023 07:57:07 +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:313905 Archived-At: > From: Po Lu > Cc: Eli Zaretskii , sbaugh@catern.com, emacs-devel@gnu.org > Date: Sun, 17 Dec 2023 07:57:07 +0800 > > Stefan Kangas writes: > > > Meanwhile, I see few drawbacks to enabling it. > > Multiple, concurrent Emacs sessions will cease behaving in an orderly > and predictable manner. It makes little sense for Emacs to provide > features designed to enable such orderly operation, such as lock files, > while undermining them by enabling recentf or savehist by default, both > of which overwrite files other sessions might've generated with their > own. Isn't this a general issue with saving any customizations? E.g., saving options, saving desktop, etc. etc.? Saving history from Bash, GDB, etc. has the same problems, AFAIK. And anyway, the problem already exists for those who turn on savehist in their customizations. If your usage patterns must avoid the overwriting you mention above, simply disable savehist in your init file, and Bob's your uncle. IOW, once again: personal preferences should NOT affect the defaults, nor are they too important when discussing those defaults. Unless the feature we want to turn on is buggy (in which case it must be fixed first), turning it on by default cannot possibly cause problems we don't already have.