Clarification of patch

2024-06-07 Thread Pedro Andres Aranda Gutierrez
Hi, I was reading through patch https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=212237bdbd6b5f372d11de5d1f8db12dcf649682 and reading: + ) ; Inside a block, where the chances to have heading a slim. I can't make out what "to have heading a slim" means... Best, /PA -- Fragen sin

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-07 Thread Suhail Singh
Ihor Radchenko writes: > Oops. > I amended the fix now. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6c862699a It's better, but not quite there. For instance, tangle the block below into an org file and observe the reported warning. #+begin_src org :tangle /tmp/misplaced-h

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-07 Thread Ihor Radchenko
Suhail Singh writes: >> Fixed, on bugfix. >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=b8497aa7f > > This doesn't seem fixed as of 9.7.3 (the MRE above still shows spurious > warning). It seems that org-at-block-p returns nil when point is within > the block. Oops. I amend

Re: Agenda export to ics file

2024-06-07 Thread Ihor Radchenko
John Helly writes: > I'm a long-time user of emacs, org-mode for about 10 years but cannot > figure out how to export DEADLINE events from org-agenda to > org-icalendar-export-to-ics. > > I've found references to setting the > > org-icalendar-use-deadline > > variable but haven't yet found the

Re: Add 'readonly' option to ob-sqlite

2024-06-07 Thread Ihor Radchenko
"Daniel M. German" writes: > Sometimes I think it is useful to open a DB in readonly mode > > eg. to avoid modifying by mistake > > This is a patch to ob-sqlite.el to accomplish that > > It adds support for opening a sqlite database in readonly only. > > It does it by adding a babel parameter rea

Re: Very slow getting tags for completion after 9.7 upgrade

2024-06-07 Thread Ihor Radchenko
Christian Moe writes: > Thanks! I attach a profile report (for a largeish file with 67 tags > across 1515 headings, 17K+ lines, 18–36 seconds wait to get tags). > > ... > I tried starting emacs with an empty .emacs file; it didn't solve the > problem, so I haven't located any problem in my config

Re: Very slow getting tags for completion after 9.7 upgrade

2024-06-07 Thread Christian Moe
Ihor Radchenko writes: > Christian Moe writes: > >> Thanks! I attach a profile report (for a largeish file with 67 tags >> across 1515 headings, 17K+ lines, 18–36 seconds wait to get tags). >> >> ... >> I tried starting emacs with an empty .emacs file; it didn't solve the >> problem, so I have

Re: Agenda export to ics file

2024-06-07 Thread John Helly
Sure.  Thanks for the reply. 1) I put this line at the top of the org file -*- org-icalendar-use-deadline: t;  -*- and then run the command M-x icalendar-export-to-ics This produces an *.ics file but it has only past events (mostly TODOs).  I don't see any sign of upcoming events that I typi

[PATCH] Fixing endless loop of org-reveal with inline-task

2024-06-07 Thread Marc-Oliver Ihm
Hi all, If I have this simple buffer: * foo *** bar *** END i.e. one node with a single inline node. If now I place the cursor at the end of the buffer and invoke (org-reveal), I get stuck in an endless loop. (of course one needs to (require 'org-inlinetask) before) I

Re: remote calls to tables and (empty entry, NAN)

2024-06-07 Thread Uwe Brauer
Hi again > Uwe Brauer writes: > This works for me: >#+TBLFM: $2=if(typeof(remote(table2, @@#$7)) == 12, string(""), > remote(table2, @@#$7)); E I just realized that the @@#$7 is not save against errors #+begin_src * Simple remote #+Name: table1 | Name | Ex1 | Ex2 | Ex2 | Ex4 | Ex5

Re: Very slow getting tags for completion after 9.7 upgrade

2024-06-07 Thread Christian Moe
Ihor Radchenko writes: > Christian Moe writes: > >> After upgrading to 9.7 (still on Emacs 27.1), I'm seeing very long waits >> when trying to use tag completion in large files, whether with C-c C-q, >> %^g in capture templates or running (org-get-buffer-tags) directly. This >> applies both to

Re: remote calls to tables and (empty entry, NAN)

2024-06-07 Thread General discussions about Org-mode.
> Hi, > Uwe Brauer writes: > This works for me: >#+TBLFM: $2=if(typeof(remote(table2, @@#$7)) == 12, string(""), > remote(table2, @@#$7)); E Thanks very much! > (everything is documented here: > > https://orgmode.org/manual/Formula-syntax-for-Calc.html#Formula-syntax-for-Calc > )

Re: [BUG] M-RET may cause hang in the case of nested list

2024-06-07 Thread Ihor Radchenko
Max Nikulin writes: > I experience hangs after hitting M-RET. Org main HEAD or 9.5, Emacs-28 > > 8< > - First level item >- nested item >after nested item > > > >8 > > M-RET causes 100% CPU load. If I hit C-g then "after nested item" > disappears and new item is crea

[BUG] M-RET may cause hang in the case of nested list

2024-06-07 Thread Max Nikulin
Hi, I experience hangs after hitting M-RET. Org main HEAD or 9.5, Emacs-28 8< - First level item - nested item after nested item >8 M-RET causes 100% CPU load. If I hit C-g then "after nested item" disappears and new item is created on that line.

Re: remote calls to tables and (empty entry, NAN)

2024-06-07 Thread Bruno Barbier
Hi, Uwe Brauer writes: > However if in table1 there is an empty entry in the relevant column, > remote copies it as 0 > > #+begin_src > > #+NAME: table2 > | Name | Ex1 | Ex2 | Ex2 | Ex4 | Ex5 | ResSh1 | > |+-+-+-+-+-+| > | Smith | | 3 | 4 | 6 |

Ideas for improving ob-R (was: [FR] Org babel: mixing multiple outputs (was: Output of R code block: only text or plot but not both? And only one "result" can be output?))

2024-06-07 Thread Ihor Radchenko
"Berry, Charles" writes: >> Thanks for sharing the project! >> Although, I would not call going through double export, and producing >> html output "easier time". >> > > The `easier' part is that knitr/Rmarkdown requires very little markup > to produce nice documents in various formats (pdf, htm

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-07 Thread Giuseppe Pagnoni
Ok, I just found out! You need to close the device after each plot: #+begin_src R :results output raw drawer :dir ./ x <- rnorm(100) print(mean(x)) png(file="hist1.png") hist(x) dev.off() png(file="hist2.png") hist(x^2) dev.off() print("[[./hist1.png]]") print("[[./hist2.png]]

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-07 Thread Giuseppe Pagnoni
Same... no file gets written... On Fri, Jun 7, 2024 at 11:18 AM Ihor Radchenko wrote: > Giuseppe Pagnoni writes: > > > Sorry, I just sent you the reply that was meant for Berry's advice :-). > > Your suggestion also looks very useful, but somehow the png files do not > > get saved (in the curre

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-07 Thread Ihor Radchenko
Giuseppe Pagnoni writes: > Sorry, I just sent you the reply that was meant for Berry's advice :-). > Your suggestion also looks very useful, but somehow the png files do not > get saved (in the current directory or elsewhere), and I actually do not > get any error messages in the R buffer (I also

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-07 Thread Giuseppe Pagnoni
Sorry, I just sent you the reply that was meant for Berry's advice :-). Your suggestion also looks very useful, but somehow the png files do not get saved (in the current directory or elsewhere), and I actually do not get any error messages in the R buffer (I also tried to change the file type to j

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-07 Thread Giuseppe Pagnoni
Many thanks. Since I am using this within an org-mode notebook, I think the :session trick works well enough for me. best giuseppe On Wed, Jun 5, 2024 at 8:35 PM Ihor Radchenko wrote: > Giuseppe Pagnoni writes: > > > #+begin_src R :file example.png :results output graphics file > > x <- rno

remote calls to tables and (empty entry, NAN)

2024-06-07 Thread Uwe Brauer
Hi The following works nicely #+begin_src #+NAME: table1 | Name | Ex1 | Ex2 | Ex2 | Ex4 | Ex5 | ResSh1 | |+-+-+-+-+-+| | Smith | 2 | 3 | 4 | 6 | 7 | 22 | | Miller | 2 | 10 | 1 | 1 | 5 | 19 | | Wick | 1 | 2 | 3 | 10 |