From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#36702: 27.0.50; newline: don't auto-fill regardless of auto-fill-mode Date: Wed, 17 Jul 2019 11:47:02 +0100 Message-ID: <87ef2pj5uh.fsf@tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="225942"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36702@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 17 12:48:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hnhTp-000wdu-QD for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2019 12:48:13 +0200 Original-Received: from localhost ([::1]:55846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnhTo-0004Sc-Mk for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2019 06:48:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59697) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnhTk-0004MW-Ej for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 06:48:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnhTi-0000u6-FB for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 06:48:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42758) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnhTf-0000sg-Ak for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 06:48:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnhTe-00016B-0o for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 06:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Jul 2019 10:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36702 X-GNU-PR-Package: emacs Original-Received: via spool by 36702-submit@debbugs.gnu.org id=B36702.15633604354165 (code B ref 36702); Wed, 17 Jul 2019 10:48:01 +0000 Original-Received: (at 36702) by debbugs.gnu.org; 17 Jul 2019 10:47:15 +0000 Original-Received: from localhost ([127.0.0.1]:51579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnhSt-000157-2o for submit@debbugs.gnu.org; Wed, 17 Jul 2019 06:47:15 -0400 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:37483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnhSp-00014s-Oo for 36702@debbugs.gnu.org; Wed, 17 Jul 2019 06:47:13 -0400 Original-Received: by mail-wr1-f46.google.com with SMTP id n9so24272166wrr.4 for <36702@debbugs.gnu.org>; Wed, 17 Jul 2019 03:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=TtGifV2WQhtW5UPyuuyTq10Wm4dhrQ8/i6XUapnlgpQ=; b=J/9dfohFL0K2oHrkdXjYQN3doLAHqF2/SCKWG2OweMVvolgFlUhKKs6KfiWd9utqEx wQSFjV4/Q3pnx+oTzhORMywco6aWmXXkSvJwykRvf9zVruMjNmNP6DNX4N+i2yXE1mNP ltZC+QhWEHRLKp18htnct9HFpHsS1caN3naIriFpSl7SO4MY4bHeL5rakldxpJVkBIA8 R/KKhEOiFU9s38DP1xkXxWNmoPOO5VyD366V4YKPTC/MYh+FJTNyO8lLlfQYuFwCZ4QD ViVN0F8QXhGOgUCKhucPkUGKNBwkwcururVVh7hJUG4N2eEvlhkQSCJD+zS43D/T1ytZ 9giw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=TtGifV2WQhtW5UPyuuyTq10Wm4dhrQ8/i6XUapnlgpQ=; b=tjMknA6XNBO1gGNcHeRdj/C1TZxb4JcHmHpoUwWUkt1SxcH59HlFfqb4AHrHgmsYL4 xzfrt12nnsbXRzQ2kDBbr+hrVTfORIXcgnVQQ3CcOlQ8hUhqFhrx1lpIzT+I8pVdIbw2 jMtZ9qd9ORjPqjOFs2TGeCQrJjBnrPcCerHEIKv5IC9UUHzyPlvdLb5lSvpvm7i4Mwah jXyfL+9A/WHV+hXUcfETm8ZYJAStaj+8fAlzLdhYjNATobGkLaOJHxXNp83/Uq2pPAUZ Eo8OeLWQ5tsxKwE+yRmdsjNzKht4z6Shh6Xh/V1NCUszDVW3qdvHbL1nxgszq1R5XYHR r3XQ== X-Gm-Message-State: APjAAAVReSODPAZSANPZoZ7dDHXUeXmlKqHYiRR2B9GEQ05Aud3I4dP3 nP4r/opQI0eCD8XkwMkp26TZmw== X-Google-Smtp-Source: APXvYqxm5uiSVrdPEo0lvAsf42YkgjRdjS2k+EL8sDgTO411XVdmev6TysR++VIcddt0fPgv8jXkEw== X-Received: by 2002:adf:f286:: with SMTP id k6mr32557666wro.320.1563360425528; Wed, 17 Jul 2019 03:47:05 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id s63sm20521833wme.17.2019.07.17.03.47.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 03:47:04 -0700 (PDT) In-Reply-To: ("Andreas =?UTF-8?Q?R=C3=B6hler?="'s message of "Wed, 17 Jul 2019 12:19:00 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163229 Archived-At: Andreas R=C3=B6hler writes: > have an auto-fill-function set in a mode. > > When testing, noticed that=C2=A0 this auto-fill-function was called by=C2= =A0 `newline` > even if=C2=A0 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 unr= elated > 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. The docstring of auto-fill-function says: It is called after self-inserting any character specified in the `auto-fill-chars' table. The docstring of self-insert-command says: After insertion, `internal-auto-fill' is called if `auto-fill-function' is non-nil and if the `auto-fill-chars' table has a non-nil value for the inserted character. So I don't see a bug here. Thanks, --=20 Basil