]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 13 May 2012 16:04:37 +0000 (12:04 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 13 May 2012 16:04:37 +0000 (12:04 -0400)
lisp/ChangeLog
lisp/emacs-lisp/smie.el

index 557e8eb2e48b16e44888a74ed02b9e0809c3469b..03b9a3ba15bc7f6c78bb57e395187172147a6ea4 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-13  Johan Bockgård  <bojohan@gnu.org>
+
+       * emacs-lisp/smie.el (smie-next-sexp): Use accessor `op-forw' rather
+       than hard-coding `car', to fix misbehavior when moving forward.
+
 2012-05-13  Chong Yidong  <cyd@gnu.org>
 
        * emacs-lisp/tabulated-list.el (tabulated-list-format)
index cafa1942a099510837f5f4abf31900a23fbe4a0b..ae3e060034fda2110734df5c08d9d6745a4335ab 100644 (file)
@@ -728,7 +728,8 @@ Possible return values:
                 (if (and halfsexp (numberp (funcall op-forw toklevels)))
                     (push toklevels levels)
                   (throw 'return
-                         (prog1 (list (or (car toklevels) t) (point) token)
+                         (prog1 (list (or (funcall op-forw toklevels) t)
+                                      (point) token)
                            (goto-char pos)))))
                (t
                 (let ((lastlevels levels))
@@ -773,7 +774,8 @@ Possible return values:
                    ((and lastlevels
                          (smie--associative-p (car lastlevels)))
                     (throw 'return
-                           (prog1 (list (or (car toklevels) t) (point) token)
+                           (prog1 (list (or (funcall op-forw toklevels) t)
+                                        (point) token)
                              (goto-char pos))))
                    ;; - it's an associative operator within a larger construct
                    ;;   (e.g. an "elsif"), so we should just ignore it and keep