Commit 55d4eba2 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/emacs-lisp/smie.el (smie-config--guess): Fix typo.

(smie-config-guess): Use smie-config-local so the rules are obeyed.

Fixes: debbugs:17818
parent 81e5c6fc
2014-06-20 Stefan Monnier <>
* emacs-lisp/smie.el (smie-config--guess): Fix typo.
(smie-config-guess): Use smie-config-local so the rules are obeyed
* mouse.el (mouse-drag-line): Don't re-add to unread-comment-events,
since it's already done inside the loop (bug#17819).
......@@ -11,9 +15,6 @@
2014-06-20 Stefan Monnier <>
* mouse.el (mouse-drag-line): Remove left-over code made redundant by
mouse--down-1-maybe-follows-link (bug#17819).
* progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don't
align with the surrounding parent (bug#17721).
......@@ -2138,7 +2138,7 @@ position corresponding to each rule."
(push (cons (+ offset (nth 2 sig)) sig) rules)
;; Adjust the rest of the data.
(pcase-dolist ((and cotrace `(,count ,toffset ,trace))
(pcase-dolist ((and cotrace `(,count ,toffset . ,trace))
(setf (nth 1 cotrace) (- toffset offset))
(dolist (sig trace)
......@@ -2167,15 +2167,14 @@ To save the result for future sessions, use `smie-config-save'."
((null config) (message "Nothing to change"))
((null smie-config--buffer-local)
(message "Local rules set")
(setq smie-config--buffer-local config))
(smie-config-local config)
(message "Local rules set"))
((y-or-n-p "Replace existing local config? ")
(message "Local rules replaced")
(setq smie-config--buffer-local config))
(smie-config-local config))
((y-or-n-p "Merge with existing local config? ")
(message "Local rules adjusted")
(setq smie-config--buffer-local
(append config smie-config--buffer-local)))
(smie-config-local (append config smie-config--buffer-local)))
(message "Rules guessed: %S" config)))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment