unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36702: 27.0.50; newline: don't auto-fill regardless of auto-fill-mode
@ 2019-07-17 10:19 Andreas Röhler
  2019-07-17 10:47 ` Basil L. Contovounesios
  0 siblings, 1 reply; 18+ messages in thread
From: Andreas Röhler @ 2019-07-17 10:19 UTC (permalink / raw)
  To: 36702

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






^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-10-07 23:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).