From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.help Subject: Re: completing-read depricated initial-input Date: Tue, 21 Jun 2022 20:21:59 +0200 Message-ID: <86r13hubaw.fsf_-_@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36267"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 Cc: Christopher Dimech , "eliz@gnu.org" , "monnier@iro.umontreal.ca" , Help Gnu Emacs , "carlmarcos@tutanota.com" , "michael_heerdegen@web.de" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 21 20:25:11 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 1o3iYo-0009HE-OS for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Jun 2022 20:25:10 +0200 Original-Received: from localhost ([::1]:49578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3iYn-0001EF-Pn for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Jun 2022 14:25:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3iXA-0000Tx-P3 for help-gnu-emacs@gnu.org; Tue, 21 Jun 2022 14:23:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3iX9-0001u1-Qv; Tue, 21 Jun 2022 14:23:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=My8z1ycvT0pbKhoNesoDoVYsTuG7x3Ep78JZPr4ykGA=; b=cMJSDEnOHWbMjlaugwDJ Vge59Y5g3FLTaNsVa1zd46n8oHC3biHl0tY14XPnExWJKNuvvkBDUw50YdtBRSBiJtuv7mp8CwTnc Rumsil2z2E+2EatqQFY98dPpoXaFAresvhZYmYXSHCJ2s+EcHkpbNKoG7VpAiwDXcKwwyO6jN+jdb AzolDON3pWB4COLzXKmf3lCvLF7RzEAAfLiohOWfJnWnjvQ/rIzhIlwrgVtwTILYwtjiyLj957dsc FsULmIpoXx3R9cka7iMC8LN6tiku8Ea6By9l0DchH0n2LRId6RC2i1oieF5e4p3hbwCaGGwzuAuWl HfLz3Rm/QMlUxA==; Original-Received: from p4fe3ee56.dip0.t-ipconnect.de ([79.227.238.86]:64688 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3iX9-0007Yn-DF; Tue, 21 Jun 2022 14:23:27 -0400 In-Reply-To: (Drew Adams's message of "Tue, 21 Jun 2022 14:09:03 +0000") 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:137967 Archived-At: Drew Adams writes: > 3. The "argument" for deprecating it amounted to only > a statement that stylistically some preferred that > only the DEF (default value) argument be used. I thought the argument was "INITIAL-INPUT in too intrusive in the minibuffer, most notably, when it's not what the user wants, and then the hassle with C-a C-k and such begins". And if I compare: (let ((default "FOO")) (completing-read (format "Prompt (default %s): " default) '("FOO" "BAR" "BAZ") nil nil nil nil default)) where I hit ENTER or TAB makes more sense to me than this: (let ((default "FOO")) (completing-read "Prompt: " '("FOO" "BAR" "BAZ") nil nil default)) where I hit ENTER or have to delete the entry before I can proceed with TAB. As a personal note, the INITIAL-INPUT was something in AUCTeX which bugged for me for a long time, especially in queries for length arguments. I can't say how often I've deleted "1.0\linewidth" in my life. Best, Arash