Skip to content

Commit

Permalink
add 'return' to doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny McClanahan committed Nov 6, 2015
1 parent 873da3c commit a43678a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -4701,7 +4701,8 @@ non-nil."

(defun markdown-live-preview-export ()
"Export to XHTML using `markdown-export' and browse the resulting file within
Emacs using `markdown-live-preview-window-function'."
Emacs using `markdown-live-preview-window-function' Return the buffer displaying
the rendered output."
(interactive)
(let ((export-file (markdown-export))
;; get positions in all windows currently displaying output buffer
Expand All @@ -4719,11 +4720,9 @@ Emacs using `markdown-live-preview-window-function'."
;; the new output
(mapc #'markdown-live-preview-window-deserialize window-data)
(when (and markdown-live-preview-delete-export
export-file
(file-exists-p export-file))
export-file (file-exists-p export-file))
(delete-file export-file)
(let ((buf (get-file-buffer export-file)))
(when buf (kill-buffer buf))))
(let ((buf (get-file-buffer export-file))) (when buf (kill-buffer buf))))
markdown-live-preview-buffer))

(defun markdown-live-preview-remove ()
Expand Down

0 comments on commit a43678a

Please sign in to comment.