* lisp/emacs-lisp/smie.el (smie-indent-keyword): Don't burp in strings
(bug#22960).
This commit is contained in:
parent
79ae7fbe91
commit
a1ef911f31
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue