From: Basil L. Contovounesios Date: Wed, 9 Sep 2020 23:20:24 +0000 (+0100) Subject: ; Silence byte-compilation warning in last change X-Git-Tag: emacs-28.0.90~6157 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d08568e6e923051ca2376c2e0e6e7a22b66a2f33;p=emacs.git ; Silence byte-compilation warning in last change * lisp/tab-line.el (tab-line-switch-cycling): Move definition before first use. --- 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.