Skip to content

Commit

Permalink
fix python-ts-mode complete issue
Browse files Browse the repository at this point in the history
(wrong-type-argument sequencep editorconfig-set-indentation-python-mode)
  • Loading branch information
shuxiao9058 committed Feb 27, 2024
1 parent f6383e6 commit e4dd9dc
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions tabnine-util.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
(append '((latex-mode tex-indent-basic)
(nxml-mode nxml-child-indent)
(python-mode python-indent py-indent-offset python-indent-offset)
(python-indent py-indent-offset python-indent-offset)
(python-ts-mode python-indent py-indent-offset python-indent-offset)
(web-mode web-mode-markup-indent-offset web-mode-html-offset))
editorconfig-indentation-alist)
"Alist of `major-mode' to indentation map with optional fallbacks.")
Expand Down Expand Up @@ -139,24 +139,24 @@ unofficial languages IDs are prefixed with \"_\"."
"Random a UUID. This use a simple hashing of variable data.
Example of a UUID: 1df63142-a513-c850-31a3-535fc3520c3d."
(let ((str (md5 (format "%s%s%s%s%s%s%s%s%s%s"
(user-uid)
(emacs-pid)
(system-name)
(user-full-name)
(current-time)
(emacs-uptime)
(garbage-collect)
(buffer-string)
(random)
(recent-keys)))))
(user-uid)
(emacs-pid)
(system-name)
(user-full-name)
(current-time)
(emacs-uptime)
(garbage-collect)
(buffer-string)
(random)
(recent-keys)))))

(format "%s-%s-4%s-%s%s-%s"
(substring str 0 8)
(substring str 8 12)
(substring str 13 16)
(format "%x" (+ 8 (random 4)))
(substring str 17 20)
(substring str 20 32))))
(substring str 0 8)
(substring str 8 12)
(substring str 13 16)
(format "%x" (+ 8 (random 4)))
(substring str 17 20)
(substring str 20 32))))

(defmacro tabnine-util--json-serialize (params)
"Return PARAMS JSON serialized result."
Expand Down Expand Up @@ -198,17 +198,17 @@ Example of a UUID: 1df63142-a513-c850-31a3-535fc3520c3d."
(mapcar (lambda(x)
(let ((line (flycheck-error-line x))
(filename (flycheck-error-filename x))
(buffer-name (buffer-file-name))
(message (flycheck-error-message x))
(region-begin-line (when (region-active-p) (save-excursion (goto-char (region-beginning)) (line-number-at-pos))) )
(region-end-line (when (region-active-p) (save-excursion (goto-char (region-end)) (line-number-at-pos)))))
(if buffer-name
(when (equal buffer-name filename)
(if (region-active-p)
(when (and (>= line region-begin-line) (<= line region-end-line))
message)
message))
message))) flycheck-current-errors)))
(buffer-name (buffer-file-name))
(message (flycheck-error-message x))
(region-begin-line (when (region-active-p) (save-excursion (goto-char (region-beginning)) (line-number-at-pos))) )
(region-end-line (when (region-active-p) (save-excursion (goto-char (region-end)) (line-number-at-pos)))))
(if buffer-name
(when (equal buffer-name filename)
(if (region-active-p)
(when (and (>= line region-begin-line) (<= line region-end-line))
message)
message))
message))) flycheck-current-errors)))

(defun tabnine-util--markdown-codeblocks (text)
"Get codeblocks from markdown TEXT.
Expand Down

0 comments on commit e4dd9dc

Please sign in to comment.