make-variable-buffer-local -> make-local-variable

It is more correct to use the latter.
This commit is contained in:
Henrik Lissner 2018-06-19 13:20:53 +02:00
parent fa36014559
commit 746d90c330
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ MODES should be one major-mode symbol or a list of them."
(lambda () (when (or (eq major-mode mode)
(and (boundp mode) (symbol-value mode)))
(require 'company)
(make-variable-buffer-local 'company-backends)
(make-local-variable 'company-backends)
(dolist (backend backends)
(cl-pushnew backend company-backends :test #'equal)))))
(add-hook hook fn))

View file

@ -206,7 +206,7 @@
;; major-mode as `latex-mode', but uses LaTeX-mode-hook for its mode, which is
;; not something `set-company-backend!' anticipates (and shouldn't have to!)
(add-hook! LaTeX-mode
(make-variable-buffer-local 'company-backends)
(make-buffer-local 'company-backends)
(company-auctex-init)))