help with sexp in org-capture-template

2020-03-31 Thread Bala Ramadurai
Hello All, Hope everyone's safe. I am working on a org-capture-template and one of the entries is a date (30 days later) I want in European format. My solution is this: | *Due Date*: %(concat (substring (org-read-date nil nil "+30d") 8 10) "-" (substring(org-read-date nil nil "+30d") 5 7) "-"

Bug: org-archive-subtree-save-file-p results in data loss [9.3.6 (release_9.3.6-432-g73bd24 @ /home/n/.emacs.d/straight/build/org/)]

2020-03-31 Thread No Wayman
I'm bumping this because it's bitten me several times. The default value of 'from-org is not covered in the saving logic in org-archive-subtree: https://lists.gnu.org/archive/html/emacs-orgmode/2020-03/msg9.html I keep notes in Org for development projects. Archiving removes the node

[Patch] Document org-capture-templates entry type default strings

2020-03-31 Thread No Wayman
I've included the default entry type strings for each entry type in org-capture-tempalte's docstring. Made a couple clarifying edits as well. IMO this is better than having the user hunt for the defaults in the source or experimenting by creating each type of template: diff --git

Re: Org-babel-lilypond always renders full pages

2020-03-31 Thread adam
On Tue, 2020-03-31 at 10:48 -0300, Jonathan Gregory wrote: > Hi > > On 30 Mar 2020, stardiviner wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA256 > > > > > > stardiviner writes: > > > > > -BEGIN PGP SIGNED MESSAGE- > > > Hash: SHA256 > > > > > > > > > You might want

Re: rmarkdown-like production of multiple plots in org

2020-03-31 Thread John Hendy
On Tue, Mar 31, 2020 at 2:22 PM Matt Price wrote: > > I'm completely new to R. > > I've started working with a project that creates plots using the ggplot > package -- so by default it creates grid objects, rather than writing to > files. > > In rmarkdown/rstudio, I can write something like

Re: Bug: org-table-insert-column edits formulas wrongly [9.3 (release_9.3 @ /usr/local/Cellar/emacs-plus/HEAD-9d38564/share/emacs/28.0.50/lisp/org/)]

2020-03-31 Thread Nicolas Goaziou
Eric S Fraga writes: > And I believe that a reasonable expectation is symmetry with inserting a > row. The way I think of it is the arrow indicates to make space by > moving columns/rows in that direction. Most spreadsheets work in this > way, in my experience (but I could be wrong). I

Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block

2020-03-31 Thread Joost Kremers
On Tue, Mar 31 2020, Berry, Charles via General discussions about Org-mode. wrote: `org-babel-view-src-block-info' (C-c C-v C-i with point in the src block below) reports I didn't know about that command, it's proven to be very helpful. Thanks! Joost -- Joost Kremers Life has its

Re: rmarkdown-like production of multiple plots in org

2020-03-31 Thread Thomas S. Dye
Aloha Matt, A guess based on my experience with ggplot2 is that the auto-naming and saving take place in the functions plot2() and plot4(). If so, then calling them from Org mode babel blocks will also get you auto-naming and saving. I think you're right that you'll need to put each of the

Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block

2020-03-31 Thread Joost Kremers
On Tue, Mar 31 2020, Ken Mankoff wrote: Yes I'm sure. From the link Thomas sent, Any property specification, unless it is postfixed with a `+`, will *reset* the value of that property to its current value. Yes, I realise now I was mistaken. For some reason, I though that `:results

Statistic cookies for headings and list items

2020-03-31 Thread Michael Brand
Is this all intended behaviour? When I start with ~C-c C-c~ on [ of line A, Org seems to count list items: * [0/2] A - [ ] B - [ ] C ** DONE D Then ~S-~ on line D seems to count subheadings: * [0/1] A - [ ] B - [ ] C ** TODO D Then ~C-c C-c~ on [ of line A seems to count list items again: *

rmarkdown-like production of multiple plots in org

2020-03-31 Thread Matt Price
I'm completely new to R. I've started working with a project that creates plots using the ggplot package -- so by default it creates grid objects, rather than writing to files. In rmarkdown/rstudio, I can write something like this in a SOMEFILE.Rmd : ``` install_github('eeholmes/CoV19')

Re: Preventing org-cycle from scrolling the buffer

2020-03-31 Thread Marco Wahl
Dmitrii Korobeinikov writes: > When calling org-cycle on a collapsed section which contains a lot of > text, the headline is adjusted to the top of the page. Collapsing it > doesn't revert the scroll, which makes it hard to quickly peek at > what's in the section without getting disoriented. Is

Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block

2020-03-31 Thread Ken Mankoff
Yes I'm sure. From the link Thomas sent, Any property specification, unless it is postfixed with a `+`, will *reset* the value of that property to its current value. C-c C-v (for me, Charles uses C-c C-v C-i) withitn a code block shows you the header args that are set for that block. Useful for

Re: Org-babel-lilypond always renders full pages

2020-03-31 Thread Oliver Heck
Thanks, Jonathan, but the first advise does not work. Where would I put the elisp code you proposed? Oliver On 31.03.20 15:43, Jonathan Gregory wrote: Hi Oliver On 30 Mar 2020, Oliver Heck wrote: Hi Jonathan, that works fine. Thank you! Can I set this as default header somewhere in the

Re: Bug: org-table-insert-column edits formulas wrongly [9.3 (release_9.3 @ /usr/local/Cellar/emacs-plus/HEAD-9d38564/share/emacs/28.0.50/lisp/org/)]

2020-03-31 Thread Eric S Fraga
On Tuesday, 31 Mar 2020 at 16:05, Nicolas Goaziou wrote: > Hello, > > Well, since I apparently made the change, I have to speak for it. Thank you. It's good to discuss! > When one presses M-S-Right in order to create a new column, I think > a reasonable expectation is : > > 1. to move point to

Re: Bug: org-table-insert-column edits formulas wrongly [9.3 (release_9.3 @ /usr/local/Cellar/emacs-plus/HEAD-9d38564/share/emacs/28.0.50/lisp/org/)]

2020-03-31 Thread Julius Dittmar
Am 31.03.20 um 16:05 schrieb Nicolas Goaziou: > Note that adding a column to the beginning of the row is easy: just type > "|" near the beginning of the first cell. Does not seem correct. I had table #+begin_src org | 1 | 2 | | 3 | 4 | #+end_src Adding a | at the beginning of the first cell

Re: Bug: org-table-insert-column edits formulas wrongly [9.3 (release_9.3 @ /usr/local/Cellar/emacs-plus/HEAD-9d38564/share/emacs/28.0.50/lisp/org/)]

2020-03-31 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > On Monday, 30 Mar 2020 at 23:22, Kyle Meyer wrote: >> It looks like the documentation became stale with b8d473a04 (org-table: >> Insert new column to the right instead of the left, 2017-11-19). Thanks >> for updating it. > > Annoyingly, I would have preferred to

Re: Org-babel-lilypond always renders full pages

2020-03-31 Thread Jonathan Gregory
Hi On 30 Mar 2020, stardiviner wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > stardiviner writes: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> >> You might want to try this: >> >> #+begin_src emacs-lisp >> (add-to-list 'org-babel-default-header-args:lilypond

Re: Org-babel-lilypond always renders full pages

2020-03-31 Thread Jonathan Gregory
Hi Oliver On 30 Mar 2020, Oliver Heck wrote: > Hi Jonathan, > > that works fine. Thank you! > > Can I set this as default header somewhere in the org file or will I > have to include it to every snippet (I will have a lot of them). > > Oliver You can use the Noweb Reference Syntax[1] #+name:

Re: Bug: org-table-insert-column edits formulas wrongly [9.3 (release_9.3 @ /usr/local/Cellar/emacs-plus/HEAD-9d38564/share/emacs/28.0.50/lisp/org/)]

2020-03-31 Thread Eric S Fraga
On Monday, 30 Mar 2020 at 23:22, Kyle Meyer wrote: > It looks like the documentation became stale with b8d473a04 (org-table: > Insert new column to the right instead of the left, 2017-11-19). Thanks > for updating it. Annoyingly, I would have preferred to have the column inserted to the left of