diff options
| author | Stefan Monnier | 2014-06-13 11:31:17 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-06-13 11:31:17 -0400 |
| commit | bf26b463ea0e7621255f73d22893a93754694800 (patch) | |
| tree | e8b70e267987d2f9b5de2f3ae1e4f82d549fa435 | |
| parent | 40be983bc68c95ad63f1135da3a82aec1aa32e2a (diff) | |
| download | emacs-bf26b463ea0e7621255f73d22893a93754694800.tar.gz emacs-bf26b463ea0e7621255f73d22893a93754694800.zip | |
* lisp/emacs-lisp/smie.el (smie-next-sexp): Fix up "other-end" info when
bumping forward into a closing paren.
Fixes: debbugs:17761
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/smie.el | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1ecc6a140ab..db615f68adf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2014-06-13 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2014-06-13 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * emacs-lisp/smie.el (smie-next-sexp): Fix up "other-end" info when | ||
| 4 | bumping forward into a closing paren (bug#17761). | ||
| 5 | |||
| 3 | * term/xterm.el (xterm--version-handler): Work around for OSX | 6 | * term/xterm.el (xterm--version-handler): Work around for OSX |
| 4 | Terminal.app (bug#17607). | 7 | Terminal.app (bug#17607). |
| 5 | 8 | ||
diff --git a/lisp/emacs-lisp/smie.el b/lisp/emacs-lisp/smie.el index e65f873b874..3e40d37aacf 100644 --- a/lisp/emacs-lisp/smie.el +++ b/lisp/emacs-lisp/smie.el | |||
| @@ -709,7 +709,8 @@ Possible return values: | |||
| 709 | (condition-case err | 709 | (condition-case err |
| 710 | (progn (funcall next-sexp 1) nil) | 710 | (progn (funcall next-sexp 1) nil) |
| 711 | (scan-error | 711 | (scan-error |
| 712 | (let ((epos (nth 2 err))) | 712 | (let* ((epos1 (nth 2 err)) |
| 713 | (epos (if (<= (point) epos1) (nth 3 err) epos1))) | ||
| 713 | (goto-char pos) | 714 | (goto-char pos) |
| 714 | (throw 'return | 715 | (throw 'return |
| 715 | (list t epos | 716 | (list t epos |
| @@ -1832,6 +1833,8 @@ KEYWORDS are additional arguments, which can use the following keywords: | |||
| 1832 | (append smie-blink-matching-triggers | 1833 | (append smie-blink-matching-triggers |
| 1833 | (delete-dups triggers))))))) | 1834 | (delete-dups triggers))))))) |
| 1834 | 1835 | ||
| 1836 | (declare-function edebug-instrument-function "edebug" (func)) | ||
| 1837 | |||
| 1835 | (defun smie-edebug () | 1838 | (defun smie-edebug () |
| 1836 | "Instrument the `smie-rules-function' for Edebug." | 1839 | "Instrument the `smie-rules-function' for Edebug." |
| 1837 | (interactive) | 1840 | (interactive) |