From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help 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 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37952"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 01 09:05:36 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ptNbM-0009fE-1x for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 May 2023 09:05:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptNaj-0007na-73; Mon, 01 May 2023 03:04:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptNae-0007n1-3C for help-gnu-emacs@gnu.org; Mon, 01 May 2023 03:04:55 -0400 Original-Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptNac-0006O3-E9 for help-gnu-emacs@gnu.org; Mon, 01 May 2023 03:04:51 -0400 Original-Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-50bc5197d33so1410859a12.1 for ; Mon, 01 May 2023 00:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682924688; x=1685516688; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=14PZU8IYIABV/G38sDO3P8XGooQTGOntM7ind76Necc=; b=JVvW6DztIcyQyWEnPN4hFkCc2cs9RIPbB009fvDyNV4qU6cD97ToE+irM9XKiA4B8o ImUf4cwtscPJdAWejJCYgc9r+p9EmL/h2/2tRO8Ub/jx+M61i0w3k63PVAaFq6gzHDOk d+y91K/yWlJZnGSviNdeoX39h7JGnOV7zQAHJeFoL9HZ8J7Xjn2+eWz2sQkrH6wF91VF trq89JlfLIvdQ6bKGnEWrUPVTI/7CAnrasACUWn+Qm4swgUuu5f52rOZLwJCqrj7u87E Ynhl+Q0n/qzvoocCR+RP8rEMkqsocwL4QbaLmWYVe5YAEJYQyqeMD1efmLwt82kHs23v uG3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682924688; x=1685516688; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=14PZU8IYIABV/G38sDO3P8XGooQTGOntM7ind76Necc=; b=OUYOgzpmZch0kNFd8vO5y2AvSrJ88mwqZdCw/fzsI+cgK7XIrtaAmGgLKfsypr3o2g +goO9u7SELeMwIYplOCdC58+4SHjo7dHelwTv7h2UZ+G9UvWCr9aGZLQtk92xFp4Mj8G KIRRtMa7Q8w10e2Elx6yIKrr4lJxuJcRPGPVQCkpANuczeNf/PDMoWowRyG34d+bQAZz /mS2p7tPl1OYfW6Yg70WBkBHj2D4uAw0TVAVuvw9EIVRr8DET33kP0VcSa6sESUM7ujZ gGu4p1v3zqftym6y6vYkTnagDH7KqtEHjcxfFB6PSnNEwBylW32UKn1gO0nzhFtjgecw OOcg== X-Gm-Message-State: AC+VfDwEynJ8tE82JbUy9EkD/iN0PYwfN6fZPCPYVAie0hZ5sdmexNRS K8/ae+0AlXbGGF6hhSNeir4y8GNJK84iMMA9glI= X-Google-Smtp-Source: ACHHUZ5I6Pl+Y5+OVUsvCugcPRvOw+5G6gxBbVYyNWbRvl4+DzTl70gz1fVIXvRon0NrU4U5wZrGbI4dVXSKz4WonBY= X-Received: by 2002:a17:907:36c4:b0:94a:35d1:59a with SMTP id bj4-20020a17090736c400b0094a35d1059amr12792642ejc.14.1682924688405; Mon, 01 May 2023 00:04:48 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=hongyi.zhao@gmail.com; helo=mail-ed1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143477 Archived-At: On Mon, May 1, 2023 at 2:51=E2=80=AFPM Hongyi Zhao = wrote: > > On Mon, May 1, 2023 at 2:11=E2=80=AFPM wrote: > > > > On Mon, May 01, 2023 at 10:03:30AM +0800, Hongyi Zhao wrote: > > > On Mon, May 1, 2023 at 7:31=E2=80=AFAM Hongyi Zhao wrote: > > > > > > > > On Sun, Apr 30, 2023 at 10:46=E2=80=AFPM 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 sh= ow 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: G= NOME 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 usi= ng? > > > > 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 messa= ge. Zhao