Re: [feature proposal] Headline caching via org-element-cache = up to 2.5x performance boost

2021-10-16 Thread Ihor Radchenko
Bastien  writes:

> If you feel confident the change is mature enough for being merged
> into the main branch, please go ahead, this will boost the feedback.

Merged to main just now.



Re: [feature proposal] Headline caching via org-element-cache = up to 2.5x performance boost

2021-10-16 Thread Ihor Radchenko
Bastien  writes:

> If you feel confident the change is mature enough for being merged
> into the main branch, please go ahead, this will boost the feedback.

Merged to main just now.



Re: "begin_src R :session" opens R session when file first visited

2021-10-16 Thread Greg Minshall
Bill,

> I run Org from the source tree, and recently (a couple of weeks ago or
> so) something new started happening with my Org files with R source
> blocks:  when I open one up, an R session automatically starts,
> without me doing anything.

i don't see that behavior.  does it do this for 'emacs -Q' (suitably
tailored to load org mode, set `org-babel-load-languages`, etc.)?

cheers, Greg



how to org-babel-detangle with nested noweb?

2021-10-16 Thread edgar

Hi,

I am tangling Python files with =:comments link=. I don't know if a  
way already exits, but I would like to detangle (=org-babel-detangle=)  
/noweb/ blocks. For instance:


#+name: binary_metrics.py
#+begin_src python
  import numpy as np

  np.random.seed(42)
  true_vals = np.random.randint(0, 2, size=5)
  pred_vals = np.ones(5)
#+end_src

#+name: binary_metrics2.py
#+begin_src python :tangle ../Code/Sandbox/tmp.py :dir  
../Code/Sandbox/ :comments noweb :noweb yes :padline yes

  <>
#+end_src

Then, if I modify tmp.py and do an =org-babel-detangle=, the changes  
would go back to =binary_metrics.py=. As it is not working for me at  
the moment, I would like to know if

1. I am doing something wrong (it should be working),
2. there is a package which can handle this, or
3. this can be a feature request
The reason for which I would like to have this is to take advantage of  
Org to have reproducible and maintainable documents when programming  
in Python.


The reason behind this is that I am unaware of any package which  
allows =org-edit-special= to integrate with other blocks in the  
document in such a way that modules are imported, e.g:


#+name: code1.py
#+begin_src python
  import numpy as np
#+end_src

#+caption: Try to =org-edit-special= and get the documentation for  
=np= (with eldoc for instance).

#+begin_src python :noweb yes
  <>
  np
#+end_src

#+begin_src emacs-lisp
  (format "%s\n%s"
   (emacs-version)
   (org-version))
#+end_src

#+RESULTS:
: GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27,  
cairo version 1.17.4)

:  of 2021-03-26
: 9.4.6


Thank you!


-
This free account was provided by VFEmail.net - report spam to ab...@vfemail.net

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  



Re: bug#51167: 29.0.50; org-indent-line broken

2021-10-16 Thread Andreas Röhler



On 13.10.21 14:59, Max Nikulin wrote:

On 13/10/2021 01:35, Kévin Le Gouguec wrote:

Andreas Röhler writes:


With following stuff in org-mode buffer:

* bla
asd

M-x org-indent-line RET on second line has no effect.


Andreas, do the following settings make behavior consistent with you 
expectations?


(add-hook 'org-mode-hook (lambda () (electric-indent-local-mode -1)))
(setq org-adapt-indentation t)



Thanks. That works for me.

Still thinking a command "indent" should indent.





exclude certain subsection in columnview

2021-10-16 Thread Uwe Brauer
Hello 

Please consider the following example:
how can I exclude the last ** G3 entry

regards

Uwe Brauer 


#+begin_src elisp

* Sheets   :noexport:
  :PROPERTIES:
  :COLUMNS:  %10SSheet(Sheet Nr) %10Ex(Exercise Nr)  %17Date(Date) 
%7STATUS(Status){X/}
  :ID2:   Sheet1
  :END:

** DONE G1   :noexport:
:PROPERTIES:
:ID:   G1
:User1:John
:email1: j...@gmail.com
:Start:<2021-02-16 mar>
:End:  <2021-05-24 lun>
:STATUS:   [ ]
:ST1:  [ ]
:Sheet:H1
:Ex:   E1
:END:

** DONE G2
:PROPERTIES:
:ID:   G2
:Usuario1: Jane
:email1:   j...@gmail.com
:Start:<2020-07-26 Sun>
:End:  <2020-11-22 dom>
:STATUS:   [X]
:ST1:  [X]
:Sheet:H1
:Ex:   E3
:END:

** WAIT G3
:PROPERTIES:
:Id:   G3
:Usuario1: Fritz
:Start:<2020-07-26 Sun>
:End:  <2020-11-22 dom>
:ST2:  [X]
:STATUS:   [X]
:Sheet: H2
:Ex:   E2
:END:


- State "WAIT"   from "DONE"   [2021-10-16 sáb 21:55]
** Grupo Todos Ejercicios
#+BEGIN: columnview2 :hlines 2 :indent nil :format " %5TODO(Status) %5Id(Grupo) 
%5Ej(Ejercicio) %5Sheet(Sheet) %7ST1(Status){X/} %7ST2(Status){X/}"
| <5>| <5>   | <5>   | <5>   | <7>| <7>|
| Status | Grupo | Ejercicio | Sheet | Status | Status |
|+---+---+---++|
||   |   |   | [1/2]  | [1/1]  |
|+---+---+---++|
| DONE   | G1|   | H1| [ ]||
|+---+---+---++|
| DONE   | G2|   | H1| [X]||
|+---+---+---++|
| WAIT   | G3|   | H2|| [X]|
|+---+---+---++|
||   |   |   |||
#+END
#+end_src




Re: [BUG] Inline images cannot be displayed [9.5 (release_9.5-108-g93132c @ /tmp/org-mode/lisp/)]

2021-10-16 Thread Timothy
Hi Bhavin,

> Confirmed
>
> I was able to reproduce this with the latest main branch. It works fine with
> attributes like this:
>
> #+attr_org: :width 500px
>
> And the 9.5 tag does not have this bug, so I think this might be related to
> recent changes to image width. Adding Timothy to CC who worked on those
> changes.

Thanks for confirming and the CC, hopefully it’s not what I did 😅, but that’s
what the bugfix branch is for. I’ll try to have a look within the next week or 
so,
but I’m unfortunately busy over the next ~month so I can’t make any grantees.

All the best,
Timothy


Re: org-table-blank-field key binding removal

2021-10-16 Thread Kyle Meyer
Bastien Guerry writes:

> I suggest we add a news entry in etc/ORG-NEWS in the bugfix branch for
> the change to be advertized for 9.5.x users.
>
> Can anyone do that?

Done in 9bc3a2b98.



"begin_src R :session" opens R session when file first visited

2021-10-16 Thread William Denton

A question for R users:

I run Org from the source tree, and recently (a couple of weeks ago or so) 
something new started happening with my Org files with R source blocks:  when I 
open one up, an R session automatically starts, without me doing anything.


For example:

#+BEGIN_SRC R :session foo
1
#+END_SRC

If I have that in a file, restart Emacs and visit the file, an unnamed R session 
begins right away (without a C-c C-c).  I changed "R" to "python" and 
restarted, and all was normal (i.e., nothing happened) but when I edited it to 
say "R" again, the session began as soon as I put the letter in!


I haven't changed anything in my configuration related to Org or R, and I can't 
see why this is happening.  Looking at recent commits I saw all the R 
async work, and changes made to session-related code, but I can't tell if 
there's any connection.


Are any other R users seeing this?  I admit I haven't done a full investigation, 
but I thought I'd ask.



Thanks,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada