From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: completing-read depricated initial-input Date: Fri, 24 Jun 2022 14:36:48 +0300 Message-ID: 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> <878rpn876c.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10440"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ () (2022-05-21) Cc: Tassilo Horn , Drew Adams , Emanuel Berg , help-gnu-emacs@gnu.org To: carlmarcos@tutanota.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 24 13:39:25 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 1o4hen-0002W1-IA for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 24 Jun 2022 13:39:25 +0200 Original-Received: from localhost ([::1]:51004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4hem-00024J-Fi for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 24 Jun 2022 07:39:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4hdG-000215-1r for help-gnu-emacs@gnu.org; Fri, 24 Jun 2022 07:37:51 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:43431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4hdE-0006ql-9o; Fri, 24 Jun 2022 07:37:49 -0400 Original-Received: from localhost ([::ffff:197.239.7.48]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000087C51.0000000062B5A20A.000066D4; Fri, 24 Jun 2022 04:37:45 -0700 Mail-Followup-To: carlmarcos@tutanota.com, Tassilo Horn , Drew Adams , Emanuel Berg , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL=0.141, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:138071 Archived-At: * carlmarcos--- via Users list for the GNU Emacs text editor [2022-06-24 14:25]: > If emacs discourages things, people will take it seriously.  A > deprecated statement has consequences to many people in the way they > code.  It is assumed that the  functionality is not to be relied > upon too much. You refer to this: If INITIAL-INPUT is non-nil, insert it in the minibuffer initially, with point positioned at the end. If it is (STRING . POSITION), the initial input is STRING, but point is placed at _zero-indexed_ position POSITION in STRING. (*Note* that this is different from ‘read-from-minibuffer’ and related functions, which use one-indexing for POSITION.) This feature is deprecated--it is best to pass nil for INITIAL-INPUT and supply the default value DEF instead. The user can yank the default value into the minibuffer easily using M-n. Maybe author of that description could consider various use cases. That assumes that somebody is usig INITIAL-INPUT as replacement for DEF. It also assumes what is best for programmer, with "it is best to pass nil" -- but that is best for who? Maybe somebody who does not use it or has confusion with it. INITIAL-INPUT and DEF are different things, each has its own use in various situations. Instead of deprecating 2 different functions because some people assume they are same, description shall be written so that there is no confusion what is DEF and what is INITIAL-INPUT. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/