doomemacs / doomemacs/core

Local leader eval-buffer in elisp doesn't work without waiting for which-key popup

Open
#5,427 1 comment 0 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

In an elisp buffer, `C-c l e b` should run `eval-buffer`

### What actually happened?

If typed quickly, minibuffer shows `C-c l e b-` with the trailing `-` implying that emacs is waiting for another key.

Only executes as expected if `C-c l e` is typed and then you wait for a moment, until the which-key list of keybinds is shown, *then* `b` is typed.

### Describe your attempts to resolve the issue

Updated doom but that didn't help.

Checked for any discrepancies in `modules/lang/emacs-lisp/config.el` but it looks like a typical use of `map!` here. For some reason `C-c l e e` for a single sexp works as expected and that's defined in the same spot, but it does get re-mapped in my setup from `eval-last-sexp` to `eros-eval-last-sexp`.

### Steps to reproduce

1. Open any elisp file
2. Key in `C-c l e b`, without long pauses so which-key doesn't kick in

### System Information

https://pastebin.com/cs1p54hN

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.