; Fix doc string in ERC's module-activation commands
* lisp/erc/erc-common.el (erc--assemble-toggle): Previously, the doc string implied that a prefix argument was necessary to achieve connection-wide effects, which might lead a person to think the interactive code should be an uppercase "P". * test/lisp/erc/erc-tests.el (define-erc-module--local): Update expected result of code-gen.
This commit is contained in:
parent
5a9263a872
commit
173e02f4eb
2 changed files with 4 additions and 3 deletions
|
@ -130,7 +130,8 @@ canonical name.")
|
|||
(if val "Enable" "Disable")
|
||||
" ERC " (symbol-name name) " mode."
|
||||
(when localp
|
||||
"\nWith ARG, do so in all buffers for the current connection."))
|
||||
(concat "\nWhen called interactively,"
|
||||
" do so in all buffers for the current connection.")))
|
||||
(interactive ,@(when localp '("p")))
|
||||
,@(if localp
|
||||
`((when (derived-mode-p 'erc-mode)
|
||||
|
|
|
@ -1331,7 +1331,7 @@ Some docstring"
|
|||
|
||||
(defun erc-mname-enable (&optional ,arg-en)
|
||||
"Enable ERC mname mode.
|
||||
With ARG, do so in all buffers for the current connection."
|
||||
When called interactively, do so in all buffers for the current connection."
|
||||
(interactive "p")
|
||||
(when (derived-mode-p 'erc-mode)
|
||||
(if ,arg-en
|
||||
|
@ -1343,7 +1343,7 @@ With ARG, do so in all buffers for the current connection."
|
|||
|
||||
(defun erc-mname-disable (&optional ,arg-dis)
|
||||
"Disable ERC mname mode.
|
||||
With ARG, do so in all buffers for the current connection."
|
||||
When called interactively, do so in all buffers for the current connection."
|
||||
(interactive "p")
|
||||
(when (derived-mode-p 'erc-mode)
|
||||
(if ,arg-dis
|
||||
|
|
Loading…
Add table
Reference in a new issue