aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2014-06-20 17:10:40 -0400
committerStefan Monnier2014-06-20 17:10:40 -0400
commit55d4eba2d0e650d811250c31f3801f6835bd088a (patch)
tree853399bcf33d1eaf8af363beae58bdd1aa7c01f3
parent81e5c6fc89e277237cf290927fe339b53ad47b80 (diff)
downloademacs-55d4eba2d0e650d811250c31f3801f6835bd088a.tar.gz
emacs-55d4eba2d0e650d811250c31f3801f6835bd088a.zip
* 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
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/emacs-lisp/smie.el11
2 files changed, 9 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fcbd0c39655..46e3b0f6321 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12014-06-20 Stefan Monnier <monnier@iro.umontreal.ca> 12014-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/smie.el (smie-config--guess): Fix typo.
4 (smie-config-guess): Use smie-config-local so the rules are obeyed
5 (bug#17818).
6
3 * mouse.el (mouse-drag-line): Don't re-add to unread-comment-events, 7 * mouse.el (mouse-drag-line): Don't re-add to unread-comment-events,
4 since it's already done inside the loop (bug#17819). 8 since it's already done inside the loop (bug#17819).
5 9
@@ -11,9 +15,6 @@
11 15
122014-06-20 Stefan Monnier <monnier@iro.umontreal.ca> 162014-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13 17
14 * mouse.el (mouse-drag-line): Remove left-over code made redundant by
15 mouse--down-1-maybe-follows-link (bug#17819).
16
17 * progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don't 18 * progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don't
18 align with the surrounding parent (bug#17721). 19 align with the surrounding parent (bug#17721).
19 20
diff --git a/lisp/emacs-lisp/smie.el b/lisp/emacs-lisp/smie.el
index 1a6011e712a..1819daa3df0 100644
--- a/lisp/emacs-lisp/smie.el
+++ b/lisp/emacs-lisp/smie.el
@@ -2138,7 +2138,7 @@ position corresponding to each rule."
2138 nil 2138 nil
2139 (push (cons (+ offset (nth 2 sig)) sig) rules) 2139 (push (cons (+ offset (nth 2 sig)) sig) rules)
2140 ;; Adjust the rest of the data. 2140 ;; Adjust the rest of the data.
2141 (pcase-dolist ((and cotrace `(,count ,toffset ,trace)) 2141 (pcase-dolist ((and cotrace `(,count ,toffset . ,trace))
2142 cotraces) 2142 cotraces)
2143 (setf (nth 1 cotrace) (- toffset offset)) 2143 (setf (nth 1 cotrace) (- toffset offset))
2144 (dolist (sig trace) 2144 (dolist (sig trace)
@@ -2167,15 +2167,14 @@ To save the result for future sessions, use `smie-config-save'."
2167 (cond 2167 (cond
2168 ((null config) (message "Nothing to change")) 2168 ((null config) (message "Nothing to change"))
2169 ((null smie-config--buffer-local) 2169 ((null smie-config--buffer-local)
2170 (message "Local rules set") 2170 (smie-config-local config)
2171 (setq smie-config--buffer-local config)) 2171 (message "Local rules set"))
2172 ((y-or-n-p "Replace existing local config? ") 2172 ((y-or-n-p "Replace existing local config? ")
2173 (message "Local rules replaced") 2173 (message "Local rules replaced")
2174 (setq smie-config--buffer-local config)) 2174 (smie-config-local config))
2175 ((y-or-n-p "Merge with existing local config? ") 2175 ((y-or-n-p "Merge with existing local config? ")
2176 (message "Local rules adjusted") 2176 (message "Local rules adjusted")
2177 (setq smie-config--buffer-local 2177 (smie-config-local (append config smie-config--buffer-local)))
2178 (append config smie-config--buffer-local)))
2179 (t 2178 (t
2180 (message "Rules guessed: %S" config))))) 2179 (message "Rules guessed: %S" config)))))
2181 2180