Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid preview key on the latest consult #7064

Closed
LemonBreezes opened this issue Feb 1, 2023 · 8 comments
Closed

invalid preview key on the latest consult #7064

LemonBreezes opened this issue Feb 1, 2023 · 8 comments
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet

Comments

@LemonBreezes
Copy link
Contributor

LemonBreezes commented Feb 1, 2023

image
This block is causing an Invalid preview key: [67108896] error because (key-valid-p (kbd "C-SPC")) returns nil.

System Information

https://pastebin.com/L1fVW6d8

@LemonBreezes LemonBreezes added is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels Feb 1, 2023
@b40yd
Copy link
Contributor

b40yd commented Feb 2, 2023

this problem need rewrite :preview-key (kbd "C-SPC") to :preview-key "C-<SPC>".

@akaihola
Copy link

akaihola commented Feb 3, 2023

I also see this when typing C-c f r in nix-doom-emacs:

kuva

@akaihola
Copy link

akaihola commented Feb 4, 2023

Is there any work-around I can use in my Emacs configuration file?

@ghosty141
Copy link

@minad I'm wondering is C-SPC actually invalid or did something change, I also had C-SPC bound in my config (not related to doom emacs though) and currently I too get this error/warning.

@minad
Copy link
Contributor

minad commented Feb 4, 2023

@ghosty141 I updated the key configuration to use the new key format. See also the changelog. I clarified the message in minad/consult@982ec0b.

@ghosty141
Copy link

I see, so basically it was always invalid and kbd was just very permissive. That clarifies it, thank you.

@minad
Copy link
Contributor

minad commented Feb 4, 2023

No, the difference is that instead of :preview-key (kbd "C-SPC") you should just write :preview-key "C-SPC". The value of (kbd "C-SPC") is [67108896], which is what you see in the error message. See also the updated example configuration: https://github.com/minad/consult#use-package-example.

@ghosty141
Copy link

Funnily enough I just found that out myself, thanks for clarifying though!

alexmurray added a commit to alexmurray/dot_emacs.d that referenced this issue Feb 9, 2023
simonfxr added a commit to simonfxr/doomemacs that referenced this issue Feb 12, 2023
commit d31566a
Author: Itai Y. Efrat <[email protected]>
Date:   Thu Feb 9 21:17:51 2023 +0200

    feat(vertico): remap Info-search to consult-info

commit 2c3930d
Author: Itai Y. Efrat <[email protected]>
Date:   Thu Feb 9 01:42:21 2023 +0200

    bump: :completion vertico compat consult-lsp magit git-commit

    emacs-straight/compat@7ca7d300d1d2 -> emacs-straight/compat@2bedcb5ea919
    mhayashi1120/Emacs-wgrep@f9687c28bbc2 -> mhayashi1120/Emacs-wgrep@edf768732a56
    minad/consult-flycheck@7a10be316d72 -> minad/consult-flycheck@51b1b48e8dad
    minad/consult@16b2dc5e34c8 -> oantolin/orderless@ae849b3d9f8c
    minad/marginalia@c1365bf0c7b5 -> minad/marginalia@6d48ed54be87
    minad/vertico@bedd146c3ffc -> minad/vertico@f303790546ed
    oantolin/embark@629cce948c56 -> oantolin/embark@4882b395cef9
    oantolin/orderless@847694e78c12 -> minad/vertico@f303790546ed
    tumashu/vertico-posframe@a3d0802d7b4a -> tumashu/vertico-posframe@790f74b49d53
    gagbo/consult-lsp@58b541476203 -> gagbo/consult-lsp@f8db3252c0da
    magit/magit@0ef98ef51811 -> magit/magit@6d325d90ba13

    consult-lsp needed to be bumped to work with some changed consult
    internals, and due to compat shenanigans we have to bump magit to latest
    as well.

    Includes fixes to stay up to date with upstream api changes to.
    consult-customize and the deprecation of embark-define-keymap

    Close: doomemacs#7064

# Conflicts:
#	modules/emacs/vc/packages.el
#	modules/tools/magit/packages.el
mrcnski added a commit to mrcnski/init.el that referenced this issue Feb 14, 2023
The consult-customize function will now report a message when
using (kbd ...) as a value for the :preview-key.

See doomemacs/doomemacs#7064
See
purcell/emacs.d@289a748
0xMF pushed a commit to 0xMF/emacs.d that referenced this issue Feb 14, 2023
The consult-customize function will now report a message when
using (kbd ...) as a value for the :preview-key.

See doomemacs/doomemacs#7064.
Spike-Leung pushed a commit to Spike-Leung/emacs.d that referenced this issue Feb 15, 2023
The consult-customize function will now report a message when
using (kbd ...) as a value for the :preview-key.

See doomemacs/doomemacs#7064.
Spike-Leung pushed a commit to Spike-Leung/emacs.d that referenced this issue Feb 15, 2023
The consult-customize function will now report a message when
using (kbd ...) as a value for the :preview-key.

See doomemacs/doomemacs#7064.
xiliuya pushed a commit to xiliuya/emacs.d that referenced this issue Feb 15, 2023
The consult-customize function will now report a message when
using (kbd ...) as a value for the :preview-key.

See doomemacs/doomemacs#7064.
douo added a commit to douo/lims_dot_emacs that referenced this issue Feb 17, 2023
aieu pushed a commit to vgist/emacs.d that referenced this issue Feb 20, 2023
The consult-customize function will now report a message when
using (kbd ...) as a value for the :preview-key.

See doomemacs/doomemacs#7064.
shartf added a commit to shartf/doomemacs that referenced this issue Feb 21, 2023
…: [67108896]" error

Related to bug
 doomemacs#7064
Was causing the mentioned error in themes preview
SadSock pushed a commit to SadSock/doomemacs that referenced this issue Feb 22, 2023
skykanin pushed a commit to skykanin/doomemacs that referenced this issue Mar 13, 2023
tommas1988 pushed a commit to tommas1988/emacs.d that referenced this issue Jan 1, 2024
The consult-customize function will now report a message when
using (kbd ...) as a value for the :preview-key.

See doomemacs/doomemacs#7064.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet
Projects
None yet
Development

No branches or pull requests

5 participants