From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [External] : Turning on savehist-mode by default Date: Sat, 18 Nov 2023 23:01:28 +0000 Message-ID: References: <87wmufm7r7.fsf@catern.com> <87edgmq601.fsf@posteo.net> <87jzqeybz8.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16347"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "sbaugh@catern.com" , "emacs-devel@gnu.org" To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 19 00:02:19 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 1r4UKR-00045U-D8 for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Nov 2023 00:02:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4UJp-0000WB-5a; Sat, 18 Nov 2023 18:01:41 -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 1r4UJm-0000Vk-Uo for emacs-devel@gnu.org; Sat, 18 Nov 2023 18:01:38 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4UJk-0002oH-Ez for emacs-devel@gnu.org; Sat, 18 Nov 2023 18:01:38 -0500 Original-Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AIMtPmQ002488; Sat, 18 Nov 2023 23:01:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=fgzRaWTL3etaNVyMX9Azi7X6LrtU7oTly1MZ+p5GGic=; b=1N8FYgiIO0susfKkN/Huv++LHzJYK8xEvcfag0oqd7xV55TRP8s3pFLOtSXT1YLg/3zK oO58owk1Waw0bz+mhf6PEjEI8Q8rliktphj5hIi4WUmTzQrIX2zZ3Azwauef/aQa9Q1Y UQ9BXktmrfZW/sn46yPNpz/IM3vm02R7ulZ3AWwca+fD0GsWUYiJY6n2Si8oqLOPlgfM gN7POxX9Lr77sX7rO7Iqjmo8jCRrD63hjtvW/s3r73W2KCnSwJwW5sUx0vvUOMNC+zrY TVTddY2x1tpVnV4q2dS0hw7yLjEudb/bnLFuTgoa/yW3h9KXd6R7n54+afUBikNxtmuT Zg== Original-Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3uekv2rr73-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 18 Nov 2023 23:01:32 +0000 Original-Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3AIKfKag031217; Sat, 18 Nov 2023 23:01:31 GMT Original-Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3uekq3tqbd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 18 Nov 2023 23:01:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D0eOyvqhpL7SFTmDIWpsBCf4Y6kWZ0iw/1eCi4tWeEjA9NglpmErlBjuVCJUCXYBtxI1SbtMWj4wpEKw1dqXI8p+qY8SkGtS3QY88UmSxBOft1mp+e9Oup2e5XgwiBpyoSzhdefFN2yNkFftOkJvxPT+uNmPcUZGlyfnkIXn93/VHPNDkFlkZMCKaB6g9AapuIfDHH55WndbLJ6lGi9aW0q3cn1HBaNTLxjIYZ1R0wimJo7TXunFHsLaTVrCbI1jVmx/3YuJfw0HyWpQGEq4e8Jnxfh86dDYizK07KVOmUuJk0xkvil/UfJMzMYUXiVyL6azq1NhoHl7p6glJ0XuUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fgzRaWTL3etaNVyMX9Azi7X6LrtU7oTly1MZ+p5GGic=; b=fe6sP7Fp4b3QPepBgsJ3frmaUxAqsWuZwSrO9zUKILcsY7gyFS7GoMe4PqBAOLeu+ix1lLPoQHdhgI8vtWPCcQgcLWr6aOfsYwmStiy2PjnF24tqhdZiSDeXKgCnIR+9rFpyNUOa+LqzEFpiGgkWgFKYqo9nbr/GRw5Grfo7J/K5wJVsj2uc4tyu0QwCEsHm2sdhRcRBcEA3BmboOQojkfEwTore/OyFZTwon2DScXnOBTji+akcYKuqtbe2mROLHuEp9AA9BCuDkHolDPKvdA1B3SUOCXLXS3ICwOsW8JRTVMCdXIIxMU7X2dLMjA4sYnXkAe0Loa9F+ejqs16JTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fgzRaWTL3etaNVyMX9Azi7X6LrtU7oTly1MZ+p5GGic=; b=xPsYbnU2Qq+YjGpbgUguoaD1GQxCfuGgum6iZREQRrUDyMmYunIfURdFdpy9MAbc9C1IL1We28YREJV3qPpen7WFuh0I5F3aeAbR9a804M+DJavXY6H1mtRaCYB6syhb2JdXXzcjgFy1YLcPmZ5zBs6E1IhPdNEEH5S+/Mpyocw= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BLAPR10MB5300.namprd10.prod.outlook.com (2603:10b6:208:334::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.26; Sat, 18 Nov 2023 23:01:29 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::3b4c:a669:c229:47b4]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::3b4c:a669:c229:47b4%7]) with mapi id 15.20.7002.026; Sat, 18 Nov 2023 23:01:28 +0000 Thread-Topic: [External] : Turning on savehist-mode by default Thread-Index: AQHaGmg5q3QefT6zbEadalIdbwfPV7CAoXnQ In-Reply-To: <87jzqeybz8.fsf@posteo.net> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|BLAPR10MB5300:EE_ x-ms-office365-filtering-correlation-id: 1267f356-baee-4b7d-3088-08dbe88a4c27 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OpSLgkbRlJWTri4VslwGpXHrl77dsZamgEoykn6CxzL8CQV7k0nUHcT7DgXJiJIG7ar4+7l5YTQaGKSsiwOM5FDbKbA0bygmzRmuUeZA4bS4e5kD8mWy1SgwHnBMrh8NYla/qvgu14qW6stgQFRxaIhRQPLI59cRv4XlUV3x5Qz0jrUDRLXmFWuQEzlqR1TYkNndmqycIdRdPAzS1gKzj48c9thAJybrFzgKCofan5ppIaUlgJIexzvt4HIO3wHIrYhJdmt+sMGxGB6zSCtt712bAOOI3WVMKEBaakGe/M502Ldf+t88GfwFN+vA6tgGH2/KTkDIgBAGOzMF1AgrXoHUgDePm+68rJ+xu/Vnr1j7cMxkv1DKSt7quas5H6TM6qMWKS80zZa2xzKC0/lY8GoD3mTwMcdB9Ac5GVxgiw7bBpnbJJaefrkpkH3nVOxihxHLuwK6VuX9z2MQ5DIraFu5sQlHFnm/oDRuHooYb4nvj4a/y+uGM53MX3PutqR4EcC+wkAThiYs31rx5nAfSePkDLW6bTsDfbSdgR8yjKUla1P4iPd5GEw9JsVtjM1LKLeNop5vYIWn1dO4OO1pQCr6aqxCqf0YbQ2MuV92zi8= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(366004)(39860400002)(376002)(136003)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(41300700001)(33656002)(2906002)(66899024)(8676002)(4326008)(8936002)(52536014)(316002)(5660300002)(44832011)(86362001)(38070700009)(83380400001)(55016003)(122000001)(26005)(71200400001)(9686003)(6506007)(7696005)(478600001)(38100700002)(966005)(66476007)(66556008)(66946007)(76116006)(6916009)(66446008)(54906003)(64756008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+miGqnTiV4kUD2YVR+d4Jxp2WmyXe6E/VMt1SAwEOWaC2+/SfI1tLC2YsQMd?= =?us-ascii?Q?7MTBbnE7k23GYHVgn3nrN8yDnoT73DgUhqkkJAgeb0u1+1XvvFLLvi/M3mgd?= =?us-ascii?Q?Mugl8eNnfdeNv9f++6qgHUS4mrQCXi+MhGQIOLkcpxt4xiX5bM6rS9Cy9uyR?= =?us-ascii?Q?VZjR1bLiMoyDHbGhQ28bQZlqyx+LVrY+Wu2EsG5fmCHYDs3U6Cn3fPB54V/Q?= =?us-ascii?Q?C7Wt+QbGSj50cmkOoSZVr7T36KY+XLQCw9TbzcNo/FSxgjgZBlfZTmYSyqpI?= =?us-ascii?Q?53lA3lwv7YOST6c5XXfA5lOhBqIjH+/djszcjJPDA/zHf0e3vwc1lWtYtnOT?= =?us-ascii?Q?sez+lcVypTy4xLwTEJbJdTyI3fQ4QYW8o4ufyForMl6moFoUQDOGr0UHJJ8x?= =?us-ascii?Q?A/45nJh7VsMtQibtmLwDVwo8G8jPVJqpO4qczh1oF4tvBd+jigycC7Z81Em0?= =?us-ascii?Q?tokAbajHR7XlpWTmVf0JUdcL0ssvpzZasy1YlTBXw2J9NXxdbN9yl7J+4fIq?= =?us-ascii?Q?tyraqXfXed3dfwg1LtJJy3S5ipo8co9Q47Bsig1xT1pF+Yvt7zLF69ppGI8O?= =?us-ascii?Q?0E/gyef25b5k0xhiUXfSVtWUwWLEdO599k7GLwLzRPcDjwmNDO2JNhQpcCpa?= =?us-ascii?Q?LU X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: jIXF91DPmYMlOWLfVJ/r0Ns7yJZ4LNs6YCOfDfTDBd93cM7oa5hSV6OADE98TWz0Xh5vnJ8TSlp/pahAZUNi7npEr2QxMmEKCIiAN4kr4+TOhab7FteMFiLT4bZ439Anv9GsYr9CQ021m9blW+OdNy5J3AKkP3ygXadiuc6lYvoF4WTrWASz+dvpte5BNvQN5xMgLeumy3MVO9km0Hsgrcp8BGlOw48WXvSiX1+wqE/QapyvCbBqm03sCQUz2lihAA1U14kbahQv2cYKc43IfQLVkXIjcCdFx9J+JtK5bJIsbgX1Bp0IbehjB2N8I/hwbZVBA/938oNf7H8xNv/Bw1wBlWWtGAHY4qeKsvi3XHl3IdOTNguYfUeXkr/5hWRaZMCRkZbfnl98s3t1lOPeqIljznO4jQ/9ar2wRDbpKeVKMAU1GEj9kPlkhX97oDnoylkrEVxMjI/bgfNeQ4pNTqCMpME8mbrKyKXH29CktYJhlkRUJnJ5jaxEH1CmfQdJ2C4tIm4BJZjXFMgKzkkOWc1R4Y1JZLDhNIak06uQWY49JubYALlIUOHMBnzuCVUbZ2vnj0IkscFpOHlbsR/y3cZJqT+aJD3ucaKIbu8orPqrVmfrZGNo/GNLI5eRotQglYdMMnPxkA2gqEm+Meq4OSOWJC134DpH///MRMTQm1N2ktlVW5b+IKWePU8Sbwog9Z9KMLv1jJ90XPELZftkuQHkFT1GbIXi/Rdq3hDKSXwd3Z tQq6LKZJ4lbM+1oKcE2Ne71RBLq9F4/g0uc0poWsqee5/+bcQD9AEsMgIrdqDoTQfnXA9ZJzoLy1gBezIL X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1267f356-baee-4b7d-3088-08dbe88a4c27 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Nov 2023 23:01:28.3683 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ExIKIGjxplDsG2B54k/a2x9Avsv61rRnLdDxSBPo7hBVg1iHFYDZ6fAW/drFQnbmpspEZWMI69f7IauBIo1VFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5300 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-18_20,2023-11-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311180176 X-Proofpoint-GUID: nMR0yah5XFRNffDJiPsijzyIB8mN3gCP X-Proofpoint-ORIG-GUID: nMR0yah5XFRNffDJiPsijzyIB8mN3gCP Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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:312939 Archived-At: > >> I wouldn't dismiss the proposal to enable it by default. > > > > I don't dismiss it. >=20 > So you don't oppose enabling savehist-mode by default? I don't _dismiss_ it. ___ https://www.wordwebonline.com/search.pl?w=3Ddismiss WordWeb tells you: Verb: dismiss Bar from attention or consideration "She dismissed his advances"; - disregard, brush aside, brush off [informal], discount, push aside, ignor= e =20 Cease to consider; put out of judicial consideration "This case is dismissed!"; - throw out =20 ... =20 Declare void "The President dismissed the parliament and called for new elections"; - dissolve > >> The issue is that beginners neither know how to do it, nor > >> what all the options are that they might be interested in. > > > > And yet it's "done by (practically) everyone"? >=20 > Let us say, "(practically) everyone" who manages to stay along, by > finding the right options to create a comfortable and productive > environment for themselves. There are certainly many beginners that > never change this user option; but I suspect that these are also the > ones that never get to taking a look at any user options, because they > give up too soon. So nearly all of those who (1) tried savehist and (2) didn't give up on getting comfortable and productive with it by fiddling with its options. That's a far cry from "(practically) everyone". But OK, it's clear now: Most who persisted at trying to use savehist continue to use it - that's the claim now. Might be the case. > > ___ > > > > Let's enable `delete-selection-mode' by default. > > > > It took decades to get `transient-mark-mode' ON > > by default. `delete-selection-mode' completes > > that job. It welcomes new users with the same > > type-to-replace behavior they're used to outside > > Emacs (everywhere). > > > > Persists nothing. Is easy for anyone not who > > doesn't want it ON to turn OFF. >=20 > One has to keep in mind that there are a lot of people who use Emacs, > and are familiar with the "feel" of the default key bindings or at least > some subset of these, without having much of an understanding of how to > do things or what is going on. These are users that should nevertheless > be respected -- hence my point that enabling a feature has to take the > workflow of people into account, for whom a change would break an > expectation. Not too worry. One has been keeping this in mind for many decades... One kept it in mind about `transient-mark-mode', yet that was eventually turned ON by default. (There are still users, today, who turn off `transient-mark-mode', but likely many fewer than if the default behavior hadn't changed to ON.) > Note that I am *not* saying that the goal should be to accommodate > newcomers (following whatever current trends may be) at any cost, > especially when this comes at the expense of long-term users. Nor am I. Nor was that behind turning ON `transient-mark-mode' by default. > To make this argument with savehist-mode, one would have to make the > use-case believable, that someone expects the history of mini-buffer > input to not persist between sessions. I think that is a claim that it > a lot harder to justify, than that inserting a key while a selection is > active, replaces the selection. No, I don't think making that use case believable is a requirement. Nor does anyone need to justify it as a claim. But FWIW, I do bet that someone - likely even most users! - currently expect minibuffer input history to NOT persist. If it isn't persisted then, hey, why would someone expect that it is? To me that expectation _is_ believable. But I'm not assuming that "(practically) everyone" turns on saving of minibuffer histories. I'm guessing that more people don't than do. Just a guess. __ FWIW, `savehist.el' is a general way to save variable values, not just a way to save values of minibuffer history variables. It's often recommended (including by me) as a way to persist any variables you like. Why isn't it written with that foremost in mind, i.e., as a general variable-persisting feature? Why make users fiddle option `savehist-additional-variables' to be able to use its (real) functionality? Why have pure-Boolean option `savehist-save-minibuffer-history' instead of just an option whose value is a list of variables to persist? Did it start with just the aim of saving minibuffer histories, and later grafted on the more general functionality as a wart? I guess not: It's not in Emacs 20; I don't have Emacs 21; and in Emacs 22 there's already the current design, with variable `savehist-additional-variables'. The code comment expressing the motivation says it provides Emacs with what "many editors (e.g. Vim)" already had: minibuffer-history persistence. (Presumably they had something similar to a minibuffer and its input histories.) I understand that it treats minibuffer histories specially, in that when you use a new history var that automatically gets included in the list of vars to persist. Still, the general functionality is to persist a set of vars. __ FWIW, I repeat that I'm a user/fan of savehist. My value of `savehist-additional-variables': `(search-ring regexp-search-ring)'.