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 21:03:27 +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="27324"; 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 15:05:13 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 1ptTDM-0006pR-6P for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 May 2023 15:05:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptTD3-0002Vb-AL; Mon, 01 May 2023 09:04:53 -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 1ptTC4-0002Pf-Eg for help-gnu-emacs@gnu.org; Mon, 01 May 2023 09:03:57 -0400 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptTBu-0000N8-Cc for help-gnu-emacs@gnu.org; Mon, 01 May 2023 09:03:49 -0400 Original-Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5083bd8e226so3796709a12.3 for ; Mon, 01 May 2023 06:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682946219; x=1685538219; 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=KdTH/F0JeHcbGsvWDRDPuOF5TXI1oiYD7VVWj8ss1os=; b=DFUp1hxOhlI8hFmPZOwghw37n0Mx3TchM2OD1RVJfD2MMhacj7pCSq770+faRLJO32 UWjRo3sKMcnozhCQ3IG8FwFYBCB0nBOUoHwtWC1lL23Qe0woV5xGXEOBRNjXj0+VBepF OQ24aRkmDYA9/eHRxZcFHNtfRq64FyTExLapLn0DpyNEjDCgyn5Ni2c6Nv+HoPORrEDu vxNvE4IsLF8vM6MDHAmwYaBxQBQHL9O8IlbDmwV82aus2E3VvUkNGYwribU25nZ1HpeR EtY8T0sRuroWD9kiOjSqjv/xvLp4Y9CDEpgdj9cMTRfsmgz/0TmqN9RQtBd7zYQYDFTC kJTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682946219; x=1685538219; 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=KdTH/F0JeHcbGsvWDRDPuOF5TXI1oiYD7VVWj8ss1os=; b=l7omKLljSAcgAOEs0kTrv19GQcA0utzI4XjoRawE3fMgmm+TcTAt7Z3whkzTCSE+Gs zean36D+Nbx//qRkzp6Y1V8j5Qzc2uuSIK4FSBsx5sLhvA0WAZ1lGROUy3EhYYw8yV3e CN+Wv/zRyoHXMkoIT467v7kmFs+2cbSs4rGEmcxoa83jQZ0vVepvp8HSonG6LBTiTLnY qaBKhhhXLODRQlm4ZaP4hSXNK+LK+Yr4+C1JCcKAJQVI/HJ5pGHtZBfo52BUQHDsD8uc v5A5//kpguza1/rUNvh4VQJy60TxnaqIt8pmZ3qanY9nQG4qGWsGFSo7Ucw3DCvVPJp6 y5Wg== X-Gm-Message-State: AC+VfDx8SaCcPYf8hS4bq4fstAj3r5zZj9lCll47HsT1fL91qk/xK1ui mwL6VmVIqkqPq70JuoiJ4aOzQRbvDKlrFcQyZeGnY522/rq6rOOB X-Google-Smtp-Source: ACHHUZ4OepnF124HI0nkdCNASnTgIcxwCnEuXcP+dnLEpH5DEuxPwolLMEdvb0iEzSoD7HrxTboZG6LvMzdtrcLYun0= X-Received: by 2002:aa7:c458:0:b0:506:86aa:78ed with SMTP id n24-20020aa7c458000000b0050686aa78edmr5761961edr.20.1682946218692; Mon, 01 May 2023 06:03:38 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=hongyi.zhao@gmail.com; helo=mail-ed1-x536.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:143488 Archived-At: On Mon, May 1, 2023 at 7:38=E2=80=AFPM wrote: > > On Mon, May 01, 2023 at 03:04:36PM +0800, Hongyi Zhao wrote: > > [...] > > > 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 m= essage. > > I don't even know what that message means: hopefully someone more > expert in Emacs things can tell us. On the other hand, I can't > imagine that this thing causes the file not being loaded. > > What happens when you click on the complex TeX file and then list > the buffers in your Emacs (C-x b)? Does the buffer appear on the > list? > > 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 Cleaning up the recentf list...done (0 removed) Using default formatter emacs-lisp For information about GNU Emacs and the GNU system, type C-h C-a. Wrote /home/werner/.emacs.d/var/recentf-save.el File mode specification error: (void-function company--backends) Applying style hooks... Loading /home/werner/Desktop/iucr/latex/.auctex-auto/my-icur.el (source)...= done Loading /home/werner/.emacs.d/straight/repos/auctex/style/fontenc.elc...don= e Loading /home/werner/.emacs.d/straight/repos/auctex/style/xspace.elc...done Loading /home/werner/.emacs.d/straight/repos/auctex/style/graphicx.elc...do= ne Loading /home/werner/.emacs.d/straight/repos/auctex/style/mathtools.elc... Loading /home/werner/.emacs.d/straight/repos/auctex/style/amsmath.elc...don= e Loading /home/werner/.emacs.d/straight/repos/auctex/style/mathtools.elc...d= one Loading /home/werner/.emacs.d/straight/repos/auctex/style/amstext.elc...don= e Loading /home/werner/.emacs.d/straight/repos/auctex/style/amsbsy.elc...done Loading /home/werner/.emacs.d/straight/repos/auctex/style/amsopn.elc...done Loading /home/werner/.emacs.d/straight/repos/auctex/style/amssymb.elc...don= e Loading /home/werner/.emacs.d/straight/repos/auctex/style/amsfonts.elc...do= ne Loading /home/werner/.emacs.d/straight/repos/auctex/style/algorithm.elc...d= one Loading /home/werner/.emacs.d/straight/repos/auctex/style/algpseudocode.elc= ...done Loading /home/werner/.emacs.d/straight/repos/auctex/style/color.elc...done Loading /home/werner/.emacs.d/straight/repos/auctex/style/array.elc...done Loading /home/werner/.emacs.d/straight/repos/auctex/style/bm.elc...done Loading /home/werner/.emacs.d/straight/repos/auctex/style/multirow.elc...do= ne font-lock-compile-keywords: Font-lock trying to use keywords before setting them up Package cl is deprecated Beginning of buffer [4 times] > Cheers > -- > t Zhao