From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.help Subject: Re: completing-read depricated initial-input Date: Thu, 23 Jun 2022 14:10:45 +0200 Message-ID: <87a6a3y3zu.fsf@gnus.org> References: <86r13hubaw.fsf_-_@gnu.org> <86letphfke.fsf_-_@gnu.org> <87bkuljsvz.fsf@yahoo.com> <86fsjvlrjo.fsf@gnu.org> <874k0bkco7.fsf@dataswamp.org> <87letnhhj3.fsf@gnu.org> <87zgi3itb7.fsf@dataswamp.org> <86a6a3zj4y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16992"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Arash Esbati Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 23 14:18:57 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 1o4LnU-0004FY-W9 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Jun 2022 14:18:57 +0200 Original-Received: from localhost ([::1]:39438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4LnT-0005w6-Pm for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Jun 2022 08:18:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Lfn-00024p-Iu for help-gnu-emacs@gnu.org; Thu, 23 Jun 2022 08:10:59 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:55790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Lfl-0008Bh-3v; Thu, 23 Jun 2022 08:10:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=E8zfYxR0WZbJ1rswMpooqzu+riB1dDZ3znEwSow8aJk=; b=jymgt6P2aYfHpit1u6aRv6gyWk 6C1ct93lh208+658N5rRQIDm85wdP63+vN1/E80/1okdIcRgpeqvYEqc4isAJXxVUWqQlrGBYSLKN IIxmi/J0D/iwnAsoeMaYR8BVCMK00ojhK9AStb1GFmHNCTSTou5WVZGiDbxPdxBZM2Tc=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4Lfb-0006dU-Kn; Thu, 23 Jun 2022 14:10:50 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEX6+/3a0dKlnZ2B eHdMUE4xOjkYJzr///+RN+RxAAAAAWJLR0QHFmGI6wAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0 SU1FB+YGFwwIKyM4QpUAAAFxSURBVDjLbVRLcsIwDAXSA0Cn7Om06ZohpGuYyAeAWDpAZ+z7H6G2 Po4T8hb56EVPlvyczcbw3gF0n5sltldkDPt5fOeCEORPs+8dFvg6p8cK4xT/CDVB9zWhmdgRF3is J5SUN3zBjYnfV+KPlXAF+3Ul0WrlMQasunkmQtYUY8RAhfJWgiJnBOKoy0WaoARncE4i6KS1o2VE zbjpPCKD82wqrSkpspbLy8oEzAnPRG9EqlARY24DQMVJpVCIAcAikT/wQ88EgLflKAEuEakGSOMs hTqxsRSnTKUbWfG2ECTt2HJLgyEhd2/ENBKiKuOhQ6TSYLQh7qaxYx57tLGrF8rYSYa4N0OTbVQs xj5WZggYJ5M2ujW244zzzHCVS9i8P+oYj86lS7GoaHlI079eAZwpFcuhrFPtJidNXoeuA3m6L44a WEI5t01l59TreTq2bU086x9AP8XH2U9j26sazeOJ+Za6l0U84fDVdZdDef0HlpEthqAcduEAAAAZ dEVYdGNvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVDnr0DLAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIy LTA2LTIzVDEyOjA4OjQzKzAwOjAwGcKA+gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0yM1Qx MjowODo0MyswMDowMGifOEYAAAAASUVORK5CYII= X-Now-Playing: Herbert's _Part One_: "See You On Monday" In-Reply-To: <86a6a3zj4y.fsf@gnu.org> (Arash Esbati's message of "Thu, 23 Jun 2022 13:58:21 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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:138015 Archived-At: Arash Esbati writes: > I think the current standard in Emacs is like this: > > (let ((name "Danger")) > (read-string (format "Name (default %s): " name) > nil nil name)) Or rather: (let ((name "Danger")) (read-string (format-prompt "Name" name) nil nil name)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no