Skip to content

Commit

Permalink
Compatibility with Emacs 24.1-24.3
Browse files Browse the repository at this point in the history
Use font-lock-append-text-property instead of
add-face-text-property for compatibility.
  • Loading branch information
jrblevin committed Jun 8, 2017
1 parent 3e24f0d commit ef314c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions markdown-mode.el
Expand Up @@ -7593,10 +7593,10 @@ LANG is a string, and the returned major mode is a symbol."
(if (and markdown-fontify-code-blocks-natively
(setq lang (markdown-code-block-lang)))
(markdown-fontify-gfm-code-block lang start end)
(add-face-text-property start end 'markdown-pre-face 'append))
(add-text-properties start end '(face markdown-pre-face)))
;; Set background for block as well as opening and closing lines.
(add-face-text-property
bol-prev eol-next 'markdown-code-face 'append))))
(font-lock-append-text-property
bol-prev eol-next 'face 'markdown-code-face))))
t))

;; Based on `org-src-font-lock-fontify-block' from org-src.el.
Expand Down

0 comments on commit ef314c8

Please sign in to comment.