Re: Elisp function to get the upcoming event with the closest scheduled date

2024-01-02 Thread Rodrigo Morales
Rodrigo Morales writes: I managed to show the entry with the nearest upcoming scheduled date in the tab bar with the following utilities (see code block below). Here's an screenshot: https://upload.wikimedia.org/wikipedia/commons/f/f3/Show_information_of_Org_Agenda_in_tab-bar.png Here are some

Re: [PATCH] doc/org-manual.org (Summary): Clarify the Org markup is human-readable

2024-01-02 Thread Matt
On Sun, 31 Dec 2023 16:22:00 +0100 Ihor Radchenko wrote --- > > I'd like to amend the Org manual introduction as in the attached patch. > The idea is to highlight that Org markup is designed to be > human-readable first and foremost rather than just computer-readable. > > This is the

[PATCH] Add org-after-note-stored-hook

2024-01-02 Thread General discussions about Org-mode.
Hello, I've been archiving tasks automatically using `org-after-todo-state-change-hook' but I've been recently bit with a note (entering a todo state configured with '@') being placed where the task was before its archival. This patch aims to offer a way to defer the archival after the note is

Re: Are 'placement' and 'float' "obsolete terms" in inline images export

2024-01-02 Thread Juan Manuel MacĂ­as
Apologies for my delay in answering all the interesting questions you raised in this last message. November and December have been horrible work days for me (all publishers are always in a hurry) and I haven't been able to attend to the mailing list as I would like... Ihor Radchenko writes: >

Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug

2024-01-02 Thread Morgan Smith
Ihor Radchenko writes: > Morgan Smith writes: > >> lisp/org-agenda.el (org-agenda-get-scheduled): Consolidate deadline >> fetching code. Don't check if deadline is shown when >> 'org-agenda-skip-scheduled-if-deadline-is-shown' has a value of >> 'repeated-after-deadline'. >> >> Currently when

Re: [PATCH] org-babel-demarcate-block: split using org-element instead of regexp

2024-01-02 Thread gerard . vermeulen
On 02.01.2024 11:48, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: [...] IMHO, this is a bug. The current approach with regexp matching in `org-babel-demarcate-block' is clearly not accurate. What would be more robust is using org-element-at-point + org-element-copy + set

[SOLVED] (was: org table export to latex, longtable, code does not compile)

2024-01-02 Thread Uwe Brauer
>>> "UB" == Uwe Brauer writes: > Hi > I am running emacs 29 and org mode 9.6.9 > I have set (setq org-latex-line-break-safe "") > Nevertheless the following example This helped (defun my-latex-insert-hline-always (row backend info) "Add a hline to every row when exporting to

org table export to latex, longtable, code does not compile

2024-01-02 Thread Uwe Brauer
Hi I am running emacs 29 and org mode 9.6.9 I have set (setq org-latex-line-break-safe "") Nevertheless the following example #+begin_src #+ATTR_LATEX: :environment longtable | / | <> |<> | <> | <> | <> | <> | <> |

Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines

2024-01-02 Thread Rick Lupton
On Mon, 18 Dec 2023, at 12:27 PM, Ihor Radchenko wrote: > I played around with the patch a bit and found a couple of rough edges: > > 1. When I try to open a link to non-existing search target, like >, I get a query to create a new >heading. If I reply "yes", a new heading is created.

Re: [PATCH] Re: Suggestion to add hook to be run when org-indent completes a buffer's initialization

2024-01-02 Thread dark . key8799
On Tue, Jan 2, 2024, at 19:15, Ihor Radchenko wrote: > By convention, abnormal hooks (hooks that require arguments) are named > as *-functions, not *-hook. > > Also, when adding new customizations, we generally announce them in > etc/ORG-NEWS. Understood. Please find amended patch. -- Alexandre

Re: Should org-link-parser add type "file" when link has no "file:" prefix?

2024-01-02 Thread Ihor Radchenko
Joseph Turner writes: >> See `org-open-file' IN-EMACS argument - we may use different handlers >> to open file links. Currently, IN-EMACS can be 'system or 'emacs. But >> nothing stops us from adding more options. > > Thanks! Are you suggesting something like [[file+hyper:/README.org]] ? Yes.

#5 [[bbb:OrgMeetup]] on Wed, Jan 17, 19:00 UTC+3

2024-01-02 Thread Ihor Radchenko
Dear all, Another OrgMeetup will be scheduled on the third Wednesday of January, in two weeks. Previous meetup notes: https://list.orgmode.org/87bkanr76o.fsf@localhost/ URL: https://bbb.emacsverse.org/b/iho-h7r-qg8-led Time & Date: <2024-01-17 Wed 19:00-21:00 @+03,Europe/Istanbul> The room will

Re: [PATCH] Re: Suggestion to add hook to be run when org-indent completes a buffer's initialization

2024-01-02 Thread Ihor Radchenko
dark.key8...@151e.ai writes: >> I do not see why we shouldn't add such a hook. Patches welcome! > > Would this work? Yes, but please address some minor comments. > +(defcustom org-indent-post-buffer-init-hook nil > + "Hook run after org-indent finishes initializing a buffer. > +The function(s)

[PATCH] Re: Suggestion to add hook to be run when org-indent completes a buffer's initialization

2024-01-02 Thread dark . key8799
On Sun, Dec 31, 2023, at 22:42, Ihor Radchenko wrote: > I do not see why we shouldn't add such a hook. Patches welcome! Would this work? -- Alexandre Avanian 0001-lisp-org-indent.el-Add-hook-to-run-after-it-initiali.patch Description: Binary data

Re: [PATCH] org-babel-demarcate-block: duplicate switches too

2024-01-02 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> Thanks for the patch! >> Would you mind also adding a test for `org-babel-demarcate-block' in >> testing/lisp/test-ob.el? > > I have attached a new patch with a test named > `test-ob/demarcate-block-split'. > Besides testing the duplication of switches and