From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thanos Apollo Newsgroups: gmane.emacs.devel Subject: Re: Turning on savehist-mode by default Date: Tue, 28 Nov 2023 13:04:41 +0200 Message-ID: <87edga86m9.fsf@thanosapollo.org> References: <87wmufm7r7.fsf@catern.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39502"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.6; emacs 29.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 28 14:54:43 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 1r7yXx-0009y9-Nl for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Nov 2023 14:54:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7yWq-0000QN-0R; Tue, 28 Nov 2023 08:53:32 -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 1r7wAy-0002b1-8a for emacs-devel@gnu.org; Tue, 28 Nov 2023 06:22:48 -0500 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7wAw-0004bj-9j for emacs-devel@gnu.org; Tue, 28 Nov 2023 06:22:48 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id B114A3200BF2 for ; Tue, 28 Nov 2023 06:22:41 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 28 Nov 2023 06:22:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= thanosapollo.org; h=cc: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=fm1; t=1701170561; x= 1701256961; bh=ihRv6l4ViWeTeJ4mHyJblp5TLeSiqKESDzWqtJ48W9w=; b=e KL4HrfvAQ+EoM9wCV96hAiS15xN7jcpOYnocyupnfV4UGX+avzevjMf5t6vL8FDM R4Oq6JiADEyxVLbHQNWWQFJDnYDrVoc8Yn69HuLF2Pgp3yFy/g/CfTgyc2/wnVEp oXKkELgwXsSnA/Xhw2LlIMagy8MF1rWC4QgpSJC9uM8IHXDKbc3PhQB2phYsR8bB eo7VkgzldB1+3aOQ73iRxbzR3Wt9kmcVmUyYv17Ae0s4rlZ9X1dbAth1e746rZy0 x4L9V8rRiXMoyAI4wdQmL/mZ4a5Rko8lZBj07ffk0YFn76RJhXaLn/ppvbPbCD6l GM9bneDSBCH+s6seLVh3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1701170561; x=1701256961; bh=ihRv6l4ViWeTe J4mHyJblp5TLeSiqKESDzWqtJ48W9w=; b=FJVjKAF/R4Wjusz1bj25Cn9FD7dlh V3jMEC4z1E35GQHE85DUz6nOKdnSsPNlLEDDxjhumldv4suF6Hsflb6w9N7u5ldF J7AuWAtWyILPoyJEsxSa6fStyxQWHysLvILUsUKphjVwURPCD7Mn8kegM/dnosXW nC8VIytcEauU7jQAwjL7oBM05W3zljY3l6E5NfrYNBXsE7I3oPhzvt+vi4D/VfRG J5IMbmguvOcOQKe2MmSnvQTypI5vmYeCv7EOZb4GduSG1aPf/bWIQeAHtfGLBI+L 6+mJFU6Pn3Thht1hN0c54ZYMgb87uua8jXIzyS3JeqUEweCY8tFdIaLFQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeifedgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffuffgjkfggtgesghdtre ertderjeenucfhrhhomhepvfhhrghnohhsucetphholhhlohcuoehpuhgslhhitgesthhh rghnohhsrghpohhllhhordhorhhgqeenucggtffrrghtthgvrhhnpeefgedugfehtdekhe eutdehgeeltdfhleekkedujeeutdekudeuhffgheegtddvkeenucffohhmrghinhepthhh rghnohhsrghpohhllhhordhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepphhusghlihgtsehthhgrnhhoshgrphholhhlohdrohhrgh X-ME-Proxy: Feedback-ID: if38949d4:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 28 Nov 2023 06:22:40 -0500 (EST) In-reply-to: <87wmufm7r7.fsf@catern.com> Received-SPF: pass client-ip=64.147.123.20; envelope-from=public@thanosapollo.org; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, FROM_FMBLA_NEWDOM28=0.799, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Mailman-Approved-At: Tue, 28 Nov 2023 08:53:27 -0500 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:313316 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. > What is the recommended way for package authors to disable savehist-mode? If savehist-mode is enabled by default, it is advisable to also consider a simple way to disable it for a specific package mode. for example I'm using emacs to answer a MCQ, such as: Q:Which one of the following statements concerning the ability of acidosis to precipitate a crisis in sickle cell anemia is correct? ```emacs-lisp (completing-read "Answer: " '("Fetal blood has a higher affinity for oxygen than does adult blood because Hb F has a decreased affinity for 2,3-BPG." "Purified Hb F (stripped of 2,3-BPG) has a higher affin- ity for oxygen than does purified Hb A." "The globin chain composition of Hb F is =CE=B12=CE=B42.")) ``` Saving the latest and usually correct answer defeats the purpose of an MCQ. One workaround for this is to set minibuffer-history to nil, although it is unclear whether this is advised, even with a let statement. =2D-=20 Thanos Apollo https://thanosapollo.org --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJMBAEBCAA2FiEEX2sy4n9DOqnkKlMKClBwPRznrikFAmVlzX4YHHB1YmxpY0B0 aGFub3NhcG9sbG8ub3JnAAoJEApQcD0c564pHzIP/Awmkj+OE9DF3JjCSJobFH7D RBWpeDqIp/vCfvUPeLU7vdEH8j3gP9U+NR0vXXp6zn4Svxzhtho46pT7jC7oOHzm QMMDYpAXyFfM2ytoGzlX/l2jJdpwPN2WgqDPuyMWdNn3zOuRIZVIjTkyDcp5+kkz W9cRcVaP4/vzc6O6oPymLxBgBfSxFet2vD8Uma5MKZ83LjygUar5BNSRtjiFB/5l Hjvruca1SSKPHDfy2wIL7N7689ujO1CKsmuK2fBNxdePJOs2Ubyuk2ggOeSnY2D7 1fgazvIDaSPJOjMTvu/3g8X2f/b9jAZGID7FVRl/FVSYRbCLPTGeg0eRZln9we3S pFIXfKvqnKJajxdcnoABq+MHXo5R1MOseRIDdTLTjajUHvERDM7KFvnfrNOe+tC2 N98usSGbCmj5hG5U9ACpSSRfx4nOVrZZrEhToQjfvG7Jx+fzJ8155gYoNEJNV7ij GIiBmMUdvzfbuUE21yCwH0ewW3HXlbhmeMAXTNZWmJHIdwOAwfkDONusWioLzhhz YtakQAlOriVfRj+C1t6y3gT5X2MYSdxBhPPmQcUkwdRFuWcluIF5okWCSQQW11g2 GhzvrrZmImNI5FR2f4n18yyuld7OCXqxU5aEjvayJQxubZnXz91O+HAB+K8tD9fG RuKB8LuNySHxPk7KALRp =HsR/ -----END PGP SIGNATURE----- --=-=-=--