From 4c34d6fc191a2f2f4204f7f64e0652b931188323 Mon Sep 17 00:00:00 2001 From: Thomas Hisch Date: Mon, 26 Apr 2021 20:46:08 +0200 Subject: [PATCH] Fix byte-compiler issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following warning: smart-mode-line.el:613:1: Warning: Alias for ‘sml/name-width’ should be declared before its referent --- smart-mode-line.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smart-mode-line.el b/smart-mode-line.el index c1644a6..996cdad 100644 --- a/smart-mode-line.el +++ b/smart-mode-line.el @@ -596,6 +596,8 @@ FACE is applied to it (and checking stops there)." :type '(repeat (list string face)) :group 'smart-mode-line-path-and-prefix) +(defvaralias 'sml/path-width 'sml/name-width) + (defcustom sml/name-width 44 "Minimum and maximum size of the file name in the mode-line. @@ -610,8 +612,6 @@ separately, by setting this variable to a cons cell of integers: (integer :tag "Maximum width"))) :group 'smart-mode-line-path-and-prefix) -(defvaralias 'sml/path-width 'sml/name-width) - (defcustom sml/shorten-directory t "Should directory name be shortened to fit width?