Skip to content

Commit

Permalink
Revise docstring of org-babel-prolog-initiate-session
Browse files Browse the repository at this point in the history
Adhere to docstring convention by including entire first sentence on a
single line.  Use the second sentence (in its own paragraph) to
describe the function's behavior if SESSION is not initialized prior
to calling the function.
  • Loading branch information
lafrenierejm committed Mar 28, 2018
1 parent 77b2d97 commit 50a6145
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ob-prolog.el
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ Create SESSION if it does not already exist."
(comint-send-input nil t)))

(defun org-babel-prolog-initiate-session (&optional session)
"If there is not a current inferior-process-buffer in SESSION
then create. Return the initialized session."
"Return SESSION with a current inferior-process-buffer.
Initialize SESSION if it has not already been initialized."
(unless (string= session "none")
(let ((session (get-buffer-create (or session "*prolog*"))))
(unless (comint-check-proc session)
Expand Down

0 comments on commit 50a6145

Please sign in to comment.