summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2023-07-20 05:02:12 -0500
committerJoão Távora <joaotavora@gmail.com>2023-07-20 05:08:18 -0500
commit7ff41bf8ed8439c949af4cdd3ae8d01c8cdf997f (patch)
treebd87ba6d79f2b0342dc72bbeab5f2c0fc7152b30 /test/lisp/emacs-lisp
parente2cc16fbd0d16e6c0ff59221af49e3d4113500cd (diff)
downloademacs-7ff41bf8ed8439c949af4cdd3ae8d01c8cdf997f.tar.gz
emacs-7ff41bf8ed8439c949af4cdd3ae8d01c8cdf997f.tar.bz2
emacs-7ff41bf8ed8439c949af4cdd3ae8d01c8cdf997f.zip
Eglot: fix textDocument/onTypeFormatting for 'newline' command
In the newline command, last-input-event is 13 (carriage return), but most, if not all, language servers that support documentOnTypeFormattingProvider expect 10 (linefeed) to be the trigger, so convert 13 to 10 for the purposes of the textDocument/onTypeFormatting request. Also make this common edit silent in the mode-line/messages. * lisp/progmodes/eglot.el (eglot--post-self-insert-hook): Convert linefeed to carriage return. (eglot-format): Pass SILENT to eglot--apply-text-edits. (eglot--apply-text-edits): Take new optional SILENT arg. * etc/EGLOT-NEWS: Mention change
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions