doomemacs / doomemacs/core

Keybindings for `evil-open-fold-rec` broken

Open
#7,120 4 comments 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

### I confirm that...

- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.

- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.

- [X] The issue can be reproduced on the **latest** available commit of Doom.

- [X] The issue can be reproduced on a stable release of Emacs, such as 27 or 28. *(Doom does not support development builds like 29+ or any version ending in .50 or .9x)*

### Expected behavior

When I use the shortcut `z O` I expect folds to be opened recursively.

### Current behavior

Only the topmost fold gets opened, as if I had pressed `z o`. `M-x evil-open-fold-rec` works as expected. Setting a custom shortcut for `evil-open-fold-rec` does **not** work as expected and only opens the topmost fold. The Messages buffer contains the following text:

```
You can run the command ‘evil-open-fold-rec’ with z o
You can run the command ‘evil-open-fold’ with z o
```

### Steps to reproduce

1. Create a file with nested folds, e.g. a function with a loop in C++.
2. Close all folds with `z m`.
3. Press `z` and wait. Notice how `z O` is declared as `evil-open-fold-rec`
4. Press `O`. Only the topmost fold should be opened.

### System Information

https://pastebin.com/QznxTya0

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.