Re: Appending results from babel block

2024-01-27 Thread Ken Mankoff
Hi Matt, On 2024-01-27 at 12:22 -08, Matt wrote... > On Sat, 27 Jan 2024 03:20:37 +0100 Ken Mankoff wrote --- >> Weirdly, >> >> :results append drawer >> >> Appends result #2, but then inserts all results after the first. > > I'm not sure w

Appending results from babel block

2024-01-26 Thread Ken Mankoff
Hello, I'd like to append results from a babel block, but without the leading ":" that sometimes appears. Is this possible. I'm using v9.7-pre. This works, but has leading colons: #+BEGIN_SRC bash :results append echo $(date) #+END_SRC #+RESULTS: : Fri Jan 26 07:17:00 PM PST 2024 : Fri Jan 26

Re: Diary sexp and comparing dates, agenda

2024-01-12 Thread Ken Mankoff
Hi David, I'm not sure if this will help, but I have to file time sheets on the last weekday less than or equal to the 15th and last-day-of-month. I wrote two diary functions to achieve this (I don't handle holiday edge cases). I use these functions with: ** INFO [#A] Time Sheet

Re: Gantt Chart with org-mode

2023-11-07 Thread Ken Mankoff
And Mermaid with ob-mermaid. https://mermaid.js.org/syntax/gantt.html -k. Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard. On Sun, Nov 5, 2023, 05:08 Christophe Schockaert wrote: > On 2023-11-04 13:30, Heime wrote: > > Can one construct a Gantt Chart

Re: Gantt Chart with org-mode

2023-11-04 Thread Ken Mankoff
Or PlantUML and ob-plantuml. https://plantuml.com/gantt-diagram -k. Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard. On Sat, Nov 4, 2023, 06:55 Heime wrote: > > Can one construct a Gantt Chart with org-mode ? > >

Re: [BUG] Undo eats buffer [9.7-pre (release_9.6.10-888-g098f08 @ /home/kdm/local/src/org-mode/lisp/)]

2023-10-26 Thread Ken Mankoff
Hi Ihor, On 2023-10-26 at 05:10 -07, Ihor Radchenko wrote... > Have you tried reporting your problem to emacs-jupyter devs? There > might be a better chance that they can fix or suggest something. There is an open issue on that GitHub repository but someone thought it might be org-cache

[BUG] Undo eats buffer [9.7-pre (release_9.6.10-888-g098f08 @ /home/kdm/local/src/org-mode/lisp/)]

2023-10-26 Thread Ken Mankoff
I'm running into a bug where if I (undo) after evaluating an Org Babel emacs-jupyter code block, several hundred lines of the Org buffer below are erased. Unfortunately I am having trouble creating an MWE that demonstrates this, but I hope the org-element-cache warning below may still be

Re: [O] Injecting properties with noweb

2023-04-08 Thread Ken Mankoff
omeone if they need it. -k. On 2023-04-08 at 05:22 -07, Ihor Radchenko wrote... > Ken Mankoff writes: > >> Is it possible to set variables using Org Babel inside screen, which >> does not support ":var" header args? I'd actually lke a double-nested >> scr

Re: [PATCH v4] lisp/ob-screen.el: Support ~:var~ header args for babel blocks

2023-03-19 Thread Ken Mankoff
Hi Max, On 2023-03-16 at 11:09 -04, Max Nikulin wrote... > Ken, you wrote that you have other patches for ob-screen.el. Do you > plan to sent them? Here is the other patch. Respect custom screen command. -k. >From ff919de09e020fa053f5727f3b36026a3a773f88 Mon Sep 17 00:00:00

Re: Noweb Function's body without evaluation

2023-03-15 Thread Ken Mankoff
Hi, I'm not sure that I understand your issue or needs from the provided examples, but I wonder if the example I provide here would be helpful. It bypasses :var an lets you inject a PROPERTY value anywhere. It is also language agnostic. You can use it to execute commands (that are set as

Re: [PATCH] lisp/ob-screen.el: Support ~:var~ header args for babel blocks

2023-03-15 Thread Ken Mankoff
Hi Ihor and Max, Just a follow-up note that I am unlikely to be able to complete this patch anytime soon. Re-alignment of priorities because my need for :var header support in Org Babel is mitigated by a different method of injecting variables into Org Babel sections: Use noweb. I find this

Re: [PATCH] lisp/ob-screen.el: Support ~:var~ header args for babel blocks

2023-02-26 Thread Ken Mankoff
Hi Max, On 2023-02-26 at 02:11 -08, Max Nikulin wrote: > As to `org-babel-screen-test' perhaps the issue is additional newline > added after random number. I have not tried stepping through the > function in debugger though. I haven't either. I'll see if I can figure out the issue with the help

Re: [PATCH] lisp/ob-screen.el: Support ~:var~ header args for babel blocks

2023-02-26 Thread Ken Mankoff
Hi Ihor, On 2023-02-26 at 04:18 -08, Ihor Radchenko wrote: >> +;; Reuse the variable assignment code from ob-shell >> +(defalias 'org-babel-variable-assignments:screen >> + 'org-babel-variable-assignments:shell) > > This will work, but you are relying on implementation detail of > ob-shell.el.

Re: [PATCH] lisp/ob-screen.el: Support ~:var~ header args for babel blocks

2023-02-25 Thread Ken Mankoff
Hi Max, On 2023-02-25 at 08:05 -08, Max Nikulin wrote: > I believe, it is safer to define > `org-babel-variable-assignments:screen' some way: alias, substitution, > function that calls `org-babel-variable-assignments:shell'. I am > unsure which variant is better. I see a couple of callers for

Re: [PATCH] lisp/ob-screen.el: Support ~:var~ header args for babel blocks

2023-02-25 Thread Ken Mankoff
I note that `org-babel-screen-test` fails, but it appears to fail before this change too... -k. On Sat, Feb 25, 2023 at 7:14 AM Ken Mankoff wrote: > Hi Max, > > On 2023-02-24 at 19:51 -08, Max Nikulin wrote: > > On 25/02/2023 01:33, Ken Mankoff wrote: > > I am

Re: [PATCH] lisp/ob-screen.el: Support ~:var~ header args for babel blocks

2023-02-25 Thread Ken Mankoff
Hi Max, On 2023-02-24 at 19:51 -08, Max Nikulin wrote: > On 25/02/2023 01:33, Ken Mankoff wrote: > I am unsure if Org markup is suitable for commit messages (~:var~) > since it may appear in Emacs commit logs. Fixed. > The code still depends on on ob-shell. Is there a reason why ca

Re: [PATCH] lisp/ob-screen.el: Support ~:var~ header args for babel blocks

2023-02-24 Thread Ken Mankoff
I realize the patch should be an attachment, not the body of the email. Sorry. R-sending as attachment. -k. >From 5a4707cc16fb5f10cd394762f41d50d8830db240 Mon Sep 17 00:00:00 2001 From: "Kenneth D. Mankoff" Date: Mon, 20 Feb 2023 21:40:39 -0800 Subject: [PATCH] lisp/ob-screen.el: Support

[PATCH] lisp/ob-screen.el: Support ~:var~ header args for babel blocks

2023-02-24 Thread Ken Mankoff
* ob-screen.el: (org-babel-execute:screen): Parse header params for `:var', then inject into screen session. (org-babel-variable-assignments:screen): Copied from ob-shell.el org-babel-variable-assignments:shell * etc/ORG-NEWS: Document as New Feature This change only supports single-value

[O] Injecting properties with noweb

2023-02-20 Thread Ken Mankoff
Hello, Is it possible to set variables using Org Babel inside screen, which does not support ":var" header args? I'd actually lke a double-nested screen over ssh, and the ability to re-use Babel code blocks under different headings, using header args or PROPERTIES to change variables. That is,

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

2022-10-25 Thread Ken Mankoff
See also Dasung NotEReader. Full Android tablet, no lockdown like the ReMarkable. Looks fast - can watch YouTube videos for example. If it's really full Android, then it should be able to install and run emacs natively. 10.3 or 7.8 inch versions. -k. Please excuse brevity. Sent from tiny

Re: [O] Plantuml w/ noweb and cached results

2022-09-23 Thread Ken Mankoff
Hi Ihor, Thank you for your reply. I apologize for not doing a more thorough test with '-Q'. I'll try to find the problem in my setup. -k. On 2022-09-22 at 22:02 -04, Ihor Radchenko wrote: > Ken Mankoff writes: > >> #+BEGIN_SRC plantuml :noweb yes :file cache-yes.png &

[O] Plantuml w/ noweb and cached results

2022-09-21 Thread Ken Mankoff
Hello, I'm not sure if this is a bug in ob-restclient, ob-plantuml, or Babel. If someone can help me figure out where, I can move this report to GitHub (if ob-restclient) - otherwise I think it remains here. I cannot use ob-plantuml if results are cached. See example: #+NAME: cache-no

Re: Org links and Flatpak firefox

2022-07-28 Thread Ken Mankoff
Hi Max, Sorry for the delayed reply. On 2022-07-05 at 08:16 -07, Max Nikulin wrote: > On 03/07/2022 20:25, Ken Mankoff wrote: >> I had "browse-url-generic-program" set to a script that used xdotool >> to find if there was a firefox on this desktop, and then sent

Re: Org links and Flatpak firefox

2022-07-03 Thread Ken Mankoff
o a script that used xdotool to find if there was a firefox on this desktop, and then sent the URL there. xdotool doesn't play nice withe flatpak, and that was the problem. Thanks again for the suggestions, -k. On 2022-07-02 at 20:46 -07, Max Nikulin wrote: > On 02/07/2022 23:03, Ken

Org links and Flatpak firefox

2022-07-02 Thread Ken Mankoff
Hello, I've just upgraded to Kubuntu 22.04. Firefox is no longer instsallable via apt so I chose flatpak over snap. Now when I C-c C-o (org-open-at-point) on a URL, Firefox comes to the foreground, but nothing else happens. The page does not load. If I 'xdg-open URL' then the URL loads, so the

[O] Google Docs now supports MarkDown, but not Org syntax

2022-03-30 Thread Ken Mankoff
Google Docs now supports MarkDown, not Org syntax :(. https://workspaceupdates.googleblog.com/2022/03/compose-with-markdown-in-google-docs-on.html -k.

Re: Custom TODO states for one item

2022-02-26 Thread Ken Mankoff
Wales wrote: > you can noly have one todo kw per heading that is meaningful to org. > you can use tags. > > there are quasi-kw like archive and comment, however. > > > On 2/26/22, Ken Mankoff wrote: > > Hello, > > > > I have a file with custom TODO st

Custom TODO states for one item

2022-02-26 Thread Ken Mankoff
Hello, I have a file with custom TODO states: #+TODO: FOO(f@/@) | BAR(b@/@) I have one item (heading) within that file that I'd like to have different TODO states. Is this possible? Thanks, -k.

Re: ox-taskjuggler missing

2022-02-19 Thread Ken Mankoff
This might be an alternative option https://plantuml.com/gantt-diagram Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard. On Sat, Feb 19, 2022, 18:18 Tim Cross wrote: > > Greg Sullivan writes: > > > Trying to export to taskjuggler (tj3) to get a gantt

[O] How to add "days since" in heading

2022-02-16 Thread Ken Mankoff
Hello, I'd like to have something like "diary-anniversary" but report "days since" a date, rather than "years since". For example, I have > ** Birthdays > %%(diary-anniversary 12 11 2010) Their %d%s birthday And in my Agenda I then see: > events: Their 21st birthday I'd like to have

[O] Feature Request: org-log-schedule

2022-01-25 Thread Ken Mankoff
Hello, I make use of (setq org-log-done 'note org-log-reschedule 'note org-log-delschedule 'note org-log-redeadline 'note org-log-deldeadline 'note org-log-refile 'note) But would like to also add a note when for org-log-schedule. I will add this to

Re: Preview fonts from Dired with org-latex-preview (and test opentype features)

2022-01-18 Thread Ken Mankoff
Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard. On Mon, Jan 10, 2022, 08:53 Juan Manuel Macías wrote: > Hi, > > I have written for my personal use this code (still quite crude) that > allows me to preview with org-latex-preview small text strings in a

Re: Question Regarding Creating Workflow For Automatic Formulas For Finance Based Org Spreadsheet

2022-01-09 Thread Ken Mankoff
Hi Sam, Have you looked into Org Ledger? -k. Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard. On Sun, Jan 9, 2022, 09:18 Samuel Banya wrote: > Hey there, > > So I've been managing my finances via an org doc that basically has tables > that list all

Re: Feedback on Emacs-Jupyter

2022-01-04 Thread Ken Mankoff
Hi Nathaniel, First, thank you (many times) for maintaining emacs-jupyter. It is one of the most-used tools on my computer. I've been using your software daily for the past few years to develop code and write papers. I may think of more things as others reply, but the one thing I can think of

Re: Org + git branches for derived files

2021-08-15 Thread Ken Mankoff
Hi All, Thank you for the suggestions. I think the most elegant solution is to have a hook on GitHub that compiles the PDF on a remote server. But it takes a lot more work, because I don't necessarily have *everything* in Git - my local 'library.bib' usually isn't included, nor my custom

Org + git branches for derived files

2021-08-13 Thread Ken Mankoff
Hello, I think this might be more of a git question than an Org question, but I imagine I might find the answer here and that it might be useful to others, so I ask here. I'd like to keep derivative products (the LaTeX output, the final PDF, etc.) available in Git, but not commit those

Calling code block from header in agenda

2021-06-17 Thread Ken Mankoff
Hello, I'd like to `ctrl-c ctrl-c` on a TODO section header in the agenda and have a code block execute. Is this possible? Outside the agenda I can CC on part of this header (the src_bash{date} part) and it evaluates. Elsewhere it asks for tags as usual. ** TODO foo src_bash{date} In the

Re: Babel: Programmatically evaluate a heading and subtrees?

2021-03-01 Thread Ken Mankoff
Hi Nathan, On 2021-02-20 at 11:10 -08, Nathan Neff wrote... > I have some code like this: > > * Heading 1 > > # code block name:FOO > > ** Subheading 1 > > # code block > > ** Subheading 2 > > # code block > > I find that I often want to evaluate the code in Heading 1 and its > subheadings. > >

Re: ob-haskell

2021-01-03 Thread Ken Mankoff
Hi Lawrence, This isn't a method for official language support, but I've had success with entirely unsupported REPLs and ob-screen. A .screenrc can launch the REPL, and then Org ob-screen just sends each line to the buffer. It works OK for me. -k. On 2021-01-02 at 13:44 -08, Lawrence

org-todo-yesterday with 1-day repeater tasks: repeats tomorrow

2020-12-14 Thread Ken Mankoff
Hello list, I regularly use org-todo-yesterday or org-agenda-todo-yesterday. However, with a 1-day repeater task, or any ++ repeater, it sets the repetition using today as the starting point, not yesterday. It seems like the repeater time and date-setter is not respecting

Re: Is there possibility to provide back links to each finely grained part of Org file?

2020-11-09 Thread Ken Mankoff
On 2020-11-09 at 03:38 -08, Eric S Fraga wrote... > On Sunday, 8 Nov 2020 at 23:40, Jean Louis wrote: >> I know that #names exist in HTML export for *** headings. Do they or >> can they exist for every paragraph or item listed? > > Maybe not quite what you want but you can place anchors (aka

Re: Thoughts on the standardization of Org

2020-11-03 Thread Ken Mankoff
Hi Eric, On 2020-11-03 at 05:00 -08, Eric S Fraga wrote... > The benefits of org mode for me are that it is Emacs. [...] I find it > difficult to see any further standardization that would provide any > real benefits *to me*. If others see those benefits, excellent! All > power to them and I

Re: Thoughts on the standardization of Org

2020-11-03 Thread Ken Mankoff
On 2020-11-03 at 00:24 -08, David Rogers wrote... > I disagree (in principle, not just because it would be difficult) with > the idea of “expanding beyond Emacs”. Org-mode benefits greatly from > current and future Emacs development, and asking to standardize “just > the parts that are not

Re: Thoughts on the standardization of Org

2020-11-01 Thread Ken Mankoff
To all who argue that Org is too tightly coupled to Emacs to consider working with it outside of Emacs, I point to GitHub. The fact that GitHub natively renders Org files "well enough" is a huge benefit to those of us who use Org. It is also useful for gaining new users (assuming more users

Re: New website - back to the old unicorn!

2020-10-28 Thread Ken Mankoff
On 2020-10-28 at 08:40 -07, Daniele Nicolodi wrote... > If I can bikeshed a bit more: I like the lighter page background that > is currently on http://orgomode.org more than the darker one in the > new version. A few more minor comments based on the current version at

Re: Please help by becoming a maintainer for an Org Babel file

2020-10-27 Thread Ken Mankoff
I'll help maintain ob-screen.el -k. On 2020-10-26 at 01:07 -07, Bastien wrote... > Dear all, > > we are looking for more maintainers of individual Org Babel files. > > Jack and Ian are already in, I added myself to ob-clojure.el. > > If you feel like proposing yourself for maintaining an

Re: official orgmode parser

2020-10-26 Thread Ken Mankoff
On 2020-10-26 at 14:00 -07, Tom Gillespie wrote... >> list ::= ('+' string newline)+ sublist? >> sublist ::= (indent list)+ >> >> I think this captures lists? > > Ah yes, I see my mistake here. In order for this to work the parser > has to implement significant whitespace, so whitespace cannot

Re: official orgmode parser

2020-10-26 Thread Ken Mankoff
On 2020-10-26 at 10:59 -07, Tom Gillespie wrote... > You can identify headlines, but you can't identify nesting level; Do you need to? This is valid as an entire Org file, I think: *** foo * bar * baz And that can be represented in EBNF. I'm not aware of places where behavior is

Re: official orgmode parser

2020-10-26 Thread Ken Mankoff
On 2020-10-26 at 09:24 -07, Nicolas Goaziou wrote... > # This is a comment (1) > > #+begin_example > # This is not a comment (2) > #+end_example > > AFAICT, you cannot distinguish between lines (1) and (2) with EBNF. I agree. I think this is a better (correct?) example than the

Re: official orgmode parser

2020-10-26 Thread Ken Mankoff
On 2020-10-26 at 07:21 -07, Nicolas Goaziou wrote... > Ken Mankoff writes: > >> I question if this is possible because EBNF is for context-free >> grammars, but I *think* Org syntax is context-free. > > It's not as explained in a footnote in the Org syntax document

Re: official orgmode parser

2020-10-26 Thread Ken Mankoff
Hello, On 2020-09-23 at 01:09 -07, Bastien wrote... > I disagree that a parser is too difficult to maintain because Org is a > moving target. Org core syntax is not moving anymore, a parser can > reasonably target it. That's what is done with the Ruby parser, in use > in this small project

[O] babel bash :var tables - change from associative to index arrays

2020-09-12 Thread Ken Mankoff
Hi Org List, I'd like to submit a patch so that all bash babel arrays are indexed. Are there cons to this that I'm not seeing? It might break some existing code that expects associative arrays. Could this be a breaking change that is included in Org 5.0? I'd like to check on the likely

Re: Can you automatically noweb include?

2020-08-06 Thread Ken Mankoff
Actual example: * Prologue test :PROPERTIES: :header-args:python+: :prologue "import numpy as np; import os" :END: #+BEGIN_SRC python :results output print(np.__version__) #+END_SRC #+RESULTS: : 1.18.4 On Wed, Aug 5, 2020 at 3:03 PM Ken Mankoff wrote: > What about using :pre

Re: Can you automatically noweb include?

2020-08-05 Thread Ken Mankoff
What about using :pre or :prologue and setting it at the header or document level? Please excuse brevity. Sent from tiny pocket computer with non-haptic-feedback keyboard. On Wed, Aug 5, 2020, 14:22 George Mauer wrote: > Use case: > > I'm using ob-racket

Re: [PATCH] 3 improvements to ob-screen

2020-07-15 Thread Ken Mankoff
On 2020-07-15 at 20:12 -07, Kyle Meyer wrote... > Well, applied, but not pushed yet. In the second patch, the session > name is no longer passed to string-match; it was in the original patch > at . I'll fix it up > locally before pushing. Argh

Re: [PATCH] 3 improvements to ob-screen

2020-07-15 Thread Ken Mankoff
On 2020-07-14 at 20:08 -07, Kyle Meyer wrote... > Could you add a changelog entry to the body of this commit message and > the others? I made the changes you requested. Updated patches attached. -k. >From d7b7555969ce0e58653c5b5a78d9a4a0bebbacdf Mon Sep 17 00:00:00 2001 From: "Kenneth D.

[PATCH] 3 improvements to ob-screen

2020-07-14 Thread Ken Mankoff
Hello, The attached three patches implement a bug fix, a simplification, and a new feature to ob-screen. bug fix: 001 Execute last line in block (send newline) simplify: 002 Don't add extra characters to session name feature: 003 Accept :screenrc header argument I've signed the FSF docs but do

patch: ob-screen support for user-specified screenrc [9.3.7 (9.3.7-12-g5d6868-elpaplus @ /home/kdm/.emacs.d/elpa/org-plus-contrib-20200706/)]

2020-07-09 Thread Ken Mankoff
Last ob-screen patch. I apologize if these should have been one email but they are there independent issues. This patch maintains the default behavior of no screenrc "-c /dev/null", but adds a :screenrc header arg that allows the user to specify their default or any file to be used as a

patch: ob-screen: don't change user-specified session name [9.3.7 (9.3.7-12-g5d6868-elpaplus @ /home/kdm/.emacs.d/elpa/org-plus-contrib-20200706/)]

2020-07-09 Thread Ken Mankoff
ob-screen prepends "org-babel-session-" to the user-specific screen name for some reason. I suggest this is not necessary nor optimal. One of the key points of 'screen' is that you can detach and attach from elsewhere. The name of the session is an important part of this process, and changing

Patch: send 'return' after babel blocks sent to ob-screen [9.3.7 (9.3.7-12-g5d6868-elpaplus @ /home/kdm/.emacs.d/elpa/org-plus-contrib-20200706/)]

2020-07-09 Thread Ken Mankoff
Using ob-screen and this example: #+begin_src screen ls #+end_src The "ls" is transmitted to the screen session, but without a newline, it does not execute. The following patch adds a newline to all babel blocks sent to the screen session. diff --git a/lisp/ob-screen.el b/lisp/ob-screen.el

Bug: org-babel-ref-resolve does not find refs in a COMMENT'ed section [9.3.7 (9.3.7-elpaplus @ /home/kdm/.emacs.d/DEBUG/elpa/org-plus-contrib-20200602/)]

2020-06-05 Thread Ken Mankoff
Hello, I think this is a recent change in behavior. I can no longer eval Babel blocks that expect table inputs via :var when they are in a section with a COMMENT status. Here is an MWE org file: === BEGIN === * COMMENT Tables not found when section is commented #+NAME: table | foo |

Re: Help speeding up Org iCal export

2020-05-28 Thread Ken Mankoff
: > Ken Mankoff writes: > > > When I eval `(org-icalendar-combine-agenda-files nil)`, it takes about > > 15 seconds. > > OK. You may want to profile this, or use ELP. > Output from the profiler is here: https://pastebin.com/QvL9w69R but the key lines seems to be: - o

[O] Help speeding up Org iCal export

2020-05-27 Thread Ken Mankoff
Hello, When I eval `(org-icalendar-combine-agenda-files nil)`, it takes about 15 seconds. Some strange messages in the *Messages* buffer include: 22 files scanned, 7 files contains IDs and in total 23 IDs found. But my `org-agenda-files` variable only contains 12 files and no #+INCLUDE

Re: issue tracker?

2020-05-22 Thread Ken Mankoff
On Wed, May 20, 2020 at 7:36 PM Anthony Carrico wrote: > Given that the mailing list holds the issues, it would be nice if you > could import the mailing list into your client as a lump (maildir/mbox). > Currently you can only download it chunk by chunk, so it isn't really > practical for a

[O] (no)export of special blocks

2020-05-07 Thread Ken Mankoff
Hello, I'd like to be able to optionally export/not-export a specific paragraph within a section, based on a top-level property. Is this possible in Org? I know I can toggle export of code blocks, but what about text blocks? More specifically, I'm writing a journal article and I would like to

Re: Overleaf equivalent for org-babel users?

2020-04-18 Thread Ken Mankoff
> Dear Ken, > > thank you very much. I'm looking into cocalc now. I already got it to > compile some test.org file as pdf. I also set up a test file there in > order to start finding out how to do this. Next step, I guess, would be > to see, if org-babel works. Unfortunately, it

Re: Overleaf equivalent for org-babel users?

2020-04-18 Thread Ken Mankoff
Hi Dr. May, Unfortunately I have not found Emacs + Org to be the right tools when collaborating. What we need is a way for Org wrap/interface/edit Jupyter Notebooks, since that seems to be becoming the standard. Unfortunately. I have had some luck with a hybrid approach using the Sage Notebook

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

2020-03-31 Thread Ken Mankoff
for debugging. -k. On Mon, Mar 30, 2020 at 3:24 PM Joost Kremers wrote: > > On Mon, Mar 30 2020, Ken Mankoff wrote: > > Header args overwrite. Change python to python+ to append header > > args. > > Are you sure? That's not documented anywhere I can find and it > see

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

2020-03-29 Thread Ken Mankoff
Header args overwrite. Change python to python+ to append header args. Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard. On Sun, Mar 29, 2020, 15:42 Joost Kremers wrote: > > On Mon, Mar 30 2020, Joost Kremers wrote: > > Looks like a bug, right? > > And

Re: Strange Org <> OS interaction w/ bad ID

2020-02-24 Thread Ken Mankoff
On Mon, Feb 24, 2020 at 10:51 AM Nicolas Goaziou wrote: > > Does anyone know why Org is parsing files in random folders when > > I have a bad ID and a <>? > > I don't. You may want to check `org-id-files', or walk the hash table > `org-id-locations'. > (apropos "org-id-files") returns nil,

[O] Strange Org <> OS interaction w/ bad ID

2020-02-24 Thread Ken Mankoff
Hi Org List, This is cross-posted here: https://www.reddit.com/r/emacs/comments/f8t50q/help_debugging_org_os_interaction/ I've run into a strange bug. This is reproducible on my machine with "emacs -Q", but not with with emacs-sandbox https://github.com/alphapapa/emacs-sandbox.sh/ so I don't

Building MWE DEBUG.org template file

2020-02-23 Thread Ken Mankoff
Hello, I'm trying to build a DEBUG.org that makes it easy to share MWEs of bugs I run across in Emacs packages. I'd like it to load the latest Org mode by default. Then for any given bug I load the needed packages, configure them, and demonstrate the bug. Right now when I run the attached

Re: Automatic LaTeX preview toggling

2020-02-18 Thread Ken Mankoff
Recent melpa package does this: https://github.com/io12/org-fragtog -k. Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard. On Thu, Feb 13, 2020, 21:20 Ag Ibragimov wrote: > > I just recently discovered that this excellent code snippet that I found >

Re: How to set time limit and memory limit for execution of source blocks

2020-02-09 Thread Ken Mankoff
On 2020-02-03 at 22:40 -08, Anoop GR wrote... > How do I enforce the same on my orgmode source blocks. I want the > execution to stop whenever it exceeds the above limits on memory and > time. There are several packages that implement :async source blocks via the :async header arg. It seems

Re: Properties Drawer versus tags

2019-12-20 Thread Ken Mankoff
On 2019-12-19 at 22:24 -08, Lawrence Bottorff wrote... > Very simple, largely philosophical question: When/why use a properties > drawer below a heading versus just using tags on the heading? What are > the advantages, disadvantages of both? Tags are binary. They are there or not. Property

Re: noweb multiple block together

2019-11-25 Thread Ken Mankoff
Hi Sebastian, On 2019-11-24 at 22:24 -08, Sebastian Miele wrote... > there is the possibility to give a common name to multiple blocks via > the header arg :noweb-ref. That works in the way you looking for. Yes this does what I want. I once knew but then forgot about this. Thank you for

noweb multiple block together

2019-11-24 Thread Ken Mankoff
Hello, When tangling blocks, I can tangle multiple blocks by setting a (sub)-tree level property, or ":tangle foo" in multiple headers. Is there a way to achieve the same thing with noweb? I've tried giving multiple blocks the same "+name:" and then <>, but only one seems to be included. Does

Re: Using Org and eev together - problem with source blocks

2019-11-10 Thread Ken Mankoff
On 2019-11-10 at 15:36 +01, Eduardo Ochs wrote... > Changing the Python source block to > > #+BEGIN_SRC python :output results > > Are you sure that you wrote it correctly? I'm pretty sure I did not. Try ":results output" -k.

Re: Using Org and eev together - problem with source blocks

2019-11-10 Thread Ken Mankoff
On 2019-11-10 at 02:54 +01, Eduardo Ochs wrote... > #+BEGIN_SRC python > def square (x): > return x*x > > print(square(5)) > #+END_SRC > > [...] when I run the Python block with C-c C-c I always get a results > block like this (without the indentation): > > #+RESULTS: > : None > > What

Re: where to place caption so babel results include caption?

2019-11-09 Thread Ken Mankoff
On 2019-11-06 at 17:53 +01, Ken Mankoff wrote... > On 2019-11-06 at 17:05 +01, Berry, Charles wrote... >> M-: (org-babel-map-src-blocks nil (org-babel-insert-result "" >> '("replace"))) RET An improvement: Don't insert #+results: if they don't already ex

Re: where to place caption so babel results include caption?

2019-11-06 Thread Ken Mankoff
On 2019-11-06 at 17:05 +01, Berry, Charles wrote... > M-: (org-babel-map-src-blocks nil (org-babel-insert-result "" > '("replace"))) RET > > HTH, Yes that helps! A simple solution. Thank you. -k.

[O] where to place caption so babel results include caption?

2019-11-06 Thread Ken Mankoff
Hello, If I have a babel block that generates a table and I'd like latex attributes associated with that table, it seems to work well if I do this: #+NAME: foo #+BEGIN_SRC bash :results table echo "${RANDOM}|${RANDOM}|" echo "${RANDOM}|${RANDOM}|" #+END_SRC #+caption: foo #+latex_attr:

Re: Org mode for meeting minutes

2019-10-31 Thread Ken Mankoff
Hello, I think you can achieve that table with existing functionality. (setq org-agenda-overriding-columns-format "%ITEM %TODO %DEADLINE") And then agenda column view (C-c C-x C-c) shows a similar output. I think similar outputs and methods could be used with :property: keywords too for

Re: [O] Creating a (RabbitMQ) diagram

2019-10-17 Thread Ken Mankoff
On 2019-10-17 at 13:12 +02, PICCA Frederic-Emmanuel wrote... > https://en.wikipedia.org/wiki/PGF/TikZ Or you can do it with Ditaa, http://plantuml.com, others that may be easier to use than TikZ. -k.

Re: [O] [PATCH] Add :eval only-manual to babel blocks

2019-10-16 Thread Ken Mankoff
On 2019-10-16 at 12:38 +02, Nicolas Goaziou wrote... > Of course, meawhile, do not rely on undefined behaviour :) Would you accept a documentation patch that defines the current behavior? Then I get what I want, and it is on future developers to not mess it up :). -k.

Re: [O] [PATCH] Add :eval only-manual to babel blocks

2019-10-16 Thread Ken Mankoff
Hi Nicolas, On 2019-10-16 at 12:38 +02, Nicolas Goaziou wrote... > Note that what you want, i.e., to distinguish behaviour depending on > the location of the call stack is cheesy, at best. Think about macros, > user-defined functions, etc. Yes, it felt a bit hackish. But I'm new to this level

Re: [O] [PATCH] Add :eval only-manual to babel blocks

2019-10-16 Thread Ken Mankoff
On 2019-10-14 at 09:10 +02, Ken Mankoff wrote... > With this patch and ":eval only-manual" in a babel header, > > Org evaluates the source code if it is run via ~org-ctrl-c-ctrl-c~ > (e.g. =C-c C-c= in the babel block), but not if run via the > ~org-babel-execute-b

Re: [O] JShell support in Babel?

2019-10-15 Thread Ken Mankoff
On 2019-10-15 at 13:04 +02, Jarmo Hurri wrote... > JShell is a pretty nifty tool for exploring and demonstrating basic Java > features. Has anyone happened to write support for it in Babel? You can start working with it even without official Babel support: #+BEGIN_SRC bash :results verbatim

[O] [PATCH] Add :eval only-manual to babel blocks

2019-10-14 Thread Ken Mankoff
With this patch and ":eval only-manual" in a babel header, Org evaluates the source code if it is run via ~org-ctrl-c-ctrl-c~ (e.g. =C-c C-c= in the babel block), but not if run via the ~org-babel-execute-buffer~ function. This is my first contribution to Org core. I've signed FSF papers.

Re: [O] Bug and quick bugfix

2019-10-13 Thread Ken Mankoff
On 2019-10-13 at 09:26 +02, Nicolas Goaziou wrote... > IIRC, the label has to be included in the caption command. I applied a > different solution. Let me know if that works for you. I thought so too. But I couldn't find a definitive answer for this when searching about this last night.

Re: [O] Babel eval w/ C-c C-c but not (org-babel-execute-buffer)

2019-10-10 Thread Ken Mankoff
On 2019-10-11 at 00:13 +02, Tim Cross wrote... > My concern with this suggestion is that I think it my result in > 'surprising' or unexpected results for users. I hope nobody would be surprised if they C-u C-u C-c C-c'd ! :) Just as they shouldn't be surprised if the :cache is ignored, if run

Re: [O] Babel eval w/ C-c C-c but not (org-babel-execute-buffer)

2019-10-10 Thread Ken Mankoff
Hi Charles, On 2019-10-10 at 18:22 +02, Berry, Charles wrote... > If the language mode you use supports of evaluation of the src edit > buffer (e.g. ESS[R], Python), you can issue > > C-c C-v v C-c C-b > > for ESS[R] or > > C-c C-v v C-c C-c > > for Python (I think) > > The commands will expand

Re: [O] Babel eval w/ C-c C-c but not (org-babel-execute-buffer)

2019-10-10 Thread Ken Mankoff
Hello, I think that even when ":eval no" is set, eval should happen if the user explicitly requests it. The use case is that I have code that takes an unreasonable amount of compute time to run it in Emacs (e.g. a full day of compute time). I think even with :async this type of code should be

Re: [O] noweb and :var statements

2019-10-06 Thread Ken Mankoff
Hi Sebastian, Thanks for your help. I was running with "-Q" but must have been making some other mistakes. It does work. As for your other email... I do know several tangles can go to the same file. And I may be using <> incorrectly, but I'm using it for the following reasons: 1) I'd like to

Re: [O] noweb and :var statements

2019-10-06 Thread Ken Mankoff
On 2019-10-06 at 21:52 +02, Sebastian Miele wrote... > I wrote: > >> [..] >> >> However, something like the following may suit your use case. (For the >> header-args property see section 15.2 (Using Header Arguments) of the >> manual.) >> >> * A Heading >> :PROPERTIES: >> :header-args: :var

Re: [O] noweb and :var statements

2019-10-06 Thread Ken Mankoff
Hi Sebastian, I'm not getting the results I expect from your MWE either. Perhaps I gave too much code and asked X when what I really want is Y. I think I've distilled it to this: What is the most elegant Org way to get a table into a Python array? I can code it directly: #+BEGIN_SRC python

[O] noweb and :var statements

2019-10-06 Thread Ken Mankoff
Hi Org list, I'm having with noweb and variables. Can someone explain what I'm doing wrong? For example, if I have this table: #+NAME: table_foo | foo | |-| | 42 | | 100 | And I want to import it into Python and use it, I can do that like this: #+NAME: import #+BEGIN_SRC python :var

[O] Babel eval w/ C-c C-c but not (org-babel-execute-buffer)

2019-10-02 Thread Ken Mankoff
Hello, I'm interested in having code blocks that do not eval when I run (org-babel-execute-buffer) but do when the cursor is within them and I explicitly want to execute them by entering C-c C-c. I cannot get this behavior playing around with the :eval header argument. Is the behavior I

Re: [O] Org babel tangle: Don't export code

2019-09-24 Thread Ken Mankoff
On 2019-09-25 at 01:07 +02, Tim Cross wrote... > I just put :tangle no in the block header e.g. > > #+begin_src emacs-lisp :tangle no > > #+end_src Also, * COMMENT Section #+BEGIN_SRC # not exported because of COMMENT #+END_SRC -k.

Re: [O] Modify a variable before it is passed to babel (or exported)?

2019-09-16 Thread Ken Mankoff
isp{(org-sbe add-one (data table))} {{{results(=43=)}}} -k. On 2019-09-16 at 10:21 -07, Ken Mankoff wrote... > I'd like to modify a variable with a babel block before another block > sees the variable. For example, I always want to add one to a > variable: > > #+NAME: add-one > #

  1   2   3   4   5   6   >