From 1494f65f61f16451576bb4d933f976b61e28e9d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Codru=C8=9B=20Constantin=20Gu=C8=99oi?= Date: Sat, 10 Sep 2022 17:16:18 +0100 Subject: [PATCH] Fix emacs native compilation warning for bind-key MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To reproduce, have emacs built with native compilation and notice the compilation logs. You can then open the offending file and run `M-x emacs-lisp-native-compile-and-load` before and after the changes to see the warning is removed. ``` ■ Warning (comp): bind-key.el:150:2: Warning: docstring has wrong usage of unescaped single quotes (use \= or different quoting) ``` --- lisp/use-package/bind-key.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/use-package/bind-key.el b/lisp/use-package/bind-key.el index 1f775711ef3..17e161cd72e 100644 --- a/lisp/use-package/bind-key.el +++ b/lisp/use-package/bind-key.el @@ -158,9 +158,9 @@ COMMAND must be an interactive function or lambda form. KEYMAP, if present, should be a keymap variable or symbol. For example: - (bind-key \"M-h\" #'some-interactive-function my-mode-map) + (bind-key \"M-h\" #\\='some-interactive-function my-mode-map) - (bind-key \"M-h\" #'some-interactive-function \\='my-mode-map) + (bind-key \"M-h\" #\\='some-interactive-function \\='my-mode-map) If PREDICATE is non-nil, it is a form evaluated to determine when a key should be bound. It must return non-nil in such cases. -- 2.39.2