]> code.delx.au - gnu-emacs/blobdiff - lisp/emacs-lisp/smie.el
When running under emacs -q, always refuse to save the customisations, even if the...
[gnu-emacs] / lisp / emacs-lisp / smie.el
index 0206abb9f53a596e879d6bea2ce1273a58844fba..cad7c8419b2ef633ef7fba40b153d092e969f7cb 100644 (file)
@@ -238,9 +238,9 @@ one of those elements share the same precedence level and associativity."
                 (pushnew (car shr) last-ops)
               (pushnew (car shr) last-nts)
               (when (consp (cdr shr))
-                (when (member (cadr rhs) nts)
+                (when (member (cadr shr) nts)
                   (error "Adjacent non-terminals: %s %s"
-                         (cadr rhs) (car rhs)))
+                         (cadr shr) (car shr)))
                 (pushnew (cadr shr) last-ops)))))
         (push (cons nt first-ops) first-ops-table)
         (push (cons nt last-ops) last-ops-table)