From: Stefan Kangas Date: Tue, 27 Oct 2020 00:29:43 +0000 (+0100) Subject: Use lexical-binding in tool-bar.el X-Git-Tag: emacs-28.0.90~5409 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=65f36a8471823d44eb8dcecebb44531ccdb1754f;p=emacs.git Use lexical-binding in tool-bar.el * lisp/tool-bar.el: Use lexical-binding. (tool-bar-add-item, tool-bar-add-item-from-menu): Quote function symbols as such. --- diff --git a/lisp/tool-bar.el b/lisp/tool-bar.el index 7df1e28e06f..84562164300 100644 --- a/lisp/tool-bar.el +++ b/lisp/tool-bar.el @@ -1,4 +1,4 @@ -;;; tool-bar.el --- setting up the tool bar +;;; tool-bar.el --- setting up the tool bar -*- lexical-binding: t -*- ;; Copyright (C) 2000-2020 Free Software Foundation, Inc. @@ -139,7 +139,7 @@ ICON.xbm, using `find-image'. Use this function only to make bindings in the global value of `tool-bar-map'. To define items in any other map, use `tool-bar-local-item'." - (apply 'tool-bar-local-item icon def key tool-bar-map props)) + (apply #'tool-bar-local-item icon def key tool-bar-map props)) (defun tool-bar--image-expression (icon) "Return an expression that evaluates to an image spec for ICON." @@ -191,7 +191,7 @@ MAP must contain appropriate binding for `[menu-bar]' which holds a keymap. Use this function only to make bindings in the global value of `tool-bar-map'. To define items in any other map, use `tool-bar-local-item-from-menu'." - (apply 'tool-bar-local-item-from-menu command icon + (apply #'tool-bar-local-item-from-menu command icon (default-value 'tool-bar-map) map props)) ;;;###autoload