* Org mode notes collapse parser brittle
@ 2017-11-10 20:43 Cody Goodman
2017-11-10 21:03 ` Kaushal Modi
0 siblings, 1 reply; 2+ messages in thread
From: Cody Goodman @ 2017-11-10 20:43 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1191 bytes --]
Does anyone else use notes extensively with src blocks and results drawers?
It seems that the regex to parse src blocks and collapse them breaks on
drawer :END: markers and possibly other things.
Here's an image of the error: https://i.imgur.com/dqDsO5g.png
And the example that it happens with:
Begin EXAMPLE
* IN-PROGRESS Minimal example
:LOGBOOK:
- Note taken on [2017-11-10 Fri 12:01] \\
As soon as you add a drawer result though, the LOGBOOK no longer
collapses correctly and stops at the first drawer's END. Ideally when
collapsing LOGBOOK =#+RESULTS\n\s+:RESULTS:[^:END:]+:END:= could not
be counted as the end of a logbook or end of a note.
#+BEGIN_SRC shell :async :results raw drawer :dir ~/hacking-yi/yi-rope
ls -larth default.nix
#+END_SRC
#+RESULTS:
:RESULTS:
-rw-r--r-- 1 cody users 520 Nov 10 12:04 default.nix
:END:
- Note taken on [2017-11-10 Fri 11:49] \\
Notes like this are fine and collapse correctly both at the note
level and the logbook level
#+BEGIN_SRC shell :async :results raw
mkdir ~/hacking-yi
#+END_SRC
#+RESULTS:
CLOCK: [2017-11-10 Fri 11:49]
:END:
End Example
Thanks,
Cody
[-- Attachment #2: Type: text/html, Size: 1462 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Org mode notes collapse parser brittle
2017-11-10 20:43 Org mode notes collapse parser brittle Cody Goodman
@ 2017-11-10 21:03 ` Kaushal Modi
0 siblings, 0 replies; 2+ messages in thread
From: Kaushal Modi @ 2017-11-10 21:03 UTC (permalink / raw)
To: Cody Goodman; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 874 bytes --]
On Fri, Nov 10, 2017 at 3:44 PM Cody Goodman <codygman.consulting@gmail.com>
wrote:
> Does anyone else use notes extensively with src blocks and results
> drawers? It seems that the regex to parse src blocks and collapse them
> breaks on drawer :END: markers and possibly other things.
>
> Here's an image of the error: https://i.imgur.com/dqDsO5g.png
>
I don't use LOGBOOK, but I was able to confirm this problem based on your
example.
But then I looked in the manual, and in (org) Drawers node, it's mentioned:
> Sometimes you want to keep information associated with an entry, but you
> normally don’t want to see it. For this, Org mode has _drawers_. They
> can contain anything but a headline and another drawer.
*They can contain anything but a headline and another drawer.*
So I guess you have hit a limitation.
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 1538 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-10 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-10 20:43 Org mode notes collapse parser brittle Cody Goodman
2017-11-10 21:03 ` Kaushal Modi
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.