diff options
author | Codruț Constantin Gușoi <mail+git@codrut.pro> | 2022-09-10 17:16:18 +0100 |
---|---|---|
committer | Codruț Constantin Gușoi <mail+git@codrut.pro> | 2022-09-10 17:16:18 +0100 |
commit | 1494f65f61f16451576bb4d933f976b61e28e9d6 (patch) | |
tree | dca7637376e047ce0cee41a7c81895378547e060 /lisp/use-package/bind-key.el | |
parent | c12deb31fe3e9e9ad3d28c04c136a03afec4c5ca (diff) | |
download | emacs-1494f65f61f16451576bb4d933f976b61e28e9d6.tar.gz emacs-1494f65f61f16451576bb4d933f976b61e28e9d6.tar.bz2 emacs-1494f65f61f16451576bb4d933f976b61e28e9d6.zip |
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)
```
Diffstat (limited to 'lisp/use-package/bind-key.el')
-rw-r--r-- | lisp/use-package/bind-key.el | 4 |
1 files 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. |