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 according to ‘key-valid-p’ #747

Closed
floli opened this issue Feb 20, 2023 · 1 comment
Closed

Invalid preview key according to ‘key-valid-p’ #747

floli opened this issue Feb 20, 2023 · 1 comment

Comments

@floli
Copy link

floli commented Feb 20, 2023

Hello,

I am getting the message

Invalid preview key according to ‘key-valid-p’: [134217774]

frequently while doing a selection with consult active. It seems to originate there https://github.com/minad/consult/blob/main/consult.el#L1537

consult from elpa 20230218.1212, installed with use-package

(use-package consult
  :ensure
  :bind (
         ([remap yank-pop] . consult-yank-pop)
         ([remap yank] . consult-yank-pop)
         ([remap isearch-forward] . consult-line)
         ([remap switch-to-buffer] . consult-buffer)
         ([remap list-buffers] . consult-buffer) ; I never use list-buffers and it only annoying
         ("C-x B" . consult-buffer-other-window)
         ("C-." . consult-imenu)
         ("M-g m" . consult-mark)
         ([remap goto-line] . consult-goto-line)
         ("M-s r" . consult-ripgrep)
         )
  :config
  (progn
    ; disable default preview for certain commands / sources
    (consult-customize consult-ripgrep consult-git-grep consult-grep
                       consult-bookmark consult-recent-file consult-xref
                       consult--source-recent-file consult--source-project-recent-file consult--source-bookmark
                       :preview-key (kbd "M-.")))

Emacs is 28.2.

Thanks a lot!

@minad
Copy link
Owner

minad commented Feb 20, 2023

Take a look at the example configuration in the readme. The preview key format changed.

@minad minad closed this as completed Feb 20, 2023
markhepburn added a commit to markhepburn/dotemacs that referenced this issue Feb 21, 2023
ldeck added a commit to ldeck/nix-home that referenced this issue Mar 10, 2023
ldeck added a commit to ldeck/nix-home that referenced this issue Mar 11, 2023
Arian-D added a commit to Arian-D/emacs-config that referenced this issue May 27, 2023
The format has changed; See this
minad/consult#747
hyakt added a commit to hyakt/.emacs.d that referenced this issue Jun 16, 2023
hyakt added a commit to hyakt/.emacs.d that referenced this issue May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants