Re: Adding custom providers for thingatpt.el (was: [PATCH] Add support for 'thing-at-point' to get URL at point)

2024-05-19 Thread Jim Porter
On 5/19/2024 6:34 PM, Jim Porter wrote: On 5/18/2024 1:26 AM, Eli Zaretskii wrote: I think you can install this now. Thanks. Merged as ae9045a8bd8. Ihor, I'll update the Org-mode part of this next and post the new patch for that to the Org list once it's ready. ... and here's the Org-mode

Using a custom environment for a src language

2024-05-19 Thread Rustom Mody
I have my own Python environment called PYT. #+BEGIN_PYT contents #+END_PYT generates \begin{PYT} org transcoded contents \end{PYT} But I dont want org transcoded contents but verbatim contents. Is there some way to tell org? 1. Translate the headlines as its doing 2. Leave the contents alone

Re: Adding custom providers for thingatpt.el (was: [PATCH] Add support for 'thing-at-point' to get URL at point)

2024-05-19 Thread Jim Porter
On 5/18/2024 1:26 AM, Eli Zaretskii wrote: I think you can install this now. Thanks. Merged as ae9045a8bd8. Ihor, I'll update the Org-mode part of this next and post the new patch for that to the Org list once it's ready.

Re: Saving some kitten, plus some questions along the way

2024-05-19 Thread Stefan Monnier
>> I understand it's important in general, but the question is for this >> specific use of `org-funcall-in-calendar` where all we do (apparently) >> is to set `cursor-type` which shouldn't require any change to the >> overlay (nor does it require to `select-window`), or should it? > No, it should

Re: Saving some kitten, plus some questions along the way

2024-05-19 Thread Ihor Radchenko
Stefan Monnier writes: >>> - (org-eval-in-calendar '(setq cursor-type nil) t) >>> + ;; FIXME: Could we use `with-current-buffer' or do we really >>> + ;; need the `move-overlay' that's in `org-funcall-in-calendar'? >>> + (org-funcall-in-calendar (lambda () (setq

Re: Archive done tasks and preserve tree structure

2024-05-19 Thread Ihor Radchenko
Naresh Gurbuxani writes: > How can I get the archiving done to preserve tree structure of tasks?  > Any hope for already archived items to be reorganized? It is currently not possible. Patches welcome! -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: Saving some kitten, plus some questions along the way

2024-05-19 Thread Stefan Monnier
>> -(org-eval-in-calendar '(setq cursor-type nil) t) >> +;; FIXME: Could we use `with-current-buffer' or do we really >> +;; need the `move-overlay' that's in `org-funcall-in-calendar'? >> +(org-funcall-in-calendar (lambda () (setq cursor-type nil)) t) > >

Archive done tasks and preserve tree structure

2024-05-19 Thread Naresh Gurbuxani
In my task list, items are grouped under various headings.  For example: * Reading ** TODO Book 1 ** TODO Book 2 * Programming ** TODO assignment 1 ** TODO assignment 2 When an item is DONE, I want to archive it such that archive file preserves tree structure.  So when Book 1 above is

Re: Saving some kitten, plus some questions along the way

2024-05-19 Thread Ihor Radchenko
Stefan Monnier writes: > The patch below replaces a use of `eval` with `apply`, but along the way > I wondered about some of the details of `org-eval-in-calendar` (see the > FIXMEs), the most important of them being: why doesn't it use > `with-selected-window`? Thanks! I do not see any clear

Re: LOGBOOK drawer now being created with blank line afterwards

2024-05-19 Thread Ihor Radchenko
Kris Nelson writes: > On 2024-05-17 05:22, Ihor Radchenko wrote: >> Fixed, on main. >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=288c7069c >> >> Thanks Kris for reporting, and thanks Rens for hunting down the cause! > Thanks for the prompt fix, Ihor! I tested it out and

Re: [BUG] cache file conflict? [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-19 Thread Ihor Radchenko
Greg Minshall writes: > i have a recurrence of the same problem. see below. > ... >> ...rg-persist/gc-lock.eld locked by minshall@arch... (pid 630467): (s, q, >> p, ?)? >> Error running timer ‘org-persist--refresh-gc-lock’: (file-locked >> "/home/minshall/.cache/org-persist/gc-lock.eld"

Re: Org 9.5 broke the rendering of my SVG images

2024-05-19 Thread Ihor Radchenko
Timothy writes: >> Would the HTML tag be appropriate in this case? > > Adding an option to switch between object/img would be best, and I’ll do so in > the near future, I’m just currently sorting out the test deployment of the > 2022 > Emacs Survey. I am inclined to revert the commit changing

Re: [BUG] org-table-eval-formula mishandles semicolons in formulas [9.7-pre (release_9.6.14-1019-g5092ec @ /home/nick/src/emacs/org/org-mode/lisp/)]

2024-05-19 Thread Ihor Radchenko
Ihor Radchenko writes: > Nick Dokos writes: > >> `org-table-eval-formula' interprets *any* semicolon in a formula as the >> beginning of a format specifier. So if the formula contains a literal >> semicolon that is not a format specifier >> >> #+TBLFM: $3='(concat "COMMENT ON

Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]

2024-05-19 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: >> May you be able to make a reproducer that will demonstrate the problem >> with your config installed from scratch? > > What would help you best? > > The setup is built to be as self-contained as possible (so the config > from the repository is used, not my

Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]

2024-05-19 Thread Dr. Arne Babenhauserheide
Ihor Radchenko writes: > "Dr. Arne Babenhauserheide" writes: > >> I added >> ;;; use dev-version of org-mode >> (setq load-path (cons "~/eigenes/Programme/org-mode/lisp" load-path)) >> (setq load-path (cons "~/eigenes/Programme/org-mode/contrib/lisp" load-path)) >> >> just before (require

Re: Pending contents in org documents (Re: Asynchronous blocks for everything (was Re: ...))

2024-05-19 Thread Ihor Radchenko
Bruno Barbier writes: > I've pushed the modification to my branch. Thanks! Let's work further on the top comment. > ;; To lock a region, you need to do something like this: I think "something like this" can be just dropped. > ;;1. Call the function `org-pending' with the region to lock;

Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]

2024-05-19 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: > I added > ;;; use dev-version of org-mode > (setq load-path (cons "~/eigenes/Programme/org-mode/lisp" load-path)) > (setq load-path (cons "~/eigenes/Programme/org-mode/contrib/lisp" load-path)) > > just before (require 'org). > ... > On the second run I got

Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]

2024-05-19 Thread Dr. Arne Babenhauserheide
Ihor Radchenko writes: > "Dr. Arne Babenhauserheide" writes: > >> I often see a huge number of warnings while publishing my website with >> org-publish: >> >> Warning (org-element-cache): org-element--cache: Got empty parent while >> parsing. >> ... >> To reproduce (though I’m not sure whether