diff options
author | Alan Mackenzie <acm@muc.de> | 2016-03-30 16:53:36 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2016-03-30 16:53:36 +0000 |
commit | ed19f207449c43f7f08285ada87ae7a46c61c8d1 (patch) | |
tree | fc495d64b752f276f1e8dc86427098de80789988 /lisp/emacs-lisp/smie.el | |
parent | eabd667a9584fe5bd2422e296d256dceea67debf (diff) | |
parent | 7c1802f6ffc2704ba8042c7c1c6faa73dfa210d1 (diff) | |
download | emacs-ed19f207449c43f7f08285ada87ae7a46c61c8d1.tar.gz emacs-ed19f207449c43f7f08285ada87ae7a46c61c8d1.tar.bz2 emacs-ed19f207449c43f7f08285ada87ae7a46c61c8d1.zip |
Merge branch 'emacs-25' of /home/acm/emacs/emacs.git/emacs-25 into emacs-25
Diffstat (limited to 'lisp/emacs-lisp/smie.el')
-rw-r--r-- | lisp/emacs-lisp/smie.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/smie.el b/lisp/emacs-lisp/smie.el index 495ba7cb859..1d8f0cb8f5d 100644 --- a/lisp/emacs-lisp/smie.el +++ b/lisp/emacs-lisp/smie.el @@ -1493,7 +1493,10 @@ should not be computed on the basis of the following token." (let ((endpos (point))) (goto-char pos) (forward-line 1) - (and (equal res (smie-indent-forward-token)) + ;; As seen in bug#22960, pos may be inside + ;; a string, and forward-token may then stumble. + (and (ignore-errors + (equal res (smie-indent-forward-token))) (eq (point) endpos))))) nil (goto-char pos) |