Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some hooks are run at insert-and-inherit, like jit-lock-after-change-extend-region-functions. If some hook function overwrite match data, code after 'insert' does not work as expected. So save match data
and not use 'match-{beginning,end}' functions.
insert-and-inherit
の呼び出しでいくつかの hook関数が呼ばれます. jit-lock-after-change-extend-region-functionsなどが該当します. もしこの関数の中で match-dataの上書きが行われてしまうとそれ以降のコードが期待通り動きません(もちろん hook関数で上書きしないようにするべきですが). そこで初めに match-dataをローカル変数に保存し以降はそれを使うようにし, match-dataが上書きされた場合でも問題ないようにしています.markdown-modeが登録する hook関数で上書きが発生し, 期待通り動かない問題が見られました.(Tak Kunihiroさんより報告を受けました.). markdown-modeには PRを送付済みです(jrblevin/markdown-mode#105)
状況により以下のような現象が発生します. 元の文字が適切に削除されないため, 元々挿入した文字にマッチし続ける現象が発生する.
ご確認のほどよろしくお願いします.