Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
duckwork opened this issue Aug 29, 2021 · 0 comments

Comments

@duckwork
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant