Merge remote-tracking branch 'origin/master' into feature/android
This commit is contained in:
commit
324d66e390
4 changed files with 22 additions and 3 deletions
|
@ -338,7 +338,10 @@ the symbol `mode-line-format-right-align' is processed by
|
|||
(let* ((rest (cdr (memq 'mode-line-format-right-align
|
||||
mode-line-format)))
|
||||
(rest-str (format-mode-line `("" ,@rest)))
|
||||
(rest-width (string-pixel-width rest-str)))
|
||||
(rest-width (progn
|
||||
(add-face-text-property
|
||||
0 (length rest-str) 'mode-line t rest-str)
|
||||
(string-pixel-width rest-str))))
|
||||
(propertize " " 'display
|
||||
;; The `right' spec doesn't work on TTY frames
|
||||
;; when windows are split horizontally (bug#59620)
|
||||
|
|
|
@ -484,6 +484,12 @@ classes."
|
|||
(char-to-string (car item)))
|
||||
((eq (1+ (car item)) (cdr item))
|
||||
(string (car item) (cdr item)))
|
||||
;; Ranges that go between normal chars and raw bytes
|
||||
;; must be split to avoid being mutilated
|
||||
;; by Emacs's regexp parser.
|
||||
((<= (car item) #x3fff7f (cdr item))
|
||||
(string (car item) ?- #x3fff7f
|
||||
#x3fff80 ?- (cdr item)))
|
||||
(t
|
||||
(string (car item) ?- (cdr item)))))
|
||||
items nil)
|
||||
|
|
|
@ -3367,7 +3367,7 @@ for which LSP on-type-formatting should be requested."
|
|||
(cl-defun eglot-imenu ()
|
||||
"Eglot's `imenu-create-index-function'.
|
||||
Returns a list as described in docstring of `imenu--index-alist'."
|
||||
(unless (eglot--server-capable :textDocument/documentSymbol)
|
||||
(unless (eglot--server-capable :documentSymbolProvider)
|
||||
(cl-return-from eglot-imenu))
|
||||
(let* ((res (eglot--request (eglot--current-server-or-lose)
|
||||
:textDocument/documentSymbol
|
||||
|
|
|
@ -98,7 +98,17 @@
|
|||
"[\177Å\211\326-\377]"))
|
||||
;; Split range; \177-\377ÿ should not be optimized to \177-\377.
|
||||
(should (equal (rx (any "\177-\377" ?ÿ))
|
||||
"[\177ÿ\200-\377]")))
|
||||
"[\177ÿ\200-\377]"))
|
||||
;; Range between normal chars and raw bytes: must be split to be parsed
|
||||
;; correctly by the Emacs regexp engine.
|
||||
(should (equal
|
||||
(rx (any (0 . #x3fffff)) (any (?G . #x3fff9a)) (any (?Ü . #x3ffff2)))
|
||||
"[\0-\x3fff7f\x80-\xff][G-\x3fff7f\x80-\x9a][Ü-\x3fff7f\x80-\xf2]"))
|
||||
;; As above but with ranges in string form. For historical reasons,
|
||||
;; we special-case ASCII-to-raw ranges to exclude non-ASCII unicode.
|
||||
(should (equal
|
||||
(rx (any "\x00-\xff") (any "G-\x9a") (any "Ü-\xf2"))
|
||||
"[\0-\x7f\x80-\xff][G-\x7f\x80-\x9a][Ü-\x3fff7f\x80-\xf2]")))
|
||||
|
||||
(ert-deftest rx-any ()
|
||||
(should (equal (rx (any ?A (?C . ?D) "F-H" "J-L" "M" "N-P" "Q" "RS"))
|
||||
|
|
Loading…
Add table
Reference in a new issue