Documentation of hline symbol in source blocks results

2023-12-25 Thread Tim Landscheidt
Hi, this is just a data point for anyone looking at restructur- ing the Org documentation. I wanted an Emacs Lisp source block to produce a table with a column name and a horizontal line separating the column name and the data cells. The data-only source block: | #+BEGIN_SRC emacs-lisp |

Re: How to execute Lisp code /after/ a capture template has been filled before it is finalized?

2023-12-24 Thread Tim Landscheidt
Ihor Radchenko wrote: > […] > %(...) expansion is executed _before_ capture template is fully > calculated. It is generally not designed to side-effect functions. > You can instead use template-local hooks, introduced in Org 9.6. See >

How to execute Lisp code /after/ a capture template has been filled before it is finalized?

2023-12-23 Thread Tim Landscheidt
Hi, I (want to) have a capture template that fills a table and then (re-)calculates a cell based on a formula (and aligns the table): | - Note taken on %U | | Coin | Count | |---+| | | 0.01 | %^{Number of € 0.01 coins|0} | | | 0.02 | %^{Number of € 0.02 coins|0} | | |

Best practice for writing and debugging shell source blocks?

2023-10-24 Thread Tim Landscheidt
Hi, inspired by "Literate DevOps" (https://howardism.org/Technical/Emacs/literate-devops.html), I want to document some "stuff" in an Org file with the goal to be able to replay the steps done in the future so that I can either recreate the same "product" or variations there- of. My actual topic

Re: What is a week?

2023-04-10 Thread Tim Landscheidt
Max Nikulin wrote: > […] > So at least some people expect 7, not 0. I would say, both > variants should be acceptable. > P.S. It seems, there is no way to get in Emacs first_weekday from locale(5) But there is calendar-week-start-day which I would expect affected Emacs users to have

[BUG] Documentation for #+INCLUDE: does not specify order when exporting [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)]

2023-04-08 Thread Tim Landscheidt
With the Org file: | #+BEGIN_SRC python :results silent :exports results | test = '1' | with open('test-a.log', 'w') as f: | f.write(f'Test {test}a\n') | with open('test-b.log', 'w') as f: | f.write(f'Test {test}b\n') | #+END_SRC | Test, part A: | #+INCLUDE: "test-a.log"

Re: Some links in online manual do not work

2022-10-16 Thread Tim Landscheidt
Bastien Guerry wrote: >> More: > Fixed, thanks! > https://git.sr.ht/~bzg/worg/commit/408f05a0 Thanks to everyone involved, works for me now! Tim

Re: Some links in online manual do not work

2022-10-07 Thread Tim Landscheidt
Bastien Guerry wrote: >> AFAIK, our nginx configs are not public, but Bastien may privately share >> them if you are willing to help. > FWIW, I've shared the nginx.config here: > https://git.sr.ht/~bzg/worg/tree/master/item/nginx.conf Thanks. Assuming the relevant line is: | rewrite

Re: Some links in online manual do not work

2022-10-06 Thread Tim Landscheidt
Ihor Radchenko wrote: >>> This looks like the nginx case issue again. >>> I've looked at this and there does not seem to be any 'clean' way to fix >>> this which also doesn't have significant processing overhead or a >>> maintenance burden. >>> I wonder if it would be worthwhile adding an

Re: Some links in online manual do not work

2022-10-05 Thread Tim Landscheidt
Tim Cross wrote: >> at https://orgmode.org/manual/HTML-Export.html, the links >> for the first five (5) and the last two (2) subsections >> work, the links for: >> - "Headlines in HTML export" >> (https://orgmode.org/manual/Headlines-in-HTML-export.html) >> - "Links in HTML export" >>

Some links in online manual do not work

2022-10-02 Thread Tim Landscheidt
Hi, at https://orgmode.org/manual/HTML-Export.html, the links for the first five (5) and the last two (2) subsections work, the links for: - "Headlines in HTML export" (https://orgmode.org/manual/Headlines-in-HTML-export.html) - "Links in HTML export"

Possible to robustly embed elisp links in source block table results?

2022-02-12 Thread Tim Landscheidt
Hi, I want org-mode to display a tab-separated values table ge- nerated by jq that includes elisp links that do something (differently) for each row, especially containing data that is not displayed in other columns. The source block: | #+BEGIN_SRC sh :colnames '(Column\ A Column\ B Column\ C)

Testing if a scheduled date is prior to another date

2021-08-22 Thread Tim Landscheidt
Hi, in a capture template, I want to test whether the scheduled date for a specific task is prior to another, calculated date (and depending on the answer, insert a checkbox or not). I can get the scheduled date for the task by: | (with-current-buffer (find-file-noselect "/path/to/file.org") |

Re: Bug: Cannot insert multiple multi-line elisp links [9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/)]

2021-08-09 Thread Tim Landscheidt
Eric S Fraga wrote: > What if you escape the \n, i.e. \\n? Then org-mode's display is correct, but the message call will not output a newline, but a backslash and an "n" :-). Tim

Re: Bug: Cannot insert multiple multi-line elisp links [9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/)]

2021-08-08 Thread Tim Landscheidt
(Sidenote: The issue can be worked around by replacing "\n" with (make-string 1 10).)

Bug: Cannot insert multiple multi-line elisp links [9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/)]

2021-08-08 Thread Tim Landscheidt
With Emacs 27.2, I want to generate a list of stuff with em- bedded Emacs Lisp scripts to work on it. The Emacs Lisp scripts have newlines as string literals in them. When I evaluate: | #+BEGIN_SRC elisp :results raw :var number-of-lines=1 | (mapconcat |(lambda (i) | (concat |

Re: Bug: "DEFINITION NOT FOUND" for footnote in Org manual

2021-07-24 Thread Tim Landscheidt
Timothy wrote: > […] >> The original footnote seems to have been added with commit >> e30aed8f0c62e74633f7a0398340f9bd7bdfa3cc (but personally I >> don't find that text very helpful). > Do you think it would be more appropriate to update or remove the > footnote? AFAIUI, if LANGUAGE is set,

Bug: "DEFINITION NOT FOUND" for footnote in Org manual

2021-07-11 Thread Tim Landscheidt
At https://orgmode.org/manual/Export-Settings.html#DOCF124 and (renumbered to "fn:123") in doc/org-manual.org, a foot- note is defined as "DEFINITION NOT FOUND": | [tim@vagabond ~/src/org-mode]$ git grep -2 'DEFINITION NOT FOUND' -- doc/org-manual.org | doc/org-manual.org-this timestamp are

Re: Time Slots in Org-Agenda

2020-12-15 Thread Tim Landscheidt
steve-humphr...@gmx.com wrote: >> >> See org-agenda-time-grid >> > >> > Where can I find some information on how to use it? >> Menu help -> Describe -> Describe variable org-agenda-time-grid >> or >> v org-agenda-time-grid > At first > I have started with the following command, but emacs

Bug: :prologue and :epilogue are ignored in ob-sql code blocks (inter alia)

2020-11-24 Thread Tim Landscheidt
With Emacs 27.1/org-mode 9.3, "(org) Environment of a Code Block" ends with: | Inserting headers and footers | - | The ‘prologue’ header argument is for appending to the top of the code | block for execution, like a reset instruction. For example, you may use |

Capture with (moving) attachment?

2020-07-22 Thread Tim Landscheidt
Hi, I have a capture template to file items to a list: | ("i" "inventory" entry | (file "~/Desktop/Agenda/Inventar.org") | "* %^{Name}" :immediate-finish t) Currently, when I want to file an item with an associated image, I open the directory of the images with dired, visit the image file,

Re: How to mark task as done at specified (past) time?

2020-07-08 Thread Tim Landscheidt
Kyle Meyer wrote a long time ago: > […] >> Do I have to cl-flet org-current-time or something similar? > Something along those lines would probably be the most straightforward. > Light testing with the command below suggests overriding current-time is > sufficient: > (defun

How to mark task as done at specified (past) time?

2019-11-28 Thread Tim Landscheidt
Hi, with Emacs 26.2/org-mode 9.1.9, I have a repeating task that I close with a helper function: | (defun tl-entry-done () | (interactive) | (find-file "/path/to/file.org") | (goto-char (org-find-entry-with-id "ENTRY-ID")) | (org-todo 'done)) Every time I do this task, I get an

[O] [PATCH] ox-rss: Fix typos

2019-07-15 Thread Tim Landscheidt
--- contrib/lisp/ox-rss.el | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/lisp/ox-rss.el b/contrib/lisp/ox-rss.el index 10f2cc244..bb069dadf 100644 --- a/contrib/lisp/ox-rss.el +++ b/contrib/lisp/ox-rss.el @@ -22,8 +22,8 @@ ;;; Commentary: -;; This

[O] Bug: Incorrect/incomplete documentation for org-timestamp-change

2019-05-05 Thread Tim Landscheidt
I wanted to (and did) change a number of timestamps by a constant. So I found (and successfully used) org-timestamp-change which starts with (master): | […] | (defun org-timestamp-change (n what updown suppress-tmp-delay) | "Change the date in the time stamp at point. | The date will be

Re: [O] Bug: Broken orgmode.org links in doc/misc/org.texi and lisp/org

2018-03-06 Thread Tim Landscheidt
I wrote: > […] > The following links in Emacs master's doc/misc/org.texi and > lisp/org are broken (404): > - https://orgmode.org/org-remember.pdf > - https://orgmode.org/worg/code/org-info-js/ > - https://orgmode.org/worg/org-contrib/babel/languages.html > -

Re: [O] Bug: Broken orgmode.org links in doc/misc/org.texi and lisp/org

2018-02-05 Thread Tim Landscheidt
Nicolas Goaziou wrote: >> Could you then please document TINYCHANGE in >> README_contribute? Merci! > This is already covered at > I may be biased here because I did not find that :-), but that page is

Re: [O] Purpose of mk/pw?

2018-02-05 Thread Tim Landscheidt
il as well, so the attached patch will remove it. Tim >From 7214e34e3104399035c523eaa28b33ad4498f3b2 Mon Sep 17 00:00:00 2001 From: Tim Landscheidt <t...@tim-landscheidt.de> Date: Mon, 5 Feb 2018 14:12:16 + Subject: [PATCH] Remove obsolet

Re: [O] [PATCH] Remove obsolete mk/list-hooks.pl

2018-02-05 Thread Tim Landscheidt
Nicolas Goaziou wrote: >> The functionality of mk/list-hooks.pl has been implemented by mk/eldo.el. >> * mk/list-hooks.pl: Remove. > Are you sure list-hooks.pl isn't used? Reasonably sure; mk/eldo.el has the same (or more) function- ality and is referenced in

Re: [O] Bug: Broken orgmode.org links in doc/misc/org.texi and lisp/org

2018-02-05 Thread Tim Landscheidt
aint (I removed TINYCHANGE because I have signed papers for Emacs since then). Tim >From 14fa16af86dfc21e77698a36c76a4e6ac017cd49 Mon Sep 17 00:00:00 2001 From: Tim Landscheidt <t...@tim-landscheidt.de> Date: Tue, 16 Jan 2018 16:46:46 + Subject: [PATCH] Make manual and URL links in

[O] [PATCH] Remove obsolete mk/list-hooks.pl

2018-01-18 Thread Tim Landscheidt
The functionality of mk/list-hooks.pl has been implemented by mk/eldo.el. * mk/list-hooks.pl: Remove. TINYCHANGE --- mk/list-hooks.pl | 32 1 file changed, 32 deletions(-) delete mode 100755 mk/list-hooks.pl diff --git a/mk/list-hooks.pl b/mk/list-hooks.pl

Re: [O] Bug: Broken orgmode.org links in doc/misc/org.texi and lisp/org

2018-01-18 Thread Tim Landscheidt
more carefully, espe- cially as there probably should remain some test cases for http URLs. (I get a test failure for test-org/timestamp-from-time, but AFAICT this is unrelated.) Tim >From defa7770f7b136d6ec122f91ee84a471d6a83462 Mon Sep 17 00:00:00 2001 From: Tim Landscheidt <t...@tim-landscheid

Re: [O] Bug: Broken orgmode.org links in doc/misc/org.texi and lisp/org

2018-01-18 Thread Tim Landscheidt
Nicolas Goaziou wrote: >> According to Emacs's CONTRIBUTE (referenced by >> README_contribute), that should be >> "Copyright-paperwork-exempt: yes"? > Our commits do not appear in Emacs' history, so we are not required to > follow their conventions for commit messages.

Re: [O] Bug: Broken orgmode.org links in doc/misc/org.texi and lisp/org

2018-01-18 Thread Tim Landscheidt
Nicolas Goaziou wrote: > […] > Thank you! However, these patches do not seem to apply cleanly on maint > tip. Could you rebase them against maint HEAD and send them again? Sure. > Also, if you haven't signed FSF papers, you need to add TINYCHANGE at > the end of each

[O] Purpose of mk/pw?

2018-01-17 Thread Tim Landscheidt
Hi, mk/pw seems to have not been touched in a long time, and whatever it did, it does not seem to do it nowaways: | [tim@passepartout ~/src/org-mode]$ mk/pw list | Traceback (most recent call last): | File "mk/pw", line 664, in | main() | File "mk/pw", line 585, in main |

[O] Test test-org/timestamp-from-time fails on Fedora 26/Debian Jessie

2018-01-16 Thread Tim Landscheidt
On Fedora 26/Emacs 25.3.1 and Debian Jessie/Emacs 24.4.1, test-org/timestamp-from-time fails with: | Test test-org/timestamp-from-time backtrace: | (if (unwind-protect (setq value-14556 (apply fn-14554 args-14555)) ( | (let (form-description-14558) (if (unwind-protect (setq value-14556 |

Re: [O] Bug: Broken orgmode.org links in doc/misc/org.texi and lisp/org

2018-01-16 Thread Tim Landscheidt
test cases for http URLs. (I get a test failure for test-org/timestamp-from-time, but AFAICT this is unrelated.) Patch #5 just adds a trailing slash to two links to https://orgmode.org/worg/org-contrib/babel. Tim >From eb2208842b3568122ecc9f9936dc255d73b76577 Mon Sep 17 00:00:00 2001 From: Tim L

[O] Documentation references to htmlize and htmlize vs. htmlfontify

2018-01-08 Thread Tim Landscheidt
Hi, the Org Mode Manual (here: Emacs master's 9.1.4) refers to htmlize in several places in slightly different ways; for example, in one place it says: | This works automatically for the HTML back-end (it requires | version 1.34 of the ‘htmlize.el’ package, which you need to | install). This is

[O] Bug: Broken orgmode.org links in doc/misc/org.texi and lisp/org

2018-01-07 Thread Tim Landscheidt
(All links to http://orgmode.org/ should be updated to https://orgmode.org/ and a slash should be added to https://orgmode.org/worg/org-contrib/babel to avoid a redirect.) The following links in Emacs master's doc/misc/org.texi and lisp/org are broken (404): -

Re: [O] Public TODO agendas

2017-11-21 Thread Tim Landscheidt
Tim Cross wrote: > I don't think tramp will work in this way, at least not without some > sort of special client running on the remote http server and > modifications to tramp to work with that client. The HTTP protocol will > not easily fit with tramp - in fact, it is

[O] "Show Org source" on http://orgmode.org/worg/ does not work

2017-05-18 Thread Tim Landscheidt
Hi, if I click (for example) on http://orgmode.org/worg/ on the button "Show Org source", nothing happens. The browser con- sole shows that "show_org_source is not defined". If that is non-trivial to fix, removing the button ad inter- im would be an option as well. Tim

[O] org-compat needed for org-gnus?

2014-02-10 Thread Tim Landscheidt
Hi, I recently made the jump to install my first ELPA package because capture wasn't available in Emacs 24.3.1's org-mode, and installed org 20140130. Today I tried working with links to Gnus and they failed (No match - create this as a new heading?). So I looked around and tried M-x

[Orgmode] Re: Gmane readers - please subscribe

2010-04-27 Thread Tim Landscheidt
Ben Finney ben+em...@benfinney.id.au wrote: A large part of my reason for reading via Gmane is to avoid yet another set of authentication credentials. Especially one that I never use; that's a security nightmare waiting to happen. So I'm not interested in increasing my security exposure

[Orgmode] Re: Feasibility investigation: org-mode paper

2010-04-26 Thread Tim Landscheidt
Torsten Wagner torsten.wag...@gmail.com wrote: [...] As I said it is just a silly idea, maybe not really useful but I thought it would be at least nice to make a proof-of-principle. Finally, with the increase of ebook readers with touch screens, digital pens, tablets and netbooks with

[Orgmode] Re: [ANN] org-mac-link-grabber: Grab links from running Mac applications

2010-04-06 Thread Tim Landscheidt
Anthony Lander anthonylan...@yahoo.com wrote: I've put together a bit of code to grab links from open mac applications, and paste them at point in org documents. If your workflow is spend the majority of your time in org-mode typing, and occasionally grab links from other applications,