From 8134e3472c30d2dbd51be84e2a58e7fdc5a3d715 Mon Sep 17 00:00:00 2001 From: Jason Blevins Date: Mon, 8 Aug 2011 15:12:05 -0400 Subject: [PATCH] Ensure Markdown output buffer is raised When the output of `markdown-command' was short, sometimes the output would only be displayed in the minibuffer (see `shell-command-on-region'). --- markdown-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/markdown-mode.el b/markdown-mode.el index 90cfda7..b4cb97b 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -1633,7 +1633,10 @@ Calls `markdown-cycle' with argument t." (goto-char (point-min)) (unless (markdown-output-standalone-p) (markdown-add-xhtml-header-and-footer title)) - (html-mode)))) + (html-mode)) + + ;; Ensure buffer gets raised, even with short command output + (switch-to-buffer-other-window output-buffer-name))) (defun markdown-output-standalone-p () "Determine whether `markdown-command' output is standalone XHTML. -- 2.11.4.GIT