From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Turning on savehist-mode by default Date: Sun, 19 Nov 2023 16:43:12 +0200 Message-ID: <4eeb3a77-befe-f891-a4f8-f63d81a1d720@gutov.dev> References: <87wmufm7r7.fsf@catern.com> <87fs12jkik.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31103"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: 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 Nov 19 15:43: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 1r4j1K-0007sE-BM for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Nov 2023 15:43:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4j1C-0006Nz-G7; Sun, 19 Nov 2023 09:43:26 -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 1r4j14-0006NE-Qu for emacs-devel@gnu.org; Sun, 19 Nov 2023 09:43:19 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4j13-0004C8-6H for emacs-devel@gnu.org; Sun, 19 Nov 2023 09:43:18 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 42B095C0230; Sun, 19 Nov 2023 09:43:16 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 19 Nov 2023 09:43:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1700404996; x=1700491396; bh=cceARkyIEhx/CqGJUTqP6Fx+80LZgFusoX+ Mm6W4c9s=; b=QKJn3O5IuVAwzyT7ww6lMVl8cuM1D7dgYquwtMM+5gNC1M7wLBC 7DwSGaRMJxgX0WQm44KSdIvhcFdB+5c9TsXW7AtMqcY5REdMFDnQcc5YWSmngArZ 6ou8XYHXNBYjvoejdDp1oTJavna2RfgBuTUNKm3TUZWa6qdSEZHzRhyuKIS0Sgbx zyuz5YwXDuDBFgf2zBSEFBfpbJPxj35Y8WDa/ynTwOG5ZkWXT8Vn4GOyvWlC9sTM OEBNC7SRlPLLxiAz5yYydZVYBbSTDE73+YyxFvgC7a7UFwuw9p/oMCnBC0NuzOo/ bW4pcrLrK+i2I4/6aPV11x2mRq1BjKS4UQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700404996; x=1700491396; bh=cceARkyIEhx/CqGJUTqP6Fx+80LZgFusoX+ Mm6W4c9s=; b=lW1JvU9wetfdcH1W/Ho9oJD9J+Gg5KK9uzy68Uh6cL4EOh1bB3i vnkFi8X1oIx1zjeDqhX8ckbdSMyQ2bWGF5qCa5LE/BugH/xIHUo5Y2DiaYV6f+H+ 0zrq5G9SKsuK+6Vc4bhuXVogOC3vQ6YyFa2Skc4HQUVUJNlDJ3zbsgii0J0ihfS+ 2z+26rj9t7e6wx8o9DFFopKLgHJ3+RARn0MGKgN+XQz9aEjWn+N8+9dKyvG1W3eQ pITi2POTjkNSX8CEdvVSNvAUn26iOHbjHwAu8ReeWcgfqD9FMRLpTup9PEL8jz9i 3l3+tg4MNM5fCdtYYXY18IbHXxC5M5TYR2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeggedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth ejredttdefjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehg uhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpeeigfetveehveevffehledtueekie eikeeufeegudfgfeeghfdulefgfeevledvveenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 Nov 2023 09:43:14 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.26; envelope-from=dmitry@gutov.dev; helo=out2-smtp.messagingengine.com X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 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, NICE_REPLY_A=-3.74, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-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:312985 Archived-At: On 19/11/2023 16:38, Po Lu wrote: > 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: 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. Corruption is worse still. Yes. But when you play stupid games (e.g. pkill), you win stupid prizes. Saving the history synchronously has other problems, e.g. exemplified in bug#66993.