`(defun ,ablsym ,(if localp `(&optional ,arg) '())
,(erc--fill-module-docstring
(if val "Enable" "Disable")
- " ERC " (symbol-name name) " mode."
+ " ERC " (symbol-name name) " mode" (and localp " locally") "."
(when localp
(concat "\nWhen called interactively,"
" do so in all buffers for the current connection.")))
`(progn
(define-minor-mode
,mode
- ,(erc--fill-module-docstring (format "Toggle ERC %s mode.
-With a prefix argument ARG, enable %s if ARG is positive,
+ ,(erc--fill-module-docstring (format "Toggle ERC %s mode%s.
+If called interactively, enable `%s' if ARG is positive,
and disable it otherwise. If called from Lisp, enable the mode
if ARG is omitted or nil.
-\n%s" name name doc))
+\n%s" name (if local-p " locally" "") mode doc))
:global ,(not local-p)
:group (erc--find-group ',name ,(and alias (list 'quote alias)))
,@(unless local-p `(:require ',(erc--find-feature name alias)))
(define-minor-mode erc-mname-mode
"Toggle ERC mname mode.
-With a prefix argument ARG, enable mname if ARG is positive, and
-disable it otherwise. If called from Lisp, enable the mode if
-ARG is omitted or nil.
+If called interactively, enable `erc-mname-mode' if ARG is
+positive, and disable it otherwise. If called from Lisp, enable
+the mode if ARG is omitted or nil.
Some docstring."
:global t
(should (equal got
`(progn
(define-minor-mode erc-mname-mode
- "Toggle ERC mname mode.
-With a prefix argument ARG, enable mname if ARG is positive, and
-disable it otherwise. If called from Lisp, enable the mode if
-ARG is omitted or nil.
+ "Toggle ERC mname mode locally.
+If called interactively, enable `erc-mname-mode' if ARG is
+positive, and disable it otherwise. If called from Lisp, enable
+the mode if ARG is omitted or nil.
Some docstring."
:global nil
(erc-mname-disable))))
(defun erc-mname-enable (&optional ,arg-en)
- "Enable ERC mname mode.
+ "Enable ERC mname mode locally.
When called interactively, do so in all buffers for the current
connection."
(interactive "p")
(ignore a) (ignore b))))
(defun erc-mname-disable (&optional ,arg-dis)
- "Disable ERC mname mode.
+ "Disable ERC mname mode locally.
When called interactively, do so in all buffers for the current
connection."
(interactive "p")