Setting buffer-level properties in code

2024-10-10 Thread mbork
Hi fellow Orgers, I know that I can say #+PROPERTY: name value somewhere in the buffer to set the property `name' to `value' for every entry (assuming I use inheritance, like in `(org-entry-get (point) "name" t)`). However, what I need is to programmatically insert or change that line to set or

Re: Elecrtic-pair-mode works incorrectly in code blocks

2024-10-10 Thread General discussions about Org-mode.
Hi the_wurfkreuz, I tried with the code block. I confirm that it did not insert the closing bracket near those comment blocks. But it did create pair brackets when I inserted after those 4 lines. > #+begin_src emacs-lisp ( ### No closing bracket here > ;; (if (eq major-mode 'org-mode) > ;

[BUG] BBDB anniversary entries with a format-string produce error [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)]

2024-10-10 Thread Alexander Lazarević
In one agenda (personal.org) I have the following entry: * Anniversaries :PROPERTIES: #+CATEGORY: Ann :END: %%(org-bbdb-anniversaries-future 3) This works for BBDB entries that have an anniversary like "1973-06-22" or "2021-04-91 wedding", but it fails for something like "1998-03-12 %s created bb

[BUG] org-element--cache: Got empty parent while parsing. [9.7.11 (9.7.11-??-6a5d0ed34 @ /Users/mm/.emacs.d/.local/straight/build-29.4/org/)]

2024-10-10 Thread Milan Matiaske
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: [BUG] org-babel-header-arg-expand is rather cavalier about "appropriate context" [9.8-pre (release_9.7.10-127-g07dd3b @ /usr/local/share/emacs/site-lisp/org/)]

2024-10-10 Thread Ihor Radchenko
Nick Dokos writes: > This was reported by user @Addlai on Emacs SE. See > https://emacs.stackexchange.com/questions/82276/stop-org-cycle-from-prompting-for-header-args > > `org-babel-header-arg-expand' is added to the hook > `org-cycle-tab-first-hook' so when a TAB is pressed, the function is > c

Re: VISIBILITY property: Is it mixed children and content?

2024-10-10 Thread Ihor Radchenko
Kepa writes: > Using :VISIBILITY: in a headline PROPERTIES drawer: > > It seems ":visibility: children" shows the headline content and children. > > While ":visibility: content" shows just headline's children > > Intuitively I'd say it should be the opposite way. You misunderstand the meaning. "

Re: [BUG][PATCH] org-babel: Shared list structure causes spurious changes in user options [9.8-pre (release_9.7.10-127-g07dd3b @ /usr/local/share/emacs/site-lisp/org/)]

2024-10-10 Thread Ihor Radchenko
Nick Dokos writes: > Subject: [PATCH] org-babel: Avoid changing user options by not sharing list > structure > > * lisp/ob-core.el (org-babel-get-src-block-info): Use `copy-tree' > when using `org-babel-default-header-args*' variables to prepare the > `info' variable used in src block evaluation

Re: Using org-latex-preview in other major modes

2024-10-10 Thread Ihor Radchenko
Karthik Chikmagalur writes: >> Abstracting away previews is certainly welcome. >> RMS explicitly asked Org mode team to work towards this goal: >> https://list.orgmode.org/e1kikxv-0007iy...@fencepost.gnu.org/ > > I recently spent some time on this feature (LaTeX previews in all > major-modes) and

Re: [BUG] org-babel-header-arg-expand is rather cavalier about "appropriate context" [9.8-pre (release_9.7.10-127-g07dd3b @ /usr/local/share/emacs/site-lisp/org/)]

2024-10-10 Thread Nick Dokos
On 10/10/24 1:51 PM, Ihor Radchenko wrote: Nick Dokos writes: This was reported by user @Addlai on Emacs SE. See https://emacs.stackexchange.com/questions/82276/stop-org-cycle-from-prompting-for-header-args `org-babel-header-arg-expand' is added to the hook `org-cycle-tab-first-hook' so when

Re: [PATCH v7] Inline image display as part of a new org-link-preview system

2024-10-10 Thread Ihor Radchenko
Karthik Chikmagalur writes: > Latest patch attached. Thanks! See my (minor) comments below. I think that it is the time to move ahead with updating the ORG-NEWS and the manual. > (org-defkey org-mode-map (kbd "C-c C-x C-M-v") #'org-redisplay-inline-images) > > Do we need this command any more?

Re: [PATCH v7] Inline image display as part of a new org-link-preview system

2024-10-10 Thread Karthik Chikmagalur
Will address the other issues. I had some questions about the manual. > I think that it is the time to move ahead with updating the ORG-NEWS and > the manual. Suppose a package author is aware that Org now supports previews for custom link types and wants to add a preview. What section of the m