branch: master commit f52eeb28eaed4690761ffa7982751d6b4589f7b9 Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@gnu.org>
Prefer `setq-local' in toolbar-x.el * toolbar-x.el (toolbarx-install-toolbar): Prefer `setq-local' over `set' and `make-local-variable' combination. --- toolbar-x.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toolbar-x.el b/toolbar-x.el index 72a3403f..b1e8ec30 100644 --- a/toolbar-x.el +++ b/toolbar-x.el @@ -1433,8 +1433,7 @@ line of buttons. The only property supported for this button is (if global-flag (setq-default toolbarx-internal-button-switches switches) - (set (make-local-variable 'toolbarx-internal-button-switches) - switches) + (setq-local toolbarx-internal-button-switches switches) (make-local-variable 'tool-bar-map))) (toolbarx-refresh global-flag))