From bbddc90552de2345ba3aa8ec257303ea7e9a210d Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Wed, 1 Jun 2022 00:04:26 +0200 Subject: [PATCH] Fix show-root switch-to-buffer --- mattermost.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mattermost.el b/mattermost.el index 9ee4dee..7578da3 100644 --- a/mattermost.el +++ b/mattermost.el @@ -164,6 +164,7 @@ if the user is not present" "The keymap for mattermost-mode") (defun show-root () + "Populates the Mattermost Root buffer and changes to it" (interactive) (let ((rootb (get-buffer-create "*Mattermost Root*"))) (with-current-buffer rootb @@ -181,7 +182,7 @@ if the user is not present" (insert (format "> [%s] %s\n" channel-id (if (string= channel-display-name "") channel-name channel-display-name))))))))) - (set-buffer rootb))) + (switch-to-buffer rootb))) (define-derived-mode mattermost-root-mode fundamental-mode "Mattermost Root" "Mode to list the Mattermost teams and channels to allow the