]> git.eshelyaron.com Git - emacs.git/commit
Don't let m-x fill-paragraph break didchange
authorJoão Távora <joaotavora@gmail.com>
Mon, 14 Dec 2020 17:08:26 +0000 (17:08 +0000)
committerJoão Távora <joaotavora@gmail.com>
Mon, 14 Dec 2020 21:05:42 +0000 (21:05 +0000)
commite609841f6f987698e41e362b397c0130fa4103e5
treeac68406c9a7f56df19f0e7b31f0db4ce0b4f690f
parent5646b874b2f340cd159429cd141df9f68e0e12be
Don't let m-x fill-paragraph break didchange

M-x fill-paragraph represents some paragraph-fillling changes very
summarily.  Filling

    1 // foo
    2 bar

Into

    1 // foo bar

Only makes two changes: a deletion of the "// " and a replacement of a
newline with a space character.  The second change fooled Eglot's fix
for https://github.com/joaotavora/eglot/issues/259, by making a change similar to the one it is made to detect
and correct.  That fix should taget things that happen on the same
line, this not being one of those things.

* eglot.el (eglot--after-change): Only apply fix to https://github.com/joaotavora/eglot/issues/259 if
case-fiddling happens on same line.

GitHub-reference: fix https://github.com/joaotavora/eglot/issues/367
lisp/progmodes/eglot.el