From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ian Dunn Newsgroups: gmane.emacs.devel Subject: Re: Smie-auto-fill =?utf-8?Q?doesn=E2=80=99t?= respect comment-auto-fill-only-comments Date: Mon, 24 Apr 2017 20:18:08 -0400 Message-ID: <877f29wda7.fsf@escafil> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1493079603 10886 195.159.176.226 (25 Apr 2017 00:20:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2017 00:20:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Emacs Developers To: Nikolai Weibull Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 25 02:19:58 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2oCz-0002hg-2v for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2017 02:19:57 +0200 Original-Received: from localhost ([::1]:46425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2oD4-0000jZ-Rf for ged-emacs-devel@m.gmane.org; Mon, 24 Apr 2017 20:20:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2oCB-0000it-Jg for emacs-devel@gnu.org; Mon, 24 Apr 2017 20:19:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2oCA-000209-NG for emacs-devel@gnu.org; Mon, 24 Apr 2017 20:19:07 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2oCA-0001zF-Ji; Mon, 24 Apr 2017 20:19:06 -0400 Original-Received: from [2604:6000:1010:176:da4d:3352:bae5:f50e] (port=55854 helo=escafil) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d2oC6-0000hZ-4N; Mon, 24 Apr 2017 20:19:02 -0400 In-Reply-To: (Nikolai Weibull's message of "Sun, 23 Apr 2017 21:31:37 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214276 Archived-At: Nikolai Weibull writes: > Hi! > > I=E2=80=99d really appreciate some input on this issue. > > Thanks! > > Nikolai > > On Thu, Apr 6, 2017 at 2:04 PM, Nikolai Weibull wrote: >> Hi! >> >> Smie-auto-fill doesn=E2=80=99t respect comment-auto-fill-only-comments. = I=E2=80=99m >> not quite sure whether it actually should, but the issue I=E2=80=99m hav= ing is >> that auto-fill is being applied in sh-mode, even though I have >> comment-auto-fill-only-comments. >> >> Nikolai > > I can confirm this. I've seen this on both sh-mode and octave-mode. To mitigate the problem, you can add the following to the mode hooks for th= ose that use SMIE (sh, octave, etc.): (setq-local auto-fill-function 'do-auto-fill) I don't know if there's something special smie-auto-fill does that this wil= l stop, but at least this will respect comment-auto-fill-only-comments. --=20 Ian Dunn