GNU bug report logs - #36702
27.0.50; newline: don't auto-fill regardless of auto-fill-mode

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Wed, 17 Jul 2019 10:18:03 UTC

Severity: minor

Tags: fixed, patch

Found in versions 27.0.50, 26.2.90

Fixed in version 27.1

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 36702 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 36702 <at> debbugs.gnu.org
Subject: Re: bug#36702: 27.0.50; newline: don't auto-fill regardless of
 auto-fill-mode
Date: Wed, 17 Jul 2019 13:02:16 +0200
On 17.07.19 12:47, Basil L. Contovounesios wrote:
> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>
>> have an auto-fill-function set in a mode.
>>
>> When testing, noticed that  this auto-fill-function was called by  `newline`
>> even if  no auto-fill-mode.
> Making auto-fill-function non-nil is effectively the same as enabling
> auto-fill-mode.
>
>> See definition of newline from simple.el, line 22:
>>
>> (auto-fill-function (if arg nil auto-fill-function))
>>
>> IMO there is also a docu bug, as this auto-filling is switched of by any arg
>>
>> whilst docu says: With ARG, insert that many newlines -- which sounds unrelated
>> if filling.
> I don't see a documentation bug, as the behaviour you see is documented
> in both docstrings and the Elisp manual.
>
> The docstring of newline says:
>
>    Calls `auto-fill-function' if the current column number is greater
>    than the value of `fill-column' and ARG is nil.

Did you try the test-function delivered?

It inserts a newline in an empty buffer.

May that condition being matched then?






This bug report was last modified 5 years and 224 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.