projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79ae7fb
)
* lisp/emacs-lisp/smie.el (smie-indent-keyword): Don't burp in strings
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 17 Mar 2016 02:55:56 +0000
(22:55 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 17 Mar 2016 02:55:56 +0000
(22:55 -0400)
(bug#22960).
lisp/emacs-lisp/smie.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/smie.el
b/lisp/emacs-lisp/smie.el
index 495ba7cb859af7db8cbce257db65a7699cb30a20..1d8f0cb8f5de6c564580796592363cc14e9a145c 100644
(file)
--- 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)