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 15:14:57 +0300 Message-ID: <835y5c4ke6.fsf@gnu.org> References: <83msyq54mw.fsf@gnu.org> <6lEyA2hwLwT0gnrhQsH91Us8wQDf0Cj8-hfYtge1iLDBFEsG5Hj_i80te8w4f52fgOS-g9Z908HRkYHlE05wBV9ccB5h1bFjV755l9nvYh0=@protonmail.com> <83y1i93t7x.fsf@gnu.org> <83wmxs52ti.fsf@gnu.org> <83il9c508h.fsf@gnu.org> <_vpSn7Hx9ux7MOLfpzR0NuLWbQdTWvf9GfHYDRdwIr7HL-e78lw6B5jfRbFkijbTbTNDxxgv0vDMtjxC7ZhPiHb0B8A0h3mrgX0Q7fH_aI4=@proton.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6717"; mail-complaints-to="usenet@ciao.gmane.io" Cc: heimeborgia@protonmail.com, 65348@debbugs.gnu.org To: uzibalqa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 18 14:17:55 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 1qWyQM-0001YO-Nq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Aug 2023 14:17:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWyQ6-0005NO-Ix; Fri, 18 Aug 2023 08:17:38 -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 1qWyOY-0003tD-JD for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 08:16:05 -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 1qWyOY-0003zH-2f for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 08:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWyOY-0004IG-Dq for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 08:16: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 12:16: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.169236090316428 (code B ref 65348); Fri, 18 Aug 2023 12:16:02 +0000 Original-Received: (at 65348) by debbugs.gnu.org; 18 Aug 2023 12:15:03 +0000 Original-Received: from localhost ([127.0.0.1]:46287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWyNa-0004Gu-Kn for submit@debbugs.gnu.org; Fri, 18 Aug 2023 08:15:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWyNY-0004G2-PZ for 65348@debbugs.gnu.org; Fri, 18 Aug 2023 08:15:01 -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 1qWyNR-0003Ji-1Z; Fri, 18 Aug 2023 08:14:53 -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=cNCAtkiu+DWG/cda6dKA6VqZy1qzwaCDbO9EVXJl8vY=; b=HProra5oPUDE wKqsItpV08rsYKmFIM0VLcMNdcIyJn9qwZjtGiAdsCENJsTkNkLG2yTOrfJk5kJdJYgIal2etZmwh J2d+Oqf4XZWLAicpESI27g46AiRq/JTGE9GLGrLpaSybE8WLoCysFzUtS3K6Y9fHxmwfikPyBzmLi AgHJoS186s8RIwWqny9PRep31WQ7IXIQtKVD/jL9BrPEiFUpoD8XnIgCYvfu3ziGuJLYaXXPolJ4/ +TR+YPXacGJ0huUjwDqH6y8uFImbyb0Ghcf8BmtVGq7ehO2yONuRmEugC3GA9XVP6vv0hmmoiRU7i a32i/sC7sTqI1uo3jpta7w==; In-Reply-To: <_vpSn7Hx9ux7MOLfpzR0NuLWbQdTWvf9GfHYDRdwIr7HL-e78lw6B5jfRbFkijbTbTNDxxgv0vDMtjxC7ZhPiHb0B8A0h3mrgX0Q7fH_aI4=@proton.me> (message from uzibalqa on Fri, 18 Aug 2023 08:40:12 +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:267753 Archived-At: > Date: Fri, 18 Aug 2023 08:40:12 +0000 > From: uzibalqa > Cc: Heime , 65348@debbugs.gnu.org > > > 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. > > You see how things have become even more complicated now. How about > providing the feature that there was ? I explained above why this happens, so there's no need to reiterate.