Skip to content

Commit

Permalink
Stop warning about prehistoric hidden-modes Fix Malabarba#213 Fix Mal…
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Malabarba committed Jan 29, 2018
1 parent 1facbe9 commit 5aca519
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions smart-mode-line.el
Original file line number Diff line number Diff line change
Expand Up @@ -1526,9 +1526,11 @@ duplicated buffer names) from being displayed."
0))

;;; Patch, in case the user is using the wrong variable.
(when (boundp 'sml/hidden-modes)
(message "[smart-mode-line] Warning: `sml/hidden-modes' is obsolete, use `rm-blacklist' instead")
(setq rm-blacklist sml/hidden-modes))
(defvar sml/-hidden-modes-bound-by-user
(bound-and-true-p sml/hidden-modes))
(when sml/-hidden-modes-bound-by-user
(setq sml/-hidden-modes-bound-by-user nil)
(setq rm-blacklist (bound-and-true-p sml/hidden-modes)))
(define-obsolete-variable-alias 'sml/hidden-modes 'rm-blacklist)

(defun sml/generate-minor-modes ()
Expand Down

0 comments on commit 5aca519

Please sign in to comment.