Summarize a list of work for school

2024-03-10 Thread Sébastien Gendre
Hello, I want to use Org-mode to track the works I have to do for school. For each course, I have a one file in which I write everything about the course. Including the work I have to do, with it's deadline and other information. And I need a view which summarize all the works to do and display

Questions about splitting a tree into multiple files

2024-03-10 Thread Sébastien Gendre
Hello, I have some questions about splitting an Org-mode tree of headings into multiple files. Lets take an example: I want to track books I have read and take notes about each book. Each book have a title, a status, some properties and notes. The properties are: * Author * Editor * Year At fi

Re: [BUG] obscure error for invalid :exports

2024-03-10 Thread Max Nikulin
On 08/03/2024 16:46, Ihor Radchenko wrote: Max Nikulin writes: Trying to export (to HTML buffer) src_elisp[:exports source]{a} I have got an obscure error org-export-as: Wrong type argument: char-or-string-p, nil See the attached tentative patch. Thanks, Ihor. With this patch app

Re: How to get in-buffer setting from Elisp code

2024-03-10 Thread Bruno Barbier
Hi Sébastien, Sébastien Gendre writes: > Hello, > > How can I access to an in-buffer setting value, from Elisp code ? > IIUC, they are called "Buffer-Local Variables". Using 'buffer-local-value' should give you the value of a variable in a buffer. See the manual for more: (info "(elis

[PATCH] Fix headers in some testing lisp files

2024-03-10 Thread Max Nikulin
Hi, Looking for a file suitable for a new portion of unit tests I have noticed some inconsistencies in first lines of files. for i in testing/lisp/*.el ; do base="$(basename "$i")"; if [ -z "$(sed -n -e "1s/$base//p" "$i")" ]; then printf '%s:1: ' "$i" ; head -1 "$i"

Re: How to get in-buffer setting from Elisp code

2024-03-10 Thread Sébastien Gendre
Hi, Thank you for your reply. I talk about the Org-mode In-Buffer settings: https://orgmode.org/manual/In_002dbuffer-Settings.html Bruno Barbier writes: > Hi Sébastien, > > Sébastien Gendre writes: > >> Hello, >> >> How can I access to an in-buffer setting value, from Elisp code ? >> > > II

Reproducible work with natively compiled Emacs

2024-03-10 Thread Pedro A. Aranda
Hi, I have been experiencing some inconsistencies with org-mode, which I have been able to trace own to using native compilation and not knowing where the files from main were. Attached is a patch in four parts to make natively compiled orgmode more consistent. This is a first step and I w

Re: How to get in-buffer setting from Elisp code

2024-03-10 Thread Gerard Vermeulen
On 10.03.2024 12:39, Sébastien Gendre wrote: Hi, Thank you for your reply. I talk about the Org-mode In-Buffer settings: https://orgmode.org/manual/In_002dbuffer-Settings.html Try for instance: (org-collect-keywords '("TITLE")) See: https://emacs.stackexchange.com/questions/21459/program

[BUG] [PATCH] Use new face org-caption for #+caption lines [9.6.21 ( @ /home/cassou/.emacs.d/lib/org/lisp/)]

2024-03-10 Thread Damien Cassou
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.

[PATCH] lisp/oc-basic.el: add missing function declarations

2024-03-10 Thread Gerard Vermeulen
Hi, the attached patch adds two missing function declarations to oc-basic.el Regards -- Gerard 0001-lisp-oc-basic.el-add-missing-function-declarations.patch Description: Binary data

Re: `:export' attribute?: Re: Experimental public branch for inline special blocks

2024-03-10 Thread Juan Manuel Macías
Juan Manuel Macías writes: > I'm thinking about adding a new global attribute, `:export', that > would granularly control whether or not to export the object and how to > export it. > > Possible values: "noexport", "contents" (it would export only the content) > or the backends to which you want t

[Question] Learning to use Org Element API setters and how to ignore properties

2024-03-10 Thread Antonio Romano
Hi all, I start with the premise that I'm a novice in Elisp development so I don't really have that much experience. Lately I've been toying with the idea of applying Lindholm's "A three way merge for XML documents" paper to Org mode in order to achieve a context aware merging mechanism between two

Testing issues for Ada/SPARK support in Babel

2024-03-10 Thread Francesc Rocher
Hi all, I'm starting from scratch the set of tests for Ada/SPARK support in Babel. I've prepared a file with the first example: ---8<--- testing/examples/ob-ada-spark-test-org ---8<--- * Simple tests :PROPERTIES: :ID: 778e63c2-2644-4a6f-8e7d-f956fa3d9241 :END: #+name: hello-world #+begin_sr

Org mode version 9.7-pre (9.7-pre-n/a-gb0c3c9); Infinite loop in org-update-statistics-cookies when org-hierarchical-todo-statistics nil

2024-03-10 Thread No Wayman
(elpaca-test :interactive t :init (elpaca org (setq org-hierarchical-todo-statistics nil) (with-current-buffer (get-buffer-create "*org-bug*") (insert "* TODO test [/]\n") (insert "** TODO Loop Infinitely") (goto-char (point-min)) (re-search-forward "/" nil t) (

Re: How to get in-buffer setting from Elisp code

2024-03-10 Thread Sébastien Gendre
This is it. Thank you very much. Gerard Vermeulen writes: > On 10.03.2024 12:39, Sébastien Gendre wrote: >> Hi, >> Thank you for your reply. >> I talk about the Org-mode In-Buffer settings: >> https://orgmode.org/manual/In_002dbuffer-Settings.html >> > Try for instance: (org-collect-keywords

[PATCH] lisp/ob-shell.el: Also override explicit-shell-file-name

2024-03-10 Thread Aaron L. Zeng
* lisp/ob-shell.el (org-babel-shell-initialize): Override explicit-shell-file-name in addition to shell-file-name. When a session with shell source blocks, execution calls `shell', which checks `explicit-shell-file-name' variable before `shell-file-name', to determine what shell to run. If the us