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 10:19:05 +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="10914"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Michael Heerdegen , Arash Esbati , Drew Adams , "eliz@gnu.org" , Help Gnu Emacs , "carlmarcos@tutanota.com" To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 24 10:22:02 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 1o4eZl-0002Yt-RY for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 24 Jun 2022 10:22:01 +0200 Original-Received: from localhost ([::1]:52846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4eZk-0005R1-BI for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 24 Jun 2022 04:22:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4eXi-0005Mn-I9 for help-gnu-emacs@gnu.org; Fri, 24 Jun 2022 04:19:55 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:46099) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4eXd-000431-JV; Fri, 24 Jun 2022 04:19:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656058746; bh=VxLDGKThbVUqCDNgtOfA2dXNJMkhbkLcPvEhtKMi1Rk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=gW0qcIH71JcEBLvPGyZh/N9JjWL2QWfCHMhrxkjkDDE1qq961oHji4GyptMdpaiXp 9xk80pqIkp8sK7Ze5n3krlJV7FTMNPiwY4vDsR42AIh0BcbD02jfcGIAshgl1V79Bj 6COr2ltxV2os5F7fbow4Xyh7NWpfXfTdWBwgLzQg= 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 10:19:05 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:Fh9P0fEc66+CbuGAuHv8KiS6TE/BzoVhrfLV7Lp1Ag8kyD/nM/Zxa5OkGus6K2ETVSNgZ 3ilBmF7ssSJ2T6FCRGY9D0prNUV7Za3DW5iFGuR5JpIBiiqm+O4XmKTujA0b/GE4mA55R3ut6SfO dzRSl1HV7UJwPgOCpUWQC8y60KBVpjseKHAzUgmkUC6v0bqHEo2bMEZfWGJtvPtDlv5Kmy3ryWpy 4sK23gukio/blKwLhv8SLzwYcFXY5MqCdqghku+UNtqCu+lPy7xFxiWeXxnK334b1babYMQPvisG zI= X-UI-Out-Filterresults: notjunk:1;V03:K0:EsLrrxG+Qlo=:8eDYWI+LnyN4m/qr6qhneg vekayBkMnp1/aE3gAFdngLMraINjDOWB8vHRO2voCMRDR+YBGnOkmQ3AYLQRAjSFpu9AC+5SQ 7ZDiIwM7bsyDUGWq/Dl8AiY6rLRf6Xk/eFOEYFWtrOMQ+vs4P3AhkQENvYF+676mF+8jCuyhk nLZQB+4iYYk1WH6EvcI8ws8RTGsPFHLs1vuvfkIf5cJ9Xgfj87n5Srn+oZGL0d2j8Kpefy1uD VY98G5gtlK3oDijY9u1LYJ7rzQtWI8qImiaLGCHCpQ5TkARQY7NHdPOUViDru76To5/7jlnge nubOHfkntBXcj3R5Rt+Na9bbhAvA3OZv+DV2qjqdgNIqv1dj+fkJUIGpGUAIaA6qsKJXbbcZt tJLiz+YjYyzlo7/hayuknlmMMgSG8b9mwF+RtjxE9vlUEaLY/gkTMZK3/q4WKWkOELS+P48XK OVYo4DuLiSTwLFvdWhLltdhvcgUlY1AP/ejqeZy7CQ/t2vlWUGLIOdj8oecpjAhsc7JRvdrqT aZ92qC118a+qJRgXXXqHiIdTX7cwXsDfPRTPaE5ZKgBISoYLHLIUX82uSieBixOBYgvn3vT4a Vo3ZKOAWyyGihdLhmU1JqBfF1/gyBo19pry0yNBGVdxYhuq2fW6hqhQrWOTK6oB5nsrjeZ4IA BtFGuoE3HyLCPflssqsAqUr1s85tE1CmP4wzMNSwEea9r7QFhbdAVkvJkLlp9dbAh7rbmc6qB IKO76gIYzisD6N2bt9xZCRyitK62CYUXtYBLbgxp3nfFSZBoTAGG8IX/ivCLz1B76RMYHM5o Received-SPF: pass client-ip=212.227.17.20; 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:138065 Archived-At: > Sent: Friday, June 24, 2022 at 7:08 PM > From: "Jean Louis" > To: "Christopher Dimech" > Cc: "Stefan Monnier" , "Michael Heerdegen"= , "Arash Esbati" , "Drew Adam= s" , "eliz@gnu=2Eorg" , "Help Gn= u Emacs" , "carlmarcos@tutanota=2Ecom" > Subject: Re: completing-read depricated initial-input > > * Christopher Dimech [2022-06-24 01:11]: > > Inserting default would make sense=2E We should not continue with the > > initial-value name then=2E Stating that DEF will be displayed as fir= st > > instance=2E Making things smoother and clearer to understand=2E >=20 > I do not find it so=2E I do not say how function works, but I wish > to say what I expect as user=2E=20 >=20 > How I understand the "default" is that it should be the value > that function gives as result in case when user does not write > anything else, hits enter=2E That how it should be understood =20 > However, it does not work this way with `read-from-minibuffer', > so I will file bug report=2E >=20 > (read-from-minibuffer "Your name: " nil nil nil nil "Jean") =E2=87=92 "" >=20 > However, in this function it does work the expected way: >=20 > (completing-read "Your name: " '("Jean" "Emmanuel" "Adebayo") nil nil ni= l nil "Jean") =E2=87=92 "Jean" >=20 > (completing-read "Your name: " '("Jean" "Emmanuel" "Adebayo") nil nil ni= l nil "Adebayo") =E2=87=92 "Adebayo" >=20 > So I have filed bug report today, as that is not consistent behavior=2E >=20 > Initial input is something else, that is something I wish to > see there in front of me, ready to be chosen by pressing enter=2E >=20 > Those are totally different events=2E=20 >=20 > 1) I maybe do not want to show any initial input, but if I press > enter, I need my default >=20 > 2) I maybe want to show the initial input, but if I delete it and > press enter with empty string, I still need my default, which may > be different from initial input=2E >=20 > For me it would be rather damaging to remove initial input as I do > work with it often, there are people employed working with it, it > would affect the business=2E >=20 > --=20 > Jean I agree Jean, but it looks like the reasoning is taking a long discussion to be appreciated=2E initial-value is not related to a default or anythin= g but on what gets displayed as soon an you enter minibuffer read=2E