From baa38cf8bae3d2eedc09df960fcb5049095e323b Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Thu, 21 Nov 2024 17:58:14 -0800 Subject: [PATCH] fix: Remove sideline-truncate-suffix to prevent warning --- sideline.el | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/sideline.el b/sideline.el index 4c5b84c..51e5aa8 100644 --- a/sideline.el +++ b/sideline.el @@ -197,21 +197,6 @@ (defvar-local sideline-render-this-command nil "If this is non-nil, re-render this command.") -;; -;; (@* "Obsolete" ) -;; - -(defcustom sideline-truncate-suffix "..." - "Truncation suffix." - :type 'string - :group 'sideline) - -(define-obsolete-variable-alias - 'sideline-truncate-suffix - 'truncate-string-ellipsis - "sideline 0.3.0" - "Use built-in variable instead.") - ;; ;; (@* "Externals" ) ;; @@ -721,12 +706,10 @@ If argument ON-LEFT is non-nil, it will align to the left instead of right." (sideline--with-buffer-window (or buffer (current-buffer)) (unless (funcall sideline-inhibit-display-function) (setq sideline--render-data - `( :eol ,(sideline--window-end) - :bol ,(window-start) - :hscroll ,(sideline--window-hscroll) - :win-width ,(sideline--window-width) - :suffix-width ,(and sideline-truncate-suffix - (sideline--str-len sideline-truncate-suffix)))) + `( :eol ,(sideline--window-end) + :bol ,(window-start) + :hscroll ,(sideline--window-hscroll) + :win-width ,(sideline--window-width))) (run-hooks 'sideline-pre-render-hook) (sideline--render-backends sideline-backends-left t) (sideline--render-backends sideline-backends-right nil)