Re: [BUG] org-clock-in opens buffers for all agenda files
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 this variable but I can't relate that to a solution of the problem stated. Why checking for dangling clocks in all files in `org-directory`? Is it a common usecase to have clocks split in different files? I'd like `org-clock-in` to close any running clocks but only check the file open in current buffer and not in all .org files in `org-directory`. Thanks for any help!
Re: [ANN] Please share useful blog posts on this list with the [BLOG] subject prefix
> 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 all the languages but for the sake of brevity, would that be good enough?
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)
> 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 question: what would be the impact of this breaking change for users with existing Orgmode documents? thanks
Re: Some org keybindings very hard to disable or overwrite
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
Understanding Publish (ox-publish.el)
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 difficult debugging or customizing the formatting. My header in the Orgmode file started as simple as: #+TITLE: Title of the document #+OPTIONS: toc:nil date:nil author:nil #+latex_header: \usepackage[a4paper,top=4cm,bottom=4cm]{geometry} The Orgmode file is nothing but a long ordered list of items: * Title ** Subtitle (Lots of text) ** Subtlte II * Title II (Lots of text) ... more ... and so on. After compiling to PDF, I learn that the default "template" (how is it called in Latex lingo? `\documentclass`?) used by `org-latex-publish-to-pdf` does not handle content exceeding the page length so I have to manually add some page breaks, clearly a hack: * Title ** Subtitle (Lots of text) #+latex: \clearpage ** Subtlte II #+latex: \clearpage * Title II (Lots of text) ... more ... Why isn't this handled automatically for me? Is there a setting I should add in the org file? What's the default template used by `org-latex-publish-to-pdf`? Second issue: I want hyperlinks to other documents to not have a border. On Latex the solution seems to use the hyperref package: +latex_header: \usepackage[hidelinks]{hyperref} again, compiling triggers this error: ! LaTeX Error: Option clash for package hyperref. This error hints at some defaults I cannot see, making the document customization difficult. Where are these defaults? How can I get a feeling of what's happening when using this PDF publish option? I think I need a bit of a high-level overview, hope the author David O’Toole is around for some support :-) Ideally I'm looking into a simple way to export from Orgmode to PDF, without needing to learn Latex. Thank you for suggestions, ideas, etc. Best,
Re: Understanding Publish (ox-publish.el)
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) Interesting. A "mixed" approach like the following work too: * Title 1 - Subtitle - Subsubtitle * Title 2 - Subtitle - Subsubtitle (etc.) As you point out, I just need to avoid having /only/ headings. Thank you so much for hand-holding me to fully understanding the problem! Cheers,
Re: Exporting tables with cell borders to Latex/PDF
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 | |-+-+---| Oh thank you for the tip! Now I've found a mention in the documentation: https://orgmode.org/manual/Tables-in-LaTeX-export.html I'll try unpacking the solution for clarity: `l` means align to the left, the pipe (`|`) means add a vertical separator. Here a bit more documentation about the tabular package: https://www.overleaf.com/learn/latex/Tables Note: I think it also works without setting `:environment tabular`, why? Cheers,
Exporting tables with cell borders to Latex/PDF
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, adding a "cosmetic" column just to be able to have a border at the beginning of the table: |---+---+-+-+-+-+| | | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) | |---+---+-+-+-+-+| | / | < | < | < | < | < | <> | | | 1 | 1 | 1 | 1 | 1 | 1 | | | 2 | 4 | 8 | 16 | 1.4142 | 1.1892 | | | 3 | 9 | 27 | 81 | 1.7321 | 1.3161 | |---+---+-+-+-+-+| #+TBLFM: $2=$1^2::$3=$1^3::$4=$1^4::$5=sqrt($1)::$6=sqrt(sqrt(($1))) Am I missing a better solution? Thanks
Re: Understanding Publish (ox-publish.el)
Christian Moe writes: 1. First issue: Not quite sure what you mean by saying that it "does not handle content exceeding the page length". If the problem is with placing images, tables etc., latex does its best, and manually adding \clearpage or \newpage as needed tends to be the way it's done. Hey thanks for the tips! To be clearer about what I mean I'll provide two sample documents. I hope they're good to reproduce the issue. 1) Compiling with ox-publish the following document produces the expected result. Text is automatically distributed on 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 "disappear": https://paste.sr.ht/~jman/35434b0fdf08164abf6c59a413d60ea6a4d0e943 These samples are compiled with: $ emacs --batch .org --load ol-pdf.el --funcall org-publish-current-file `ol-pdf.el` is nothing special, I think: (require 'ol) (require 'ox-publish) (setq org-publish-project-alist '(("org-to-pdf" :base-directory "~/src" :base-extension "org" :publishing-directory "~/pdf" :publishing-function org-latex-publish-to-pdf :recursive t :with-toc nil :with-date nil :with-author nil ))) Additional info: - I am using Emacs 29.4 (Org mode 9.6.15) - I compile these file using the Debian/testing texlive-latex-* (2024.20240829-2) packages (pdfTeX-1.40.26) - I also tried compiling the PDF using `latexmk` (4.85) but the end result doesn't change 2. Second issue: Getting rid of link borders. [...] Thanks! Your suggestions gave me a few ideas to explore and this is now understood. Best,
Re: Understanding Publish (ox-publish.el)
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/35434b0fdf08164abf6c59a413d60ea6a4d0e943 I think the problem is that for the above file is a single ordered list and org-mode (or Latex?) for some reason are unable to split it. For an automatic split to happen, the single list must be split. So another hack is to add random text in between! Example: #+TITLE: Dokument Titel #+LATEX_HEADER: \usepackage[paper=a4paper,top=3cm,bottom=3cm]{geometry} * Title 1 ** Subtitle *** Subsubtitle * Title 2 ** Subtitle *** Subsubtitle * Title 3 ** Subtitle *** Subsubtitle This text here is only to split the ordered list. * Title 4 ** Subtitle *** Subsubtitle * Title 5 ** Subtitle *** Subsubtitle This text here is only to split the ordered list. (etc.) Now we have multiple lists and the page split happens according to the top and bottom margins set in the header. I am not sure if there is a better way to work around this. Best,
[Question] Getting cell value and use it in table formula
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))) --e-e-- I've tried a number of things but this is the only incantation is able to retrieve the value from the cell "@2$3" and use it into the table formula. Is there a cleaner way to retrieve a cell value and use it into a table formula that is a lisp expression? Any suggestion? Thanks. Best,
Re: [Question] Getting cell value and use it in table formula
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-s-- | EUR |USD | Exchange rate | |-++---| | 10 | 8.97 | 0.897 | | 15 | 13.455 | | #+TBLFM: $2='(* $1 @2$3);N --e-e-- Best,
Re: [DISCUSSION] Contributing policy for WORG
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: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF
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 experience of Latex is far from being seamless. I'd love Org Mode to settle on the easiest and most modern version of Latex possible so users like me can focus more on writing documents and not having to worry about too many confusing details. If it helps, it is my understanding that as of Nov, 2024 LuaTeX is the recommended engine for new documents: https://www.texdev.net/2024/11/05/engine-news-from-the-latex-project Cheers,
Re: Join the Org Mode project as the Worg maintainer
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://orgmode.org/worg/todo.html is there an issue tracker (or similar) where people can find tickets or more specific tasks? With regard to contributions: if I understand, it is not required a copyright assignment to the FSF - correct? Thanks for your work on the documentation! Cheers,
Re: Cycle values of a cell from a sequence
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 that direction. Thank you so much for your help :-) If I'll figure out something interesting, I'll post it here. Cheers,
Cycle values of a cell from a sequence
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---start->8--- #+PROPERTY: INVOICE_STATUS "TO_BE_SENT SENT TO_BE_PAID PAID" | Invoice Date | Invoice # | Amount | Status | |--+---++| | [2025-03-02 Sun] | CL161 | 10 | TO_BE_SENT | --8<---cut here---end--->8--- Is there a way to edit a cell cycling these values? A bit like I can cycle values in `org-todo-keywords` with S-left/S-right Thanks!
Re: emacs hung chewing cpu trying to open meetings.org
"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 changes by removing them one by one (with another editor) and try opening the file (with Emacs) until you identify the change that is causing the issue. A that point you can start investigating why that specific change. I'd probably start by profiling Emacs when opening that file. How to profile Emacs: https://www.gnu.org/software/emacs/manual/html_node/elisp/Profiling.html Hope it helps! Cheers,
Re: Select a region and yank a URL to create a link
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 link Just to be sure I understand: you are suggesting an alternate way to linkify a selected region of text, currently supported by the `*-insert-link` functions (bound to `C-c C-l`), correct? Or is it something slightly different? Cheers,
Re: [PATCH] org-tutorials: Add Org Agenda video tutorials by Raoul Comninos
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 the `keycast` package to show which commands are executed: github.com/tarsius/keycast Thank you for doing these tutorials!
Re: Cycle values of a cell from a sequence
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<---cut here---start->8--- #+BEGIN_SRC emacs-lisp (defun my/org-cycle-status () "Cycle through custom status values in the current table column." (interactive) (let* ((current (org-table-get (org-table-current-line) (org-table-current-column))) (statuses '("TODO" "TO_BE_SENT" "SENT" "TO_BE_PAID" "PAID")) (next (or (cadr (member current statuses)) (car statuses (org-table-put (org-table-current-line) (org-table-current-column) next))) ;; Add to hook for functions attaching themselves to ‘S-right’ (add-hook 'org-shiftright-hook 'my/org-cycle-status) #+END_SRC | Invoice Date | Invoice # | Amount | Status | |--+---++| | [2025-03-02 Sun] | INV01 | 2400 | TODO | --8<---cut here---end--->8--- Obviously the problem is that I lose the ability to shift columns. Is there a free keybinding in orgmode I could associate this helper? Or is there any way I could have it not interfere with the column shift? Thanks. Cheers,
Re: Cycle values of a cell from a sequence
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 row definitions can be collapsed. Thank you! An alternative to defining a STATUS property at all would be to define the statuses as local TODO keywords, which gives you a quick way to look up all unsent or unpaid invoices via the agenda view without having to write match syntax. I've tried overwriting locally `org-todo-keywords` but I didn't understand how: do I need a custom lisp snippet like the following? --8<---cut here---start->8--- #+BEGIN_SRC emacs-lisp (setq-local org-todo-keywords '((sequence "TO_BE_SENT" "SENT" "TO_BE_PAID" "PAID"))) #+END_SRC --8<---cut here---end--->8--- but how can I define the override as a PROPERTY? And then how can I use the redefined sequence in the invoice entry PROPERTY (instead of the `:Status:` property)? Cheers,
Re: Cycle values of a cell from a sequence
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 for this useful trick, I didn't read in full the documentation :) Cheers,
Re: Cycle values of a cell from a sequence
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 cool and useful :) Cheers,
[BUG] Typo in docs for org-time-stamp-rounding-minutes [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)]
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 name of the variable is `org-time-stamp-rounding-minutes`.
First impression when exporting to iCal
Hello, I am on Emacs 29.4 and Orgmode 9.6.15 and reading the manual at https://orgmode.org/manual/iCalendar-Export.html (cc: Nicolas Goaziou as maintainer of the iCal export, if I understand correctly) The example orgmode snippet provided: --8<---cut here---start->8--- * Meeting at location with multi-line address <2024-01-08 Mon 14:20-15:00> :PROPERTIES: :LOCATION: Someplace :LOCATION+: Some Street 5 :LOCATION+: 12345 Small Town :END: --8<---cut here---end--->8--- is exported as --8<---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 DTSTART:20240108T142000 DTEND:20240108T15 SUMMARY:Meeting at location with multi-line address DESCRIPTION:<2024-01-08 Mon 14:20>–<2024-01-08 Mon 15:00>\n:LOCATION: Somep lace :LOCATION+: Some Street 5 :LOCATION+: 12345 Small\nTown CATEGORIES:test END:VEVENT END:VCALENDAR --8<---cut here---end--->8--- A few questions: - Why isn't the LOCATION parsed? - Why isn't the multiline DESCRIPTION fully parsed? - Why does the date of the event ends up also in the DESCRIPTION? - Where does the "CATEGORIES:test" come from? Thanks
Re: How have users managed email tasks with org?
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 template, I also use mu4e and was looking for something to start with! Just a small nit, I think there's a missing closing :END: after :LOGBOOK: in your template. Mu4e offers a few fields I can use to customize this template, as explained in (info "(mu4e) Org-mode") or https://www.djcbsoftware.nl/code/mu/mu4e/Org_002dmode-links.html Cheers,
Have org-clock-{in,out} functions respect org-time-stamp-rounding-minutes
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 high bar for my elisp-fu skills. Just throwing a thought in the mailing list in case it can attract some interest or comments. Thanks
org-refile confusing refiling
Hello, I'm starting learning about org-refile and org-capture. Using the following test file, I try to move items here and there. --8<---cut here---start->8--- ;; (setq org-refile-targets '((nil :maxlevel . 6))) * TEST ** Second level 1 *** task for Second level 1 ** Second level 2 *** task for Second level 2 ** Second level 3 ** Third level 0 *** task for third level 0 *** Third level 0 * TEST1 ** Second level TEST1 3 ** new 2nd level ** Second level 0 --8<---cut here---end--->8--- Sometimes the item ends up where I choose, but most of the times is doesn't. Sometimes unrelated entries are deleted (!), heading levels are changed (for example a *** becomes a **), other times the command fails and I read an unclear error message in *Messages*: --8<---cut here---start->8--- Copied: Subtree(s) with 4 characters org-paste-subtree: The kill is not a (set of) tree(s). Use ‘C-y’ to yank anyway --8<---cut here---end--->8--- I can reproduce some of this strangeness with emacs -Q so I /think/ my config 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-config/emacs/org-mode.el I'm sure that org-refile works just fine for everyone else. Does anyone with more experience can help me debugging or understanding what's happening? Thanks!
Re: org-refile confusing refiling
"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 global state to worry about. hey, thanks for the suggestions. I've recorded a screencast, hope it helps https://asciinema.org/a/mRpT3Tw5ojhncySFfCAY0DKTJ In this recording I can see: - when refiling, the choosen item disappears and instead a previously refiled one is duplicated - the `org-paste-subtree` error which I am not sure what it means I am sure there's something wrong with my config but I cannot figure out where to start :) Using Emacs 29.4 and Orgmode 9.6.15 on Debian/trixie thanks
Re: Have org-clock-{in,out} functions respect org-time-stamp-rounding-minutes
"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, it was really helpful! I wish it was documented in `org-clock-in` and `org-clock-out` help pages (I might get around doing it when I have time) ┌ │ (setopt org-clock-rounding-minutes nil │ org-timestamp-rounding-minutes '(5 5)) └ (unrelated) I really like this style for quoting snippets. Did you customize `message-mark-insert-{begin,end}`, correct? Cheers,
Re: Evaluate an org-mode snippet in a code block
Christian Moe writes: Org-icalendar-export-to-ics doesn't, but works from the assumption that you're in a buffer visiting a file. So your elisp function might perhaps first copy the src block into a buffer, unescape the escaped lines, and save the file somewhere, before calling org-icalendar-export-to-ics from that buffer. Is that what you're doing? Thank you Christian! As usual your feedback helped me understand what I wanted to do. In short, I don't think it's worth the effort, there's no function in icalendar.el like `(org-icalendar-export-string-to-ics SRC_STR DST_STR)`. I just wanted to write in a tutorial the following: #+BEGIN_SRC org ,* Meeting with friends :PROPERTIES: :LOCATION: At Stacy's :DESCRIPTION: Be on time :END: <2025-05-28 Wed 20:00-22:00> #+END_SRC Here is the result: #+BEGIN_EXAMPLE BEGIN:VCALENDAR VERSION: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 LOCATION:At Stacy's DESCRIPTION:Be on time CATEGORIES:orgmode_tutorial END:VEVENT END:VCALENDAR #+END_EXAMPLE Since it's just a one-time thing, I'll just copy&paste the generated .ics file content. Thanks again!
Re: Evaluate an org-mode snippet in a code block
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 :var src=src-org-example (org-export-string-as src 'icalendar) #+end_src Thank you the tip, very interesting. For completeness, I will add that the support for handling org-mode code in block snippets must be enabled first, as explained here: https://orgmode.org/manual/Languages.html Or Info page: (info "(org) Languages") And then run `C-c C-c` with the cursor over the line of the header of the caller, that will generate the expected output. Cheers!
Re: First impression when exporting to iCal
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
Evaluate an org-mode snippet in a code block
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 friends :PROPERTIES: :LOCATION: At Stacy's :NOTES: Be on time :DESCRIPTION: The good season has just begun :END: <2025-05-28 Wed 20:00-22:00> #+END_SRC The expected result should be the output of `org-icalendar-export-to-ics`. I've tried reading these pages of the documentation that looked to me relevant but I could not extract the core idea I needed https://orgmode.org/manual/Working-with-Source-Code.html https://orgmode.org/manual/Evaluating-Code-Blocks.html Do I need to enable anything in `org-babel-do-load-languages`? Any help? Thanks
Re: org-refile confusing refiling
"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-lisp (use-package xclip :config (setq xclip-program "wl-copy") (setq xclip-select-enable-clipboard t) (setq xclip-mode t) (setq xclip-method (quote wl-copy))) #+end_src wow, good sleuthing! So, it seems that xclip-mode with default options triggers this issue (I am using Wayland so `wl-copy` is invoked). (use-package xclip :config (xclip-mode t)) I *think* the culprit could be how `org-paste-subtree` handles yank and kill. Or it's xclip? I could only find a single reference to this issue, apparently no one else stumbled on this issue yet? That's really strange. https://old.reddit.com/r/orgmode/comments/fdmek4/bad_interaction_with_org_refile_and_xclip_mode/ I don't have the context to figure out things further, all I could do was disabling xclip-mode around executing `org-refile`: --8<---cut here---start->8--- ;; disable xclip-mode before executing org-refile (advice-add 'org-refile :before (lambda (&rest _) (when xclip-mode (xclip-mode -1 ;; enable xclip-mode again after executing org-refile (advice-add 'org-refile :after (lambda (&rest _) (when (not xclip-mode) (xclip-mode t --8<---cut here---end--->8--- Ihor, any thoughts on this? Thanks
orgmode website loads a CSS from gnu.org
Hello, Quick question to Bastien about the website: because of the gnu.org downtime I noticed that orgmode.org loads the css from gnu.org so also the orgmode website was affected. I was curious about this choice - is there's a specific reason for loading the CSS there or it's just "accidental"? Thanks
Re: orgmode website loads a CSS from gnu.org
Ihor Radchenko writes: jman writes: Honestly I don't remember anymore. Possibly I was referring to the orgmode *manual* page (https://orgmode.org/org.html) which yet loads a file from gnu.org: https://www.gnu.org/software/emacs/manual.css";> This one is certainly intentional. We simply follow Emacs style of the manual. Just to clarify: my original report was that the outage of gnu.org took down also the orgmode manual pages, which was suprising and thought could be an unintended side-effect. The website did not load because it was stuck trying to fetch a file from a third-party host. Anyway, if you all assess this is fine, then the case is closed for me as well. thanks
Re: orgmode website loads a CSS from gnu.org
Ihor Radchenko writes: I do not recall anything like that. I also cannot find references to gnu.org in our css files. Honestly I don't remember anymore. Possibly I was referring to the orgmode *manual* page (https://orgmode.org/org.html) which yet loads a file from gnu.org: https://www.gnu.org/software/emacs/manual.css";>