Skip to content

Commit

Permalink
Disable smie-blink-matching-inners locally
Browse files Browse the repository at this point in the history
Re-fixes elixir-editors#363 ("hang after RET") in a better way and fixes elixir-editors#440.

It's a subtle bug in SMIE which is triggered by SMIE's grammar having
both "do" and "do:". No fix in sight, and we have to support older
Emacs anyway.
  • Loading branch information
dgutov committed Nov 28, 2019
1 parent 5c50dce commit 953424c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion elixir-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,10 @@ just return nil."

(smie-setup elixir-smie-grammar 'verbose-elixir-smie-rules
:forward-token 'elixir-smie-forward-token
:backward-token 'elixir-smie-backward-token))
:backward-token 'elixir-smie-backward-token)
;; https://github.com/elixir-editors/emacs-elixir/issues/363
;; http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35496
(set (make-local-variable 'smie-blink-matching-inners) nil))

;; Invoke elixir-mode when appropriate

Expand Down

0 comments on commit 953424c

Please sign in to comment.