Skip to content

Commit 8e9c20d

Browse files
authored
Replace or quote certain single quotes in docstrings (#55)
The byte-compiler recently got more fussy about quotes.
1 parent 29b5fc8 commit 8e9c20d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

bash-completion.el

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ Created by `bash-completion-send' and printed by
309309
(defun bash-completion--type (comp)
310310
"Returns the type of COMP.
311311
312-
Completion type is 'command, if completing a command (cword = 0),
313-
'custom if there's a custom completion for the current command or
314-
'default if there isn't or if the completion hasn't been
312+
Completion type is `command', if completing a command (cword = 0),
313+
`custom' if there's a custom completion for the current command or
314+
`default' if there isn't or if the completion hasn't been
315315
customized, usually by `bash-completion--customize'."
316316
(cond
317317
((zerop (bash-completion--cword comp)) 'command)
@@ -324,7 +324,7 @@ customized, usually by `bash-completion--customize'."
324324
The option can be:
325325
- set globally, by setting `bash-completion-nospace' to t
326326
- set for a customized completion, in bash, with
327-
'-o' 'nospace'."
327+
\"-o nospace\"."
328328
(let ((cell))
329329
(cond
330330
(bash-completion-nospace t) ; set globally
@@ -458,10 +458,10 @@ This function is convenient, but it might not be the best way of enabling
458458
bash completion in your .emacs file because it forces you to load the module
459459
before it is needed. For an autoload version, add:
460460
461-
(autoload 'bash-completion-dynamic-complete \"bash-completion\"
461+
(autoload \\='bash-completion-dynamic-complete \"bash-completion\"
462462
\"BASH completion hook\")
463-
(add-hook 'shell-dynamic-complete-functions
464-
'bash-completion-dynamic-complete)"
463+
(add-hook \\='shell-dynamic-complete-functions
464+
\\='bash-completion-dynamic-complete)"
465465
(add-hook 'shell-dynamic-complete-functions
466466
'bash-completion-dynamic-complete))
467467

@@ -708,7 +708,7 @@ This method returns a list of tokens found between START and END,
708708
ordered by position. Tokens contain a string and a range.
709709
710710
The string in a token is an unescaped version of the token. For
711-
example, if the token is 'hello world', the string contains
711+
example, if the token is \\='hello world\\=', the string contains
712712
\"hello world\", without the quotes. It can be accessed using
713713
`bash-completion-tokenize-get-str'. It can be modified using
714714
`bash-completion-tokenize-append-str'.
@@ -724,7 +724,7 @@ set using `bash-completion-tokenize-set-end'.
724724
725725
Tokens should always be accessed using the functions specified above,
726726
never directly as they're likely to change as this code evolves.
727-
The current format of a token is '(string . (start . end))."
727+
The current format of a token is \\='(string . (start . end))."
728728
(let ((tokens nil)
729729
(bash-completion-wordbreaks
730730
(mapconcat 'char-to-string
@@ -1489,7 +1489,7 @@ TIMEOUT is the timeout value for this operation, if nil the value of
14891489
`bash-completion-process-timeout' is used.
14901490
14911491
DEBUG-CONTEXT, if specified, is appended to the debug info under
1492-
the key 'debug-context.
1492+
the key `debug-context'.
14931493
14941494
Once this command has run without errors, you will find the
14951495
result of the command in the bash completion process buffer or in

0 commit comments

Comments
 (0)