Skip to content

Commit b749cef

Browse files
committed
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) ```
1 parent 9407f5f commit b749cef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bind-key.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ COMMAND must be an interactive function or lambda form.
158158
KEYMAP, if present, should be a keymap variable or symbol.
159159
For example:
160160
161-
(bind-key \"M-h\" #'some-interactive-function my-mode-map)
161+
(bind-key \"M-h\" #\\='some-interactive-function my-mode-map)
162162
163-
(bind-key \"M-h\" #'some-interactive-function \\='my-mode-map)
163+
(bind-key \"M-h\" #\\='some-interactive-function \\='my-mode-map)
164164
165165
If PREDICATE is non-nil, it is a form evaluated to determine when
166166
a key should be bound. It must return non-nil in such cases.

0 commit comments

Comments
 (0)