bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6335: 24.0.50; doc for define-minor-mode: specify ARG


From: Stefan Monnier
Subject: bug#6335: 24.0.50; doc for define-minor-mode: specify ARG
Date: Wed, 02 Jun 2010 21:54:43 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> (cond ((integer arg) (if (> arg 0) do-foo do-fa))
>       ((consp arg) ...)
>       (arg ...)
>       (t ...))

I do not want to support this.
 
> The doc should also state clearly that the _raw prefix argument_ is used
> as ARG interactively.

It's not the case.

> Programmers can then take advantage of that fact also.  Knowing this,
> they can easily define a minor-mode command that lets users pass
> a significant value via a prefix arg.
 
And I don't want to support this either.

If people want to write functions that behave somewhat like minor modes
but with slightly different calling conventions, they can do that just
fine with `defun'.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]