[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot e65792f 18/22: Close #197: allow read-only modes
From: |
João Távora |
Subject: |
[elpa] externals/eglot e65792f 18/22: Close #197: allow read-only modes for markup rendering |
Date: |
Sat, 5 Jan 2019 09:31:05 -0500 (EST) |
branch: externals/eglot
commit e65792fc4313ee7143efc6c133c5824be4fb7db2
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Close #197: allow read-only modes for markup rendering
gfm-mode is read-only, so it must be set after the string has been
inserted in the temporary buffer.
* eglot.el (eglot--format-markup): Insert string before setting
mode.
---
eglot.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eglot.el b/eglot.el
index 2411c6a..4416e52 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1030,8 +1030,8 @@ Doubles as an indicator of snippet support."
(list (plist-get markup :value)
major-mode))))
(with-temp-buffer
- (ignore-errors (funcall mode))
- (insert string) (font-lock-ensure) (buffer-string))))
+ (insert string)
+ (ignore-errors (funcall mode)) (font-lock-ensure) (buffer-string))))
(defcustom eglot-ignored-server-capabilites (list)
"LSP server capabilities that Eglot could use, but won't.
- [elpa] externals/eglot b8a8901 09/22: Fix #187: be more careful when making xref summaries, (continued)
- [elpa] externals/eglot b8a8901 09/22: Fix #187: be more careful when making xref summaries, João Távora, 2019/01/05
- [elpa] externals/eglot 2f0e51a 13/22: Per #188: use gfm-view-mode, João Távora, 2019/01/05
- [elpa] externals/eglot b393c48 14/22: Fix previous commit where workaround had been removed, João Távora, 2019/01/05
- [elpa] externals/eglot 64da240 19/22: Fix #196: run connection hooks with proper dir-locals, João Távora, 2019/01/05
- [elpa] externals/eglot af9dcad 10/22: Take over Flymake and Eldoc completely while managing buffers, João Távora, 2019/01/05
- [elpa] externals/eglot 5b9a164 01/22: Per #180: frame lsp-mode.el comparison as historical even more evidently, João Távora, 2019/01/05
- [elpa] externals/eglot 7b0d845 17/22: Close #195: remove a hard dependency on flymake-mode, João Távora, 2019/01/05
- [elpa] externals/eglot 923cbbe 08/22: Don't make bogus responses to client/(Un)RegisterCapability, João Távora, 2019/01/05
- [elpa] externals/eglot 85711cc 11/22: * eglot.el (Package-Requires): Require jsonrpc 1.0.7., João Távora, 2019/01/05
- [elpa] externals/eglot 1e1665e 06/22: Rewrite eglot--sig-info a bit for readability, João Távora, 2019/01/05
- [elpa] externals/eglot e65792f 18/22: Close #197: allow read-only modes for markup rendering,
João Távora <=
- [elpa] externals/eglot c5dea9a 20/22: * eglot.el (eglot-workspace-configuration): Safe when listp., João Távora, 2019/01/05
- [elpa] externals/eglot 83f7f84 21/22: Appease checkdoc, João Távora, 2019/01/05
- [elpa] externals/eglot 35597d2 22/22: Handle (un)registerCapability requests via generic functions, João Távora, 2019/01/05