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: Turning on savehist-mode by default Date: Sun, 19 Nov 2023 15:17:48 +0000 (UTC) Message-ID: <87ttphlqlo.fsf@catern.com> References: <87wmufm7r7.fsf@catern.com> <87fs12jkik.fsf@yahoo.com> 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="35315"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu , Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 19 16:18:25 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 1r4jZ2-0008vq-By for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Nov 2023 16:18:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4jYY-0008Ky-EM; Sun, 19 Nov 2023 10:17:54 -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 1r4jYW-0008Ki-T6 for emacs-devel@gnu.org; Sun, 19 Nov 2023 10:17:52 -0500 Original-Received: from s.wfbtzhsv.outbound-mail.sendgrid.net ([159.183.224.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4jYU-0006OC-OU for emacs-devel@gnu.org; Sun, 19 Nov 2023 10:17:52 -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=WJneziKn4GaFuoEjMy5SsmMO15aEU216IooD57ucwhI=; b=VGlw7ovMB7SIV3L6t7+c3933JiIvv19bZYqRQeRy4EVl0VdkhCGbOq9DYxGcFU11eTHk uhxH7lAxWvanrafwzsiBN2sE46ysLF5DCwXPZH02Vj4a750FRxyFE/LmlWN90w9UBBDHHR F7/dD4NMJgqi+WPcapgDLCX1lXm4o/xfUptSvARpfyLVM17o7XjPMizgC+sbxXnyfMG57a TBnnp7GaJ4l0pHIJU50OVIpc4N4Ie6/vRc45bLe59m3ejr/Gm2zoJYbOgFU5IjnqSSu79x hDbdl1CBDkb807nBOt1wnnRGoD2rUJr5tuAlQ1D9nUZvC4HRjo9vtU8QKW6huSPw== Original-Received: by filterdrecv-655bd866f5-9wzrt with SMTP id filterdrecv-655bd866f5-9wzrt-1-655A271C-1 2023-11-19 15:17:48.0087272 +0000 UTC m=+2839017.422912719 Original-Received: from earth.catern.com (unknown) by geopod-ismtpd-22 (SG) with ESMTP id HVCb8DFtTpCT0Sar32hTqg Sun, 19 Nov 2023 15:17:47.883 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.101.51.129; helo=localhost; envelope-from=sbaugh@catern.com; receiver=yahoo.com Original-Received: from localhost (unknown [74.101.51.129]) by earth.catern.com (Postfix) with ESMTPSA id 90C3162EAF; Sun, 19 Nov 2023 15:17:39 +0000 (UTC) In-Reply-To: X-SG-EID: =?us-ascii?Q?GW3oCMoYnalRiojMOuLzE6x2H5kORXvlCdz1UwQVRMVT4fbh9ODEfCogOe74cO?= =?us-ascii?Q?rI4e0V+MFZgakz9Re5a6=2FCgjS9nXi9Z5TVSRgyC?= =?us-ascii?Q?hE9f0Hjc7oVeZh9dCPPqLbzmoZ=2FWUOiJkMgCWE+?= =?us-ascii?Q?gO27uSGKBXk8zlrVW003l0rjmtEMJczmWiK2ViZ?= =?us-ascii?Q?ZhyiTVzEut72r9B7W3YuoRjOnogIS3Yhcft8KOn?= =?us-ascii?Q?g1Bz+SfVkwjM+6fFBrnnb61tiFjKaw+Rzx+iib?= X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q== Received-SPF: pass client-ip=159.183.224.104; envelope-from=bounces+21787432-489d-emacs-devel=gnu.org@em8926.catern.com; helo=s.wfbtzhsv.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:312995 Archived-At: Po Lu writes: > Dmitry Gutov writes: > >> That would be a real problem if the information saved by savehist-mode >> were of grave importance. >> >> Completion input histories are not usually in that category. People >> can repeat their inputs manually; it's just a time-saving feature. > > It is a nuisance for Emacs to display outdated completion history if it > is abruptly killed: I agree that outdated completion history is a nuisance. However, isn't outdated completion history better than none? > anyone who has run multiple bash shells in parallel, > and thus played the guessing game of "which shell's history has been > preserved?" will concur. I definitely find the bash history experience extremely annoying. It happens even when bash is exited cleanly - it's just a consequence of the fact that bash overwrites the previous history when exiting, rather than combining them in some way. Emacs isn't commonly run in parallel, and when it is, at least for me there's always one main Emacs instance which outlives the others. So we shouldn't have the bash experience. But still: I'd be happy to implement some history merging behavior so we don't get the bash history experience, if that's a requirement for savehist-mode to be turned on by default.