unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: Katsumi Yamaoka <yamaoka@jpl.org>, Tom Tromey <tom@tromey.com>,
	28003@debbugs.gnu.org
Subject: bug#28003: 26.0.50; Auto fill broken in Message mode
Date: Wed, 09 Aug 2017 06:37:42 -0600	[thread overview]
Message-ID: <8760dwx6g9.fsf@pokyo> (raw)
In-Reply-To: <87valxxglm.fsf@rosalinde> (Stephen Berman's message of "Wed, 09 Aug 2017 10:58:29 +0200")

>>>>> "Stephen" == Stephen Berman <stephen.berman@gmx.net> writes:

Stephen> On Wed, 09 Aug 2017 12:33:01 +0900 Katsumi Yamaoka <yamaoka@jpl.org> wrote:
>> On Mon, 07 Aug 2017 21:56:42 +0200, Stephen Berman wrote:
>>> This change:
>> [...]
>>> broke auto filling in Message mode; the breakage is due specifically to
>>> this change in comment-indent-new-line:
>> 
>> This will probably be no more than a workaround, though.
>> 
>> --- message.el~	2017-08-08 22:08:28.694840400 +0000
>> +++ message.el	2017-08-09 03:30:33.407170200 +0000
>> @@ -3451,7 +3451,7 @@
>> (defun message-do-auto-fill ()
>> "Like `do-auto-fill', but don't fill in message header."
>> (unless (message-point-in-header-p)
>> -    (do-auto-fill)))
>> +    (let ((comment-start nil)) (do-auto-fill))))
>> 
>> (defun message-insert-signature (&optional force)
>> "Insert a signature.  See documentation for variable `message-signature'."

Stephen> This change doesn't fix the problem.  I don't know what the motivation
Stephen> for the change that caused this problem was, so I don't know how to fix
Stephen> it; cc'ing Tom Tromey, who made the change.

I've been discussing this off-list with another person who ran into this
problem, but I haven't managed to reproduce it myself.

I suspect the newcomment.el change is incorrect and should be reverted.
Could you try that?  The other changes should, I think, remain in place though.

The basic idea of my patch is to make comment-auto-fill-only-comments
work properly.  Without it, setting comment-auto-fill-only-comments and
enabling auto-fill in js-mode will cause auto-filling even when typing a
long line of code, which is clearly incorrect.

thanks,
Tom





  reply	other threads:[~2017-08-09 12:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-07 19:56 bug#28003: 26.0.50; Auto fill broken in Message mode Stephen Berman
2017-08-09  3:33 ` Katsumi Yamaoka
2017-08-09  8:58   ` Stephen Berman
2017-08-09 12:37     ` Tom Tromey [this message]
2017-08-09 13:04       ` Stephen Berman
2017-08-09 14:54         ` Stephen Berman
2017-08-09 15:41           ` Stephen Berman
2017-08-09 22:08             ` Tom Tromey
2017-08-09 23:06               ` Katsumi Yamaoka
2017-08-10  8:07                 ` Stephen Berman
2017-08-27 16:55 ` bug#28003: done Tom Tromey

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=8760dwx6g9.fsf@pokyo \
    --to=tom@tromey.com \
    --cc=28003@debbugs.gnu.org \
    --cc=stephen.berman@gmx.net \
    --cc=yamaoka@jpl.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).