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
gt; part of the class and they surely can manage without that. As always, > such options are rather taken up by the more skilled, and not so much by > the weaker students, unfortunately. > > Cheers, have a good weekend! > > J > > Am Samstag, 18. April 2020 um 15:59 schrieb Ke

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 > #

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

2019-09-16 Thread Ken Mankoff
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 #+BEGIN_SRC bash :results verbatim :var data=0 data=$(( data + 1 )) echo $data #+END_SRC #+RESULTS: add_one : 1 Test it: #+CALL:

[O] Babel, bash, :variables, and tangling

2019-09-15 Thread Ken Mankoff
Hi List, I'm having some trouble getting babel executed in Emacs and scripts that are tangled to behave the same. I think I've distilled it down to an MWE. I'd like to inject #+NAME: table | 1 | 2 | | 3 | 4 | into a bash workflow where I need each of those 4 items with their respective row

Re: [O] minimal testing setup for pdf export?

2019-08-26 Thread Ken Mankoff
On 2019-08-27 at 03:20 +02, Matt Price wrote... > Can someone point me to a minimal setup for testing PDF export with "emacs > -Q"? I am unable to produce a pdf with default settings and I am pretty > sure that the latex is invalid... but I'm having trouble testing it since > I 9still) know so

Re: [O] insert date-stamp for one month

2019-08-18 Thread Ken Mankoff
On 2019-08-18 at 03:58 -04, Uwe Brauer wrote... > I sometimes need to insert a date-stamp which corresponds to one month > in a year, say march 2019. I usually insert <2019-03-01 > Fri>--<2019-03-31 Sun>, but this is cumbersome to do manually. > > Somebody has a better idea or know how to insert

Re: [O] join two or more tables

2019-08-18 Thread Ken Mankoff
On 2019-08-18 at 04:23 -04, Uwe Brauer wrote... > I was googling this a bit, I found more complicated scenarios, but not > how to join one or more tables. > > [...] > > I want to generate a new table total-nuts, which is just a combination > of the two tables, nuts and nuts2 Does

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-07-26 Thread Ken Mankoff
On 2019-07-26 at 08:58 -04, Martin Alsinet wrote... > I usually have a shell buffer nearby and go there to inspect the > failed tests when I get no output. The problem is that shell blocks do > not capture stderr. John Kitchin wrote a blog post >

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-07-26 Thread Ken Mankoff
Hi Martin, On 2019-06-26 at 18:09 -04, Martin Alsinet wrote... > I use a different approach, where I tangle the source into files in > modules and then I import those modules from other blocks. This allows > me to organize my document with different sections for the code and > its tests, which

Re: [O] Show breadcrumbs of nodes in agenda

2019-07-26 Thread Ken Mankoff
On 2019-07-26 at 06:47 -04, Florian Lindner wrote... > the agenda only shows the title of nodes, like: > > capture:TODO Task 1 > > Often, I have a structure like > > * Project A > ** Task 1 > > * Project B > ** Task 1 > > Is there a way to also show the title of the parent in agenda buffer

Re: [O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-07-26 Thread Ken Mankoff
On 2019-07-26 at 03:14 -04, Joseph Vidal-Rosset wrote... > Did you want to suggest that it is not difficult to adapt such a > function for gnus by replacing the mention of mu4e by gnus' in the > code? I wasn't suggesting anything, just letting you/others know that the functionality you

Re: [O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-07-25 Thread Ken Mankoff
On 2019-07-25 at 12:24 -04, Joseph Vidal-Rosset wrote... > Documentation to create a todo.org list that provides links to email as > tasks is not seldom on the web. I recommend for example > [[http://pragmaticemacs.com/]]. > > But for gnus-imap-gmail users, it is more

Re: [O] Links to LaTeX equations

2019-06-28 Thread Ken Mankoff
Hi Eric, On 2019-06-28 at 10:55 -02, Fraga, Eric wrote... > I would like to be able to use org fully with respect to links and > targets. If I define a label in LaTeX directly, \label{an-equation} > for instance, I get no benefit from using an org link to it, e.g. > [[an-equation]] Why don't

Re: [O] Output result of source block to a file

2019-06-05 Thread Ken Mankoff
On 2019-06-05 at 12:41 +02, Roger Mason wrote... > I want to output the result of the evaluation of a (python) source > block to a (graphics) file and have a link to the file inserted in the > buffer. > > Here is the code: > > #+begin_src python :results value file :file scaleplot02.pdf

Re: [O] Slight problems with links

2019-04-30 Thread Ken Mankoff
Hi Emmanuel, I have looked into PDF and DOCX export repeatedly over the years with different versions of Org and Pandoc and Google Docs and keep finding that the best method is Org -> LaTeX, and then LaTeX -> DOCX with Pandoc. I use this babel block to achieve this: #+BEGIN_SRC sh :results

Re: [O] Porting Apple Calendars to org-mode

2019-04-24 Thread Ken Mankoff
On 2019-04-24 at 21:56 +0200, Mohamed Wael Khobalatte wrote... > The file(s) you linked to usually assume a generated list of ics files > no? I didn't link to any files. There are *many* ical2org packages, many different ones. The one I currently use does expect an ICS file. If you use

Re: [O] Porting Apple Calendars to org-mode

2019-04-24 Thread Ken Mankoff
Hi Mohamed, On 2019-04-24 at 21:32 +0200, Mohamed Wael Khobalatte wrote... org-mode), > Does anyone know how I can get my Apple calendar to show up in > org-mode as readonly (preferably)? I had no luck with org-mac-iCal. There are several tools named ical2org - different languages,

Re: [O] Tracking time from one state to another?

2019-04-23 Thread Ken Mankoff
Org clocking feature, not just the TODO status feature. -k. On 2019-04-23 at 08:07 +0200, Malcolm Matalka wrote... > Ken Mankoff writes: > >> Hi Malcom, >> >> On 2019-04-17 at 14:20 +0200, Malcolm Matalka wrote... >>> Is it possible in org-mode to tra

Re: [O] Tracking time from one state to another?

2019-04-22 Thread Ken Mankoff
Hi Malcom, On 2019-04-17 at 14:20 +0200, Malcolm Matalka wrote... > Is it possible in org-mode to track, and report, the duration of > certain state transitions in org-mode? In particular, I'm interested > in tracking how long it takes me to go from a state that means I'm > actively working on

Re: [O] Smart archiving of subtrees with parent headlines

2019-04-02 Thread Ken Mankoff
he results to a tree or subtree. I can do the last one! -k. On Fri, Mar 29, 2019 at 8:18 AM Ken Mankoff wrote: > > On 2019-03-29 at 03:23 +0100, Mark Edgington wrote... > > But it sounds like you're saying that it won't work with the latest > > git versions? > > el

Re: [O] Smart archiving of subtrees with parent headlines

2019-03-29 Thread Ken Mankoff
On 2019-03-29 at 03:23 +0100, Mark Edgington wrote... > But it sounds like you're saying that it won't work with the latest > git versions? elpa, not git. But yes, this code is expecting and calling functions no longer in the core code. -k.

Re: [O] Smart archiving of subtrees with parent headlines

2019-03-28 Thread Ken Mankoff
On Tue, May 1, 2018 at 11:01 AM Bastien wrote: > Hi Mark, > > Mark Edgington writes: > > > I don't know why not -- I'm OK with the code being used in > > org-archive.el. As far as I'm concerned, you can use it however you > > wish (it is based on Ken's code though, so he would also need to

[O] Archiving to a subtree

2019-03-17 Thread Ken Mankoff
Hello list, I used to archive items to a subtree (in an archive file) using some functions provided on this list back in 2014 [1]. I recently updated Org and this code stopped working because the 'org-extract-archive-file' function has been removed. This was commit

Re: [O] Macro that calls external program

2019-03-11 Thread Ken Mankoff
Hi Josh, On 2019-03-10 at 23:37 +0100, Josh wrote... > I am new to emacs and orgmode. I spent the last couple days reading > most of the docs before diving in, Welcome! > but I didn't see anywhere how I could have a macro that instead of > replacing the macro with lisp code, calls an external

Re: [O] Set checkbox to intermediate in code

2019-03-02 Thread Ken Mankoff
On 2019-02-28 at 08:51 +0100, Cecil Westerhof wrote... > I can set a checkbox to intermediate with: > C-u C-u C-c C-x C-b FYI, C-c C-c toggles boxes too. Shorter than C-c C-x C-b. -k.

Re: [O] Mark vacation days

2019-01-27 Thread Ken Mankoff
Hi, On 2019-01-27 at 12:20 -0800, JRSS wrote... > This is a bit over my head still. I'm trying to wrap my head around it. > > I see what it does (colors day-of-the-week 1 and day-of-the-week-3, > which are Monday and Wednesday, red) but not sure how to tie it to a > category (so say, category

Re: [O] Mark vacation days

2019-01-27 Thread Ken Mankoff
Hi, On 2019-01-27 at 07:20 -0800, JRSS wrote... > Does anyone know where I start getting something like this working? > Programming is not my strong suit, but I can slowly wrap my head > around some bits of code. It looks like this function might be a good place to start:

Re: [O] Preparing a cost estimate with Org

2019-01-24 Thread Ken Mankoff
On 2019-01-24 at 09:35 -0800, Lele Gaifax wrote... >> You could perhaps do this with code, so it is only one C-c C-c? > > I did not understand what you mean with "do this with code" though: > some kind of a macro or what? I meant write a Babel Block in your favorite language that takes a table

Re: [O] Preparing a cost estimate with Org

2019-01-24 Thread Ken Mankoff
Hi Lele, On 2019-01-24 at 07:59 -0800, Lele Gaifax wrote... > The only problem with this approach is that it requires a manual > intervention to build the "cost estimate" table: first I recompute the > "efforts" one with C-c C-c, then I copy its body to the other table, > delete the third column

Re: [O] Tracking Tags ??

2019-01-23 Thread Ken Mankoff
On 2019-01-23 at 12:22 -0800, John Kitchin wrote... > I see, that only finds files with the particular tag. I think the goal of > this is to get a list of all the tags, for use in completion, for example. I do not think grep is the right solution, but as an ugly hack it can find most of my

Re: [O] org-ref exports nicely to html but not to odt

2019-01-04 Thread Ken Mankoff
On 2019-01-04 at 22:37 +0100, Uwe Brauer wrote: > I exported the org file in question to latex (I could also start > directly with latex for that matter.) Yes. > Could I stick with bibtex? Yes. No need to use biber + biblatex, you can stick with bibtex. I only run that command because my

Re: [O] org-ref exports nicely to html but not to odt

2019-01-04 Thread Ken Mankoff
On 2019-01-04 at 18:08 +0100, Uwe Brauer wrote: > When I export it to html, the bibliography comes out nice. When I > export it to odt, the resulting odt files contains a lot of rubbish. > > A kludge is to export it to html and then open it with LO/OO and copy > it in an empty odt file, but is

[O] LaTeX preamble from Babel blocks

2018-12-22 Thread Ken Mankoff
Hello, I thought I saw a recent mention that instead of #+LATEX_HEADER: foo it is now possible to do #+BEGIN_SRC latex :some-header-option some-value foo #+END_SRC And have "foo" appear in the *preamble*, not body. Is this correct? I cannot find the syntax searching the mailing list

Re: [O] non-math superscripts in LaTeX export

2018-12-17 Thread Ken Mankoff
On 2018-12-17 at 15:45 -0800, Nicolas Goaziou wrote: >> It seems to me like a^b should export as a\textsuperscript{b}. >> Do others agree? > > I think you're right. I changed "ox-latex" to use \textsubscript and > \textsuperscript in master. Could you check the result is correct now? Seems to

Re: [O] non-math superscripts in LaTeX export

2018-12-17 Thread Ken Mankoff
I know pandoc is not the Org reference implementation, but digging into this further I noticed that pandoc exports a^{b} from Org to LaTeX the way I expected/hoped Org would: $ echo "a^{b}" | pandoc -f Org -t latex a\textsuperscript{b} -k. On 2018-12-17 at 14:21 -0800, Ken Mank

[O] non-math superscripts in LaTeX export

2018-12-17 Thread Ken Mankoff
Hi, This file: Math mode: a\(^{b}\) Non-math mode: a^{b} What I'd like: a\textsuperscript{b} Is exported to this LaTeX code: Math mode: a\(^{b}\) Non-math mode: a\(^{\text{b}}\) What I'd like: a\textsuperscript{b} When viewing a PDF from that LaTeX source, the first (Math mode) appears

Re: [O] cannot export to beamer.

2018-12-16 Thread Ken Mankoff
On 2018-12-16 at 10:16 -0800, Uwe Brauer wrote: > So the problem is in my init file and I am quite sure that it has to > do with the following lines in my custom- file > > '(org-latex-classes What is the full line here? Is this a "setq"? I have: (add-to-list 'org-latex-classes

Re: [O] cannot export to beamer.

2018-12-15 Thread Ken Mankoff
On 2018-12-15 at 09:38 -0800, Uwe Brauer wrote: > I am very used to the beamer style and it works on my machine quite > well. But it doesn't work quiet well according to this email. What changed? Are you on a new machine? Is LaTeX installed? > Now I took the example >

Re: [O] ODT export --> opening in Okular?

2018-12-09 Thread Ken Mankoff
On 2018-12-09 at 17:45 -0800, James Harkins wrote: > Anyway, the solution for now, as I'm under some time pressure, is to > declare that ODT export is broken on my system until I can scrape > together some time to upgrade org. PDF export is actually OK for now > (and working fine). But export

Re: [O] “Fuzzy” times (“evening”, “morning”, “night”…)

2018-12-08 Thread Ken Mankoff
On 2018-12-08 at 09:47 -0800, Leo Gaspard wrote: > However, I think it may be a good idea to allow eg. this kind of > timestamps: > <2018-02-04 Tue evening> That would be handled as though it > was eg. <2018-02-04 Tue 18:00-22:00> (which would be configurable), so > that it would be

  1   2   3   4   5   >