aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-05-13 12:04:37 -0400
committerStefan Monnier2012-05-13 12:04:37 -0400
commit06bc5e6ea6d36a1166c95b81c29bc3e748d8f652 (patch)
tree570af101e5fa6d4aa0cba8e4a81072a28b1062f6
parent0ae03b6aae534c1a47f7246e791138b41203b036 (diff)
downloademacs-06bc5e6ea6d36a1166c95b81c29bc3e748d8f652.tar.gz
emacs-06bc5e6ea6d36a1166c95b81c29bc3e748d8f652.zip
*** empty log message ***
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/smie.el6
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 557e8eb2e48..03b9a3ba15b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-05-13 Johan Bockgård <bojohan@gnu.org>
2
3 * emacs-lisp/smie.el (smie-next-sexp): Use accessor `op-forw' rather
4 than hard-coding `car', to fix misbehavior when moving forward.
5
12012-05-13 Chong Yidong <cyd@gnu.org> 62012-05-13 Chong Yidong <cyd@gnu.org>
2 7
3 * emacs-lisp/tabulated-list.el (tabulated-list-format) 8 * emacs-lisp/tabulated-list.el (tabulated-list-format)
diff --git a/lisp/emacs-lisp/smie.el b/lisp/emacs-lisp/smie.el
index cafa1942a09..ae3e060034f 100644
--- a/lisp/emacs-lisp/smie.el
+++ b/lisp/emacs-lisp/smie.el
@@ -728,7 +728,8 @@ Possible return values:
728 (if (and halfsexp (numberp (funcall op-forw toklevels))) 728 (if (and halfsexp (numberp (funcall op-forw toklevels)))
729 (push toklevels levels) 729 (push toklevels levels)
730 (throw 'return 730 (throw 'return
731 (prog1 (list (or (car toklevels) t) (point) token) 731 (prog1 (list (or (funcall op-forw toklevels) t)
732 (point) token)
732 (goto-char pos))))) 733 (goto-char pos)))))
733 (t 734 (t
734 (let ((lastlevels levels)) 735 (let ((lastlevels levels))
@@ -773,7 +774,8 @@ Possible return values:
773 ((and lastlevels 774 ((and lastlevels
774 (smie--associative-p (car lastlevels))) 775 (smie--associative-p (car lastlevels)))
775 (throw 'return 776 (throw 'return
776 (prog1 (list (or (car toklevels) t) (point) token) 777 (prog1 (list (or (funcall op-forw toklevels) t)
778 (point) token)
777 (goto-char pos)))) 779 (goto-char pos))))
778 ;; - it's an associative operator within a larger construct 780 ;; - it's an associative operator within a larger construct
779 ;; (e.g. an "elsif"), so we should just ignore it and keep 781 ;; (e.g. an "elsif"), so we should just ignore it and keep