GNU bug report logs -
#25435
25.1; auto-fill-mode is enabled with 1, disabled with 0
Previous Next
Full log
View this message in rfc822 format
>On Jan 13 2017, Francesco Potortì <pot <at> gnu.org> wrote:
>> Contrary to the docs, auto-fill-mode called programmatically is enabled
>> with arg 1 and disabled with arg 0.
>
>In which way is that contradicting the docs? The only case that is
>missing is that 'toggle toggles.
In the help string, I read:
--
With a prefix argument ARG, enable Auto Fill mode if ARG is
positive, and disable it otherwise. If called from Lisp, enable
the mode if ARG is omitted or nil.
--
I read it as meaning that
(auto-fill-mode) ; turns the mode on
(auto-fill-mode nil) ; turns the mode on
while everything else turns it off, but
(auto-fill-mode 'off) ; does not turn it off
If the behaviour is the intended one, then probably the doc string
should be amended to add the word "Additionally" at the beginning of the
second sentence, like this:
With a prefix argument ARG, enable Auto Fill mode if ARG is positive,
and disable it otherwise. Additionally, if called from Lisp, enable the
mode if ARG is omitted or nil.
This bug report was last modified 7 years and 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.