diff options
author | Sean Allred <code@seanallred.com> | 2014-11-18 21:53:44 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-11-18 21:53:44 -0500 |
commit | 2d44aaa67c3d462debd35ce7b814f4d78e08fe29 (patch) | |
tree | 81618f3bd6b9d949c9b95a5952492171228d1af5 /sx-question-mode.el | |
parent | 9df98091a366a3b1585ba52a21b0261b314ea8bd (diff) |
Documentation -- part two
Pushing this change to continue work elsewhere.
Diffstat (limited to 'sx-question-mode.el')
-rw-r--r-- | sx-question-mode.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el index 32cd112..e436b40 100644 --- a/sx-question-mode.el +++ b/sx-question-mode.el @@ -19,8 +19,6 @@ ;;; Commentary: -;; - ;;; Code: (require 'markdown-mode) @@ -53,7 +51,9 @@ (defun sx-question-mode--display (data &optional window) "Display question given by DATA on WINDOW. + If WINDOW is nil, use selected one. + Returns the question buffer." (let ((inhibit-read-only t)) (with-current-buffer @@ -65,7 +65,9 @@ Returns the question buffer." (defun sx-question-mode--display-buffer (window) "Display and return the buffer used for displaying a question. -Create the buffer if necessary. + +Create `sx-question-mode--buffer' if necessary. + If WINDOW is given, use that to display the buffer." ;; Create the buffer if necessary. (unless (buffer-live-p sx-question-mode--buffer) @@ -84,6 +86,7 @@ If WINDOW is given, use that to display the buffer." ;;; Printing a question's content ;;;; Faces and Variables + (defvar sx-question-mode--overlays nil "") (make-variable-buffer-local 'sx-question-mode--overlays) |