all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: "João Távora" <joaotavora@gmail.com>
Cc: 43120@debbugs.gnu.org, Lars Ingebrigtsen <larsi@gnus.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	19032@debbugs.gnu.org, Sean Whitton <spwhitton@spwhitton.name>
Subject: bug#43120: 28.0.50; fido-mode: M-j before completions appear selects wrong choice
Date: Wed, 09 Sep 2020 23:01:22 +0900	[thread overview]
Message-ID: <87y2ljcaml.fsf@mail.parknet.co.jp> (raw)
In-Reply-To: <871rjcwsmr.fsf@gmail.com> ("João Távora"'s message of "Tue, 08 Sep 2020 09:59:56 +0100")

João Távora <joaotavora@gmail.com> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> I think something like this is the way to go for a behaviour change such
>>> as this.
>>
>> Looks fine to me.
>
> Thanks, pushed.
>
>>> +    (define-key map (kbd "RET") 'icomplete-ret)
>>
>> Maybe use a `remap`ping instead?
>
> I did that, too.

> +(defun icomplete-ret ()
> +  "Exit minibuffer for icomplete."
> +  (interactive)
> +  (if (and icomplete-show-matches-on-no-input
> +           (car completion-all-sorted-completions)
> +           (eql (icomplete--field-end) (icomplete--field-beg)))
> +      (icomplete-force-complete-and-exit)
> +    (exit-minibuffer)))

This changed the behavior of RET from `minibuffer-complete-and-exit' to
`exit-minibuffer'. Was that intention? What I noticed is the following.

[before]
	emacs -Q
        M-x icomplete-mode
        C-xd /usr
        C-xk u		;; shows "Kill buffer (default usr): u(sr)"
        RET
        killed "usr" buffer

[after]
	emacs -Q
        M-x icomplete-mode
        C-xd /usr
        C-xk u		;; shows "Kill buffer (default usr): u(sr)"
        RET
        No buffer named u

Thanks.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>





  reply	other threads:[~2020-09-09 14:01 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-30 21:00 bug#43120: 28.0.50; fido-mode: M-j before completions appear selects wrong choice Sean Whitton
2020-08-30 23:50 ` João Távora
2020-08-31 16:37   ` Sean Whitton
2020-09-01 14:16   ` Lars Ingebrigtsen
2020-09-01 18:27     ` João Távora
2020-09-03 12:40       ` João Távora
2020-09-03 13:11         ` Lars Ingebrigtsen
2020-09-03 13:13           ` João Távora
2020-09-03 13:51             ` Lars Ingebrigtsen
2020-09-03 13:55               ` João Távora
2020-09-01 14:19 ` Lars Ingebrigtsen
2020-09-03 23:23   ` Sean Whitton
2020-09-04  2:11     ` Lars Ingebrigtsen
2020-09-04  3:22       ` Sean Whitton
2020-09-04  3:27         ` Lars Ingebrigtsen
2020-09-04 14:47           ` Sean Whitton
2020-09-05 12:25             ` Lars Ingebrigtsen
2020-09-05 15:32               ` Sean Whitton
2020-09-05 21:12                 ` Lars Ingebrigtsen
2020-09-06 18:26                   ` bug#19032: " João Távora
2020-09-07 10:30                     ` Lars Ingebrigtsen
2020-09-07 10:37                       ` bug#19032: " João Távora
2020-09-07 11:43                         ` Lars Ingebrigtsen
2020-09-07 17:30                     ` Stefan Monnier
2020-09-08  6:52                       ` João Távora
2020-09-08  8:59                       ` bug#19032: " João Távora
2020-09-09 14:01                         ` OGAWA Hirofumi [this message]
2020-09-09 16:11                           ` João Távora
2020-09-09 17:52                             ` Stefan Monnier
2020-09-09 19:13                               ` bug#19032: " João Távora
2020-09-09 19:52                                 ` Stefan Monnier
2020-09-09 19:54                                   ` bug#19032: " João Távora
2020-09-09 19:57                                     ` João Távora
2020-09-09 20:35                                       ` bug#19032: " Stefan Monnier
2020-09-09 22:08                                         ` João Távora
2020-09-10  4:36                                           ` Stefan Monnier
2020-09-10 18:51                                           ` bug#19032: " Juri Linkov
2020-09-10 19:15                                             ` João Távora
2020-09-09 18:58                           ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y2ljcaml.fsf@mail.parknet.co.jp \
    --to=hirofumi@mail.parknet.co.jp \
    --cc=19032@debbugs.gnu.org \
    --cc=43120@debbugs.gnu.org \
    --cc=joaotavora@gmail.com \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=spwhitton@spwhitton.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.