emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* `M-x org-open-at-point` on `[[file:/path/file.hs][name]]` says: "Running less /home/path/file.hs"
@ 2022-04-06 17:26 chris
  2022-04-11 23:00 ` chris
  0 siblings, 1 reply; 2+ messages in thread
From: chris @ 2022-04-06 17:26 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]

[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` => `text/x-haskell`

```
org-file-apps is a variable defined in ‘org.el’.
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` => 9.5.2
`emacs-version` => 29.0.50

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
> (directory . emacs) in `org-file-apps' by default in the master
> branch.
> 
> Thanks for reporting this,
> 
> -- 
>  Bastien


[-- Attachment #2: Type: text/html, Size: 5551 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: `M-x org-open-at-point` on `[[file:/path/file.hs][name]]` says: "Running less /home/path/file.hs"
  2022-04-06 17:26 `M-x org-open-at-point` on `[[file:/path/file.hs][name]]` says: "Running less /home/path/file.hs" chris
@ 2022-04-11 23:00 ` chris
  0 siblings, 0 replies; 2+ messages in thread
From: chris @ 2022-04-11 23:00 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1758 bytes --]

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` => `text/x-haskell`
> 
> ```
> org-file-apps is a variable defined in ‘org.el’.
> 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` => 9.5.2
> `emacs-version` => 29.0.50

Using `https://list.orgmode.org/87y2pbv4pw.fsf@kyleam.com/T/[1]`, I've guessed that 
`(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
> > (directory . emacs) in `org-file-apps' by default in the master
> > branch.
> > 
> > Thanks for reporting this,



--------
[1] https://list.orgmode.org/87y2pbv4pw.fsf@kyleam.com/T/

[-- Attachment #2: Type: text/html, Size: 6562 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-11 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 17:26 `M-x org-open-at-point` on `[[file:/path/file.hs][name]]` says: "Running less /home/path/file.hs" chris
2022-04-11 23:00 ` chris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).