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

2022-10-27 Thread Andreas Schwab
On Okt 26 2022, Jean Louis wrote: > With "predicate" do you mean URI scheme? When I write predicate, I mean predicate. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH] org-manual: Suggest to wait for one month and followup when reporting bugs

2022-10-27 Thread Bastien Guerry
Hi Ihor, Ihor Radchenko writes: > I think we can expose our mailing list policy a bit more in the manual. Yes, I think this is a good idea. FWIW, the next version of Woof! (on which I'm focusing right now) will sending various reminders about things to do, but making the current policy more ap

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

2022-10-27 Thread Jean Louis
* Andreas Schwab [2022-10-27 11:03]: > On Okt 26 2022, Jean Louis wrote: > > > With "predicate" do you mean URI scheme? > > When I write predicate, I mean predicate. Can that predicate understand content type? Do you have an example? -- Jean Take action in Free Software Foundation campaigns:

Re: [BUG] Fill-paragraph issue with hidden emphasis markers and composed characters

2022-10-27 Thread Ihor Radchenko
Ihor Radchenko writes: >> 4. Hit M-q (either fill-paragraph or org-fill-paragraph, both have the same >> issue) >> The first line wrongly wraps after "buggy" and leaves a big empty space >> after that, as if the greek letters were not composed. > > Confirmed. > This appears to be Emacs bug though

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

2022-10-27 Thread Dr. Arne Babenhauserheide
Tim Cross writes: > and people constantly use M-x package-install to install packages > from GNU ELPA, nonGNU ELPA and MELPA, often with this misguided belief > that these packages are being vetted by the security fairies. Yes, and no. There is still a world of a difference between "any random

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 invoke

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

2022-10-27 Thread Dr. Arne Babenhauserheide
writes: > [[PGP Signed Part:Good signature from 05C82CF57AD1DA46 tomás zerolo (moep > moep) (trust undefined) created at > 2022-10-27T06:25:44+0200 using DSA]] > On Wed, Oct 26, 2022 at 11:16:15PM +0200, Dr. Arne Babenhauserheide wrote: > > [...] > >> > That is not business of web server, HTT

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

2022-10-27 Thread Andreas Schwab
On Okt 27 2022, Jean Louis wrote: > Can that predicate understand content type? It can use whatever it needs to determine the handler. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely differen

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

2022-10-27 Thread Dr. Arne Babenhauserheide
Jean Louis writes: > * Andreas Schwab [2022-10-27 11:03]: >> On Okt 26 2022, Jean Louis wrote: >> >> > With "predicate" do you mean URI scheme? >> >> When I write predicate, I mean predicate. > > Can that predicate understand content type? A predicate is a function that returns true or false

Error on opening .orh file

2022-10-27 Thread Renato Pontefice
I tried to open a file.org, but received this error -- Warning (initialization): An error occurred while loading ‘/Users/renatopontefice/.emacs.d/init.el’: Invalid read syntax: ), 1, 0 To ensure normal operation, you should investigate and remove the cause of the error in your in

Re: Error on opening .orh file

2022-10-27 Thread Quiliro Ordóñez
El 2022-10-27 06:25, Renato Pontefice escribió: > ‘/Users/renatopontefice/.emacs.d/init.el’: Check this file. > Invalid read syntax: ), 1, 0 Probably yo have a closing parenthesis without a corresponding opening parenthis.

Re: couldn't org-table-create-with-table\.el respect hline

2022-10-27 Thread Ihor Radchenko
Uwe Brauer writes: > I start with > > > > | Example | Text| Dates| other | > |-+-+--+-| > | this| comment | <2022-01-28 vie> | nothing | > > > That is converted to > > > > +-+-+--+-+ > | Example | Text

Re: ob-clojure eval error when has comment at end of code line

2022-10-27 Thread Daniel Kraus
Hi! I had a look and apparently cider-eval returns nil when the expression is a comment, vs the string "nil" when the Clojure expression returns nil. Simply filtering nil values out seems to have fixed the issue for me. @Christopher, can you check the attached patch if this works for you? @Ihor,

Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-27 Thread Daniel Kraus
Hi! Ihor Radchenko writes: > "Christopher M. Miles" writes: >> Without this patch, it will report error "class >> java.lang.ClassCastException" from CIDER. > > Bastien, could you please take a look? I was unable to setup clojure dev > environment on my machine for testing. So, I am not able to

Re: ob-clojure eval error when has comment at end of code line

2022-10-27 Thread Max Nikulin
On 27/10/2022 19:25, Daniel Kraus wrote: - I wanted to add a test, how can I run only test-ob-clojure? See testing/README make BTEST_RE=ob-closure

Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]

2022-10-27 Thread Mati
Please provide more details on what you have tried. M-x table-insert 5 columns 5 rows 15 cell width 1 height Then enter something in first cell. press tab to go to next cell, but then message appears with C-c ’ (copy-pasted it from messages buffer) shortcut. I can edit table after pressing C-c

Error opening an .org file

2022-10-27 Thread Renato Pontefice
When I try to open a simple file in emacs, I receive this error Warning (initialization): An error occurred while loading ‘/Users/renatopontefice/.emacs.d/init.el’: Invalid read syntax: ), 1, 0 To ensure normal operation, you should investigate and remove the cause of the error in your initiali

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

2022-10-27 Thread Max Nikulin
On 27/10/2022 11:55, Jean Louis wrote: Now is clear that main problem here is that Org advertises somewhere to be "text" in MIME context, while it is not, it is by default "application" and thus unsafe, see: ... Text Media Types https://datatracker.ietf.org/doc/html/rfc6838#section-4.2.1 I d

Re: Error opening an .org file

2022-10-27 Thread tomas
On Thu, Oct 27, 2022 at 05:11:32PM +0200, Renato Pontefice wrote: > When I try to open a simple file in emacs, I receive this error > > Warning (initialization): An error occurred while loading > ‘/Users/renatopontefice/.emacs.d/init.el’: > > Invalid read syntax: ), 1, 0 I don't understand: thi

Re: Error opening an .org file

2022-10-27 Thread Renato Pontefice
> Il giorno 27 ott 2022, alle ore 18:07, to...@tuxteam.de ha scritto: > >> I’ve edited and commented all the lines of it. And The error persist. So >> (was you told)maybe the error is not of init.el >> But I’m unable to run emacs from termnal. >> How can I do? >> I’m in Mac osx 12.6.1 where do

Re: Error opening an .org file

2022-10-27 Thread Juan Manuel Macías
Renato Pontefice writes: > I’ve edited and commented all the lines of it. And The error > persist. So (was you told)maybe the error is not of init.el > But I’m unable to run emacs from termnal. > How can I do? > I’m in Mac osx 12.6.1 where do I can find emac

Re: [off-topic] E-readers and Org-Mode

2022-10-27 Thread Max Nikulin
I am impressed, but I still believe that UI optimized for e-ink may be more convenient for specific tasks involving org files than generic Emacs build for Android. Perhaps conversion of handwritten notes to text should be delegated to a laptop or a PC. On 25/10/2022 23:59, Ken Mankoff wrote: S

Re: [off-topic] E-readers and Org-Mode

2022-10-27 Thread Juan Manuel Macías
Max Nikulin writes: > I see that definitely it is possible, but I am unsure it is more > convenient than OLED or LCD tablet. 4 regimes for screen is an > indicator of some complications. Choice of Android may be a way to > avoid development of custom UI. I have not checked if it is possible > to b

Where is my init.el?

2022-10-27 Thread Renato Pontefice
To try to solve my prob on emacs on Mac osx, I’ve uninstalled and re installe emacs (after have save my init.el that have some customization). Now I would use this old init.el but I don’t know where th actual emacs looks for init.el. Can you suggest me where I can look for? TIA Renato

Re: Where is my init.el?

2022-10-27 Thread briangpowell
You can put it anywhere you like--you can even have as many as you want: $ emacs -l /somedirectory/init1.el -l /someotherdirectory/init2.el Realize the default "init.el" is actually ~/.emacs so just ensure that your init.el file(s) don't conflict with it and/or throw the "-q" switch which ignores

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

2022-10-27 Thread Jean Louis
* Max Nikulin [2022-10-27 18:40]: > On 27/10/2022 11:55, Jean Louis wrote: > > > > Now is clear that main problem here is that Org advertises somewhere > > to be "text" in MIME context, while it is not, it is by default > > "application" and thus unsafe, see: > ... > > Text Media Types > > https:

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 MIM

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

2022-10-27 Thread Jean Louis
* Max Nikulin [2022-10-27 18:41]: > Chromium is able to display text/x-org internally just as text/plain and I > like it as a way to preview and review file contents. Org file is for Emacs. It is not for Chromium. Just as you can display application/json in Chromium as text, does not make applic

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

2022-10-27 Thread Quiliro Ordóñez
El 2022-10-27 13:25, Jean Louis escribió: > But I am doing it wrong, that will correctly invoke org mode, but then > it does not return back to normal EWW work. I have tried to remember > the major mode and invoke it again. But it is not that it works. Isn't that what hooks do? Perhaps I did not

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

2022-10-27 Thread Quiliro Ordóñez
I think that this would be very useful for me. In fact, it would be a good way to make Emac work without being a tool for corporations (as Firefox is) to control user's computers (unless the user decides to allow running Babel by default). Maybe even Gemini is a good candidate to work this out.

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: bug#58774: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-27 Thread Dr. Arne Babenhauserheide
Jean Louis writes: > * Max Nikulin [2022-10-27 18:40]: >> On 27/10/2022 11:55, Jean Louis wrote: >> > >> > Now is clear that main problem here is that Org advertises somewhere >> > to be "text" in MIME context, while it is not, it is by default >> > "application" and thus unsafe, see: >> ... >

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

2022-10-27 Thread Dr. Arne Babenhauserheide
Max Nikulin writes: > How are you going to distinguish your personal files and arbitrary > files from non-trusted sources? By signing your files and maintaining > list of trusted certificates? One idea that could work well is to add an explicit allow-list trusted-sources-to-allow-unsafe-modes w

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

2022-10-27 Thread Jean Louis
* Dr. Arne Babenhauserheide [2022-10-28 01:11]: > > Max Nikulin writes: > > > How are you going to distinguish your personal files and arbitrary > > files from non-trusted sources? By signing your files and maintaining > > list of trusted certificates? > > One idea that could work well is to a

org-x11idle-exists-p with emacs --daemon

2022-10-27 Thread Julien Cubizolles
All the org-*-idle-seconds func test at some point for org-x11idle-exists-p which is defvar-ed at load time. For me, org-x11idle-exists-p is always nil at startup, but is set to true if I eval it later on. I guess it's because I'm starting Emacs in daemon mode, (as a systemd user service actual

Re: bug#58774: 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-28 01:11]: >> >> Max Nikulin writes: >> >> > How are you going to distinguish your personal files and arbitrary >> > files from non-trusted sources? By signing your files and maintaining >> > list of trusted certificates? >> >> One i

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

2022-10-27 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: > Max Nikulin writes: > >> How are you going to distinguish your personal files and arbitrary >> files from non-trusted sources? By signing your files and maintaining >> list of trusted certificates? > > One idea that could work well is to add an explicit allo

Re: [PATCH] lisp/ob-tangle.el, lisp/ob-core.el: Add strip-tangle noweb option

2022-10-27 Thread Ihor Radchenko
dzilte...@lyrion.ch writes: > From: Daniel Ziltener > > * ob-tangle.el, ob-core.el, test-ob-tangle.el, org-manual.org: Add a > "strip-tangle" noweb option to strip the noweb tags when tangling, but > keep and expand them otherwise. Thanks for the patch! If I understand correctly, you are sugges

Re: Request for feedback: ox-linuxmag

2022-10-27 Thread Ihor Radchenko
Damien Cassou writes: > Hi Ihor, > > Ihor Radchenko writes: >> I think :filter-final-output in :filters-alist will be more suitable. >> It is called at the very end and may set some let-bound value to be >> used in the ox-linuxmag-export-to-odt. > > I'm not really sure what you mean with the las

Re: org-x11idle-exists-p with emacs --daemon

2022-10-27 Thread Max Nikulin
On 28/10/2022 05:31, Julien Cubizolles wrote: For me, org-x11idle-exists-p is always nil at startup, but is set to true if I eval it later on. I guess it's because I'm starting Emacs in daemon mode, (as a systemd user service actually), and org-x11idle-exists-p relies on (eq window-system 'x) wh

[PATCH] Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-27 Thread Ihor Radchenko
Max Nikulin writes: > Consider the following source block > > >8 > #+begin_src elisp :var a=(message "%s" "pwnd") >a > #+end_src > 8< > > Open the "*Messages*" buffer (C-h e) and try to evaluate the source > block (C-c C-c). > > Actual result: > "pwnd" message appears in

Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-27 Thread Ihor Radchenko
Jean Louis writes: > * Max Nikulin [2022-10-27 06:21]: >> Expected result: >> No code from the Org buffer and linked files is executed prior to >> confirmation from the user. > > Should that be or is it a general policy for Org mode? Yes, it is a general policy. Org should not execute arbitrary

Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-27 Thread Ihor Radchenko
Daniel Kraus writes: > Just in case you want to play around with Clojure, installing babashka > (https://github.com/babashka/babashka) is a single binary and very simple to > install. Thanks! > Subject: [PATCH] lisp/ob-clojure.el: Fix header argument :var binding > > * lisp/ob-clojure.el (org-

Re: ob-clojure eval error when has comment at end of code line

2022-10-27 Thread Ihor Radchenko
Daniel Kraus writes: > @Ihor, a few developer related questions: > - I wanted to add a test, how can I run only test-ob-clojure? make test BTEST_POST="-L /path/to/cider.el" BTEST_OB_LANGUAGES="clojure" BTEST_RE="ob-clojure" Note that our tests demand cider executable and library. Testing with

Re: [BUG] Emacs tries to recenter / rescroll when it hits hidden org emphasis [9.4.6 (9.4.6-798-g738759.dirty-elpaplus @ .emacs.d/elpa/develop/org-plus-contrib-20210929/)]

2022-10-27 Thread Ihor Radchenko
Ihor Radchenko writes: > I have forwarded this bug report to Emacs bug tracker. > See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58793 The bug is now fixed on Emacs master. This issue will be resolved in the next Emacs 29 release. (It has nothing to do with Org) -- Ihor Radchenko // yantar9

Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-27 Thread Max Nikulin
On 28/10/2022 10:19, Ihor Radchenko wrote: Jean Louis writes: * Max Nikulin [2022-10-27 06:21]: Expected result: No code from the Org buffer and linked files is executed prior to confirmation from the user. Should that be or is it a general policy for Org mode? Yes, it is a general policy.

Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]

2022-10-27 Thread Ihor Radchenko
Mati writes: >> with point at the top left cell, after C-c ', I can across cells >> in the edit buffer. > Yes, in orgsrc mode (after clicking this shortcut, C-c ') it's possible, > but it should work in org, also as I previously mentioned, orgsrc table > editing is limited and doesn't work pro

Re: org-x11idle-exists-p with emacs --daemon

2022-10-27 Thread Ihor Radchenko
Julien Cubizolles writes: > All the org-*-idle-seconds func test at some point for > org-x11idle-exists-p which is defvar-ed at load time. > > For me, org-x11idle-exists-p is always nil at startup, but is set to > true if I eval it later on. I guess it's because I'm starting Emacs in > daemon mo

Re: org-x11idle-exists-p with emacs --daemon

2022-10-27 Thread Ihor Radchenko
Max Nikulin writes: > I am not familiar with `org-x11idle-exists-p', but a problem with access > of X clipboard from :immediate-finish capture templates may be quite > similar. The following command creates a hidden X11 frame if no visible > one exists: > > emacsclient --eval '(server-select-d

Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-27 Thread Ihor Radchenko
Max Nikulin writes: >> Should that be or is it a general policy for Org mode? > > I am afraid, it is unrealistic. Spreadsheet feature will be unusable. > And it is another reason why I am strongly against formats designed for > personal use rather than for web in browser context. I disagree. W

Re: org-x11idle-exists-p with emacs --daemon

2022-10-27 Thread Max Nikulin
On 28/10/2022 11:29, Ihor Radchenko wrote: Max Nikulin writes: I am not familiar with `org-x11idle-exists-p', but a problem with access of X clipboard from :immediate-finish capture templates may be quite similar. The following command creates a hidden X11 frame if no visible one exists: emac

Re: Where is my init.el?

2022-10-27 Thread Ihor Radchenko
Renato Pontefice writes: > To try to solve my prob on emacs on Mac osx, I’ve uninstalled and re installe > emacs (after have save my init.el that have some customization). > Now I would use this old init.el but I don’t know where th actual emacs looks > for init.el. > Can you suggest me where I

Re: [off-topic] E-readers and Org-Mode

2022-10-27 Thread Ihor Radchenko
Juan Manuel Macías writes: > Actually, the idea of a device running Android is interesting because it > allows you to install termux and thus Emacs. You could even use Emacs > GUI by installing a GNU/Linux distro in termux and loading it as proot > (+ vnc), or just activating the X11 repo in term

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-27 Thread Samuel Wales
i do not use emacs daemon or systemd. have not tried running emacs from cron i think. i launch emacs from xinit or fluxbox menu. sometimes from a shell. i run emacs as a cli batch thing from a shell. [and i run emacs on linux console when nec. it is inaccessible for reasons like blinking curs

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-27 Thread Max Nikulin
On 28/10/2022 11:59, Samuel Wales wrote: i launch emacs from xinit or fluxbox menu. sometimes from a shell. i run emacs as a cli batch thing from a shell. Then you should always have an X11 Emacs frame, maybe behind other windows, and the following command should work emacsclient --eval '

Re: org-x11idle-exists-p with emacs --daemon

2022-10-27 Thread Ihor Radchenko
Max Nikulin writes: >>> emacsclient --eval '(server-select-display (getenv "DISPLAY"))' >> >> You are talking about a different problem. >> Please start a new thread. > > Nope > > emacs -Q -L ~/src/org-mode/lisp/ --daemon > emacsclient --eval window-system > nil > > emacsclient --eval '(server-s