diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2017-12-16 21:35:00 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2017-12-16 21:35:00 +0100 |
| commit | 8b1079114a3a23ae57e90d33fd09ada76f8fe4a5 (patch) | |
| tree | eb4ddbda570a02d67898b8ab31d7c373f25f6503 | |
| parent | 6c53f349acf7a0dc18b6469442e250d2e133b229 (diff) | |
make: Suppress defun property warnings on older Emacsen
Do not show many lines like:
Warning: Unknown defun property `pure' in -last-item
Warning: Unknown defun property `side-effect-free' in -last-item
I know that those defun properties did not exist before Emacs 26.1,
and would prefer to see the other warning instead.
| -rw-r--r-- | lisp/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/Makefile b/lisp/Makefile index a78861e..b9a87fd 100644 --- a/lisp/Makefile +++ b/lisp/Makefile @@ -66,7 +66,9 @@ versionlib: $(PKG)-version.el (fset 'message\ (lambda (f &rest a)\ (unless (or (equal f \"Wrote %s\")\ - (equal f \"pcase-memoize: equal first branch, yet different\"))\ + (equal f \"pcase-memoize: equal first branch, yet different\")\ + (and (equal f \"Warning: Unknown defun property \`%S' in %S\")\ + (memq (car a) '(pure side-effect-free interactive-only))))\ (apply 'message* f a)))))" \ -f batch-byte-compile $< |
