Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions eaf.el
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,14 @@ of `eaf--buffer-app-name' inside the EAF buffer."
(select-window buffer-window)))
(throw 'found-eaf t)))))

(defun eaf-get-buffer (buffer-id)
"Find the buffer given the BUFFER-ID."
(catch 'found-eaf
(eaf-for-each-eaf-buffer
(when (string= eaf--buffer-id buffer-id)
(throw 'found-eaf buffer))
nil)))

(defun eaf--show-message (format-string)
"A wrapper around `message' that prepend [EAF/app-name] before FORMAT-STRING."
(let ((fmt (if eaf--buffer-app-name
Expand Down