From 3feedce08d426e6f6855398f4acc675aa71d2cea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Codru=C8=9B=20Constantin=20Gu=C8=99oi?= Date: Fri, 9 Sep 2022 08:03:18 +0100 Subject: [PATCH] Fix emacs native compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ``` ■ 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index ab35131e4f4..946c029ff4a 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -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)) -- 2.39.2