From: Ian Dunn <dunni@gnu.org>
To: Nikolai Weibull <now@disu.se>
Cc: Emacs Developers <emacs-devel@gnu.org>
Subject: Re: Smie-auto-fill doesn’t respect comment-auto-fill-only-comments
Date: Mon, 24 Apr 2017 20:18:08 -0400 [thread overview]
Message-ID: <877f29wda7.fsf@escafil> (raw)
In-Reply-To: <CADdV=MtbhNBsGrT97=tE7NY9Xa1fgKQNJWxVJVMk6kOF-=ipgQ@mail.gmail.com> (Nikolai Weibull's message of "Sun, 23 Apr 2017 21:31:37 +0200")
Nikolai Weibull <now@disu.se> writes:
> Hi!
>
> I’d really appreciate some input on this issue.
>
> Thanks!
>
> Nikolai
>
> On Thu, Apr 6, 2017 at 2:04 PM, Nikolai Weibull <now@disu.se> wrote:
>> Hi!
>>
>> Smie-auto-fill doesn’t respect comment-auto-fill-only-comments. I’m
>> not quite sure whether it actually should, but the issue I’m having 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 those 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 will stop, but at least this will respect comment-auto-fill-only-comments.
--
Ian Dunn
next prev parent reply other threads:[~2017-04-25 0:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-06 12:04 Smie-auto-fill doesn’t respect comment-auto-fill-only-comments Nikolai Weibull
2017-04-23 19:31 ` Nikolai Weibull
2017-04-25 0:18 ` Ian Dunn [this message]
2017-04-30 16:52 ` Tom Tromey
2017-04-30 17:08 ` Stefan Monnier
2017-04-30 17:52 ` Stefan Monnier
2017-05-02 18:57 ` Tom Tromey
2017-05-02 19:18 ` Stefan Monnier
2017-05-03 1:14 ` Ian Dunn
2017-05-21 16:43 ` Tom Tromey
2017-05-21 21:03 ` Stefan Monnier
2017-05-22 6:24 ` Tom Tromey
2017-05-22 19:12 ` Stefan Monnier
2017-05-29 21:20 ` Tom Tromey
2017-05-30 3:25 ` Stefan Monnier
2017-08-05 20:39 ` Tom Tromey
2017-08-05 20:50 ` Stefan Monnier
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=877f29wda7.fsf@escafil \
--to=dunni@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=now@disu.se \
/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).