From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: 36702@debbugs.gnu.org
Subject: bug#36702: 27.0.50; newline: don't auto-fill regardless of auto-fill-mode
Date: Wed, 17 Jul 2019 13:02:16 +0200 [thread overview]
Message-ID: <2cc4b8db-7df9-290d-08dd-044504f9c46f@easy-emacs.de> (raw)
In-Reply-To: <87ef2pj5uh.fsf@tcd.ie>
On 17.07.19 12:47, Basil L. Contovounesios wrote:
> Andreas Röhler <andreas.roehler@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?
next prev parent reply other threads:[~2019-07-17 11:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-17 10:19 bug#36702: 27.0.50; newline: don't auto-fill regardless of auto-fill-mode Andreas Röhler
2019-07-17 10:47 ` Basil L. Contovounesios
2019-07-17 11:02 ` Andreas Röhler [this message]
2019-07-17 12:21 ` Basil L. Contovounesios
2019-07-17 13:38 ` Andreas Röhler
2019-07-17 14:25 ` Basil L. Contovounesios
2019-07-17 14:38 ` Basil L. Contovounesios
2019-07-17 17:14 ` Andreas Röhler
2019-07-17 17:47 ` Basil L. Contovounesios
2019-07-17 18:26 ` Andreas Röhler
2019-07-17 19:07 ` Basil L. Contovounesios
2019-07-18 5:28 ` Andreas Röhler
2019-07-18 13:32 ` Basil L. Contovounesios
2019-09-15 14:35 ` Lars Ingebrigtsen
2019-10-07 5:03 ` Lars Ingebrigtsen
2019-10-07 18:27 ` Basil L. Contovounesios
2019-10-07 18:52 ` Eli Zaretskii
2019-10-07 23:14 ` Basil L. Contovounesios
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2cc4b8db-7df9-290d-08dd-044504f9c46f@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=36702@debbugs.gnu.org \
--cc=contovob@tcd.ie \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).