From: Codruț Constantin Gușoi Date: Sat, 10 Sep 2022 16:16:18 +0000 (+0100) Subject: Fix emacs native compilation warning for bind-key X-Git-Tag: emacs-29.0.90~1306^2~15^2~18^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1494f65f61;p=emacs.git Fix emacs native compilation warning for bind-key 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) ``` --- 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.