Prevent buffer name collision

Prevent buffer name collision by demanding unique buffer name.

When having opened WEB PAGE 1 in EAF browser BUFFER 1, opening
WEB PAGE 1 from another EAF buffer results in error.

Passing `t` as second argument to `rename-buffer` will suffix
duplicate buffer names with `<NUM>`.
master
Alois Janíček 6 years ago
parent 523685f897
commit f4d2abad3a
No known key found for this signature in database
GPG Key ID: 2EA1F5904801C5AA
  1. 2
      eaf.el

@ -1311,7 +1311,7 @@ of `eaf--buffer-app-name' inside the EAF buffer."
(setq mode-name (concat "EAF/" eaf--buffer-app-name))
(setq-local eaf--bookmark-title title)
(setq-local eaf--buffer-url url)
(rename-buffer (format eaf-buffer-title-format title))
(rename-buffer (format eaf-buffer-title-format title) t)
(throw 'find-buffer t))))))))
(dbus-register-signal

Loading…
Cancel
Save