From d08568e6e923051ca2376c2e0e6e7a22b66a2f33 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Thu, 10 Sep 2020 00:20:24 +0100 Subject: [PATCH] ; Silence byte-compilation warning in last change * lisp/tab-line.el (tab-line-switch-cycling): Move definition before first use. --- lisp/tab-line.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lisp/tab-line.el b/lisp/tab-line.el index a6387f8f9b8..108f9f7d99c 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el @@ -642,6 +642,15 @@ using the `previous-buffer' command." (with-selected-window window (switch-to-buffer buffer)))))) +(defcustom tab-line-switch-cycling nil + "Enable cycling tab switch. +If non-nil, `tab-line-switch-to-prev-tab' in the first tab +switches to the last tab and `tab-line-switch-to-next-tab' in the +last tab switches to the first tab." + :type 'boolean + :group 'tab-line + :version "28.1") + (defun tab-line-switch-to-prev-tab (&optional mouse-event) "Switch to the previous tab. Its effect is the same as using the `previous-buffer' command @@ -690,15 +699,6 @@ Its effect is the same as using the `next-buffer' command (when (bufferp buffer) (switch-to-buffer buffer))))))) -(defcustom tab-line-switch-cycling nil - "Enable cycling tab switch. -If non-nil, `tab-line-switch-to-prev-tab' in the first tab -switches to the last tab and `tab-line-switch-to-next-tab' in the -last tab switches to the first tab." - :type 'boolean - :group 'tab-line - :version "28.1") - (defcustom tab-line-close-tab-function 'bury-buffer "Defines what to do on closing the tab. -- 2.39.5