Skip to content

epithet-rename-buffer causes eww to create multiple buffers of the same site #2

Description

@duckwork

The problem:

If I open the same link with eww twice, it opens two buffers to the same
site. I.e., *eww*<https://example.com>, *eww*<https://example.com><2>, and
so on.

Thoughts:

I'm not totally sure how to fix this; the eww function itself is what causes
this problem:

(pop-to-buffer-same-window
   (cond
    ((eq arg 4)
     (generate-new-buffer "*eww*"))
    ((eq major-mode 'eww-mode)
     (current-buffer))
    (t
     (get-buffer-create "*eww*"))))

I'm creating this issue to bring it to your attention, I guess? As far as I
can think, the way to fix it would be to redefine eww to look for other
buffers with the same URL, or delete duplicates after they're made and switch
to the “real” buffer. Of course, neither of those are … great ideas. I'm open
to others!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions