this post was submitted on 16 Jul 2023
6 points (100.0% liked)

Emacs

44 readers
1 users here now

Our infinitely powerful editor.

founded 4 years ago
MODERATORS
 

Dear fellow emacsers.

How can we make undo work on the scratch buffer? I'm sure it is a simple configuration issue, but I'm not getting the appropriate keyword to find the relevant documentation.

Thanks a lot in advance for your help and attention...
:) /\

top 3 comments
sorted by: hot top controversial new old
[–] ouigol 2 points 1 year ago (1 children)

Hmmm, I don’t exactly understand your problem. From what I recall you can undo in the scratch buffer. Are you using vanilla emacs?

[–] edumerco@lemmy.ml 2 points 1 year ago

Hi @ouigol@beehaw.org.

I'm using vanilla emacs with my own configuration. And replying to Sunoc made me remember that the scratch buffer starts as read-only and not in org-mode. So it seems it comes from there... I'll have to bissect it?

Thanks a lot... :)

[–] oantolin@discuss.online 1 points 1 year ago

By default undo does work in the scratch buffer so it is something in your configuration that is keeping this from working. As a quick way to check, try running emacs -q, which skips loading your configuration, and see if you have undo in the scratch buffer there; if so, it's definitely something you have in you configuration.

You can bisect your configuration to figure out how you are deactivating undo. You can do this manually or with the help of the bug-hunter package.