doomemacs / doomemacs/core

`doom/reload` breaks `smartparens` autodeletion

Open
#8,711 1 comment 0 reactions 0 assignees View on GitHub
core:lib re:smartparens
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### Describe your issue

When I run `doom/reload`, `smartparens` stops auto-deleting most pairs on Backspace. I have to restart Emacs to get auto-delete back. Interestingly, it will still auto-delete double quotes, but not parentheses, brackets, or braces.

`sp-autodelete-pair`, `sp-pairs`, and `sp-pair-list` remain unchanged. I tried running `doom/reload` through `debug` and `edebug` to see if anything from `smartparens` was being modified, but I couldn't find anything. I'm still an Emacs noob, though, and haven't used either debugger much before, so maybe I missed something.

I could also replicate the issue on an out-of-the-box install of Doom Emacs, so that rules out any issues with my config.

### Steps to reproduce

1. Open Doom Emacs.
2. Run `doom/reload`.
3. Visit/create a buffer where `smartparens-mode` is active.
4. Type `(`. `smartparens` will auto-insert `)`.
5. Type Backspace. The `)` still remains.

### System information

https://pastebin.com/raw/w8dVieYV

### Disclosures

- [ ] This issue was written with/by AI.

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.