branch: externals/rcirc-mentions
commit d7883331bb8ecff7e0585a1b56f87fec3be9c8a1
Author: Tassilo Horn <t...@gnu.org>
Commit: Tassilo Horn <t...@gnu.org>

    Echo "No mentions so far..." if no mentions buffer exist
---
 rcirc-mentions.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/rcirc-mentions.el b/rcirc-mentions.el
index 46b0953bdc..1c12e5d87b 100644
--- a/rcirc-mentions.el
+++ b/rcirc-mentions.el
@@ -231,10 +231,11 @@ Assumes that the channel buffer containing the message is 
current."
   "Switch to the mentions buffer if it exists.
 See `rcirc-mentions-log-mode' and `rcirc-mentions-buffer-name'."
   (interactive)
-  (when-let* ((buf (get-buffer rcirc-mentions-buffer-name)))
-    (if-let* ((win (get-buffer-window buf)))
-        (select-window win)
-      (switch-to-buffer buf))))
+  (if-let* ((buf (get-buffer rcirc-mentions-buffer-name)))
+      (if-let* ((win (get-buffer-window buf)))
+          (select-window win)
+        (switch-to-buffer buf))
+    (message "No mentions so far...")))
 
 (provide 'rcirc-mentions)
 ;;; rcirc-mentions.el ends here

Reply via email to