From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: completing-read depricated initial-input Date: Fri, 24 Jun 2022 00:10:14 +0200 Message-ID: References: <86r13hubaw.fsf_-_@gnu.org> <86letphfke.fsf_-_@gnu.org> <86mte3lsj2.fsf_-_@gnu.org> <871qvfoce1.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32226"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , Arash Esbati , Drew Adams , "eliz@gnu.org" , Help Gnu Emacs , "carlmarcos@tutanota.com" To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 24 00:11:30 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1o4V2v-0008B6-Ih for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 24 Jun 2022 00:11:29 +0200 Original-Received: from localhost ([::1]:38928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4V2t-0001at-TW for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Jun 2022 18:11:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4V1w-0001Z9-SE for help-gnu-emacs@gnu.org; Thu, 23 Jun 2022 18:10:29 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:42133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4V1r-00044s-Ci; Thu, 23 Jun 2022 18:10:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656022214; bh=4UaQGfcUwCoDc/ShB7ZHa6mimvjn6rWDrIt7/a3E5wo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ZigRahFyQFIhWHszibGiHyy6xmd2My+YRnT6OQtJcNMJAZtGjIbln0nGauLPRy4V+ NvzPnpJIJvqqidtCdAhn+Pfq9+yMgWpvLMA5LDZQ8XF7pf2bjVj+TMFQ0dSlRWvxV8 FQa/vSOkUqy4CgmPqdmprQ93cJ5JUBF8AkCVbCrg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [92.251.127.164] ([92.251.127.164]) by web-mail.gmx.net (3c-app-mailcom-bs07.server.lan [172.19.170.175]) (via HTTP); Fri, 24 Jun 2022 00:10:14 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:7Y56NiYEfqewTKZNuG6c+1UcMFDhCs6W+BAQe4nUxOm2UP7XoqF9l8urWrLL5M6OrUNjk 984ea3lTmM/hnNCkDtt8K1+GL3l6IM/TGTUx6caEFAXApDLFh7NzU6+FsHZp9Bt6t8/d2psmDuaH Gmv1Ohelhwp301W6s5j8nyjfypukxb0QBmqXJpK3z/SZAGalcVBXSR8VB3U1evKg5qpWFR7I1TmL p8onQn+64GGbC2x53q7tHHsP3k8pdkWPQD+VmC3TX0bU0dHpJBmndnGxISYD6IUHeKXMxtMaqWtu WA= X-UI-Out-Filterresults: notjunk:1;V03:K0:KrU1ckleWnE=:T/5QQMUjmeRz0EbRquSV9H fXtAFxiZ2bWiy7E+BDGqaNMv6f8rInFw4dc+4wIKvGrpS6+tRj9ux6N4wI11kzWeSZGeNzuLb 5rI3h9zr6LcTQZBnOoI9NE4dz39isNfqNmAQxC+n3nIbJo59DLz2K7iuCKpDvJd7IDZDdHkpo YIv9WNhfnkpRRNKsuA7F1mkfkz9JFh+WbnmAddXSiDMB+944u3OinIYI7kLHxQCZ07jCng/o4 iPwoa2QuHCmrjrzoyZpMfhGR8+9g4Oz15d1NgSPHEnCCTEorUdY4OlDXFPnces6EVsNfF65Z5 bJJ/75ZSR5EYLX7HtK6zC4p7a2PklvavshZFctUXJWc/Y+/xq9XlUuup5D7Wt6UsftFv4Siz/ 8vzFBv2bKKbZXQ9/PUIulyErw/0LBfYGsW5jeKBpdbE9b4y32JAqH4ywafIxCeCZx4fr5P1q4 4P5qH5ReuOulvtQN4vuneNkrLIdeQUTeuzJYJAxKLwqbIBocJ6NtECaFTfriybPlyFvsYVvdi 7pnqXYkXGJtyYYUuvTlFOxPMhwMeYariqrLgW+c6y8G2BeJn0JPjxR3S7CVYWXK24KaVtnV/z Rw157L7zipJsQK3AdFR7on3BgdjSQoEgkOHZD3TIiYm/oMtPTsL9kvIYqbnEMPZOtDexJsPy8 syhh3j4npbMy/6iSaVF/VevZc9vX3cNmBg3Ijs9Q4DL4wnsJ1PnVYOQ4nBHrmZw+7cKHtz16e EX84q7e0QqJQ3QBQZxLWDc9esTBKDib5QRDWDrwTklU0bX9d4Am9Dq2CEJO5IDRMOcghZ1Ze Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138049 Archived-At: > Sent: Friday, June 24, 2022 at 9:05 AM > From: "Stefan Monnier" > To: "Michael Heerdegen" > Cc: "Arash Esbati" , "Drew Adams" = , "Christopher Dimech" , "eliz@gnu.org" , "H= elp Gnu Emacs" , "carlmarcos@tutanota.com" > Subject: Re: completing-read depricated initial-input > > I haven't really followed that thread, but IMO the `initial-input` arg > should be changed into `setup-function` (so we don't have to use the > hideous `minibuffer-with-setup-function` hack) and using a string there > should be deprecated (the rare places where inserting an initial string > makes sense can use a setup-function instead). > > Also the prompt handling should be changed so that it automatically > inserts the default into the prompt. Doing that in a reliable and > backward compatible way is not completely straightforward, tho, so maybe > a simpler solution is to introduce a whole new function instead. > > Then a user-customization could also be used to choose between the > current default (where the default is added to the prompt) or the other > option of always inserting the default as initial value (pre-selected > so it can be deleted with a quick DEL). > Inserting default would make sense. We should not continue with the initial-value name then. Stating that DEF will be displayed as first instance. Making things smoother and clearer to understand.