branch: elpa/markdown-mode commit 8244e0b6b94ec6183d55b1dfce4b6cd00eada718 Merge: 1f709778ac a597d1c715 Author: Shohei YOSHIDA <syo...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #711 from tarsiiformes/one Fix functions with multiple docstrings --- markdown-mode.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/markdown-mode.el b/markdown-mode.el index ed9cfbfa64..0097d63db9 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -7678,20 +7678,18 @@ displaying the rendered output." (setq markdown-live-preview-source-buffer nil)))) (defun markdown-live-preview-switch-to-output () - "Switch to output buffer." - (interactive) "Turn on `markdown-live-preview-mode' if not already on, and switch to its output buffer in another window." + (interactive) (if markdown-live-preview-mode (markdown-display-buffer-other-window (markdown-live-preview-export))) (markdown-live-preview-mode)) (defun markdown-live-preview-re-export () - "Re export source buffer." - (interactive) "If the current buffer is a buffer displaying the exported version of a `markdown-live-preview-mode' buffer, call `markdown-live-preview-export' and update this buffer's contents." + (interactive) (when markdown-live-preview-source-buffer (with-current-buffer markdown-live-preview-source-buffer (markdown-live-preview-export))))