mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 11:23:24 +00:00
; Another doc fix in eglot.el
* lisp/progmodes/eglot.el (eglot-current-linepos-function): Another doc fix.
This commit is contained in:
parent
75c65fcc98
commit
7c552be89d
1 changed files with 6 additions and 5 deletions
|
@ -1451,12 +1451,13 @@ CONNECT-ARGS are passed as additional arguments to
|
||||||
'eglot-current-column-function 'eglot-current-linepos-function "29.1")
|
'eglot-current-column-function 'eglot-current-linepos-function "29.1")
|
||||||
|
|
||||||
(defvar eglot-current-linepos-function #'eglot-utf-16-linepos
|
(defvar eglot-current-linepos-function #'eglot-utf-16-linepos
|
||||||
"Function calculating number of code units from line beginning.
|
"Function calculating position relative to line beginning.
|
||||||
|
|
||||||
This is the inverse operation of
|
This is the inverse of `eglot-move-to-linepos-function' (which see).
|
||||||
`eglot-move-to-linepos-function' (which see). It is a function of
|
It is a function of no arguments returning the number of code units
|
||||||
no arguments returning the number of code units corresponding to
|
or bytes or codepoints corresponding to the current position of point,
|
||||||
the current position of point relative to line beginning.")
|
relative to line beginning, as expected by the function that is the
|
||||||
|
value of `eglot-move-to-linepos-function'.")
|
||||||
|
|
||||||
(defun eglot-utf-8-linepos ()
|
(defun eglot-utf-8-linepos ()
|
||||||
"Calculate number of UTF-8 bytes from line beginning."
|
"Calculate number of UTF-8 bytes from line beginning."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue