emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/markdown-mode eb3f3be165 2/4: Fix not automatic update iss


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode eb3f3be165 2/4: Fix not automatic update issue
Date: Fri, 9 Dec 2022 22:59:11 -0500 (EST)

branch: elpa/markdown-mode
commit eb3f3be165404eade62e3adbd4f9d0d479c15ef6
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Shohei YOSHIDA <syohex@gmail.com>

    Fix not automatic update issue
    
    If `eww-auto-rename-buffer` is non-nil, then new buffer is
    created every buffer saving. So previous buffer is killed before
    re-rendering to create the same name buffer
---
 markdown-mode.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/markdown-mode.el b/markdown-mode.el
index 256ebdfa76..ed8f962d8e 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -7541,6 +7541,9 @@ This is the inverse of `markdown-live-preview-buffer'.")
 (defun markdown-live-preview-window-eww (file)
   "Preview FILE with eww.
 To be used with `markdown-live-preview-window-function'."
+  (when (and (bound-and-true-p eww-auto-rename-buffer)
+             markdown-live-preview-buffer)
+    (kill-buffer markdown-live-preview-buffer))
   (eww-open-file file)
   ;; #737 if `eww-auto-rename-buffer' is non-nil, the buffer name is not  
"*eww*"
   ;; Try to find the buffer whose name ends with "eww*"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]