Using Ubuntu 22.04. I accidentally closed a scratch buffer that I had notes in. Can I recover those contents?
Asked
Active
Viewed 50 times
0
-
2Not sure what you're asking. (1) About `*scratch*`? or *buffer*? (2) scratch message? or *buffer* content? If both the latter one, why did you mention `*scratch*` here? – shynur Jun 27 '23 at 21:36
-
1Was the buffer a scratch buffer (as in: you scribbled in it but neglected to save it),or the `*scratch*` buffer (as in: the buffer that Emacs normally provides automatically, so you can evaluate Lisp expressions in it)? Was the buffer you closed associated with a file? If so, there may be some hope. If not ... – NickD Jun 27 '23 at 23:38
-
If not, did you `lossage-size` a large number? If so, there may be some hope. If not ... – shynur Jun 27 '23 at 23:58
-
@shynur I'm not sure what you're asking. I'm not familiar with your vocabulary, I guess. When I open a new Emacs GUI instance from the OS menu, it opens as a new window that says *scratch* at the bottom. That's what I lost. – JonahHuron Jun 28 '23 at 02:50
-
2Those all are legit questions. If that's a `*scratch*` buffer created by default by Emacs, [Ask for saving contents if scratch buffer is modified before exit](https://emacs.stackexchange.com/q/36563/28451) may help you next time. See also [Autosave *scratch* to a directory](https://emacs.stackexchange.com/q/7729/28451) thread. – Y. E. Jun 28 '23 at 07:19