File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -5508,7 +5508,9 @@ the rendered output."
55085508 (when (buffer-live-p markdown-live-preview-view-buffer)
55095509 ;; calls `kill-buffer-hook' within `markdown-live-preview-view-buffer'
55105510 (kill-buffer markdown-live-preview-view-buffer))
5511- (when (process-live-p markdown-live-preview-currently-exporting-process)
5511+ (when (and markdown-live-preview-currently-exporting-process
5512+ (process-live-p markdown-live-preview-currently-exporting-process))
5513+ (set-process-sentinel markdown-live-preview-currently-exporting-process nil)
55125514 (delete-process markdown-live-preview-currently-exporting-process))
55135515 (setq markdown-live-preview-view-buffer nil
55145516 markdown-live-preview-currently-exporting-process nil)
@@ -6129,7 +6131,8 @@ before regenerating font-lock rules for extensions."
61296131 :group 'markdown-mode
61306132 :lighter " MD-Preview"
61316133 (if markdown-live-preview-mode
6132- (markdown-live-preview-setup)
6134+ (condition-case nil (markdown-live-preview-setup)
6135+ (error (markdown-live-preview-mode -1)))
61336136 (markdown-live-preview-teardown-source)))
61346137
61356138
Original file line number Diff line number Diff line change @@ -3306,8 +3306,6 @@ indented the same amount."
33063306
33073307(defun markdown-test/live-preview-exports ()
33083308 (markdown-test-temp-file " inline.text"
3309- (unless (require 'eww nil t )
3310- (should-error (markdown-live-preview-mode )))
33113309 (let ((markdown-live-preview-idle-delay .01 ))
33123310 (markdown-temp-eww
33133311 (markdown-live-preview-mode )
@@ -3326,6 +3324,8 @@ indented the same amount."
33263324
33273325(ert-deftest test-markdown-ext/live-preview-exports-sync ()
33283326 (let ((markdown-live-preview-do-sync t ))
3327+ (unless (require 'eww nil t )
3328+ (should-error (markdown-live-preview-sync-export)))
33293329 (markdown-test/live-preview-exports)))
33303330
33313331(ert-deftest test-markdown-ext/live-preview-exports-async ()
You can’t perform that action at this time.
0 commit comments