projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a7bce6
)
Alter the "Redundant pcase patter" warning message
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 12 Dec 2020 13:22:58 +0000
(14:22 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 12 Dec 2020 13:22:58 +0000
(14:22 +0100)
* lisp/emacs-lisp/pcase.el (pcase--expand): Make the "Redundant
pcase pattern" warning less vague (bug#31350).
lisp/emacs-lisp/pcase.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/pcase.el
b/lisp/emacs-lisp/pcase.el
index e603900b0958f078ed31c8d341c0e7c814c1619f..206f0dd1a9dede3f79d0150f51b193b95ada9adf 100644
(file)
--- a/
lisp/emacs-lisp/pcase.el
+++ b/
lisp/emacs-lisp/pcase.el
@@
-409,7
+409,8
@@
of the elements of LIST is performed as if by `pcase-let'.
(dolist (case cases)
(unless (or (memq case used-cases)
(memq (car case) pcase--dontwarn-upats))
- (message "Redundant pcase pattern: %S" (car case))))
+ (message "pcase pattern %S shadowed by previous pcase pattern"
+ (car case))))
(macroexp-let* defs main))))
(defun pcase--macroexpand (pat)