reddit / emacs

Eldoc is trying to save the "Examples" section into a file every time I close emacs

granitrocky · 2022-07-15 14:10
Basically the title. Took me a while to narrow down exactly what was happening. I'm on emacs 27 and this is happening using the `rustic` package with `flycheck` and `eglot`. If I disable eldoc before it ever holds docs, I'm not prompted to save. But If I look at something in eldoc, and even after I quit `eldoc-mode`, emacs wants to save only the examples section of eldoc. This is a bizarre error and I'm wondering if there's just a setting I have turned on? My next step is to dig into the eldoc code. EDIT: I've been annoyed by this for months, and I finally tracked it down to the " markdown-fontification-buffer:rust" buffer that gets created by eglot or lsp-mode. This led me to this fix for anyone else experiencing this: https://github.com/brotzeit/rustic/issues/253
granitrocky · 2022-07-16 13:26
Turns out it was my own config biting me lol. I was setting certain buffers to `save-without-query`, but that mode was being used in the temporary markdown buffers generated by `markdown-mode`. Oh well at least I learned how to use the debug features.