From 27a3041f4011b497f860f0a7beb4b1e60d362812 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 21 Feb 2017 00:44:35 -0500 Subject: [PATCH] core/autoload/buffers: cycle buffers silently --- core/autoload/buffers.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/autoload/buffers.el b/core/autoload/buffers.el index 7de332535..286960ee2 100644 --- a/core/autoload/buffers.el +++ b/core/autoload/buffers.el @@ -129,8 +129,7 @@ See `doom-real-buffer-p' for what 'real' means." (catch 'goto (if (or (not buffers) (= (length buffers) 1)) - (progn (message "No other buffers in workspace") - (throw 'goto t)) + (throw 'goto t) (funcall move-func) (while (not (memq (current-buffer) buffers)) (if (or (eq (current-buffer) start-buffer) @@ -140,8 +139,7 @@ See `doom-real-buffer-p' for what 'real' means." (cl-incf i)) (current-buffer)))) (when (eq destbuf t) - (setq destbuf (doom-fallback-buffer)) - (message "Nowhere to go")) + (setq destbuf (doom-fallback-buffer))) (prog1 (switch-to-buffer destbuf) (when (eq destbuf (doom-fallback-buffer))