From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OLbgKzazVGJuXgEAgWs5BA (envelope-from ) for ; Tue, 12 Apr 2022 01:01:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2ItPKTazVGJ8NgAA9RJhRA (envelope-from ) for ; Tue, 12 Apr 2022 01:01:10 +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 4FC82E4B4 for ; Tue, 12 Apr 2022 01:01:09 +0200 (CEST) Received: from localhost ([::1]:41802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne31w-0007CU-00 for larch@yhetil.org; Mon, 11 Apr 2022 19:01:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne31O-0007AL-Un for emacs-orgmode@gnu.org; Mon, 11 Apr 2022 19:00:34 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:33007) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ne31N-0004Zb-4z for emacs-orgmode@gnu.org; Mon, 11 Apr 2022 19:00:34 -0400 Received: by mail-wm1-x32f.google.com with SMTP id l9-20020a05600c4f0900b0038ccd1b8642so727770wmq.0 for ; Mon, 11 Apr 2022 16:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=vrJAtkYno7x39ZbpNPONAPYfniwvTlsxSBjmNVMu+TU=; b=Jx3p+87uA+QjERmZ4F9BW9dsfR2vWjn6zZZZH2Kjs2nXXYQ2iUUjrMELHeXoEeGfL2 T9/P476uhtm/rEJ2abfl5RkjIdpcrvWel71c6Ayrp6aISq0MO4NQKUWWjSug6kw5Hy0j 5FfqLPe1iK62UMAGUItj59Xh9hintwt6sekQxK0oSqZPtp/Y7CAniKKyyNx+9JjZN3FV L/Lq+9VRjv8qyyNs1w2npnM3kVx4nz0BG+A4k2O9sXccWgsgEIrKiThCzVGFZMfDvJ/w 5Wue/J17nBQkbo0ixvi8xD2WJ9HIB5inL8k32XD4ovsDEODDTWWmTEVSR+w765yWM0Y5 FKXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vrJAtkYno7x39ZbpNPONAPYfniwvTlsxSBjmNVMu+TU=; b=VH690shJ7VBDnuRnoKJ/goCXauCoccIJadIN34yxPxj5jjXFBahw62x3VfeYEU3gNI Ffu5TCDLQJ6T8yGorrV6AkopljcE/tlvqrNF3Pqq8lPEaXvkKOT79zIqmh44P77i43Rt XvH6tW5XInapaZot2ZRy2HKAYsKkqKvuJacAbkcQkWJC2KiVP51/KrRjdxQLryM4ZqSP DXngGnK6xF61w/vs3Ei6f7U1vmcV0VGqiTbBAwyvkIf1QRxH34e0Ag3SGkIdiOTc5bj1 F/dFBcc3ek1sIlJI195kA2lZ2TdH7PRpvaZL5WdjNa+bLPFQwWAQpq1H/byGbDZZScmu 4ofA== X-Gm-Message-State: AOAM532yNNgfYQVTwcjEOkGMMcoO+n40SD0LPxxO+kiFmAK2O9F2P6yK uuK3GvvrlAc2DphdPCIosP36UbcnKdEeug== X-Google-Smtp-Source: ABdhPJwgrJNwf+Wz6aqZIu5NxqNL/WMbC3sfH++RZpcQNrwEEAZTUlu9O9OcwKorIF/X+P7aod23jw== X-Received: by 2002:a05:600c:1d26:b0:38e:ae44:9ec with SMTP id l38-20020a05600c1d2600b0038eae4409ecmr1197675wms.87.1649718030747; Mon, 11 Apr 2022 16:00:30 -0700 (PDT) Received: from pluto.localnet (alagny-552-1-17-142.w83-200.abo.wanadoo.fr. [83.200.104.142]) by smtp.gmail.com with ESMTPSA id n65-20020a1c2744000000b003862bfb509bsm684637wmn.46.2022.04.11.16.00.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Apr 2022 16:00:30 -0700 (PDT) From: chris To: emacs-orgmode@gnu.org Subject: Re: `M-x org-open-at-point` on `[[file:/path/file.hs][name]]` says: "Running less /home/path/file.hs" Date: Tue, 12 Apr 2022 01:00:29 +0200 Message-ID: <5568819.DvuYhMxLoT@pluto> In-Reply-To: <3664117.kQq0lBPeGt@pluto> References: <3664117.kQq0lBPeGt@pluto> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart5823079.lOV4Wx5bFT" Content-Transfer-Encoding: 7Bit Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=inkbottle007@gmail.com; helo=mail-wm1-x32f.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, HTML_MESSAGE=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=1649718069; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=vrJAtkYno7x39ZbpNPONAPYfniwvTlsxSBjmNVMu+TU=; b=J7sNR5G7m/MdsBsSmGmrQMp3XZb1eMhBYTBrWIH11DcY5f8c/INQNtm5Qni8sadPfzXdk0 X7yisIxtSfvvz2E5unkmy2mhCGD6uGy1LMocU0gzvTmT9rsynVzK9EBpqb52rIjvZvOKmX 04YL33i4RBSSGqaehwXXdThC91qJ3WwXQTjzJU0NjmAdH9lN+R8xSr59w4zDUBf1GZ9DYV hyCYrrKW48JJ49gWal19avs5VNNNIeMWXLM0UNHePUC6lhpusVX4Yj/SCBU6wGtyYQ/StA vkPo9jbm8ZB3OJ68XAhQ1Q/xX8SkrH3PsZrIxtlqwgvst5OfOCEnwTysSuID+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649718069; a=rsa-sha256; cv=none; b=PsAhkXZ47tANmN6BwHE3y7beHrh/PBHDj1EHDjhY0mWF1A/4uuncA7F/mK6OU1MWwWEcEW 2eRjJgghQQVEa8ipH96LN0oqHK0+fR6OcNocJGj5j8O8z5LEQG1auLGfy5Wpwdu+USbtpJ iLa4Ra54lBOtUYPWVQmR4AmkbkTR4F+8RItapXKZ9ZDtwQJ0d/nZtRZ+bQuOoUKmMQ8KoO LWCbtyqR+5j/swjw0vArVJ5L8z3fHjFpDQb6NyG2TaZXDCtCBLU8OOfd86rmsSBycq+3vU kEYJuTcau66igOYWSGYG/1+H1BBZ9YnWxe9NT6VRiCRQa4G09D8hLfz7KW3rRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Jx3p+87u; 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: -5.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Jx3p+87u; 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: 4FC82E4B4 X-Spam-Score: -5.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: gyRuXnWihUxh This is a multi-part message in MIME format. --nextPart5823079.lOV4Wx5bFT Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" On Wednesday, 6 April 2022 19:26:38 CEST chris wrote: > [was: Issue with internal directory links] >=20 > > Hi Jonathan, > >=20 > > Jonathan Fox writes: > >> Here's a link I'm using: > >>=20 > >> [[./templates][Templates]] >=20 > I have similar issue with `[[file:/path/file.hs][name]]` > `M-x org-open-at-point` says: > "Running less /home/path/file.hs" > In terminal: > `mimetype /home/path/file.hs` =3D> `text/x-haskell` >=20 > ``` > org-file-apps is a variable defined in =E2=80=98org.el=E2=80=99. > Its value is > ((auto-mode . emacs) > (directory . emacs) > ("\\.mm\\'" . default) > ("\\.x?html?\\'" . default) > ("\\.pdf\\'" . default)) > ``` >=20 > I guess I can configure it alright, but I have no idea why it is invoking > `less` in the first place. I also have no idea where the output of `less` > should be found. >=20 > `org-version` =3D> 9.5.2 > `emacs-version` =3D> 29.0.50 Using `https://list.orgmode.org/87y2pbv4pw.fsf@kyleam.com/T/[1]`, I've gues= sed that=20 `(straight-use-package 'haskell-mode)` should fix it, and it did. >=20 > Thanks, > Chris >=20 > > You can try adding (directory . emacs) to `org-file-apps' in your > > configuration like this: > >=20 > > (setq org-file-apps > >=20 > > '((auto-mode . emacs) > > =20 > > (directory . emacs) > > =09 > > ("\\.mm\\'" . default) > > ("\\.x?html?\\'" . default) > > ("\\.pdf\\'" . default))) > >=20 > > A bug related to mailcap handling has been fixed in Emacs 27, > > perhaps this is what caused the change in your setup. I added > > (directory . emacs) in `org-file-apps' by default in the master > > branch. > >=20 > > Thanks for reporting this, =2D------- [1] https://list.orgmode.org/87y2pbv4pw.fsf@kyleam.com/T/ --nextPart5823079.lOV4Wx5bFT Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8"

On Wednesday, 6 April 2022 19:26:38 CEST chris wrote:

>= ; [was: Issue with internal directory links]

>= ;

>= ; > Hi Jonathan,

>= ; >

>= ; > Jonathan Fox <jonathanfox223@gmail.com> writes:

>= ; >> Here's a link I'm using:

>= ; >>

>= ; >> [[./templates][Templates]]

>= ;

>= ; I have similar issue with `[[file:/path/file.hs][name]]`

>= ; `M-x org-open-at-point` says:

>= ; "Running less /home/path/file.hs"

>= ; In terminal:

>= ; `mimetype /home/path/file.hs` =3D> `text/x-haskell`

>= ;

>= ; ```

>= ; org-file-apps is a variable defined in =E2=80=98org.el=E2=80=99.

>= ; Its value is

>= ; ((auto-mode . emacs)

>= ;  (directory . emacs)

>= ;  ("\\.mm\\'" . default)

>= ;  ("\\.x?html?\\'" . default)

>= ;  ("\\.pdf\\'" . default))

>= ; ```

>= ;

>= ; I guess I can configure it alright, but I have no idea why it is invoking=

>= ; `less` in the first place. I also have no idea where the output of `less`=

>= ; should be found.

>= ;

>= ; `org-version` =3D> 9.5.2

>= ; `emacs-version` =3D> 29.0.50


Using `https://list.orgmode.org/87y2pbv4pw.fsf@kyleam.com/T/`, I've guessed t= hat `(straight-use-package 'haskell-mode)` should fix it, and it did.


>

>= ; Thanks,

>= ; Chris

>= ;

>= ; > You can try adding (directory . emacs) to `org-file-apps' in your

>= ; > configuration like this:

>= ; >

>= ; > (setq org-file-apps

>= ; >

>= ; >       '((auto-mode . emacs)

>= ; >      

>= ; >           (directory . = emacs)

>= ; >    

>= ; >     ("\\.mm\\'" . default)

>= ; >     ("\\.x?html?\\'" . default)

>= ; >     ("\\.pdf\\'" . default)))

>= ; >

>= ; > A bug related to mailcap handling has been fixed in Emacs 27,

>= ; > perhaps this is what caused the change in your setup.  I added<= /p>

>= ; > (directory . emacs) in `org-file-apps' by default in the master

>= ; > branch.

>= ; >

>= ; > Thanks for reporting this,



--nextPart5823079.lOV4Wx5bFT--