mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-31 20:02:42 +00:00
Fix regression in wisent-total-conflicts
* lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): There may not be a current source file. In that case, don't try to keep track of the number of expected conflicts (bug#39911).
This commit is contained in:
parent
dcc943be0a
commit
3a671ad7ed
@ -2235,13 +2235,18 @@ there are any reduce/reduce conflicts."
|
||||
(defun wisent-total-conflicts ()
|
||||
"Report the total number of conflicts."
|
||||
(let* ((src (wisent-source))
|
||||
(symbol (intern (format "wisent-%s--expected-conflicts"
|
||||
(replace-regexp-in-string "\\.el$" "" src))
|
||||
obarray)))
|
||||
(symbol
|
||||
;; Source files may specify how many expected conflicts
|
||||
;; there are. If the number is the expected number, don't
|
||||
;; output warnings.
|
||||
(and src
|
||||
(intern (format "wisent-%s--expected-conflicts"
|
||||
(replace-regexp-in-string "\\.el$" "" src))))))
|
||||
(when (or (not (zerop rrc-total))
|
||||
(and (not (zerop src-total))
|
||||
(not (= src-total (or wisent-expected-conflicts 0)))
|
||||
(or (not (boundp symbol))
|
||||
(or (null symbol)
|
||||
(not (boundp symbol))
|
||||
(not (equal (symbol-value symbol) src-total)))))
|
||||
(let* ((src (if src (concat " in " src) ""))
|
||||
(msg (format "Grammar%s contains" src)))
|
||||
|
Loading…
Reference in New Issue
Block a user