I use mutt
for email (outside of emacs) and set my EDITOR
to an emacsclient
invocation. Thus, mutt
spawns emacsclient
in the same terminal when I want to compose an E-mail, then catches the output file when I quit.
This buffer operates in Fundamental Server
mode. Most things are satisfactory; however, when I use fill-paragraph
on a paragraph with a semicolon in it (used as in ordinary English), it interprets the semicolon for some reason and fills badly. Thus:
This is a sentence containing enough text to overflow the fill-column; when I try to fill, it fails.
With fill-column
at 80, this should fill to:
This is a sentence containing enough text to overflow the fill-column; when I
try to fill, it fails.
Instead, it becomes:
This is a sentence containing enough text to overflow the fill-column; when I
; try to
; fill, it
; fails.
This is obviously not very useful. The same behavior occurs in text-mode
. I assume emacs is parsing the semicolon as a comment delimiter, or something of that nature; however, it's unclear to me why this should occur in either fundamental-mode
or text-mode
, which shouldn't accomodate specific programming languages.
How do I get rid of this behavior?
emacs -Q
? I openedemacs -Q
, setfill-column
to 80, didM-x fundamental-mode
, yanked your sample text, with point at the end pressedM-q
. It worked as expected. Same withtext-mode
. – Manuel Uberti Jun 01 '16 at 08:51-Q
it works correctly. This would point to a problem with my init files? – Tom Hunt Jun 01 '16 at 14:58M-q
is bound in your config, or try callingM-x fill-paragraph
explicitly to understand where the problem is. – Manuel Uberti Jun 01 '16 at 15:05fill-paragraph
still has the same issue. On a quick glance, nothing in my.emacs
should be relevant tofill-paragraph
, but I may be missing something. What sort of things influence its functionality? – Tom Hunt Jun 01 '16 at 17:51emacs -Q
. – Manuel Uberti Jun 01 '16 at 18:02C-M-c
solved the problem. – Toffomat Nov 30 '22 at 10:11