Skip to main content
Notice removed Draw attention by Thomas Kahle
Bounty Ended with Marco Wahl's answer chosen by Thomas Kahle
Notice added Draw attention by Thomas Kahle
Bounty Started worth 50 reputation by Thomas Kahle
explain more research on the issue.
Source Link

Since updating to Emacs 26.1. message mode was changed so that M-q does something unexpected. I have fill-column and message-fill-column both set to 72 and pressing M-q on this text:

enter image description here

turns it into this text:

enter image description here

It seems that in other modes M-q does what it usually does. In particular, if I switch this buffer to text mode I can get the expected formatting.

Update: I have researched the issue. It appears as if in message mode the function message-fill-paragraph is called. This function was slightly changed from 25.3 to 26.1. But essentially it just calls message-newline-and-reformat which actually does something else. I can't find the reason for the totally unexpected behaviour of message-fill-paragraph. It does not what it says it should do and for example seems totally unrelated to the value of message-fill-column.

Since updating to Emacs 26.1. message mode was changed so that M-q does something unexpected. I have fill-column and message-fill-column both set to 72 and pressing M-q on this text:

enter image description here

turns it into this text:

enter image description here

It seems that in other modes M-q does what it usually does. In particular, if I switch this buffer to text mode I can get the expected formatting.

Since updating to Emacs 26.1. message mode was changed so that M-q does something unexpected. I have fill-column and message-fill-column both set to 72 and pressing M-q on this text:

enter image description here

turns it into this text:

enter image description here

It seems that in other modes M-q does what it usually does. In particular, if I switch this buffer to text mode I can get the expected formatting.

Update: I have researched the issue. It appears as if in message mode the function message-fill-paragraph is called. This function was slightly changed from 25.3 to 26.1. But essentially it just calls message-newline-and-reformat which actually does something else. I can't find the reason for the totally unexpected behaviour of message-fill-paragraph. It does not what it says it should do and for example seems totally unrelated to the value of message-fill-column.

added 10 characters in body
Source Link
Stefan
  • 26.7k
  • 3
  • 52
  • 88

Since updating to Emacs 26.1. message mode was changed so that M-qM-q does something unexpected. I have fill-columnfill-column and message-fill-columnmessage-fill-column both set to 72 and pressing M-qM-q on this text:

enter image description here

turns it into this text:

enter image description here

It seems that in other modes M-qM-q does what it usually does. In particular, if I switch this buffer to text mode I can get the expected formatting.

Since updating to Emacs 26.1. message mode was changed so that M-q does something unexpected. I have fill-column and message-fill-column both set to 72 and pressing M-q on this text:

enter image description here

turns it into this text:

enter image description here

It seems that in other modes M-q does what it usually does. In particular, if I switch this buffer to text mode I can get the expected formatting.

Since updating to Emacs 26.1. message mode was changed so that M-q does something unexpected. I have fill-column and message-fill-column both set to 72 and pressing M-q on this text:

enter image description here

turns it into this text:

enter image description here

It seems that in other modes M-q does what it usually does. In particular, if I switch this buffer to text mode I can get the expected formatting.

Source Link

What is this M-q behaviour in Emacs 26.1 message mode

Since updating to Emacs 26.1. message mode was changed so that M-q does something unexpected. I have fill-column and message-fill-column both set to 72 and pressing M-q on this text:

enter image description here

turns it into this text:

enter image description here

It seems that in other modes M-q does what it usually does. In particular, if I switch this buffer to text mode I can get the expected formatting.