[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 65f36a8: Use lexical-binding in tool-bar.el
From: |
Stefan Kangas |
Subject: |
master 65f36a8: Use lexical-binding in tool-bar.el |
Date: |
Mon, 26 Oct 2020 20:40:18 -0400 (EDT) |
branch: master
commit 65f36a8471823d44eb8dcecebb44531ccdb1754f
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
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.
---
lisp/tool-bar.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/tool-bar.el b/lisp/tool-bar.el
index 7df1e28..8456216 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 65f36a8: Use lexical-binding in tool-bar.el,
Stefan Kangas <=