Skip to content

Commit 10e371a

Browse files
committed
fix typos in documentation strings
1 parent ca37035 commit 10e371a

14 files changed

+41
-43
lines changed

haskell-cabal.el

+14-10
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Return nil if no Cabal description file could be located via
211211
"Search for package description file upwards starting from DIR.
212212
If DIR is nil, `default-directory' is used as starting point for
213213
directory traversal. Upward traversal is aborted if file owner
214-
changes. Uses`haskell-cabal-find-pkg-desc' internally."
214+
changes. Uses `haskell-cabal-find-pkg-desc' internally."
215215
(let ((use-dir (or dir default-directory)))
216216
(while (and use-dir (not (file-directory-p use-dir)))
217217
(setq use-dir (file-name-directory (directory-file-name use-dir))))
@@ -373,14 +373,14 @@ OTHER-WINDOW use `find-file-other-window'."
373373
(goto-char (haskell-cabal-section-end)))
374374

375375
(defun haskell-cabal-next-section ()
376-
"Go to the next extion"
376+
"Go to the next section"
377377
(interactive)
378378
(when (haskell-cabal-section-header-p) (forward-line))
379379
(while (not (or (eobp) (haskell-cabal-section-header-p)))
380380
(forward-line)))
381381

382382
(defun haskell-cabal-previous-section ()
383-
"Go to the next extion"
383+
"Go to the next section"
384384
(interactive)
385385
(when (haskell-cabal-section-header-p) (forward-line -1))
386386
(while (not (or (bobp) (haskell-cabal-section-header-p)))
@@ -471,7 +471,7 @@ OTHER-WINDOW use `find-file-other-window'."
471471
and execute FORMS
472472
473473
If REPLACE is non-nil the subsection data is replaced with the
474-
resultung buffer-content"
474+
resulting buffer-content"
475475
(let ((section (make-symbol "section"))
476476
(beg (make-symbol "beg"))
477477
(end (make-symbol "end"))
@@ -502,7 +502,7 @@ resultung buffer-content"
502502
(insert ,section-data))))))))
503503

504504
(defmacro haskell-cabal-each-line (&rest fun)
505-
"Execute FOMRS on each line"
505+
"Execute FORMS on each line"
506506
`(save-excursion
507507
(while (< (point) (point-max))
508508
,@fun
@@ -663,7 +663,7 @@ resultung buffer-content"
663663
(haskell-cabal-forward-to-line-entry))
664664

665665
(defun haskell-cabal-previous-subsection ()
666-
"go to the next subsection"
666+
"go to the previous subsection"
667667
(interactive)
668668
(if (haskell-cabal-header-p) (forward-line -1))
669669
(while (and (not (bobp))
@@ -674,7 +674,7 @@ resultung buffer-content"
674674

675675

676676
(defun haskell-cabal-find-subsection-by (section pred)
677-
"Find sunsection with name NAME"
677+
"Find subsection with name NAME"
678678
(save-excursion
679679
(when section (goto-char (haskell-cabal-section-start section)))
680680
(let* ((end (if section (haskell-cabal-section-end) (point-max)))
@@ -688,7 +688,7 @@ resultung buffer-content"
688688
found)))
689689

690690
(defun haskell-cabal-find-subsection (section name)
691-
"Find sunsection with name NAME"
691+
"Find subsection with name NAME"
692692
(let ((downcase-name (downcase name)))
693693
(haskell-cabal-find-subsection-by
694694
section
@@ -747,7 +747,11 @@ resultung buffer-content"
747747
(marked-line (goto-char marked-line)))))
748748

749749
(defmacro haskell-cabal-with-subsection-line (replace &rest forms)
750-
"Mark line and "
750+
"Mark line, copy subsection data into a temporary buffer, save indentation
751+
and execute FORMS at the marked line.
752+
753+
If REPLACE is non-nil the subsection data is replaced with the
754+
resulting buffer-content. Unmark line at the end."
751755
`(progn
752756
(haskell-cabal-mark)
753757
(unwind-protect
@@ -937,7 +941,7 @@ Source names from main-is and c-sources sections are left untouched
937941
'haskell-cabal-sort-lines-key-fun)))))))
938942

939943
(defun haskell-cabal-add-build-dependency (dependency &optional sort silent)
940-
"Add a build dependencies to sections"
944+
"Add the given build dependency to every section"
941945
(haskell-cabal-map-sections
942946
(lambda (section)
943947
(when (haskell-cabal-source-section-p section)

haskell-checkers.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
(concat haskell-scan-command " " haskell-scan-options " \"" file "\""))
137137

138138
(defun haskell-lint-make-command (file)
139-
"Generates command line for scan"
139+
"Generates command line for lint"
140140
(concat haskell-lint-command " \"" file "\"" " " haskell-lint-options))
141141

142142
(defmacro haskell-checkers-setup (type name)

haskell-commands.el

+1-3
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ MODULE-BUFFER is the actual Emacs buffer of the module being loaded."
164164
"History list for session targets.")
165165

166166
(defun haskell-process-hayoo-ident (ident)
167-
;; FIXME Obsolete doc string, CALLBACK is not used.
168-
"Hayoo for IDENT, return a list of modules asyncronously through CALLBACK."
167+
"Hayoo for IDENT, return a list of modules"
169168
;; We need a real/simulated closure, because otherwise these
170169
;; variables will be unbound when the url-retrieve callback is
171170
;; called.
@@ -309,7 +308,6 @@ If PROMPT-VALUE is non-nil, request identifier via mini-buffer."
309308

310309
;;;###autoload
311310
(defun haskell-process-do-type (&optional insert-value)
312-
;; FIXME insert value functionallity seems to be missing.
313311
"Print the type of the given expression.
314312
315313
Given INSERT-VALUE prefix indicates that result type signature

haskell-completions.el

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Returns t if point is either at whitespace character, or at
7272
punctuation, or at line end and preceeding character is not a
7373
whitespace or new line, otherwise returns nil.
7474
75-
Returns nil in presense of active region."
75+
Returns nil in presence of active region."
7676
(when (not (region-active-p))
7777
(when (looking-at-p (rx (| space line-end punct)))
7878
(when (not (bobp))
@@ -84,7 +84,7 @@ whitespace or new line, otherwise returns nil.
8484
"Grab completion prefix for pragma completions.
8585
Returns a list of form '(prefix-start-position
8686
prefix-end-position prefix-value prefix-type) for pramga names
87-
such as WARNING, DEPRECATED, LANGUAGE and etc. Also returns
87+
such as WARNING, DEPRECATED, LANGUAGE etc. Also returns
8888
completion prefixes for options in case OPTIONS_GHC pragma, or
8989
language extensions in case of LANGUAGE pragma. Obsolete OPTIONS
9090
pragma is supported also."
@@ -206,7 +206,7 @@ identifier at point depending on result of function
206206
Returns a list of form '(prefix-start-position
207207
prefix-end-position prefix-value prefix-type) depending on
208208
situation, e.g. is it needed to complete pragma, module name,
209-
arbitrary identifier, and etc. Rerurns nil in case it is
209+
arbitrary identifier, etc. Returns nil in case it is
210210
impossible to grab prefix.
211211
212212
If provided optional MINLEN parameter this function will return
@@ -252,7 +252,7 @@ Returns nil if no completions available."
252252
(list beg end lst)))))))
253253

254254
(defun haskell-completions-sync-complete-repl (prefix &optional import)
255-
"Return completion list for given PREFIX quering REPL synchronously.
255+
"Return completion list for given PREFIX querying REPL synchronously.
256256
When optional IMPORT argument is non-nil complete PREFIX
257257
prepending \"import \" keyword (useful for module names). This
258258
function is supposed for internal use."

haskell-decl-scan.el

+3-2
Original file line numberDiff line numberDiff line change
@@ -344,14 +344,15 @@ declaration by this function. So, if point is within a top-level
344344
declaration then move it to the start of that declaration. If point
345345
is already at the start of a top-level declaration, then move it to
346346
the start of the preceding declaration. Returns point if point is
347-
left at the start of a declaration, and nil otherwise, ie. because
347+
left at the start of a declaration, and nil otherwise, because
348348
point is at the beginning of the buffer and no declaration starts
349349
there."
350350
(interactive)
351351
(haskell-ds-move-to-decl nil (haskell-ds-bird-p) nil))
352352

353353
(defun haskell-ds-forward-decl ()
354-
"As `haskell-ds-backward-decl' but forward."
354+
"Move forward to the first character that starts a top-level
355+
declaration. As `haskell-ds-backward-decl' but forward."
355356
(interactive)
356357
(haskell-ds-move-to-decl t (haskell-ds-bird-p) nil))
357358

haskell-doc.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ last input, no documentation will be printed.
417417
If this variable is set to 0, no idle time is required.")
418418

419419
(defvar haskell-doc-argument-case 'identity ; 'upcase
420-
"Case to display argument names of functions, as a symbol.
420+
"Case in which to display argument names of functions, as a symbol.
421421
This has two preferred values: `upcase' or `downcase'.
422422
Actually, any name of a function which takes a string as an argument and
423423
returns another string is acceptable.")

haskell-mode.el

+3-8
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ its own, nor does it contain \">\" at the start of a line -- the value
182182
of `haskell-literate-default' is used.")
183183
(make-variable-buffer-local 'haskell-literate)
184184
(put 'haskell-literate 'safe-local-variable 'symbolp)
185+
185186
;; Default literate style for ambiguous literate buffers.
186187
(defcustom haskell-literate-default 'bird
187188
"Default value for `haskell-literate'.
@@ -577,7 +578,7 @@ May return a qualified name."
577578
(define-derived-mode haskell-mode haskell-parent-mode "Haskell"
578579
"Major mode for editing Haskell programs.
579580
580-
For more information aee also Info node `(haskell-mode)Getting Started'.
581+
For more information see also Info node `(haskell-mode)Getting Started'.
581582
582583
\\<haskell-mode-map>
583584
@@ -621,18 +622,12 @@ example, `M-x haskell-doc-mode'. Run it again to disable it.
621622
To enable a mode for every haskell-mode buffer, add a hook in
622623
your Emacs configuration. To do that you can customize
623624
`haskell-mode-hook' or add lines to your .emacs file. For
624-
example, to enable `haskell-indent-mode' and
625-
`interactive-haskell-mode', use the following:
625+
example, to enable `interactive-haskell-mode', use the following:
626626
627-
(add-hook 'haskell-mode-hook 'haskell-indentation-mode)
628627
(add-hook 'haskell-mode-hook 'interactive-haskell-mode)
629628
630629
For more details see Info node `(haskell-mode)haskell-mode-hook'.
631630
632-
Warning: do not enable more than one of the above indentation
633-
modes. See Info node `(haskell-mode)indentation' for more
634-
details.
635-
636631
Minor modes that work well with `haskell-mode':
637632
638633
- `smerge-mode': show and work with diff3 conflict markers used

haskell-navigate-imports.el

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
;;;###autoload
5454
(defun haskell-navigate-imports-go ()
55-
"Go to the first line of a list of consequtive import lines. Cycles."
55+
"Go to the first line of a list of consecutive import lines. Cycles."
5656
(interactive)
5757
(unless (or (haskell-navigate-imports-line)
5858
(equal (line-beginning-position) (point-min))
@@ -70,7 +70,7 @@
7070
(goto-char haskell-navigate-imports-start-point)))
7171

7272
(defun haskell-navigate-imports-go-internal ()
73-
"Go to the first line of a list of consequtive import lines. Cycle."
73+
"Go to the first line of a list of consecutive import lines. Cycle."
7474
(if (haskell-navigate-imports-line)
7575
(progn (haskell-navigate-imports-goto-end)
7676
(when (haskell-navigate-imports-find-forward-line)
@@ -85,7 +85,7 @@
8585
(search-forward "\n\n" nil t 1))))))))
8686

8787
(defun haskell-navigate-imports-goto-end ()
88-
"Skip a bunch of consequtive import lines."
88+
"Skip a bunch of consecutive import lines."
8989
(while (not (or (equal (point)
9090
(point-max))
9191
(not (haskell-navigate-imports-line))))

haskell-process.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ re-asking about the same imports."
356356
(haskell-process-set p 'evaluating v))
357357

358358
(defun haskell-process-evaluating-p (p)
359-
"Set status of evaluating to be on/off."
359+
"Get status of evaluating (on/off)."
360360
(haskell-process-get p 'evaluating))
361361

362362
(defun haskell-process-set-process (p v)

haskell-sandbox.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
(require 'haskell-session)
2222

2323
(defun haskell-sandbox-path (session)
24-
"Is there a cabal sandbox?"
24+
"If there is a haskell-session, return the path to the usual sandbox location."
2525
(concat (haskell-session-cabal-dir session)
2626
"/.cabal-sandbox"))
2727

haskell-session.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888

8989
(defun haskell-session-assign (session)
9090
"Assing current buffer to SESSION.
91-
More verbose doc string for `haskell-session-assign`
92-
This could be helpfull for temporal or auxilar buffers such as
91+
92+
This could be helpful for temporary or auxiliary buffers such as
9393
presentation mode buffers (e.g. in case when session is killed
9494
with all relevant buffers)."
9595
(set (make-local-variable 'haskell-session) session))

haskell-string.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Note: The implementation currently only supports ASCII
5858
(defun haskell-string-literal-encode (str &optional no-quotes)
5959
"Encode STR according Haskell escape rules using 7-bit ASCII representation.
6060
61-
The serialization has been implement to closely match the
61+
The serialization has been implemented to closely match the
6262
behaviour of GHC's Show instance for Strings.
6363
6464
If NO-QUOTES is non-nil, omit wrapping result in quotes.

haskell-utils.el

+5-5
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ This hook pushes value of variable `this-command' to flag variable
7979
(defun haskell-utils-async-watch-changes ()
8080
"Watch for triggered commands during async operation execution.
8181
Resets flag variable
82-
`haskell-utils-async-update-post-command-flag' to NIL. By chanhges it is
82+
`haskell-utils-async-update-post-command-flag' to NIL. By changes it is
8383
assumed that nothing happened, e.g. nothing was inserted in
8484
buffer, point was not moved, etc. To collect data `post-command-hook' is used."
8585
(setq haskell-utils-async-post-command-flag nil)
@@ -99,18 +99,18 @@ execusion."
9999
'post-command-hook #'haskell-utils-async-update-post-command-flag t)))
100100

101101
(defun haskell-utils-reduce-string (s)
102-
"Remove newlines ans extra whitespace from S.
102+
"Remove newlines and extra whitespace from S.
103103
Removes all extra whitespace at the beginning of each line leaving
104-
only single one. Then removes all newlines."
104+
only a single space. Then removes all newlines."
105105
(let ((s_ (replace-regexp-in-string "^\s+" " " s)))
106106
(replace-regexp-in-string "\n" "" s_)))
107107

108108
(defun haskell-utils-parse-repl-response (r)
109109
"Parse response R from REPL and return special kind of result.
110-
The result is response string itself with speacial property
110+
The result is the response string itself with the special property
111111
response-type added.
112112
113-
This property could be of the following:
113+
This property could be one of the following:
114114
115115
+ unknown-command
116116
+ option-missing

w3m-haddock.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ You can rebind this if you're using hsenv by adding it to your
123123
(search-forward ident)))))
124124

125125
(defun w3m-haddock-display (_url)
126-
"To be ran by w3m's display hook. This takes a normal w3m
126+
"To be run by w3m's display hook. This takes a normal w3m
127127
buffer containing hadddock documentation and reformats it to be
128128
more usable and look like a dedicated documentation page."
129129
(when (w3m-haddock-page-p)

0 commit comments

Comments
 (0)