all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>,
	auctex@gnu.org, auctex-devel@gnu.org
Subject: Eglot Failed to completion for commands defined in specified loaded packages for auctex.
Date: Wed, 16 Jun 2021 11:37:39 +0800	[thread overview]
Message-ID: <CAGP6POJqZcdcFrEJNqEC2mxuiJ6QmsSY=FD7DLWzScEZO_OHmw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1887 bytes --]

On Ubuntu 20.04, I installed auctex, eglot, company, yasnippet into
Emacs through straight as shown below:

```emacs-lisp
(straight-use-package
 `( auctex :type git :host nil :repo
"https://git.savannah.gnu.org/git/auctex.git"
    :pre-build ,(pcase system-type
                (`berkeley-unix '("gmake"))
                (_ '(
                    ;("bash" "-c" "cd ~/.emacs.d/straight/repos/auctex")
                    ("./autogen.sh")
                    ("./configure" "--without-texmf-dir" "--with-lispdir=.")
                    ("make")
                    )))))
     (setq TeX-data-directory (straight--repos-dir "auctex")
           TeX-lisp-directory TeX-data-directory)

     (eval-after-load 'info
        '(add-to-list 'Info-additional-directory-list
                      (concat (straight--repos-dir "auctex") "doc")))

(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)

(use-package company)
(add-hook 'after-init-hook 'global-company-mode)

(use-package yasnippet)
(require 'yasnippet)
(yas-reload-all)
(add-hook 'prog-mode-hook #'yas-minor-mode)

(use-package eglot)

(with-eval-after-load 'tex
  (define-key TeX-mode-map [remap TeX-complete-symbol] #'completion-at-point))
```

Then I open the following tex document in Emacs

```
\documentclass{paper}
\usepackage{braket}
\begin{document}
   Some testing comes here.
\end{document}
```

and enable Eglot (M-x eglot), but I find that Eglot Failed to do the
completion for commands defined in specified loaded packages for
auctex. But TeXstudio doesn't have this problem.

See the screenshots in attachments for more detailed info.

Regards,
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China

[-- Attachment #2: texstudio.png --]
[-- Type: image/png, Size: 74108 bytes --]

[-- Attachment #3: emacs.png --]
[-- Type: image/png, Size: 72470 bytes --]

             reply	other threads:[~2021-06-16  3:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-16  3:37 Hongyi Zhao [this message]
2021-06-16  4:59 ` Eglot Failed to completion for commands defined in specified loaded packages for auctex Tassilo Horn
2021-06-16  9:00   ` Hongyi Zhao
2021-06-21 11:54   ` Basil L. Contovounesios

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGP6POJqZcdcFrEJNqEC2mxuiJ6QmsSY=FD7DLWzScEZO_OHmw@mail.gmail.com' \
    --to=hongyi.zhao@gmail.com \
    --cc=auctex-devel@gnu.org \
    --cc=auctex@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.