aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-18 18:07:04 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-18 18:07:04 -0200
commit5eb81aebc2b5131fff7c4a4d33c163cec2cf3844 (patch)
tree7686c412791b23c372bf530afbd03ae8aee4b748
parent806910361bb26b76a585c23c1bd695e38da2dc9a (diff)
Fix return values
-rw-r--r--sx-question-print.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index 996b057..c6176fc 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -431,7 +431,9 @@ If ID is nil, use FALLBACK-ID instead."
;; non-blank char.
(goto-char first-non-blank)))
;; If nothing matched, go back to the very beginning.
- (goto-char before)))))
+ (goto-char before)
+ ;; And return nil
+ nil))))
(defun sx-question-mode--skip-and-fontify-pre ()
"If there's a pre block ahead, handle it, skip it and return t.
@@ -441,7 +443,8 @@ font-locking."
;; To identify code-blocks we need to be at start of line.
(goto-char beg)
(when (markdown-match-pre-blocks (line-end-position))
- (sx-babel--make-pre-button beg (point)))))
+ (sx-babel--make-pre-button beg (point))
+ t)))
(defun sx-question-mode--skip-comments ()
"If there's an html comment ahead, skip it and return t."