GNU bug report logs - #25435
25.1; auto-fill-mode is enabled with 1, disabled with 0

Previous Next

Package: emacs;

Reported by: Francesco Potortì <pot <at> gnu.org>

Date: Fri, 13 Jan 2017 11:44:01 UTC

Severity: minor

Merged with 13926, 25428, 25434

Found in versions 24.3.50, 25.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Francesco Potortì <pot <at> gnu.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 25435 <at> debbugs.gnu.org
Subject: bug#25435: 25.1; auto-fill-mode is enabled with 1, disabled with 0
Date: Fri, 13 Jan 2017 15:23:15 +0100
>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.