From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65348: INITIAL-INPUT in completing-read repeats same entry twice consecutively Date: Fri, 18 Aug 2023 12:27:47 +0000 Message-ID: <7B478V6-to8hhrJHvIXlKBqe2Og2xtH8fBQbq6zSGIjFPaw6L__XrHOvodM9J8XU98hQq9j6Z5f9OiaT6mMc7fWFto5XaPmEKmDOViY3JnE=@protonmail.com> References: <6lEyA2hwLwT0gnrhQsH91Us8wQDf0Cj8-hfYtge1iLDBFEsG5Hj_i80te8w4f52fgOS-g9Z908HRkYHlE05wBV9ccB5h1bFjV755l9nvYh0=@protonmail.com> <83y1i93t7x.fsf@gnu.org> <83wmxs52ti.fsf@gnu.org> <83il9c508h.fsf@gnu.org> <_vpSn7Hx9ux7MOLfpzR0NuLWbQdTWvf9GfHYDRdwIr7HL-e78lw6B5jfRbFkijbTbTNDxxgv0vDMtjxC7ZhPiHb0B8A0h3mrgX0Q7fH_aI4=@proton.me> <835y5c4ke6.fsf@gnu.org> Reply-To: Heime Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11922"; mail-complaints-to="usenet@ciao.gmane.io" Cc: uzibalqa , 65348@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 18 14:34:28 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 1qWygN-0002rb-Ug for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Aug 2023 14:34:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWyg4-0000uE-Or; Fri, 18 Aug 2023 08:34:09 -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 1qWyb7-0007m9-Nn for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 08:29:02 -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 1qWyb7-00074x-FP for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 08:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWyb7-0004bS-Qd for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 08:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Aug 2023 12:29:01 +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.169236168617628 (code B ref 65348); Fri, 18 Aug 2023 12:29:01 +0000 Original-Received: (at 65348) by debbugs.gnu.org; 18 Aug 2023 12:28:06 +0000 Original-Received: from localhost ([127.0.0.1]:46309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWyaD-0004aF-VJ for submit@debbugs.gnu.org; Fri, 18 Aug 2023 08:28:06 -0400 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:45243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWyaB-0004Zc-47 for 65348@debbugs.gnu.org; Fri, 18 Aug 2023 08:28:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1692361676; x=1692620876; bh=fETKhaVCSJOcPwmxdCePtOYA6vt4AGwcECHh+Ookwns=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=pOhPs6lT/nCEH8s2RW9Ezln43XycLHxNHQmB8Ip4Ny/Z2ZkLeKV74RXizCjVv2s3l n9eeixCPHURCanqbGXCrnzZN9qDkmUSOTKLsfrwgTAgaH4KzSpCc9pTYQjQwOMLaNE oY+FODtx+OwM2E0B6AJDFQuYih7aa10JLgmQ/ndDk1T6Pb0duFFE6CDEPF4L12TgMT DxdjlM67dEx4ZsoSwF0Hv2+xZAcl/qjS3+qFaWKN2pm+Sdes5EuBtLiHJpqGit8+eK igR/92MZHaSY2QdAhgdZKAJWZxRJ6ukSZQCT6l7aivNWAeKdgRb66oIjvmlHVCRr61 khuZ9gx+J1AkA== In-Reply-To: <835y5c4ke6.fsf@gnu.org> Feedback-ID: 57735886:user:proton 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:267757 Archived-At: ------- Original Message ------- On Saturday, August 19th, 2023 at 12:14 AM, Eli Zaretskii wr= ote: > > Date: Fri, 18 Aug 2023 08:40:12 +0000 > > From: uzibalqa uzibalqa@proton.me > > Cc: Heime heimeborgia@protonmail.com, 65348@debbugs.gnu.org > >=20 > > > 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 mor= e > > > complex. > > >=20 > > > > > > > Why do you need INITIAL? > > > > > >=20 > > > > > > I want the user to see a default without having him to get it w= ith the bloody "M-n". > > > > >=20 > > > > > 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: > > > > >=20 > > > > > Type your choice (default foo): > > > >=20 > > > > I do not want the user to type it, but for it to be displayed autom= atically. > > > > And if theyy do not want the default, they can step to the next pos= sibility > > > > in COLLECTION. > > >=20 > > > Then you will have to override the value of > > > minibuffer-default-add-function with a function of your own. > >=20 > > You see how things have become even more complicated now. How about > > providing the feature that there was ? >=20 > I explained above why this happens, so there's no need to reiterate. Why have users make new functions to override the value of=20 'minibuffer-default-add-function' when you can have the sensible feature that many would like to use available ! =20