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:55:08 +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="29570"; 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:55:52 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 1ptU0N-0007Vp-EP for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 May 2023 15:55:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptTzx-0001R4-UR; Mon, 01 May 2023 09:55:25 -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 1ptTzw-0001Qe-Cz for help-gnu-emacs@gnu.org; Mon, 01 May 2023 09:55:24 -0400 Original-Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptTzu-000569-OI for help-gnu-emacs@gnu.org; Mon, 01 May 2023 09:55:24 -0400 Original-Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-94a34a14a54so516099866b.1 for ; Mon, 01 May 2023 06:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682949321; x=1685541321; 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=g4/uWmhezVNLa+RzBf3s/GR/lbwr8k7NAoxF2uZFm4M=; b=TzQB2xfZ5UaoPzKl/lvXeRL2EfQeIZR7w2jAONSvieyAb6Vs6g+l8LdJYXkRHMWX3y jtMibeNyhQPHC8TLhhp6KouWHZU0DBgX3fILL5G3LlKE9LGW2t5bpFzy2lx9p8lBDnFl rTfw6pXonHFk/VQfJ5VIEo1bmD3ZVmpDfSNtRqR4fC2XxmMjDyIYB5CRK/EuJTuHzlLi 5NqbEJT7XgGsZi6ohO7xFIhaLWU/eLMaIhu3Bl559F/DxeakHdriEkiLzpmKN6RLIjIm hO1zQ0Zo3kgZr2jJIl+XrHK9oWKV99VvQYbjb9hO23cZzHNquYpvPiVFkrQDlNJqGzKf m03w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682949321; x=1685541321; 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=g4/uWmhezVNLa+RzBf3s/GR/lbwr8k7NAoxF2uZFm4M=; b=bcXGsub5FsoKMcamXCDotv2dfHOzhCixXUUvXO0yWH/MKIj0wJZwMNSrC0bf89Yg8j nX3WBGBRwRwhk6rZ3VDL7TOWhwIUY50VaO9dyHBY5//26CobXCZrEZzRM3OgiZLt6Xim HM0bkts9NFhmq/Y10LNz+g0UsJmQYuM5auwYwox4vRD/lFaoxa5lK+mthQ/I6tRILFwB j3vABQCpoqp8tEjSukA3xvHWagfMv7d6rLnD122+80zk+c0D5DAI9yDJYP41zqbuPB7C v5xf76zhYltzI9ndwcPPXQMTvOrNaosI7Le6CbWJyFewrLe725+E+89HYJLs1/mWaLQJ BEcA== X-Gm-Message-State: AC+VfDx4akXlQpaENRroOE1XFQjNcnxs/EYUrnjO6T6JyUWenDwxqO2Q x+UzmRVdEol/Vh3dSbmC92FJoFs4XNfFld7cIOE3ID5T9N2MpcR7 X-Google-Smtp-Source: ACHHUZ7EyN+NmKbPn64wWKsAxhqkV/kCJOf49b0aUidJSJGBK1lqj6HKfdHukGcYM0GMCYQS0hlcX7wsp95dLY4EwGI= X-Received: by 2002:a17:906:58c3:b0:95f:bbb0:6d2d with SMTP id e3-20020a17090658c300b0095fbbb06d2dmr15761772ejs.63.1682949320732; Mon, 01 May 2023 06:55:20 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x62d.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:143491 Archived-At: On Mon, May 1, 2023 at 9:41=E2=80=AFPM wrote: > > On Mon, May 01, 2023 at 09:03:27PM +0800, Hongyi Zhao wrote: > > On Mon, May 1, 2023 at 7:38=E2=80=AFPM 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 fi= le: (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