[Top][All Lists]

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

bug#36702: 27.0.50; newline: don't auto-fill regardless of auto-fill-mod

From: Andreas Röhler
Subject: bug#36702: 27.0.50; newline: don't auto-fill regardless of auto-fill-mode
Date: Wed, 17 Jul 2019 15:38:30 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.7.2

On 17.07.19 14:21, Basil L. Contovounesios wrote:
severity 36702 minor
found 36702 26.2.90
tags 36702 + patch

Andreas Röhler <address@hidden> writes:

On 17.07.19 12:47, Basil L. Contovounesios wrote:

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?
Ah, are you referring to the condition that the current column number be
greater than fill-column?  This condition is enforced by the default
value of normal-auto-fill-function when auto-fill-mode is enabled,
namely do-auto-fill.  A different auto-fill-function mightn't enforce

In general, there are multiple conditions guarding calls to
auto-fill-function (see e.g. internal-auto-fill and
internal_self_insert), and I'm not sure the docstring of newline is the
right place to discuss these things.

From my point of view it's not that much about the docu but about the design.

Users should not be forced to add an extra argument to prevent auto-fill when it is about a newline.

  How's the following clarification
for emacs-26 instead?

See above.

reply via email to

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