Skip to content

Commit 1e9668d

Browse files
committed
correct inline function docs
1 parent a6b6b07 commit 1e9668d

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

elixir-mode.el

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -159,24 +159,24 @@
159159
(define-key map (kbd "C-c ,a") 'elixir-mode-string-to-quoted-on-region)
160160
(define-key map (kbd "C-c ,l") 'elixir-mode-string-to-quoted-on-current-line)
161161
map)
162-
"Keymap used in elixir-mode.")
162+
"Keymap used in `elixir-mode'.")
163163

164164
(defgroup elixir nil
165165
"Elixir major mode."
166166
:group 'languages)
167167

168168
(defcustom elixir-compiler-command "elixirc"
169-
"Elixir mode command to compile code. Must be in your path."
169+
"Elixir mode command to compile code. Must be in your path."
170170
:type 'string
171171
:group 'elixir)
172172

173173
(defcustom elixir-mode-command "elixir"
174-
"The command for elixir"
174+
"The command for elixir."
175175
:type 'string
176176
:group 'elixir)
177177

178178
(defcustom elixir-iex-command "iex"
179-
"Elixir mode command for interactive REPL. Must be in your path."
179+
"Elixir mode command for interactive REPL. Must be in your path."
180180
:type 'string
181181
:group 'elixir)
182182

@@ -325,7 +325,7 @@
325325
"Elixir mode operators.")
326326

327327
(defvar elixir-mode-sigils '("B" "C" "R" "b" "c" "r")
328-
"%-prefixed sigils that are understood by elixir-mode")
328+
"%-prefixed sigils that are understood by `elixir-mode'.")
329329

330330
(defvar elixir-basic-offset 2)
331331
(defvar elixir-key-label-offset 0)
@@ -381,24 +381,27 @@
381381
"Highlighting for Elixir mode.")
382382

383383
(defun elixir-mode-cygwin-path (expanded-file-name)
384-
"Elixir mode get Cygwin absolute path name."
384+
"Elixir mode get Cygwin absolute path name.
385+
Argument EXPANDED-FILE-NAME ."
385386
(replace-regexp-in-string "^[a-zA-Z]:" elixir-mode-cygwin-prefix expanded-file-name t))
386387

387388
(defun elixir-mode-universal-path (file-name)
388-
"Elixir mode multi-OS path handler."
389+
"Elixir mode multi-OS path handler.
390+
Argument FILE-NAME ."
389391
(let ((full-file-name (expand-file-name file-name)))
390392
(if (and (equal system-type 'windows-nt)
391393
elixir-mode-cygwin-paths)
392394
(elixir-mode-cygwin-path full-file-name)
393395
full-file-name)))
394396

395397
(defun elixir-mode-command-compile (file-name)
396-
"Elixir mode command to compile a file."
398+
"Elixir mode command to compile a file.
399+
Argument FILE-NAME ."
397400
(let ((full-file-name (elixir-mode-universal-path file-name)))
398401
(mapconcat 'identity (append (list elixir-compiler-command) (list full-file-name)) " ")))
399402

400403
(defun elixir-mode-compiled-file-name (&optional filename)
401-
"Elixir mode compiled filename."
404+
"Elixir mode compiled FILENAME."
402405
(concat (file-name-sans-extension (or filename (buffer-file-name))) ".beam"))
403406

404407
(defun elixir-mode-compile-file ()
@@ -410,7 +413,8 @@
410413

411414
;;;###autoload
412415
(defun elixir-mode-iex (&optional args-p)
413-
"Elixir mode interactive REPL."
416+
"Elixir mode interactive REPL.
417+
Optional argument ARGS-P ."
414418
(interactive "P")
415419
(let ((switches (if (equal args-p nil)
416420
'()
@@ -484,27 +488,31 @@
484488
(message output)))
485489

486490
(defun elixir-mode-eval-on-region (beg end)
487-
"Evaluates the Elixir code on the marked region."
491+
"Evaluate the Elixir code on the marked region.
492+
Argument BEG Start of the region.
493+
Argument END End of the region."
488494
(interactive (list (point) (mark)))
489495
(unless (and beg end)
490496
(error "The mark is not set now, so there is no region"))
491497
(let* ((region (buffer-substring-no-properties beg end)))
492498
(elixir-mode--eval-string region)))
493499

494500
(defun elixir-mode-eval-on-current-line ()
495-
"Evaluates the Elixir code on the current line."
501+
"Evaluate the Elixir code on the current line."
496502
(interactive)
497503
(let ((current-line (thing-at-point 'line)))
498504
(elixir-mode--eval-string current-line)))
499505

500506
(defun elixir-mode-eval-on-current-buffer ()
501-
"Evaluates the Elixir code on the current buffer."
507+
"Evaluate the Elixir code on the current buffer."
502508
(interactive)
503509
(let ((current-buffer (buffer-substring-no-properties (point-max) (point-min))))
504510
(elixir-mode--eval-string current-buffer)))
505511

506512
(defun elixir-mode-string-to-quoted-on-region (beg end)
507-
"Get the representation of the expression on the marked region."
513+
"Get the representation of the expression on the marked region.
514+
Argument BEG Start of the region.
515+
Argument END End of the region."
508516
(interactive (list (point) (mark)))
509517
(unless (and beg end)
510518
(error "The mark is not set now, so there is no region"))
@@ -560,7 +568,7 @@
560568

561569
;;;###autoload
562570
(defun elixir-mode-run-tests ()
563-
"Run ERT tests for `elixir-mode'."
571+
"Run ERT test for `elixir-mode'."
564572
(interactive)
565573
(load "elixir-mode-tests")
566574
(ert-run-tests-interactively "^elixir-ert-.*$"))

0 commit comments

Comments
 (0)