Update some doc strings

This commit is contained in:
shg 2022-08-13 06:57:33 +09:00
parent 698ca35da0
commit 45ec4a4e29

View file

@ -125,7 +125,7 @@ recreated even when a process is alive and running in the buffer."
(defun julia-vterm-repl (&optional arg) (defun julia-vterm-repl (&optional arg)
"Create an inferior Julia REPL buffer and open it. "Create an inferior Julia REPL buffer and open it.
The buffer name will be `*julia:main*` where `main` is the default session name. The buffer name will be `*julia:main*' where `main' is the default session name.
With prefix ARG, prompt for a session name. With prefix ARG, prompt for a session name.
If there's already an alive REPL buffer for the session, it will be opened." If there's already an alive REPL buffer for the session, it will be opened."
(interactive "P") (interactive "P")
@ -176,6 +176,7 @@ If there's already an alive REPL buffer for the session, it will be opened."
(list proc str)))))) (list proc str))))))
(defun julia-vterm-repl-buffer-status () (defun julia-vterm-repl-buffer-status ()
"Check and return the prompt status of the REPL command input."
(let* ((bs (buffer-string)) (let* ((bs (buffer-string))
(tail (substring bs (- (min 256 (length bs)))))) (tail (substring bs (- (min 256 (length bs))))))
(set-text-properties 0 (length tail) nil tail) (set-text-properties 0 (length tail) nil tail)
@ -266,7 +267,9 @@ With prefix ARG, prompt for session name."
(vterm-send-return))) (vterm-send-return)))
(defun julia-vterm-paste-string (string &optional session-name) (defun julia-vterm-paste-string (string &optional session-name)
"Send STRING to the Julia REPL buffer using brackted paste mode." "Send STRING to the Julia REPL buffer using brackted paste mode.
If SESSION-NAME is given, the REPL with the session name, otherwise
the main REPL, is used."
(with-current-buffer (julia-vterm-fellow-repl-buffer session-name) (with-current-buffer (julia-vterm-fellow-repl-buffer session-name)
(vterm-send-string string t))) (vterm-send-string string t)))
@ -317,7 +320,7 @@ With prefix ARG, use Revise.includet() instead."
(message "The buffer must be saved in a file to include.")))) (message "The buffer must be saved in a file to include."))))
(defun julia-vterm-send-cd-to-buffer-directory () (defun julia-vterm-send-cd-to-buffer-directory ()
"Send cd() function call to the Julia REPL to change the current working directory of REPL to the buffer's directory." "Change the REPL's working directory to the directory of the buffer file."
(interactive) (interactive)
(if buffer-file-name (if buffer-file-name
(let ((buffer-directory (file-name-directory buffer-file-name))) (let ((buffer-directory (file-name-directory buffer-file-name)))