X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/2c3abc4cee5656cfae25f02d70dc99e2a224db08..a1e4004ca8710d6868f137f019f1625e1b00c15c:/el/dot-emacs.el diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 2fb1520..d657295 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -226,6 +226,13 @@ (defmacro mdw-advise-to-inhibit-raise-frame (function) (mdw-advise-to-inhibit-raise-frame select-frame-set-input-focus) +;; Bug fix for markdown-mode, which breaks point positioning during +;; `query-replace'. +(defadvice markdown-check-change-for-wiki-link + (around mdw-save-match activate compile) + "Save match data around the `markdown-mode' `after-change-functions' hook." + (save-match-data ad-do-it)) + ;; Transient mark mode hacks. (defadvice exchange-point-and-mark