From b2154b5f9bb5cca0db404c03dd04170308ec89ae Mon Sep 17 00:00:00 2001 From: Antonio Ruiz Date: Wed, 31 Aug 2022 14:37:31 -0400 Subject: [PATCH] fix(irc): do not emit an error when calling =irc When the *IRC* workspace is already populated by circe buffers, there is no reason to emit an error, just switch to the *IRC* workspace and do nothing. --- modules/app/irc/autoload/irc.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/app/irc/autoload/irc.el b/modules/app/irc/autoload/irc.el index 21ab37a66..d936b868e 100644 --- a/modules/app/irc/autoload/irc.el +++ b/modules/app/irc/autoload/irc.el @@ -13,8 +13,7 @@ (require 'circe) (delete-other-windows) (switch-to-buffer (doom-fallback-buffer)) - t) - (user-error "IRC buffer is already active and selected")))) + t)))) ;;;###autoload (defun =irc (&optional inhibit-workspace)