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:01:55 +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="16252"; 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:03:09 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 1ptTBM-00040m-80 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 May 2023 15:03:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptTAi-0002BH-Ku; Mon, 01 May 2023 09:02:28 -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 1ptTAR-00025Y-FT for help-gnu-emacs@gnu.org; Mon, 01 May 2023 09:02:16 -0400 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptTAO-00088m-DG for help-gnu-emacs@gnu.org; Mon, 01 May 2023 09:02:11 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9505214c47fso509059366b.1 for ; Mon, 01 May 2023 06:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682946127; x=1685538127; 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=fh5U3VkmcDCX55pZ9QHI371W5yQ98koOeq1pY5VSrrk=; b=B3lFigSCNtFHJTJCvsxDd9qZ+K/wF8c+zdZkfKuhyNLRDBd5clvhwYjVTy+B+zG70J Yge9IXW0PXf2qVsBAJTS5uuA0Obkp4xgMn7rG4tIICyDP7m5IPRj0dnAI1kf8QfqlVK+ ghSnrqr0gujvCTrbOvY4CQ/0xXVlMxCDblwtByXQao/adPL/TieLbVcei2HLdqQWfpPs zbm6RgH0oXy9V7N76aCsy4/NoGYm6IqBXgOj2HgUW99DLDVTwCWUsGmIzVqot9pl/1p3 AU6cPc6BkNyLv1kvtoWc2lL1mA7M6ZvX3KMebCry3EM3nBYSntM0/bXsYOHjVUojXz4L c+Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682946127; x=1685538127; 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=fh5U3VkmcDCX55pZ9QHI371W5yQ98koOeq1pY5VSrrk=; b=iN4kuQ7XhSUiwxWBUekLEjkHP0qSx6jlJuv+CrOE3jnpLFxIGNhigiuTmGcPV+s8r7 4mitad96oGgLVmwAtU+xlqXuv7w+y2bksazFYOKGf4rueU+cem7LMTlYm4pZR/TpFZE8 KLxm4mBmjJZZqFADLLow8PxtcsrmKNStymgDv6WWCvvT4OaYwTJgBJMG2a9Mg9VVq8OL V5FHCd3rLS2Oo0d8jA/tfEAh5BBCgNAA2Qka3e2WBgypPdp7fBqTTKsBlAv3NmljE7t3 jO6ooUWPdJDvKZzNsyDTHKrjEsNCez51IiWjEZ7p4pICrQwiwSlUORENrdr4iHbjX4rt TbJg== X-Gm-Message-State: AC+VfDxpJgCNdTXKrsWYEiBK5QRHcBRQViPKU1wgWWMsIs10Cw+0/+iF 9OwOGYK24AQNZZusikZeZa5VLjBcr4Q8+4L4ub6/DCW4SAuPUA== X-Google-Smtp-Source: ACHHUZ5Y7dUnycG+FL4wmt1uvEdGuhstLNqFeTuZ8AZxUjNpRZMJ4pcoocd2xDRevg0PaBDXRdAyt9qySXZQuLWWT7A= X-Received: by 2002:a17:907:6e16:b0:946:f79b:e785 with SMTP id sd22-20020a1709076e1600b00946f79be785mr14258538ejc.2.1682946127505; Mon, 01 May 2023 06:02:07 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x62b.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:143487 Archived-At: On Mon, May 1, 2023 at 7:33=E2=80=AFPM wrote: > > On Mon, May 01, 2023 at 02:51:43PM +0800, Hongyi Zhao wrote: > > On Mon, May 1, 2023 at 2:11=E2=80=AFPM wrote: > > [...] > > > > 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 u= sing? > > I'm a bit exotic. No desktop environment, just a window manager > (fvwm2). I was actually quite a fan of GNOME in the early 2000s, > but by about 2008 or so it started becoming too complex for my > taste. After a short dabbling in XFCE I decided a desktop environment > is too limiting for me and I went back to a simple WM; first it > was Awesome, then (full circle) fvwm2. > > I have to do more things myself, but then I can do more things > myself, and I appreciate that :-) > > > > > 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 screensho= t: > > > > > > 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 attachme= nt. > > Hmmm. I see. Any chance finding out how Emacs is really invoked > by your desktop environment? > > What happens if you open a terminal and just enter > > emacs > > (substituting by the real file path of your > problematic file, of course) The same problem occurs. > Cheers > -- > t Zhao