From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65348: INITIAL-INPUT in completing-read repeats same entry twice consecutively Date: Fri, 18 Aug 2023 09:32:46 +0300 Message-ID: <83il9c508h.fsf@gnu.org> References: <83edk26wwu.fsf@gnu.org> <837cpu6sp6.fsf@gnu.org> <83msyq54mw.fsf@gnu.org> <6lEyA2hwLwT0gnrhQsH91Us8wQDf0Cj8-hfYtge1iLDBFEsG5Hj_i80te8w4f52fgOS-g9Z908HRkYHlE05wBV9ccB5h1bFjV755l9nvYh0=@protonmail.com> <83y1i93t7x.fsf@gnu.org> <83wmxs52ti.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31365"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65348@debbugs.gnu.org To: Heime Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 18 08:33:20 2023 Return-path: Envelope-to: geb-bug-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 1qWt2t-0007v8-1Y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Aug 2023 08:33:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWt2i-0003AZ-Oq; Fri, 18 Aug 2023 02:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWt2c-00039N-JN for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 02:33:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWt2c-0002du-62 for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 02:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWt2c-0000b0-CM for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 02:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Aug 2023 06:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 65348-submit@debbugs.gnu.org id=B65348.16923403672254 (code B ref 65348); Fri, 18 Aug 2023 06:33:02 +0000 Original-Received: (at 65348) by debbugs.gnu.org; 18 Aug 2023 06:32:47 +0000 Original-Received: from localhost ([127.0.0.1]:45974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWt2M-0000aI-Rj for submit@debbugs.gnu.org; Fri, 18 Aug 2023 02:32:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWt2K-0000a5-9K for 65348@debbugs.gnu.org; Fri, 18 Aug 2023 02:32:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWt2E-0002WM-O2; Fri, 18 Aug 2023 02:32:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rV7SouDFpJs1Wwu1LpqSy+J9SRRi3Q7cBucUFC2ez8U=; b=NhpSigncnSOz gqIs04nHHEgDgxDpEosn+MS4EPdJKUefDbUMRhtUnIkhNyGA+R8zmYAIyPw6jBmlbyolaRZ6kD4Jc zEkl8EjwRwSaTfFgKUjU4cnKjTHGF46MYI0o+m1nUQ8PJPB/jjwz1ReG3zX0F3mhqq3lxxVMiWVmn b15YurZB5FE+sjII21Xf0vlPGKhl46Sy93K4SYHYdafiw1nNtwpD10VAvUD5IXI6UvhbxF1RufR5W dcNTYpCrD+580d9pTJAACKeF/jdE1L03UjIt02eX66Dl2+Nh2Rl7h+euj4kPHcBplqVBG8Z1le/pg KgPYcVTNBTdergjAcH2+sA==; In-Reply-To: (message from Heime on Fri, 18 Aug 2023 05:56:04 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267726 Archived-At: > Date: Fri, 18 Aug 2023 05:56:04 +0000 > From: Heime > Cc: 65348@debbugs.gnu.org > > > The manual tells you what to do instead. > > This used to be easy for beginners. Now it has became complicated. Using completing-read was never easy. > Had hoped the plan for the future was to improve things for > beginners, now everything has started to get modified for use mostly > by experts. The Emacs development enhances the existing functionality, and that inevitably makes some situations more complex to handle. That is the price for added functionality, and no one has yet found a way of making software more flexible and powerful without also making it more complex. > > > > Why do you need INITIAL? > > > > > > I want the user to see a default without having him to get it with the bloody "M-n". > > > > > > That's not how you show the default to the user. The way to show the > > default to the user is to include it in the prompt, like so: > > > > Type your choice (default foo): > > I do not want the user to type it, but for it to be displayed automatically. > And if theyy do not want the default, they can step to the next possibility > in COLLECTION. Then you will have to override the value of minibuffer-default-add-function with a function of your own.