4 ms·
I have been using Emacs ~50 years, and I have always hoped all of the history would be visible as lisp-expressions which you could view and modify in interactiv
by timonoko 4y ago
I have been using Emacs ~50 years, and I have always hoped all of the history would be visible as lisp-expressions which you could view and modify in interactive mode.
It is somewhere there because undo knows it. Typical example is that you fumble something splendid/stupid with fat fingers and then cant figure out what you just did.
- timonoko 4y agoGoogled it and there is already (global-undo-tree-mode) (setq undo-tree-auto-save-history t) (setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo"))) I did not know that.
- kagevf 4y agoI think C-h l (lossage) shows the keys and function names.
- timonoko 4y agoYes it does. Why did not I know that? -- Because (view-lossage) is weird name for this.
- kagevf 4y agoAgree ... I don't know where the name comes from, but I've become used to it since I use C-h l frequently. I asked chat gpt about it, and what it said seemed to match what I found when I googled it: > In Emacs, “Lossage” refers to a section in the GNU Emacs Manual that describes how to recognize and deal with situations in which Emacs does not work as expected1. For example, it covers issues such as keyboard code mixups, garbled displays, running out of memory, and crashes and hangs1. > There is also a command called view-lossage that displays the last 300 input keystrokes2. You can use open-dribble-file to record all your input on a file2.