emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] org-open-file: ignores browse-url settings
@ 2015-08-29 15:37 Rasmus
  2015-09-01 15:32 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Rasmus @ 2015-08-29 15:37 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

From Emacs-devel:

     From: raman@google.com
     Subject: org-open-file: ignores browse-url settings
     Date: the 21st of August 2015 at 20:07
     Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/189056>

     Function org-open-file uses customization variable org-file-apps to
     decide how to open a file.
     Unfortunately it's also making it difficult / impossible to set it up
     so that  org files exported to HTML open in Emacs using EWW ---
     -specifically: the customization interface for org-file-apps claims to
     let you provide a custom lisp form which in principle should let one
     specify browse-url -- (admittedly convoluted ) but even that fails to
     work -- mostly because the documentation is somewhat light with
     respect to showing how one gets ones hands on the matched link.


My personal opinion would be to get rid of org-file-apps.  Opening files
correctly is the job of either Emacs or the OS.

Rasmus

-- 
. . . It begins of course with The Internet.  A Net of Peers

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

* Re: [bug] org-open-file: ignores browse-url settings
  2015-08-29 15:37 [bug] org-open-file: ignores browse-url settings Rasmus
@ 2015-09-01 15:32 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-09-01 15:32 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

Hello,

Rasmus <rasmus@gmx.us> writes:

> From Emacs-devel:
>
>      From: raman@google.com
>      Subject: org-open-file: ignores browse-url settings
>      Date: the 21st of August 2015 at 20:07
>      Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/189056>
>
>      Function org-open-file uses customization variable org-file-apps to
>      decide how to open a file.
>      Unfortunately it's also making it difficult / impossible to set it up
>      so that  org files exported to HTML open in Emacs using EWW ---

  (add-to-list 'org-file-apps '("\\.x?html?\\'" . (eww-open-file file)))

should do the trick.

>      -specifically: the customization interface for org-file-apps claims to
>      let you provide a custom lisp form which in principle should let one
>      specify browse-url -- (admittedly convoluted ) but even that fails to
>      work -- mostly because the documentation is somewhat light with
>      respect to showing how one gets ones hands on the matched link.

We can improve documentation.

> My personal opinion would be to get rid of org-file-apps.  Opening files
> correctly is the job of either Emacs or the OS.

I'm not sure about it. 

Org can divert from Emacs when it comes to what to do with files. You
may want to view it from Org but edit it from Emacs. The OS doesn't know
about Lisp.

Note that you can force `org-open-file' to open it with Emacs,
effectively ignoring `org-file-apps' altogether.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2015-09-01 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-29 15:37 [bug] org-open-file: ignores browse-url settings Rasmus
2015-09-01 15:32 ` Nicolas Goaziou

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).