mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
fix(completion/copilot): resolve startup error in Emacs 30.x
Use of the deprecated position function seems to raise a error in Emacs 30.x. Hence use the newer cl-position function which replaced it.
This commit is contained in:
@@ -61,8 +61,9 @@
|
||||
(with-eval-after-load 'company
|
||||
;; Use company popup even when there's only one result
|
||||
(when (member 'company-preview-if-just-one-frontend company-frontends)
|
||||
(require 'cl-seq)
|
||||
(delq 'company-preview-if-just-one-frontend company-frontends)
|
||||
(setf (nth (position 'company-pseudo-tooltip-unless-just-one-frontend
|
||||
(setf (nth (cl-position 'company-pseudo-tooltip-unless-just-one-frontend
|
||||
company-frontends)
|
||||
company-frontends)
|
||||
'company-pseudo-tooltip-frontend))))
|
||||
|
||||
Reference in New Issue
Block a user