From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: 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 12:19:00 +0200 [thread overview]
Message-ID: <a964773a-7bc0-d2fc-e784-c1a505052565@easy-emacs.de> (raw)
Hi,
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.
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.
Herewith a test-command: inserts "foo" in a temp-buffer by just calling
newline
(defun auto-fill-test()
(interactive)
(let ((auto-fill-function (lambda ()(insert "foo"))))
(with-temp-buffer
(switch-to-buffer (current-buffer))
(newline))))
GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of
2019-06-04
next reply other threads:[~2019-07-17 10:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-17 10:19 Andreas Röhler [this message]
2019-07-17 10:47 ` bug#36702: 27.0.50; newline: don't auto-fill regardless of auto-fill-mode Basil L. Contovounesios
2019-07-17 11:02 ` Andreas Röhler
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=a964773a-7bc0-d2fc-e784-c1a505052565@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=36702@debbugs.gnu.org \
/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).