]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix emacs native compilation warning
authorCodruț Constantin Gușoi <mail+git@codrut.pro>
Fri, 9 Sep 2022 07:03:18 +0000 (08:03 +0100)
committerCodruț Constantin Gușoi <mail+git@codrut.pro>
Fri, 9 Sep 2022 07:11:07 +0000 (08:11 +0100)
```
 ■  Warning (comp): use-package-core.el:907:2: Warning: docstring has
wrong usage of unescaped single quotes (use \= or different quoting)
 ■  Warning (comp): use-package-core.el:930:2: Warning: docstring has
wrong usage of unescaped single quotes (use \= or different quoting)
```

To reproduce, have emacs build with native compilation and notice the
compilation logs. You can then open this file and run `M-x
emacs-lisp-native-compile-and-load` before and after the changes to see the
warning is removed.

lisp/use-package/use-package-core.el

index ab35131e4f4380e802339d0b5a9650ad3853aaa7..946c029ff4acf998d62762701351656f14d6c4bb 100644 (file)
@@ -910,12 +910,12 @@ If RECURSED is non-nil, recurse into sublists."
   sym
   \\='sym
   (quote sym)
-  #'sym
+  #\\='sym
   (function sym)
   (lambda () ...)
   \\='(lambda () ...)
   (quote (lambda () ...))
-  #'(lambda () ...)
+  #\\='(lambda () ...)
   (function (lambda () ...))"
   (or (if binding
           (symbolp v)
@@ -930,7 +930,7 @@ If RECURSED is non-nil, recurse into sublists."
 (defun use-package-normalize-function (v)
   "Reduce functional constructions to one of two normal forms:
   sym
-  #'(lambda () ...)"
+  #\\='(lambda () ...)"
   (cond ((symbolp v) v)
         ((and (listp v)
               (memq (car v) '(quote function))