From f7650f89c96c6de095a3f444b28990362e0c5b13 Mon Sep 17 00:00:00 2001 From: Lucius Hu Date: Wed, 17 Mar 2021 23:18:17 -0400 Subject: [PATCH] refactor - Replaced `(set (make-local-variable 'foo) bar)` with `(setq-local foo bar)` --- core/libs/ido-vertical-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/libs/ido-vertical-mode.el b/core/libs/ido-vertical-mode.el index 58bc111a3..447a98f8d 100644 --- a/core/libs/ido-vertical-mode.el +++ b/core/libs/ido-vertical-mode.el @@ -158,8 +158,8 @@ so we can restore it when turning `ido-vertical-mode' off") " [Too big]" " [Confirm]" (concat "\n" indicator padding) ; left bracket around the sole remaining completion - "" ; right bracket around the sole remaining completion - )) + "")) ; right bracket around the sole remaining completion + (defun ido-vertical-or-horizontal-completions (name) (if (and ido-vertical-disable-if-short @@ -318,7 +318,7 @@ so we can restore it when turning `ido-vertical-mode' off") (defun ido-vertical-disable-line-truncation () "Prevent the newlines in the minibuffer from being truncated" - (set (make-local-variable 'truncate-lines) nil)) + (setq-local truncate-lines nil)) (defun ido-vertical-turn-on () (if (and (eq nil ido-vertical-old-decorations)