File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -5508,7 +5508,9 @@ the rendered output."
5508
5508
(when (buffer-live-p markdown-live-preview-view-buffer)
5509
5509
;; calls `kill-buffer-hook' within `markdown-live-preview-view-buffer'
5510
5510
(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)
5512
5514
(delete-process markdown-live-preview-currently-exporting-process))
5513
5515
(setq markdown-live-preview-view-buffer nil
5514
5516
markdown-live-preview-currently-exporting-process nil)
@@ -6129,7 +6131,8 @@ before regenerating font-lock rules for extensions."
6129
6131
:group 'markdown-mode
6130
6132
:lighter " MD-Preview"
6131
6133
(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)))
6133
6136
(markdown-live-preview-teardown-source)))
6134
6137
6135
6138
Original file line number Diff line number Diff line change @@ -3306,8 +3306,6 @@ indented the same amount."
3306
3306
3307
3307
(defun markdown-test/live-preview-exports ()
3308
3308
(markdown-test-temp-file "inline.text"
3309
- (unless (require 'eww nil t )
3310
- (should-error (markdown-live-preview-mode )))
3311
3309
(let ((markdown-live-preview-idle-delay .01))
3312
3310
(markdown-temp-eww
3313
3311
(markdown-live-preview-mode)
@@ -3326,6 +3324,8 @@ indented the same amount."
3326
3324
3327
3325
(ert-deftest test-markdown-ext/live-preview-exports-sync ()
3328
3326
(let ((markdown-live-preview-do-sync t))
3327
+ (unless (require 'eww nil t)
3328
+ (should-error (markdown-live-preview-sync-export)))
3329
3329
(markdown-test/live-preview-exports)))
3330
3330
3331
3331
(ert-deftest test-markdown-ext/live-preview-exports-async ()
You can’t perform that action at this time.
0 commit comments