From 9c6c869050f086eeb3307691c4f68b8dba73dd35 Mon Sep 17 00:00:00 2001 From: jasonm23 Date: Wed, 20 Jul 2022 16:44:05 +0700 Subject: [PATCH] Fix restart --- markdown-soma.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/markdown-soma.el b/markdown-soma.el index 26633e5..f7d980e 100644 --- a/markdown-soma.el +++ b/markdown-soma.el @@ -5,7 +5,7 @@ ;; Author: Jason Milkins ;; URL: https://github.com/jasonm23/markdown-soma ;; Keywords: wp, docs, text, markdown -;; Version: 0.2.3 +;; Version: 0.2.4 ;; Package-Requires: ((emacs "25") (s "1.11.0") (dash "2.19.1") (f "0.20.0")) ;; This program is free software; you can redistribute it and/or modify @@ -132,9 +132,7 @@ By default, `~/.cargo/bin` will be in your `$PATH`." "Render TEXT via soma. markdown-soma-render is debounced to 250ms." - (message "render attempt") (when (null markdown-soma--render-gate) - (message "render done...") (process-send-string (get-process"markdown-soma") (format "%s\n" text)) (process-send-eof (get-process"markdown-soma"))) (setq-local markdown-soma--render-gate t) @@ -187,7 +185,7 @@ markdown-soma-render is debounced to 250ms." (if markdown-soma-mode (progn (markdown-soma-stop) - (markdown-soma-start)) + (run-with-timer 0.2 nil #'markdown-soma-start)) (user-error "Please note markdown-soma-mode is not currently active"))) (defun markdown-soma--run ()