Upon further testing, on restarting a clean emacs session and importing a set of URLs from a session list, I saw it was necessary to make another check. It turns out that emacs-w3m does try in several places to clean up unnecessary buffers, using function w3m-delete-buffer-if-empty. The problem with that is emacs-w3m sometimes starts off by cloning or copying a buffer, so in those cases the buffer isn't empty when the clean up is attempted.
This PR works, it does the job, but it would be better to find out where the buffer cloning is happening and how to determine the exact conditions to stop it from happening when not necessary.
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.