@@ -100,7 +100,7 @@ This affects the position of the documentation when
100
100
101
101
(defcustom lsp-ui-doc-alignment 'frame
102
102
" How to align the doc.
103
- This only takes effect when `lsp-ui-doc-position' is ' top or ' bottom."
103
+ This only takes effect when `lsp-ui-doc-position' is ` top or ` bottom."
104
104
:type '(choice (const :tag " Frame" frame)
105
105
(const :tag " Window" window))
106
106
:group 'lsp-ui-doc )
@@ -182,31 +182,31 @@ Only the `background' is used in this face."
182
182
:group 'lsp-ui-doc )
183
183
184
184
(defvar lsp-ui-doc-frame-parameters
185
- '((left . -1 )
186
- (no-focus-on-map . t )
187
- (min-width . 0 )
188
- (width . 0 )
189
- (min-height . 0 )
190
- (height . 0 )
191
- (internal-border-width . 1 )
192
- (vertical-scroll-bars . nil )
193
- (horizontal-scroll-bars . nil )
194
- (right-fringe . 0 )
195
- (menu-bar-lines . 0 )
196
- (tool-bar-lines . 0 )
197
- (tab-bar-lines . 0 )
185
+ '((left . -1 )
186
+ (no-focus-on-map . t )
187
+ (min-width . 0 )
188
+ (width . 0 )
189
+ (min-height . 0 )
190
+ (height . 0 )
191
+ (internal-border-width . 1 )
192
+ (vertical-scroll-bars . nil )
193
+ (horizontal-scroll-bars . nil )
194
+ (right-fringe . 0 )
195
+ (menu-bar-lines . 0 )
196
+ (tool-bar-lines . 0 )
197
+ (tab-bar-lines . 0 )
198
198
(tab-bar-lines-keep-state . 0 )
199
- (line-spacing . 0 )
200
- (unsplittable . t )
201
- (undecorated . t )
202
- (top . -1 )
203
- (visibility . nil )
204
- (mouse-wheel-frame . nil )
205
- (no-other-frame . t )
199
+ (line-spacing . 0 )
200
+ (unsplittable . t )
201
+ (undecorated . t )
202
+ (top . -1 )
203
+ (visibility . nil )
204
+ (mouse-wheel-frame . nil )
205
+ (no-other-frame . t )
206
206
(inhibit-double-buffering . t )
207
- (drag-internal-border . t )
208
- (no-special-glyphs . t )
209
- (desktop-dont-save . t ))
207
+ (drag-internal-border . t )
208
+ (no-special-glyphs . t )
209
+ (desktop-dont-save . t ))
210
210
" Frame parameters used to create the frame." )
211
211
212
212
(defvar lsp-ui-doc-render-function nil
@@ -248,7 +248,8 @@ Because some variables are buffer local.")
248
248
" Non-nil when the current document should ask to hide after next command." )
249
249
250
250
251
- (defconst lsp-ui-doc--buffer-prefix " *lsp-ui-doc-" )
251
+ (defconst lsp-ui-doc--buffer-prefix " *lsp-ui-doc-"
252
+ " LSP UI doc prefix." )
252
253
253
254
(defmacro lsp-ui-doc--with-buffer (&rest body )
254
255
" Execute BODY in the lsp-ui-doc buffer."
@@ -260,7 +261,6 @@ Because some variables are buffer local.")
260
261
(setq lsp-ui-doc--parent-vars parent-vars)
261
262
(prog1 (let ((buffer-read-only nil )
262
263
(inhibit-modification-hooks t )
263
- (inhibit-point-motion-hooks t )
264
264
(inhibit-redisplay t ))
265
265
,@body )
266
266
(setq buffer-read-only t )
@@ -904,15 +904,15 @@ HEIGHT is the documentation number of lines."
904
904
(run-hook-with-args 'lsp-ui-doc-frame-hook frame window)
905
905
(when lsp-ui-doc-use-webkit
906
906
(define-key (current-global-map ) [xwidget-event]
907
- (lambda ()
908
- (interactive )
909
- (let ((xwidget-event-type (nth 1 last-input-event)))
910
- ; ; (when (eq xwidget-event-type 'load-changed)
911
- ; ; (lsp-ui-doc--move-frame (lsp-ui-doc--get-frame)))
912
- (when (eq xwidget-event-type 'javascript-callback )
913
- (let ((proc (nth 3 last-input-event))
914
- (arg (nth 4 last-input-event)))
915
- (funcall proc arg))))))
907
+ (lambda ()
908
+ (interactive )
909
+ (let ((xwidget-event-type (nth 1 last-input-event)))
910
+ ; ; (when (eq xwidget-event-type 'load-changed)
911
+ ; ; (lsp-ui-doc--move-frame (lsp-ui-doc--get-frame)))
912
+ (when (eq xwidget-event-type 'javascript-callback )
913
+ (let ((proc (nth 3 last-input-event))
914
+ (arg (nth 4 last-input-event)))
915
+ (funcall proc arg))))))
916
916
(lsp-ui-doc--webkit-run-xwidget))
917
917
frame))
918
918
0 commit comments