Re: EWW with Duck-Duck-Go
[email protected] Mon, 25 May 2026 10:58:10 -0400
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
gfp <[email protected]> writes: >>> >> >> There is some interaction between ‘desktop’ and ‘eww’ where >> ‘desktop’ will not save an ‘eww’-related buffer. This is >> likely an error in ‘desktop’ that needs to be identified >> (that is, find the steps for reproducing the error starting >> from ‘emacs -Q’, and then report it with M-x report-emacs-bug). >> >> Try deleting your eww buffer(s) and starting your web search >> again, or try turning off ‘desktop-save-mode’ temporarily. > > > Thanks for your explanation. > > Today after starting emacs this came up: > It is AFAIU exactly what you said: > > Debugger entered--Lisp error: (wrong-type-argument integerp nil) > eww-desktop-misc-data("/home/gfp/.config/emacs/") > desktop-buffer-info(#<buffer *eww*>) > mapcar(desktop-buffer-info (#<buffer *Group*> #<buffer > ... > > So what do I have to do? > 1. Locate your desktop file: M-x locate RET Locate: .emacs.desktop RET 2. Rename your .emacs.desktop file to some other file name. For example, using ‘dired’ (C-x d) C-x d [the location of your .emacs.desktop file] In the Dired buffer that results, type ‘R’ (bound to ‘dired-do-rename’, by default), and then provide a new file name to .emacs.desktop. 3. Restart Emacs. It will not find a .emacs.desktop file, so you will be starting from scratch. First step to recover your last desktop is to read your saved .emacs.desktop file into a buffer using C-x C-f. Desktop files are a set of Emacs Lisp expressions that are evaluated to recreate your desktop session. 4. Step forward through this file using the command ‘forward-sexp’ (bound to C-M-f, by default) and evaluate each expression when point is at the end of the expression (C-x C-e). At least one of these expressions will attempt to recreate the *eww* buffer. You should *NOT* evaluate that expression since it will cause the error that you saw above. 5. Once you have evaluated all of the other expressions, you should be able to save the new desktop file: M-x desktop-save 6. If you saved it successfully, you should be able to exit Emacs and restart it with the new desktop file without any errors. -- The lyf so short, the craft so long to lerne. - Geoffrey Chaucer, The Parliament of Birds.