Skip to content

Commit

Permalink
Compatibility fix for add-function
Browse files Browse the repository at this point in the history
  • Loading branch information
jrblevin committed Jun 19, 2017
1 parent cf3bbac commit ab45304
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -8435,8 +8435,11 @@ position."
;; Cause use of ellipses for invisible text.
(add-to-invisibility-spec '(outline . t))
;; ElDoc support
(add-function :before-until (local 'eldoc-documentation-function)
#'markdown-eldoc-function)
(if (eval-when-compile (fboundp 'add-function))
(add-function :before-until (local 'eldoc-documentation-function)
#'markdown-eldoc-function)
(set (make-local-variable 'eldoc-documentation-function)
#'markdown-eldoc-function))
;; Inhibiting line-breaking:
;; Separating out each condition into a separate function so that users can
;; override if desired (with remove-hook)
Expand Down

0 comments on commit ab45304

Please sign in to comment.