unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42058: Cannot M-x (some?) single-letter commands in ‘fido-mode’
@ 2020-06-26 10:54 Dario Gjorgjevski
  2020-06-29 14:13 ` João Távora
  0 siblings, 1 reply; 4+ messages in thread
From: Dario Gjorgjevski @ 2020-06-26 10:54 UTC (permalink / raw)
  To: 42058

Okay, this one is super weird.

To reproduce, launch ‘emacs -Q’ and then

    M-: (defun T () (interactive) (message "T")) RET
    M-x fido-mode RET
    M-x T RET

This results in “Wrong type argument: number-or-marker-p, nil”.  The
issue seems to stem from the fact that

    M-: (read-extended-command) RET
    T RET

returns ‘icomplete-fido-delete-char’ as opposed to ‘T’, which is
returned when ‘fido-mode’ is disabled.

My Emacs version is 28.0.50, built on 2020-06-26 from commit 89c744c380.

Best regards,
Dario

-- 
dario.gjorgjevski@gmail.com :: +49 1525 8666837
%   gpg --keyserver 'hkps://hkps.pool.sks-keyservers.net' \
\`>     --recv-keys '744A4F0B4F1C9371'





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#42058: Cannot M-x (some?) single-letter commands in ‘fido-mode’
  2020-06-26 10:54 bug#42058: Cannot M-x (some?) single-letter commands in ‘fido-mode’ Dario Gjorgjevski
@ 2020-06-29 14:13 ` João Távora
  2020-07-01 10:45   ` Dario Gjorgjevski
  0 siblings, 1 reply; 4+ messages in thread
From: João Távora @ 2020-06-29 14:13 UTC (permalink / raw)
  To: Dario Gjorgjevski; +Cc: 42058

Hello Dario,

Dario Gjorgjevski <dario.gjorgjevski@gmail.com> writes:

> Okay, this one is super weird.
>
> To reproduce, launch ‘emacs -Q’ and then
>
>     M-: (defun T () (interactive) (message "T")) RET
>     M-x fido-mode RET
>     M-x T RET
>
> This results in “Wrong type argument: number-or-marker-p, nil”.  The
> issue seems to stem from the fact that
>
>     M-: (read-extended-command) RET
>     T RET
>
> returns ‘icomplete-fido-delete-char’ as opposed to ‘T’, which is
> returned when ‘fido-mode’ is disabled.

Yes, that is exactly it.

First, let's establish that the error happens because you're invoking an
interactive command that doesn't make sense in that context.  The
question becomes why pressing, in succession

   M-x T

does _not_ place the command named "T" in the top of the list so that
typing RET immediately would invoke it.  I don't have a good answer for
this yet.  I do know that two letters don't trigger this problem:

   (defun tt () (interactive) (message "yay TT"))

Will be the first completion to M-x tt ...

The completion to icomplete-fido-delete-char is just accidental: it
could have completed to anything else containing a "t" (since by
default, fido-mode is case-insensitive).

By the way, you can _force_ M-x to complete to the command named T by
typing M-j _instead_ of RET.   

João





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#42058: Cannot M-x (some?) single-letter commands in ‘fido-mode’
  2020-06-29 14:13 ` João Távora
@ 2020-07-01 10:45   ` Dario Gjorgjevski
  2020-07-01 10:47     ` João Távora
  0 siblings, 1 reply; 4+ messages in thread
From: Dario Gjorgjevski @ 2020-07-01 10:45 UTC (permalink / raw)
  To: João Távora; +Cc: 42058

Hi João,

Thanks for getting back to me.  I have identified the culprit and filed
bug#42149 in an attempt to fix it.  Please have a look there!

Best regards,
Dario

-- 
dario.gjorgjevski@gmail.com :: +49 1525 8666837
%   gpg --keyserver 'hkps://hkps.pool.sks-keyservers.net' \
\`>     --recv-keys '744A4F0B4F1C9371'





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#42058: Cannot M-x (some?) single-letter commands in ‘fido-mode’
  2020-07-01 10:45   ` Dario Gjorgjevski
@ 2020-07-01 10:47     ` João Távora
  0 siblings, 0 replies; 4+ messages in thread
From: João Távora @ 2020-07-01 10:47 UTC (permalink / raw)
  To: Dario Gjorgjevski; +Cc: 42058, 42058-done

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

OK, though I'd have just continued here.

No problem.  Let me close this one then.

On Wed, Jul 1, 2020 at 11:45 AM Dario Gjorgjevski <
dario.gjorgjevski@gmail.com> wrote:

> Hi João,
>
> Thanks for getting back to me.  I have identified the culprit and filed
> bug#42149 in an attempt to fix it.  Please have a look there!
>
> Best regards,
> Dario
>
> --
> dario.gjorgjevski@gmail.com :: +49 1525 8666837
> %   gpg --keyserver 'hkps://hkps.pool.sks-keyservers.net' \
> \`>     --recv-keys '744A4F0B4F1C9371'
>


-- 
João Távora

[-- Attachment #2: Type: text/html, Size: 1143 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-01 10:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-26 10:54 bug#42058: Cannot M-x (some?) single-letter commands in ‘fido-mode’ Dario Gjorgjevski
2020-06-29 14:13 ` João Távora
2020-07-01 10:45   ` Dario Gjorgjevski
2020-07-01 10:47     ` João Távora

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).