Function: smie-set-prec2tab
smie-set-prec2tab is a byte-compiled function defined in smie.el.gz.
Signature
(smie-set-prec2tab TABLE X Y VAL &optional OVERRIDE)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/smie.el.gz
(defun smie-set-prec2tab (table x y val &optional override)
(cl-assert (and x y))
(let* ((key (cons x y))
(old (gethash key table)))
(if (and old (not (eq old val)))
(if (and override (gethash key override))
;; FIXME: The override is meant to resolve ambiguities,
;; but it also hides real conflicts. It would be great to
;; be able to distinguish the two cases so that overrides
;; don't hide real conflicts.
(puthash key (gethash key override) table)
(display-warning 'smie (format "Conflict: %s %s/%s %s" x old val y))
(cl-incf smie-warning-count))
(puthash key val table))))