Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-27 Thread Dr. Arne Babenhauserheide
Jean Louis writes: > * Dr. Arne Babenhauserheide [2022-10-27 14:23]: >> >> Jean Louis writes: >> >> > * Jean Louis [2022-10-25 15:14]: >> >> >> >> This wish request is related to Emacs EWW and Org mode. >> >> >> >> Please make EWW recognize Org file when served by WWW server. Currently

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-27 Thread Jean Louis
* Dr. Arne Babenhauserheide [2022-10-27 14:23]: > > Jean Louis writes: > > > * Jean Louis [2022-10-25 15:14]: > >> > >> This wish request is related to Emacs EWW and Org mode. > >> > >> Please make EWW recognize Org file when served by WWW server. Currently > >> it does not recognize the

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-27 Thread Dr. Arne Babenhauserheide
Jean Louis writes: > * Jean Louis [2022-10-25 15:14]: >> >> This wish request is related to Emacs EWW and Org mode. >> >> Please make EWW recognize Org file when served by WWW server. Currently >> it does not recognize the MIME type text/x-org and opens the file as >> text, it does not

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-26 Thread Jean Louis
* Jean Louis [2022-10-25 15:14]: > > This wish request is related to Emacs EWW and Org mode. > > Please make EWW recognize Org file when served by WWW server. Currently > it does not recognize the MIME type text/x-org and opens the file as > text, it does not invoke the org mode. In my opinion,

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-26 Thread Rudolf Adamkovič
Jean Louis writes: >> This should be trivial to do, I think. +1 and I say: consider contributing to EWW! I noticed that the EWW manual says PDFs are viewed inline, by default, with doc-view-mode, but this can be customized by using the mailcap (see mailcap in Emacs MIME Manual)

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-26 Thread Andreas Schwab
On Okt 26 2022, Jean Louis wrote: > If there is way to extend EWW and Emacs in such way that I can tell > EWW what to do on certain content type, just as I do with other > browsers, that would solve the problem. This is what browse-url-handlers is for. -- Andreas Schwab, SUSE Labs,

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-26 Thread Jean Louis
* Dr. Arne Babenhauserheide [2022-10-26 14:58]: > I may have misunderstood what you want. > > Do you want eww to open text/x-org files in org-mode by default, or do > you search for a way how you can modify your local eww to open > text/x-org files with org-mode? > > My worries apply to the

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-26 Thread Dr. Arne Babenhauserheide
Jean Louis writes: >> If you ask me whether I can make this work safely: This would first >> require the introduction of a safe-org-mode which strictly disables all >> features that can execute remote code or disguise unsafe operations as >> safe ones. If a user then decides to explicitly call

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-26 Thread Jean Louis
* Ag Ibragimov [2022-10-26 01:13]: > Can't you just use one of hooks (e.g., eww-after-render-hook) where you > inspect the URL and if it's .org, just change the mode? > > This should be trivial to do, I think. I need to inspect content type. Not extension. My WWW file may be of HTML content

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-26 Thread Jean Louis
Forgot this attached file, so you can see how easy it is to customize Iceweasel to open Org files, it works well. Org files are native to Emacs, I wish to open Org files by using EWW. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-26 Thread Jean Louis
* Dr. Arne Babenhauserheide [2022-10-26 01:02]: > All of the Emacs packages have some amount of implicit trust. Users are unaware what package may do, and packages are everywhere on Internet. That is not a problem that I wish to solve. > If you ask me whether I can make this work safely: This

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-25 Thread Ag Ibragimov
Can't you just use one of hooks (e.g., eww-after-render-hook) where you inspect the URL and if it's .org, just change the mode? This should be trivial to do, I think. Jean Louis writes: > This wish request is related to Emacs EWW and Org mode. > > Please make EWW recognize Org file when served

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-25 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: > This sounds dangerous. Org mode can execute untrusted code, so this > could trick people into running untrusted code with the permissions of > their Emacs. > > Links in org-mode can run shell scripts. Yes, they usually ask, but this > may be changed it a

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-25 Thread Dr. Arne Babenhauserheide
Jean Louis writes: > * Dr. Arne Babenhauserheide [2022-10-25 18:06]: >> > This wish request is related to Emacs EWW and Org mode. >> > >> > Please make EWW recognize Org file when served by WWW server. Currently >> > it does not recognize the MIME type text/x-org and opens the file as >> >

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-25 Thread Jean Louis
* Dr. Arne Babenhauserheide [2022-10-25 18:06]: > > This wish request is related to Emacs EWW and Org mode. > > > > Please make EWW recognize Org file when served by WWW server. Currently > > it does not recognize the MIME type text/x-org and opens the file as > > text, it does not invoke the org

Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-25 Thread Dr. Arne Babenhauserheide
Jean Louis writes: > This wish request is related to Emacs EWW and Org mode. > > Please make EWW recognize Org file when served by WWW server. Currently > it does not recognize the MIME type text/x-org and opens the file as > text, it does not invoke the org mode. In my opinion, it should.