help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs will show the scratch window instead of the tex document windo


From: Hongyi Zhao
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 15:04:36 +0800

On Mon, May 1, 2023 at 2:51 PM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> On Mon, May 1, 2023 at 2:11 PM <tomas@tuxteam.de> wrote:
> >
> > On Mon, May 01, 2023 at 10:03:30AM +0800, Hongyi Zhao wrote:
> > > On Mon, May 1, 2023 at 7:31 AM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> > > >
> > > > On Sun, Apr 30, 2023 at 10:46 PM <tomas@tuxteam.de> wrote:
> > > > >
> > > > > On Sun, Apr 30, 2023 at 10:36:17PM +0800, Hongyi Zhao wrote:
> > > > > > Hi here,
> > > > > >
> > > > > > When I double-click on a TeX document to open it, Emacs will show 
> > > > > > the
> > > > > > scratch window instead of the TeX document window [...]
> >
> > > > > What OS/desktop environment are you using?
> > > >
> > > > $ inxi -S
> > > > System:
> > > >   Host: X10DAi Kernel: 5.19.0-21-generic x86_64 bits: 64 Desktop: GNOME 
> > > > 43.0
> > > >     Distro: Ubuntu 22.10 (Kinetic Kudu)
> >
> > So it's GNOME, I see. Sorry to say that I lost track of GNOME years
> > ago, so I'm not that much of an expert...
>
> So, what is your favorite desktop environment? What are you currently using?
>
> > > A very strange thing is that if I double-click on a very simple tex
> > > file, this issue does not occur, as shown in the attached screenshot:
> >
> > This is strange indeed. I guess that there is a context menu
> > (perhaps right-clicking on the file) which offers you "open
> > with..." or similar. What happens then?
>
> The default application has been set to Emacs, as shown in the attachment.

Another important clue, when the problem occurs, I noticed the
following in the *Messages* buffer:

     font-lock-compile-keywords: Font-lock trying to use keywords
before setting them up

On the other hand, the correct open TeX file didn't trigger the above message.

Zhao



reply via email to

[Prev in Thread] Current Thread [Next in Thread]