Confused with keybinding procedure

What happened?

I had a keybinding which has been working for months. Recently it started to complain. I don’t know what I did wrong.

What did you expect to happen?

Doomemacs load without issue, with consult-recent-file working fine.

Steps to reproduce

  1. Have the following elisp form loaded at startup.
(map! :after consult
      :localleader
      :n "c/" #'consult-line
      :n "c?" #'consult-line-multi
      :n "co" #'consult-multi-occur
      :n "cx" #'consult-complex-command
      :n "ch" #'consult-history)
  1. After doomemacs launch, run M-x consult-recent-file and obtain the following error
Debugger entered--Lisp error: (error "Key sequence SPC m c / starts with non-prefix key ...")
  define-key((keymap (tab menu-item "" nil :filter (lambda (&optional _) (let (it) (cond ((setq it ...) #'yas-insert-snippet) ((setq it ...) #'+fold/toggle) ((setq it ...) it) ((setq it ...) #'evil-jump-item) (t nil))))) (C-i . evil-jump-forward) (remap keymap (avy-goto-word-or-subword-1 . evil-avy-goto-word-or-subword-1) (avy-goto-word-1-below . evil-avy-goto-word-1-below) (avy-goto-word-1-above . evil-avy-goto-word-1-above) (avy-goto-word-1 . evil-avy-goto-word-1) (avy-goto-word-0 . evil-avy-goto-word-0) (avy-goto-symbol-1-below . evil-avy-goto-symbol-1-below) (avy-goto-symbol-1-above . evil-avy-goto-symbol-1-above) (avy-goto-symbol-1 . evil-avy-goto-symbol-1) (avy-goto-subword-1 . evil-avy-goto-subword-1) (avy-goto-subword-0 . evil-avy-goto-subword-0) (avy-goto-line-below . evil-avy-goto-line-below) (avy-goto-line-above . evil-avy-goto-line-above) (avy-goto-line . evil-avy-goto-line) (avy-goto-char-timer . evil-avy-goto-char-timer) (avy-goto-char-in-line . evil-avy-goto-char-in-line) (avy-goto-char-2-below . evil-avy-goto-char-2-below) (avy-goto-char-2-above . evil-avy-goto-char-2-above) (avy-goto-char-2 . evil-avy-goto-char-2) (avy-goto-char . evil-avy-goto-char) (ace-jump-word-mode . evil-ace-jump-word-mode) (ace-jump-line-mode . evil-ace-jump-line-mode) (ace-jump-char-mode . evil-ace-jump-char-mode)) (33 . evil-shell-command) (58 . evil-ex) (down-mouse-1 . evil-mouse-drag-region) (4 . evil-scroll-down) (21 . evil-scroll-up) (26 . evil-emacs-state) (down . evil-next-line) (up . evil-previous-line) (right . evil-forward-char) (left . evil-backward-char) (30 . evil-buffer) (22 . evil-visual-block) (86 . evil-visual-line) (118 . evil-visual-char) (122 keymap (69 . vimish-fold-delete-all) (100 . vimish-fold-delete) (70 . evil-vimish-fold/create-line) (102 . evil-vimish-fold/create) (107 . +fold/previous) (106 . +fold/next) (72 . evil-scroll-left) (76 . evil-scroll-right) (left . "zh") (104 . evil-scroll-column-left) (right . "zl") (108 . evil-scroll-column-right) (45 . "zb^") (98 . evil-scroll-line-to-bottom) (46 . "zz^") (122 . evil-scroll-line-to-center) (13 . [122 return]) (return . "zt^") (116 . evil-scroll-line-to-top) (43 . evil-scroll-bottom-line-to-top) (94 . evil-scroll-top-line-to-bottom)) (92 . evil-execute-in-emacs-state) (13 . evil-ret) (25 . evil-scroll-line-up) (15 . evil-jump-backward) (6 . evil-scroll-page-down) (5 . evil-scroll-line-down) (2 . evil-scroll-page-up) (29 . evil-jump-to-tag) (67108918 . evil-switch-to-windows-last-buffer) (23 . evil-window-map) (45 . evil-previous-line-first-non-blank) (95 . evil-next-line-1-first-non-blank) (43 . evil-next-line-first-non-blank) (94 . evil-first-non-blank) (124 . evil-goto-column) (63 . evil-ex-search-backward) (59 . evil-repeat-find-char) (47 . evil-ex-search-forward) (44 . evil-repeat-find-char-reverse) (42 . evil-ex-search-word-forward) (91 keymap (77 . +evil/previous-end-of-method) (109 . +evil/previous-beginning-of-method) (104 . outline-previous-visible-heading) (101 . previous-error) (99 . +evil/previous-comment) (97 . evil-backward-arg) (35 . +evil/previous-preproc-directive) (116 . hl-todo-previous) (121 . +evil:c-string-decode) (117 . +evil:url-decode) (115 . +spell/previous-error) (96 . evil-previous-mark) (39 . evil-previous-mark-line) (123 . evil-previous-open-brace) (40 . evil-previous-open-paren) (93 . evil-backward-section-end) (91 . evil-backward-section-begin)) (93 keymap (77 . +evil/next-end-of-method) (109 . +evil/next-beginning-of-method) (104 . outline-next-visible-heading) (101 . next-error) (99 . +evil/next-comment) (97 . evil-forward-arg) (35 . +evil/next-preproc-directive) (116 . hl-todo-next) (121 . +evil:c-string-encode) (117 . +evil:url-encode) (115 . +spell/next-error) (96 . evil-next-mark) (39 . evil-next-mark-line) (125 . evil-next-close-brace) (41 . evil-next-close-paren) (91 . evil-forward-section-end) (93 . evil-forward-section-begin)) (41 . evil-forward-sentence-begin) (40 . evil-backward-sentence-begin) (39 . evil-goto-mark-line) (96 . evil-goto-mark) (37 . evil-jump-item) (home . evil-beginning-of-line) (end . evil-end-of-line) (36 . evil-end-of-line) (35 . evil-ex-search-word-backward) ...) " mc/" consult-line)
  evil-define-key*(motion global " mc/" consult-line)
  general--define-key-dispatch(motion global (" mc/" consult-line (:def consult-line) " mc?" consult-line-multi (:def consult-line-multi) " mco" consult-multi-occur (:def consult-multi-occur) " mcx" consult-complex-command (:def consult-complex-command) " mch" consult-history (:def consult-history)) (:wk-match-keys t :wk-match-binding t :wk-full-keys t :keymaps (global) :states (normal visual motion emacs insert) :states (normal visual motion emacs insert) :major-modes t :prefix "SPC m" :non-normal-prefix "M-SPC m" :states normal))
  general--define-key(motion global (" mc/" consult-line " mc?" consult-line-multi " mco" consult-multi-occur " mcx" consult-complex-command " mch" consult-history) ([134217760 109 99 47] consult-line [134217760 109 99 63] consult-line-multi [134217760 109 99 111] consult-multi-occur [134217760 109 99 120] consult-complex-command [134217760 109 99 104] consult-history) nil (:wk-match-keys t :wk-match-binding t :wk-full-keys t :keymaps (global) :states (normal visual motion emacs insert) :states (normal visual motion emacs insert) :major-modes t :prefix "SPC m" :non-normal-prefix "M-SPC m" :states normal))
  eval((general--define-key 'motion 'global '(" mc/" consult-line " mc?" consult-line-multi " mco" consult-multi-occur " mcx" consult-complex-command " mch" consult-history) '([134217760 109 99 47] consult-line [134217760 109 99 63] consult-line-multi [134217760 109 99 111] consult-multi-occur [134217760 109 99 120] consult-complex-command [134217760 109 99 104] consult-history) 'nil '(:wk-match-keys t :wk-match-binding t :wk-full-keys t :keymaps (global) :states (normal visual motion emacs insert) :states (normal visual motion emacs insert) :major-modes t :prefix "SPC m" :non-normal-prefix "M-SPC m" :states normal)))
  general--delay((or (boundp 'global) (and (memq 'global '(local global)) (if 'motion (and (boundp 'evil-state-properties) (assq 'motion evil-state-properties)) t))) (general--define-key 'motion 'global '(" mc/" consult-line " mc?" consult-line-multi " mco" consult-multi-occur " mcx" consult-complex-command " mch" consult-history) '([134217760 109 99 47] consult-line [134217760 109 99 63] consult-line-multi [134217760 109 99 111] consult-multi-occur [134217760 109 99 120] consult-complex-command [134217760 109 99 104] consult-history) 'nil '(:wk-match-keys t :wk-match-binding t :wk-full-keys t :keymaps (global) :states (normal visual motion emacs insert) :states (normal visual motion emacs insert) :major-modes t :prefix "SPC m" :non-normal-prefix "M-SPC m" :states normal)) after-load-functions t nil "general-define-key-in-global295")
  general-define-key(:states (normal visual motion emacs insert) :major-modes t :prefix "SPC m" :non-normal-prefix "M-SPC m" :states normal "c/" consult-line "c?" consult-line-multi "co" consult-multi-occur "cx" consult-complex-command "ch" consult-history)
  (lambda nil (general-define-key :states '(normal visual motion emacs insert) :major-modes t :prefix doom-localleader-key :non-normal-prefix doom-localleader-alt-key :states 'normal "c/" #'consult-line "c?" #'consult-line-multi "co" #'consult-multi-occur "cx" #'consult-complex-command "ch" #'consult-history))()
  eval-after-load-helper("/Users/jin/.emacs.d/.local/straight/build-28.2/con...")
  run-hook-with-args(eval-after-load-helper "/Users/jin/.emacs.d/.local/straight/build-28.2/con...")
  do-after-load-evaluation("/Users/jin/.emacs.d/.local/straight/build-28.2/con...")
  autoload-do-load((autoload "consult" ("/Users/jin/.emacs.d/.local/etc/@/init.28.elc" . 355627) t nil) consult-recent-file)
  command-execute(consult-recent-file)

System information


Loading data dump...

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.