Skip to content

Commit 53d2626

Browse files
authored
Merge pull request #1792 from syohex/escape-quote-in-docstring
Escape single quote in docstring
2 parents 910800d + 70a2121 commit 53d2626

12 files changed

+42
-41
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ $(AUTOLOADS): $(ELFILES)
150150
$(BATCH) \
151151
--eval '(setq make-backup-files nil)' \
152152
--eval "(setq generated-autoload-file (concat command-line-default-directory \"/\" \"$@\"))" \
153+
--eval "(require 'autoload)" \
153154
-f batch-update-autoloads "."
154155
# check if autoloads will really load
155156
$(BATCH) -l "$@"

haskell-cabal.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ OTHER-WINDOW use `find-file-other-window'."
362362

363363
(defun haskell-cabal-classify-line ()
364364
"Classify the current line's type.
365-
Possible results are 'section-header 'subsection-header 'section-data 'comment
366-
and 'empty '"
365+
Possible results are \\='section-header \\='subsection-header \\='section-data
366+
\\='comment and \\='empty"
367367
(save-excursion
368368
(beginning-of-line)
369369
(cond

haskell-completions.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ whitespace or new line, otherwise returns nil.
144144

145145
(defun haskell-completions-grab-pragma-prefix ()
146146
"Grab completion prefix for pragma completions.
147-
Returns a list of form '(prefix-start-position
147+
Returns a list of form \\='(prefix-start-position
148148
prefix-end-position prefix-value prefix-type) for pramga names
149149
such as WARNING, DEPRECATED, LANGUAGE etc. Also returns
150150
completion prefixes for options in case OPTIONS_GHC pragma, or
@@ -214,7 +214,7 @@ pragma is supported also."
214214

215215
(defun haskell-completions-grab-identifier-prefix ()
216216
"Grab completion prefix for identifier at point.
217-
Returns a list of form '(prefix-start-position
217+
Returns a list of form \\='(prefix-start-position
218218
prefix-end-position prefix-value prefix-type) for haskell
219219
identifier at point depending on result of function
220220
`haskell-ident-pos-at-point'."
@@ -265,7 +265,7 @@ identifier at point depending on result of function
265265

266266
(defun haskell-completions-grab-prefix (&optional minlen)
267267
"Grab prefix at point for possible completion.
268-
Returns a list of form '(prefix-start-position
268+
Returns a list of form \\='(prefix-start-position
269269
prefix-end-position prefix-value prefix-type) depending on
270270
situation, e.g. is it needed to complete pragma, module name,
271271
arbitrary identifier, etc. Returns nil in case it is

haskell-customize.el

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Used for locating additional package data files.")
5353
5454
Customize this variable to see the supported symbol values.
5555
56-
When set to 'auto (the default), the directory contents and
56+
When set to \\='auto (the default), the directory contents and
5757
available programs will be used to make a best guess at the
5858
process type and the project directory.
5959
@@ -86,7 +86,7 @@ The following example function arranges for all haskell process
8686
commands to be started in the current nix-shell environment:
8787
8888
(lambda (argv) (append (list \"nix-shell\" \"-I\" \".\" \"--command\" )
89-
(list (mapconcat 'identity argv \" \"))))
89+
(list (mapconcat \\='identity argv \" \"))))
9090
9191
See Info Node `(emacs)Directory Variables' for a way to set this option on
9292
a per-project basis."
@@ -367,7 +367,7 @@ read-only property."
367367
'()
368368
"Support a mapping from module to import lines.
369369
370-
E.g. '((\"Data.Map\" . \"import qualified Data.Map as M
370+
E.g. \\='((\"Data.Map\" . \"import qualified Data.Map as M
371371
import Data.Map (Map)
372372
\"))
373373
@@ -413,9 +413,9 @@ presence of a *.cabal file or stack.yaml file or something similar.")
413413
(defun haskell-build-type ()
414414
"Looks for cabal and stack spec files.
415415
When found, returns a pair (TAG . DIR)
416-
where TAG is 'cabal-project, 'cabal-sandbox. 'cabal, or 'stack;
416+
where TAG is \\='cabal-project, \\='cabal-sandbox. \\='cabal, or \\='stack;
417417
and DIR is the directory containing cabal or stack file.
418-
When none found, DIR is nil, and TAG is 'ghc"
418+
When none found, DIR is nil, and TAG is \\='ghc"
419419
;; REVIEW maybe just 'cabal is enough.
420420
(let ((cabal-project (locate-dominating-file default-directory "cabal.project"))
421421
(cabal-sandbox (locate-dominating-file default-directory "cabal.sandbox.config"))
@@ -439,8 +439,8 @@ presence of a *.cabal file or stack.yaml file or something similar.")
439439
(t (error "Could not find any installation of GHC.")))))
440440

441441
(defun haskell-process-type ()
442-
"Return `haskell-process-type', or a guess if that variable is 'auto.
443-
Converts the obsolete 'cabal-new-repl to its equivalent 'cabal-repl.
442+
"Return `haskell-process-type', or a guess if that variable is \\='auto.
443+
Converts the obsolete \\='cabal-new-repl to its equivalent \\='cabal-repl.
444444
May also set `inferior-haskell-root-dir'"
445445
(cond
446446
((eq 'cabal-new-repl haskell-process-type)

haskell-indent.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ of the regions to move."
13241324
(defun haskell-indent-align-def (p-arg type)
13251325
"Align guards or rhs within the current definition before point.
13261326
If P-ARG is t align all defs up to the mark.
1327-
TYPE is either 'guard or 'rhs."
1327+
TYPE is either \\='guard or \\='rhs."
13281328
(save-excursion
13291329
(let (start-block end-block
13301330
(maxcol (if (eq type 'rhs) haskell-indent-rhs-align-column 0))

haskell-indentation.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ For example
793793
(throw 'parse-end nil))))))
794794

795795
(defun haskell-indentation-toplevel-where ()
796-
"Parse 'where' that we may hit as a standalone in module declaration."
796+
"Parse \\='where\\=' that we may hit as a standalone in module declaration."
797797
(haskell-indentation-read-next-token)
798798

799799
(when (eq current-token 'end-tokens)
@@ -1160,13 +1160,13 @@ yet. Keep the list in ascending order."
11601160
11611161
The following symbols are used as pseudo tokens:
11621162
1163-
'layout-item: A new item in a layout list. The next token
1163+
\\='layout-item: A new item in a layout list. The next token
11641164
will be the first token from the item.
11651165
1166-
'layout-end: the end of a layout list. Next token will be
1166+
\\='layout-end: the end of a layout list. Next token will be
11671167
the first token after the layout list.
11681168
1169-
'end-tokens: back at point where we started, following-token
1169+
\\='end-tokens: back at point where we started, following-token
11701170
will be set to the next token.
11711171
11721172
Pseudo tokens are used only when implicit-layout-active is

haskell-interactive-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ SESSION, otherwise operate on the current buffer."
396396
'rear-nonsticky t)))))
397397

398398
(defun haskell-interactive-mode-goto-end-point ()
399-
"Go to the 'end' of the buffer (before the prompt)."
399+
"Go to the \\='end\\=' of the buffer (before the prompt)."
400400
(goto-char haskell-interactive-mode-prompt-start)
401401
(goto-char (line-beginning-position)))
402402

haskell-lexeme.el

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ Using this function is more efficient than matching against the
9191
regexp `haskell-lexeme-qid-or-qsym'.
9292
9393
Returns:
94-
'qid - if matched a qualified id: 'Data.Map' or 'Map'
95-
'qsym - if matched a qualified id: 'Monad.>>=' or '>>='
96-
'qprefix - if matched only modid prefix: 'Data.'
94+
\\='qid - if matched a qualified id: \\='Data.Map\\=' or \\='Map\\='
95+
\\='qsym - if matched a qualified id: \\='Monad.>>=\\=' or \\='>>=\\='
96+
\\='qprefix - if matched only modid prefix: \\='Data.\\='
9797
98-
After successful 'qid or 'qsym match (match-string 1) will return
98+
After successful \\='qid or \\='qsym match (match-string 1) will return
9999
the unqualified part (if any)."
100100
(let ((begin (point))
101101
(match-data-old (match-data)))
@@ -357,8 +357,8 @@ After successful match:
357357
"Non-nil when point is just in front of Template Haskell
358358
quaisquote literal.
359359
360-
Quasi quotes start with '[xxx|' or '[$xxx|' sequence and end with
361-
'|]'. The 'xxx' is a quoter name. There is no escaping mechanism
360+
Quasi quotes start with \\='[xxx|\\=' or \\='[$xxx|\\=' sequence and end with
361+
\\='|]\\='. The \\='xxx\\=' is a quoter name. There is no escaping mechanism
362362
provided for the ending sequence.
363363
364364
Regexp has subgroup expressions:
@@ -368,8 +368,8 @@ Regexp has subgroup expressions:
368368
(match-text 4) matches the closing vertical bar
369369
or nil if at the end of the buffer.
370370
371-
Note that this function excludes 'e', 't', 'd', 'p' as quoter
372-
names according to Template Haskell specification."
371+
Note that this function excludes \\='e\\=', \\='t\\=', \\='d'\\=, \\='p\\='
372+
as quoter names according to Template Haskell specification."
373373
(let ((match-data-old (match-data)))
374374
(if (and
375375
(looking-at (rx-to-string `(: "[" (optional "$")
@@ -445,16 +445,16 @@ type of Haskell token recognized. Use `match-string',
445445
result.
446446
447447
Possible results are:
448-
- 'special: for chars [](){}`,;
449-
- 'comment: for single line comments
450-
- 'nested-comment: for multiline comments
451-
- 'qsymid: for qualified identifiers or symbols
452-
- 'string: for strings literals
453-
- 'char: for char literals
454-
- 'number: for decimal, float, hexadecimal and octal number literals
455-
- 'template-haskell-quote: for a string of apostrophes for template
448+
- \\='special: for chars [](){}`,;
449+
- \\='comment: for single line comments
450+
- \\='nested-comment: for multiline comments
451+
- \\='qsymid: for qualified identifiers or symbols
452+
- \\='string: for strings literals
453+
- \\='char: for char literals
454+
- \\='number: for decimal, float, hexadecimal and octal number literals
455+
- \\='template-haskell-quote: for a string of apostrophes for template
456456
haskell
457-
- 'template-haskell-quasi-quote: for a string of apostrophes for template
457+
- \\='template-haskell-quasi-quote: for a string of apostrophes for template
458458
haskell
459459
460460
Note that for qualified symbols (match-string 1) returns the

haskell-load.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ When MODULE-BUFFER is non-NIL, paint error overlays."
563563
t)))))))
564564

565565
(defun haskell-interactive-show-load-message (session type module-name file-name echo th)
566-
"Show the '(Compiling|Loading) X' message."
566+
"Show the \\='(Compiling|Loading) X\\=' message."
567567
(let ((msg (concat
568568
(cl-ecase type
569569
(compiling

haskell-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ your Emacs configuration. To do that you can customize
788788
`haskell-mode-hook' or add lines to your .emacs file. For
789789
example, to enable `interactive-haskell-mode', use the following:
790790
791-
(add-hook 'haskell-mode-hook 'interactive-haskell-mode)
791+
(add-hook \\='haskell-mode-hook \\='interactive-haskell-mode)
792792
793793
Minor modes that work well with `haskell-mode':
794794

0 commit comments

Comments
 (0)