From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: tomas@tuxteam.de
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs will show the scratch window instead of the tex document window when I double click on a tex document to open it.
Date: Mon, 1 May 2023 21:55:08 +0800 [thread overview]
Message-ID: <CAGP6POLkEBK7XeHOrcC1TSauB-igds_YOOnNhFaH=w_i=Lx2QA@mail.gmail.com> (raw)
In-Reply-To: <ZE/BdQwKjxU0TJky@tuxteam.de>
On Mon, May 1, 2023 at 9:41 PM <tomas@tuxteam.de> wrote:
>
> On Mon, May 01, 2023 at 09:03:27PM +0800, Hongyi Zhao wrote:
> > On Mon, May 1, 2023 at 7:38 PM <tomas@tuxteam.de> wrote:
>
> [...]
>
> > > That would mean that the file is loaded, but Emacs still shows you
> > > the *scratch* buffer. Otherwise, the file doesn't get loaded at
> > > all.
> > >
> > > This might give hints to find the problem.
> >
> > See the testing below:
> >
> > $ emacs my-icur.tex
> >
> > `C-x b RET` gives the following info:
> >
> >
> > Loading server...done
> > Iedit default key binding is C-;
> > Loading /home/werner/.emacs.d/var/recentf-save.el (source)...done
> [...]
>
> Now I'm confused. What we see here is a *Messages* buffer, not a buffer
> list (what I'd expect C-x b to give us). But there are some messages
> in there hinting at errors during initialization.
1. Sorry for my misunderstanding your meaning.
You let me do the `C-x b TAB`
But I do the `C-x b RET`
I confirm the file is listed in the buffer list.
2. I confirm that the culprit is the following configuration in the init file:
(use-package company-math
:hook
(LaTeX-mode . (lambda ()
(setq-local company-backends (append '(company-math-symbols-latex
company-latex-commands)
(company--backends)
))))
:config
(add-to-list 'company-backends 'company-math-symbols-unicode)
;; https://github.com/company-mode/company-mode/discussions/1253
;; (set-company-backend 'LaTeX-mode
;; 'company-math-symbols-latex 'company-latex-commands
'company-math-symbols-unicode)
)
Commented out the above configuration fixed this problem. But it
should mean that there is something wrong in my above configuration
which I still cannot figure out.
> Does your problem change if you invoke Emacs with -Q option?
>
> That is:
>
> $ emacs -Q my-icur.tex
>
> Cheers
> --
> t
Zhao
next prev parent reply other threads:[~2023-05-01 13:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-30 14:36 Emacs will show the scratch window instead of the tex document window when I double click on a tex document to open it Hongyi Zhao
2023-04-30 14:45 ` tomas
2023-04-30 23:31 ` Hongyi Zhao
2023-05-01 2:03 ` Hongyi Zhao
2023-05-01 6:11 ` tomas
2023-05-01 6:51 ` Hongyi Zhao
2023-05-01 7:04 ` Hongyi Zhao
2023-05-01 11:38 ` tomas
2023-05-01 13:03 ` Hongyi Zhao
2023-05-01 13:41 ` tomas
2023-05-01 13:55 ` Hongyi Zhao [this message]
2023-05-01 14:08 ` Hongyi Zhao
2023-05-01 15:10 ` tomas
2023-05-01 11:33 ` tomas
2023-05-01 13:01 ` Hongyi Zhao
2023-05-01 13:38 ` tomas
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='CAGP6POLkEBK7XeHOrcC1TSauB-igds_YOOnNhFaH=w_i=Lx2QA@mail.gmail.com' \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tomas@tuxteam.de \
/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.