branch: elpa/git-commit commit 6f54443aaaa0a822cc245dc6c66d2033c7dc0900 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
Silence check-declare --- lisp/git-commit.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/git-commit.el b/lisp/git-commit.el index e3e589e17a..20ad77cc2c 100644 --- a/lisp/git-commit.el +++ b/lisp/git-commit.el @@ -137,8 +137,6 @@ (declare-function magit-hook-custom-get "magit-base" (symbol)) (declare-function magit-list-local-branch-names "magit-git" ()) -(declare-function markdown-fill-paragraph "markdown-mode" (&optional justify)) - (defvar diff-default-read-only) (defvar flyspell-generic-check-word-predicate) (defvar font-lock-beg) @@ -1081,7 +1079,8 @@ Added to `font-lock-extend-region-functions'." (setq-local comment-end "") (setq-local comment-end-skip "\n") (setq-local comment-use-syntax nil) - (when (derived-mode-p 'markdown-mode) + (when (and (derived-mode-p 'markdown-mode) + (fboundp 'markdown-fill-paragraph)) (setq-local fill-paragraph-function (lambda (&optional justify) (and (not (= (char-after (line-beginning-position))