Re: Evaluate an org-mode snippet in a code block

2025-06-17 Thread jman
Max Nikulin writes: #+name: src-org-example #+header: :exports code #+BEGIN_EXAMPLE org ,* Meeting with friends :PROPERTIES: :LOCATION: At Stacy's :DESCRIPTION: Be on time :END: <2025-05-28 Wed 20:00-22:00> #+END_EXAMPLE #+header: :exports results :results raw :wrap example #+begin_src elisp :

Re: Evaluate an org-mode snippet in a code block

2025-06-16 Thread jman
:2.0 X-WR-CALNAME:orgmode_tutorial PRODID:-//jman//Emacs with Org mode//EN X-WR-TIMEZONE:CEST X-WR-CALDESC:Some Orgmode file CALSCALE:GREGORIAN BEGIN:VEVENT DTSTAMP:20250616T204032Z UID:TS1-5c65d2f4-ab93-4256-8981-f6d5548772e5 DTSTART:20250528T20 DTEND:20250528T22 SUMMARY:Meeting with friends L

Evaluate an org-mode snippet in a code block

2025-06-15 Thread jman
Hello, I'd like to call an arbitrary elisp function over an org-mode snippet in a code block identified by BEGIN_SRC and END_SRC. Specifically, I want to run `org-icalendar-export-to-ics` over the following org-mode agenda entry: #+NAME: run-me #+BEGIN_SRC org :results output ,* Meet friend

Re: First impression when exporting to iCal

2025-06-09 Thread jman
Ihor Radchenko writes: M-x org-lint will warn about such cases. Thank you Ihor, as a beginner that was really confusing! Great tip also the linter, had no idea it existed. Thanks

Re: org-refile confusing refiling

2025-05-30 Thread jman
"Jacob S. Gordon" writes: This “memory” effect of refiling the previous item, plus the error message about pasting the subtree made me think it was related to yanking/killing. If I apply your xclip settings in a terminal window, I can reproduce the weird refiling behaviour: #+begin_src emacs-l

Re: org-refile confusing refiling

2025-05-29 Thread jman
"Jacob S. Gordon" writes: Can you play around with your test buffer /until/ you reach something unexpected, then undo it, note the buffer contents, and repeat the command? This would help narrow things down. Your config doesn’t set `org-refile-use-cache' to `t', so I don’t think there’s any glo

Re: Have org-clock-{in,out} functions respect org-time-stamp-rounding-minutes

2025-05-29 Thread jman
"Jacob S. Gordon" writes: This should be possible! Setting `org-clock-rounding-minutes' to a non-integer value will use the `car' of `org-timestamp-rounding-minutes'. wow, I completely missed that while reading the org-clock source code (and didn't even search for it!) :-) Thank you so much

Have org-clock-{in,out} functions respect org-time-stamp-rounding-minutes

2025-05-28 Thread jman
Hi, when I clock in/out from a task (`org-clock-in` and `org-clock-out`) I would like them to respect the variable `org-time-stamp-rounding-minutes` (number of minutes to round time stamps to). I /think/ this is currently not possible. I looked at `org-clock.el` but it's somewhat a bit too h

org-refile confusing refiling

2025-05-27 Thread jman
onfig should be fine. I'm really sorry that I cannot be more specific, this behaviour is baffling and I can't produce a test case consistently. These are my org-mode customizations, just in case anyone wants to have a look: https://git.sr.ht/~jman/dotfiles/tree/master/item/emacs/dot-c

Re: How have users managed email tasks with org?

2025-05-25 Thread jman
Matteo Valsasina writes: CAPTURE TEMPLATE FOR ORG: ("m" "TODO from Mail" entry (file+headline "~/org_todo/notes.org" "Mail Tasks") "* TODO %? %a\nSCHEDULED: %t :PROPERTIES: :CREATED: %U :END: :LOGBOOK:" :prepend t :empty-lines 1) Thank you Matteo for this tem

[BUG] Typo in docs for org-time-stamp-rounding-minutes [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)]

2025-05-21 Thread jman
Hi, I am reading https://orgmode.org/manual/Creating-Timestamps.html Quote: > When called with a prefix argument, use the alternative format which > contains date and time. The default time can be rounded to multiples > of 5 minutes. See the option org-timestamp-rounding-minutes. The correct n

First impression when exporting to iCal

2025-05-21 Thread jman
-cut here---start->8--- BEGIN:VCALENDAR VERSION:2.0 X-WR-CALNAME:test PRODID:-//jman//Emacs with Org mode//EN X-WR-TIMEZONE:CEST X-WR-CALDESC: CALSCALE:GREGORIAN BEGIN:VEVENT DTSTAMP:20250521T083818Z UID:TS1-5e9349d6-1a74-4b77-abfe-fe6e558c3dd5 DTSTA

Re: Cycle values of a cell from a sequence

2025-05-09 Thread jman
Christian Moe writes: ** TO_BE_SENT Invoice CL161 :PROPERTIES: :Date: [2025-03-02 Sun] :No: CL161 :Amount: 10 :END: Ah OK, now I understand. I like this version better, it's a little bit cleaner - as you point out. Thanks again, happy that I learned something co

Re: Cycle values of a cell from a sequence

2025-05-09 Thread jman
PJ Proudhon writes: In, your my/org-cycle-status function, if you just set t as the last argument of your org-table-put call, e.g. " (org-table-put (org-table-current-line) (org-table-current-column) next t)", the columns will automatically be realigned after a value is inserted Thank you f

Re: Cycle values of a cell from a sequence

2025-05-09 Thread jman
Christian Moe writes: For this particular use case, though, have you considered a different approach, using entries and column view? That is: Wow, this is really a great solution. I didn't know I could play with properties to build a table template! It's just a little bit verbose, but the r

Re: Cycle values of a cell from a sequence

2025-05-07 Thread jman
Ihor Radchenko writes: AFAIK, there is no such feature for tables that is built-in. I also do not recall any package doing something similar. You may need to write your own helper command and maybe hook it to org-shiftright-hook / org-shiftleft-hook. Ok, I have a partial solution: --8<

Re: [PATCH] org-tutorials: Add Org Agenda video tutorials by Raoul Comninos

2025-05-07 Thread jman
Raoul Comninos writes: I am open to suggestions. Sorry to hijack this thread for an unrelated comment. Speaking of suggestions, I would suggest not using a loud mechanical keyboard in these turorials because it's distracting, sometimes it covers your voice. Also, you might evaluate using th

Re: Cycle values of a cell from a sequence

2025-05-05 Thread jman
Ihor Radchenko writes: AFAIK, there is no such feature for tables that is built-in. I also do not recall any package doing something similar. You may need to write your own helper command and maybe hook it to org-shiftright-hook / org-shiftleft-hook. OK Ihor, I'll note down to investigate in

Cycle values of a cell from a sequence

2025-05-05 Thread jman
Hello everyone, I'm learning a bit about tables in orgmode. How do I set a value for a column, where the values are choosen from a custom sequence I define? How to cycle these values? If I understand correctly I can create my own sequence with (example): --8<---cut here---

Re: Join the Org Mode project as the Worg maintainer

2025-04-28 Thread jman
Bastien Guerry writes: Worg is a Git repository consisting of .org files: https://git.sr.ht/~bzg/worg. Worg files are exported as HTML and published to orgmode.org: https://orgmode.org/worg Taking care of Worg would help the Org community tremendously! Besides the TODO available at https://

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-05 Thread jman
Pedro Andres Aranda Gutierrez writes: BTW, what about changing the default LaTeX compiler to lualatex in 9.8? Context: I am a user that knows very very little about Latex, everytime I try to use it I spend a lot of time installing packages that in my mind should be the default. The user expe

Re: emacs hung chewing cpu trying to open meetings.org

2025-03-10 Thread jman
"Michael P. Soulier" writes: I tried to open meetings.org today and emacs burned 100% cpu and seemed to never return. I had to kill it. It's 100% reproducable in my setup. Not sure why. Any idea how to debug? If you suspect a recent addition is causing this issue, you can bisect the last cha

Re: Select a region and yank a URL to create a link

2025-02-28 Thread jman
Ryan Prior via "General discussions about Org-mode." writes: Lately I've noticed more applications supporting a method of creating a link by pasting a URL. The flow works like this: 1. write some text 2. select the text you want to linkify 3. paste a URL to turn the selected text into a named

Re: [DISCUSSION] Contributing policy for WORG

2025-01-20 Thread jman
Joseph Turner writes: Thanks for the suggestion! I imagine such a command would do this: (...) I am not a Worg contributor but such workflow would definitively scare me off. Just out of curiosity: what is wrong with a git workflow to contribute to Worg? Cheers,

Re: Exporting tables with cell borders to Latex/PDF

2024-10-19 Thread jman
Mark Barton writes: Here is an example of using the #+ATTR_LaTeX: line to pass parameters to the LaTeX process that creates the pdf. #+ATTR_LaTeX: :environment tabular :align |l|l|l| |-+-+---| | one | two | three | |-+-+---| | 1 | 2 | 3 | |-+-+---|

Exporting tables with cell borders to Latex/PDF

2024-10-18 Thread jman
Hello, When export to Latex/PDF I'd like /all/ table cells to have borders, so also vertical column separators. After looking around a bit, I learned about column groups: https://orgmode.org/manual/Column-Groups.html I think the only way to accomplish what I want is the following trick, addin

Re: Understanding Publish (ox-publish.el)

2024-10-15 Thread jman
Christian Moe writes: It's due to Latex refusing to commit the typographic crime of leaving a heading at the bottom of the page. Wow. I had no clue something like this could happen. Note that this does /not/ happen with a list. (Try changing your long outline from headers to a list) Int

Re: Understanding Publish (ox-publish.el)

2024-10-14 Thread jman
jman writes: 2) Compiling this other document will produce strange empty pages. The content of the ordered list doesn't fit one page and instead of filling the next page, it will just "overflow" and "disappear": https://paste.sr.ht/~jman/35434b0fdf08164abf6c59a41

Re: Understanding Publish (ox-publish.el)

2024-10-14 Thread jman
n subsequent pages https://paste.sr.ht/~jman/06239fa6624a1af23edfbb5154f5d9dcfdf8427a 2) Compiling this other document will produce strange empty pages. The content of the ordered list doesn't fit one page and instead of filling the next page, it will just "overflow" and

Understanding Publish (ox-publish.el)

2024-10-13 Thread jman
Hello, I'm trying to learn more about the publish export option or Org mode. Specifically I am using the function `org-latex-publish-to-pdf` to export Orgmode files into PDF. Since this export backend is transparently using Latex, there is stuff going on behind my back that makes it a bit d

Re: [Question] Getting cell value and use it in table formula

2024-10-01 Thread jman
writes: I think it's in the manual (this is Org v9.7): | 3.5.3 Emacs Lisp forms as formulas | -- For some reason, I think I got confused by the table formula modifiers (E, N, L) and various type casting. What I wanted to achieve was simply: --s-

[Question] Getting cell value and use it in table formula

2024-10-01 Thread jman
Hello there, Let's look at the following table: --s-s-- | EUR |USD | Exchange rate | |-++---| | 10 | 8.97 | 0.897 | | 15 | 13.455 | | #+TBLFM: $2='(* (string-to-number $1) (string-to-number (org-table-get 2 3)))

Re: Some org keybindings very hard to disable or overwrite

2024-08-20 Thread jman
Ihor Radchenko writes: Org mode does not bind M-k and M-j. It is something in your config. In addition, if I am correct one can check where those keybindings are overriden with `C-h k` (or `M-x describe-key`), example: M-x describe-key RET M-j

Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?) (was: Leap-year bug with todo-cycle)

2024-04-05 Thread jman
> Generally, I did see several requests to change the strategy when > calculating next month/year. However, that would be a breaking change. > I'd only go for it if people are strongly in favor of the change. > So, changing this to a poll. I don't particularly have a skin in the game but I ask a

Re: [ANN] Please share useful blog posts on this list with the [BLOG] subject prefix

2024-02-27 Thread jman
> Yes, you can use "[BLOG] [Spanish] ..." so that people adapt their > filters, but the second prefix won't have any effect on Woof. If we want to add a hint about the blog post language, can I suggest using the two-letter ISO-639 language codes (SP, DE, IT, EN, ...)? I agree they don't cover a

Re: [BUG] org-clock-in opens buffers for all agenda files

2024-02-13 Thread jman
I am a bit confused and I am probably missing some context. The documentation of `org-clock-auto-clock-resolution` states: "When to automatically resolve open clocks found in Org buffers." and the options are "Never", "Always", "When no clock is running". I think I understand the idea behind