bug#81569: 31.0.90; easy-mmode.el: Zero seems inadvertently removed or omitted from documentation
Markus Triska <[email protected]>
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
Stefan Monnier <[email protected]> writes: x>>> Who uses zero, anyway, and why? >> Regarding this question: There are many cases in the Emacs source code >> itself where 0 is used to disable a mode, such as for example: > > I think we should fix those because I don't think we should encourage > this use. One additional point: When calling the functions interactively, then zero is also used to disable the mode, this is also well documented in easy-mmode.el at various places, like here: If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. and here: A prefix argument enables the mode if the argument is positive, and disables it otherwise. Since prefix argument 0 is easier to type than -1, please consider retaining at least the interactive use of 0. > But such C-style practice would then suggest 0 to disable something seems not specific to C in any way. For example, I also set volume to 0 to disable audio. In analogy I would expect argument 0 to disable a mode, like in interactive use. Thank you and all the best, Markus