From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WOx/JxTbhGJagAAAbAwnHQ (envelope-from ) for ; Wed, 18 May 2022 13:40:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qHikJhTbhGK+AQAAG6o9tA (envelope-from ) for ; Wed, 18 May 2022 13:40:04 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3B158310E3 for ; Wed, 18 May 2022 13:40:04 +0200 (CEST) Received: from localhost ([::1]:44782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrI26-0003aV-O8 for larch@yhetil.org; Wed, 18 May 2022 07:40:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrHy3-00033g-44 for emacs-orgmode@gnu.org; Wed, 18 May 2022 07:35:51 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:40601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrHy1-00048p-Gs for emacs-orgmode@gnu.org; Wed, 18 May 2022 07:35:50 -0400 Received: by mail-pf1-x430.google.com with SMTP id i24so1871531pfa.7 for ; Wed, 18 May 2022 04:35:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=tRbf1hhflQyhVpKZVyJMMhg3GxLmI387ZI3hMnKGb60=; b=WZIUz159I/XuLfddfcSlShJJUQqzkjqkPWG6JYwMcsIrCLpy4OLUZefW9rBR6oJHdC 0bIZ04LqKHz67DE0CmuAl3lXjbbBUKo+Svt9tJNbpGVPJlYRx4/IXtt/Gspc+ZsRO9Ei 4Q2BFF1qyuG9ZF3361ZlU0cDnqrP1um5hYofVWNHG9cIawu6wlzIfvp+i4oPOR1D3ogx TuU/gNlVVUn/WnmZM3YM8dpehPibweARbq6aVOfsJJSOpqv4rfiWuZnzCXfrw9kd/s5h u/bAPKEBn5gAHficVqd/4GTEejT7fbu0inifxbMwBBwlZds03bw9Tt5khUVlbiZi8D2O Kmng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=tRbf1hhflQyhVpKZVyJMMhg3GxLmI387ZI3hMnKGb60=; b=c8AiYHQ56SBAV6uRUXYKLvppx+UT5Yn0cpazvQZVlZjQXrrvkRodQogTXSSNZI4pHF 8cPLUEBrc0P3n/XGpXKhxqyFoUFT/7EYjsiU9VvwPhlDsL0M7KYaWiWMOBWXNUB6Yliq 7Q8Jwrj2wk5iWJlXrFec/B/TPmXTEEFzqpPzXliXGrbd4EKhqfFNCCOH3hcpqpm834ff 1WQpfBMU/UP+FOSk+ex5Ba0YlMGgmSPVZK6nWlRz5DHJUblGM5AwJKye6/qtSixUf9VE XV5S7kxaIN65Lhi+v63Q0Dw/ygO1n2t2wDO6Hq7Z6F9vGjfZw1c9ssIE90mBYzEX08Sz d6lw== X-Gm-Message-State: AOAM5316j4nr7W82XASOwDX5mo07K6q5sZ+PoUGdgjfzJaHo//vjY9FL U44MIPRADspnsN5j4lt0UUE= X-Google-Smtp-Source: ABdhPJy8T9weQalEOAlbP1IUiA7IB9+DfSxjltEePhsPdlCV8uWJpu2+0gVMtUOAVFq5gIPrezSZEQ== X-Received: by 2002:a62:1c4c:0:b0:518:ded:1e19 with SMTP id c73-20020a621c4c000000b005180ded1e19mr6655976pfc.24.1652873748044; Wed, 18 May 2022 04:35:48 -0700 (PDT) Received: from localhost ([134.73.242.163]) by smtp.gmail.com with ESMTPSA id e3-20020a621e03000000b005182a19def5sm1414422pfe.208.2022.05.18.04.35.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:35:47 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: Craig STCR , emacs-orgmode@gnu.org Subject: Re: Bug in 9.5.3 org--file-default-apps In-Reply-To: <7c75b724-1ea2-5e3e-cbe6-e1895fd35bd3@gmail.com> References: <963d5f94-3fdf-a01b-bc91-edc99222cb34@gmail.com> <87czgeaxir.fsf@localhost> <6615610d-93ae-171f-b554-3f4cc79354cc@gmail.com> <87a6bhc1w6.fsf@localhost> <86692975-4d5f-6933-3227-c6b208f76862@gmail.com> <877d6lbsg5.fsf@localhost> <7c75b724-1ea2-5e3e-cbe6-e1895fd35bd3@gmail.com> Date: Wed, 18 May 2022 19:36:28 +0800 Message-ID: <877d6j2htv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=yantar92@gmail.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652874004; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tRbf1hhflQyhVpKZVyJMMhg3GxLmI387ZI3hMnKGb60=; b=eRW1pfo6M5lLW3jwsmeblGDazadVY/px754wXN2D3ik3H90N6mG8ObZqzQ7SZwxDkqpPAf 0usWYgBnlQZZ3KljzFwZLO/JYLz7xNq9KXOV14oMtQJWe64OewVnTFd5k8xdmJczJHk6Cm dj1lOMF9ikRpdp6Qavz1M3yN76cprWFkGWydu0eJlSS5WBz1HffMB7uUitw2ZzerYcg3T+ JWQGDlQMbMXcOmFmmc0T69YNkharvyVBovWHLBztAx4ZBveLVjMUU1vACUXxNR75mwiSLz xqgkAylYB4Q3N+EoEuNXvRi4rdgMN54Zst3IYppB03tRNcMf+Dy0e9KY4oiuaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652874004; a=rsa-sha256; cv=none; b=Y+KL7OkcnZ8F/FMacIssJqALtLS3LcQhnwqaFO0r5IPTeha96OTOA54N5HEcyKIbu80rJm 5UVuMhlWWVePRxruCVTgBiP/3Z0OlR62Iso0d+D2XRC/aKqNF6QwzSfn+IdBBfGjHi6AGK HwMWiDW60qyAm7buNeUXBrzre422pPWAOaWJQC/eg/UsI9TJccuSVqJPUVFiSzm+AJQNJP uSbQnh9Dg7BJpMlT/eIohBLF3s7LKNntpRTALZtP9CKRYBFskvRpcylm4SvMAKQ7dW8Ar7 A/cx69TWpWaQFVd0xPyntfmn99ppC32u0AdE6wAXnuSb0bysrfDwywZy2uqIzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=WZIUz159; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=WZIUz159; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3B158310E3 X-Spam-Score: -3.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9hua0ojUfy90 Max Nikulin writes: > On 16/05/2022 18:57, Ihor Radchenko wrote: >> Craig STCR writes: >>> But with the new form in 9.5.3, /home/user/myscript is opened by >>> /bin/less, not emacs.=C2=A0 I assume mailcap is not consulted.=C2=A0 Wh= ich does >>> not work well.=C2=A0 These behaviors are only for org.=C2=A0 Outside of= org, emacs >>> behaves correctly. >>=20 >> mailcap does get consulted. What you are seeing happens because >> mailcap.el (built-in Emacs library) is only able to recognise mime-types >> by extension. So, your file is likely recognised as "nil" mimetype thus >> making Org mode fallback to default mailcap handler, which is /bin/less >> in your case. > > Sounds reasonable. However I just have tried a [[file:~/path/to/script]]= =20 > link running Org main HEAD and the file is opened in emacs (26.3) other=20 > window. The behaviour is dependent on the OS-level mailcap defaults. What does (mailcap-mime-info nil) return for you? Best, Ihor