Skip to content

Commit

Permalink
Remove test message and clean up live export
Browse files Browse the repository at this point in the history
remove message
make eww situation more obvious
clarify note on eww

[jrblevin@sdf.org: Five commits squashed and rebased on master]
Signed-off-by: Jason Blevins <jrblevin@sdf.org>
  • Loading branch information
Danny McClanahan authored and jrblevin committed Jan 3, 2016
1 parent 1b21b1f commit c0bb1c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -5146,11 +5146,11 @@ buffer. Inverse of `markdown-live-preview-buffer'.")

(defun markdown-live-preview-window-eww (file)
"A `markdown-live-preview-window-function' for previewing with eww."
(if (eval-when-compile (featurep 'eww))
(if (featurep 'eww)
(progn
(eww-open-file file)
(get-buffer "*eww*"))
(error "eww is not present on this version of emacs")))
(error "eww is not present or not loaded on this version of emacs")))

(defun markdown-live-preview-window-serialize (buf)
"Get window point and scroll data for all windows displaying BUF if BUF is
Expand Down
1 change: 0 additions & 1 deletion tests/markdown-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -3227,7 +3227,6 @@ indented the same amount."
(unless (featurep 'eww)
(should-error (markdown-live-preview-mode)))
(markdown-temp-eww
(message "%s" "hey")
(markdown-live-preview-mode)
(should (buffer-live-p markdown-live-preview-buffer))
(should (eq (current-buffer)
Expand Down

0 comments on commit c0bb1c9

Please sign in to comment.