]> git.eshelyaron.com Git - emacs.git/commit
Eglot: protect against unintended field text motion (bug#61726)
authorJoão Távora <joaotavora@gmail.com>
Mon, 27 Feb 2023 11:29:32 +0000 (11:29 +0000)
committerJoão Távora <joaotavora@gmail.com>
Mon, 27 Feb 2023 11:36:22 +0000 (11:36 +0000)
commit3d0a6c9baa613d69d75c3b2644e033a21da5f096
treee5397522d2b9f0d21af20502392c757f4c86d206
parent647e40f4a0cf2c653d6ff6fc32116cbd2104d6ff
Eglot: protect against unintended field text motion (bug#61726)

Suggested-by: Augusto Stoffel <arstoffel@gmail.com>
* lisp/progmodes/eglot.el (eglot--bol): New helper.
(eglot-utf-8-linepos, eglot-utf-16-linepos)
(eglot-utf-32-linepos, eglot-move-to-utf-8-linepos)
(eglot-move-to-utf-16-linepos, eglot-move-to-utf-32-linepos)
(eglot-handle-notification, eglot--xref-make-match)
(eglot-completion-at-point): Use it.
lisp/progmodes/eglot.el