Re: Inserting tables programatically in elisp

2022-11-05 Thread Heime
--- Original Message --- On Saturday, November 5th, 2022 at 9:02 AM, Jean Louis wrote: > * Heime heimebor...@protonmail.com [2022-11-05 10:45]: > > > Have been introspecting the possibility of conveniently inserting table > > programatically > > in elisp and encountered "table.el". >

Re: Inserting tables programatically in elisp

2022-11-05 Thread Jean Louis
* Heime [2022-11-05 10:45]: > Have been introspecting the possibility of conveniently inserting table > programatically > in elisp and encountered "table.el". > > Have constructed this function, but the difficulty centers around > the challenge of inserting text in specific tests. > > (defun

[HELP] Clearing bug reports before the upcoming Org release

2022-11-05 Thread Ihor Radchenko
Dear all, As we are preparing the next release, we should make sure that no critical bugs go into the release version of Org. I think I have closed all the straightforward bug reports listed in updates.orgmode.org and a number of unconfirmed bug reports that were left without response. However,

Inserting tables programatically in elisp

2022-11-05 Thread Heime
Have been introspecting the possibility of conveniently inserting table programatically in elisp and encountered "table.el". Have constructed this function, but the difficulty centers around the challenge of inserting text in specific tests. (defun make-table () (interactive) (table-insert

Re: Inserting tables programatically in elisp

2022-11-05 Thread Ihor Radchenko
Heime writes: > Have constructed this function, but the difficulty centers around > the challenge of inserting text in specific tests. > > (defun make-table () > (interactive) > (table-insert 4 5) > (table-forward-cell) > (table-insert-sequence "icomplt-horz" 1 1 1 'center) >

Re: @string abbreviation in bib file not honored in (basic) org-cite

2022-11-05 Thread Ihor Radchenko
Joost Kremers writes: >> aikrahguzar -- TINYCHANGE > > How did you determine this, if I may ask? aikrahguzar's contribution at first > sight seems more involved, though I admit part of those changes is stuff being > moved around. Mmm.. By manually checking magit log. It can provide extra

[BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)]

2022-11-05 Thread Bruno BARBIER
Hi, The function `org-string-width' fails if the selected window is strongly dedicated. Here is a way to reproduce this error: #+begin_src elisp (let ((old-dedicated (window-dedicated-p))) (unwind-protect (progn (set-window-dedicated-p nil t)

Re: Inserting tables programatically in elisp

2022-11-05 Thread Heime
--- Original Message --- On Saturday, November 5th, 2022 at 8:49 AM, Ihor Radchenko wrote: > Heime heimebor...@protonmail.com writes: > > > Have constructed this function, but the difficulty centers around > > the challenge of inserting text in specific tests. > > > > (defun

Re: [PATCH] * lisp/org.el: (org-get-indirect-buffer) Allow indirect base buffers

2022-11-05 Thread Ihor Radchenko
Adam Porter writes: > The attached patch improves the function org-get-indirect-buffer, fixing > a bug, clarifying the code, and adding a docstring. Thanks! I have some comments. > +(cl-defun org-get-indirect-buffer ( (buffer (current-buffer)) > heading) > + "Return an indirect buffer based

Re: [PATCH] org.el: Warning for unsupported markers in `org-set-emphasis-alist'

2022-11-05 Thread Ihor Radchenko
Max Nikulin writes: >> 3. Remove verbatim in ("=" org-verbatim verbatim), ("~" org-code >> verbatim), and the :type spec. AFAIU, they are unused. But can you >> please double-check? > > It seems, before the following commit, verbatim was used to suppress > flyspell, but now "~" and "="

Re: Inequalities in math blocks

2022-11-05 Thread Max Nikulin
This is a reminder of an old bug. From my point of view it is serious enough, but not release critical due to its age. &<> characters must be escaped as HTML entities when LaTeX snippets and blocks are exported for MathJax Form my year-old notes: - =#+options: tex:verbatim= properly escapes

Re: [BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)]

2022-11-05 Thread Bruno Barbier
Ihor Radchenko writes: > Thanks for reporting! > Fixed on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=946abeb49a73d7d04233a53fbb7fd422c7e294b6 It now works. Thanks Ihor! Bruno

Re: [BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)]

2022-11-05 Thread Ihor Radchenko
Bruno BARBIER writes: > The function `org-string-width' fails if the selected window is strongly > dedicated. > > Here is a way to reproduce this error: > > #+begin_src elisp > (let ((old-dedicated (window-dedicated-p))) > (unwind-protect > (progn >

Re: [PATCH] Re: Update Org to MathJax 3

2022-11-05 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Rudolf Adamkovič writes: > >> I will resurrect the thread when I have something to show. > > All right, I have finished the second version of the patch. Thanks! > What do you think? Your tests are failing on my side... Also, In org-html--build-mathjax-config:

Re: Single story around subtree export and footnotes, several issues

2022-11-05 Thread Alain . Cochard
> Fixed on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3e010d81dcabafcdd97199b8122491a74ad9cbed Thanks a lot. I checked that the problem is no longer present for me either. > This is because the error terminated export process in the middle > of it. Org

Re: [PATCH] Re: Update Org to MathJax 3

2022-11-05 Thread Rudolf Adamkovič
Ihor Radchenko writes: Thank you for taking a look, Ihor! > Your tests are failing on my side... Oh, I see! The tests *pass* when ran in-buffer but *fail* when ran via 'make test'. Just the tests that call (current-message) have this problem. Interesting. > ... Good points; I will fix

Re: Inserting tables programatically in elisp

2022-11-05 Thread Jean Louis
* Heime [2022-11-05 12:27]: > > And now the final result: > > > > (rcd-org-table my-table) ⇒ " > > | ID | Description | Amount | > > |--++| > > | 1.00 | Payment for domain | 10.50 | > > | 2.00 | Transfer from Doe | 250.00 | > > > > " > > The problem I see is

Re: Inserting tables programatically in elisp

2022-11-05 Thread Jean Louis
* Heime [2022-11-05 12:27]: > The problem I see is that the code assumes use of org-mode, whereas > I am interested in more general tables in any buffer. At first > perhaps just making a table for display rather than for user > interaction. You said you want them generated programmatically

Re: [PATCH] Re: Update Org to MathJax 3

2022-11-05 Thread Rudolf Adamkovič
Rudolf Adamkovič writes: > Good points; I will fix everything. Please see the attached (3rd) revision of the patch. However, the tests still fail when ran via `make test'. See below. > Ihor Radchenko writes: > >> Your tests are failing on my side... > > The tests *pass* when ran in-buffer

bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week

2022-11-05 Thread General discussions about Org-mode.
Ihor Radchenko writes: > Let's not use 00:00 times. This may fail the test in some unusual time > zones. Changed to 06:00. >From e39e3fa3e58963e7ef15258ed267fa9ed0de936b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Thu, 3 Nov 2022 22:47:44 +0100 Subject: [PATCH]

CI tests

2022-11-05 Thread Christian Köstlin
Dear org-mode users, at the moment I am trying to enable as much of the org-mode testsuite on the ci server (see https://builds.sr.ht/~bzg for the latest testruns). >From time to time some tests fail, because the time when e.g. a timestamp is written to the buffer is different to when the

How to set latex preview font to regular instead of italics?

2022-11-05 Thread Mati
As in subject, I can't find any info with search engine. Latex preview is (imho) ugly italic. Is there an easy way to make it regular?

Re: View next 7 days of agenda, not next week

2022-11-05 Thread Quiliro Ordóñez
El 2022-11-05 15:51, Renato Pontefice escribió: > With this command > (org-agenda-list) > (delete-other-windows) > > My org-mode open with the present week days appointment and TODO > > I would open with next 7 days view every day, not just on Monday. > Is it possible? Did you read the Org

View next 7 days of agenda, not next week

2022-11-05 Thread Renato Pontefice
With this command (org-agenda-list) (delete-other-windows) My org-mode open with the present week days appointment and TODO I would open with next 7 days view every day, not just on Monday. Is it possible? Thank you Renato

bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week

2022-11-05 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor Radchenko writes: > >> Let's not use 00:00 times. This may fail the test in some unusual time >> zones. > > Changed to 06:00. Thanks! Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=eefb14f9fa73b07cb14a0429953fa55f9c78e1cf --

Re: [PATCH] Re: Update Org to MathJax 3

2022-11-05 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Rudolf Adamkovič writes: > >> Good points; I will fix everything. > > Please see the attached (3rd) revision of the patch. Nothing is attached. If you are using Emacs to send email, I suggest you to enable checks for attachments, as I do in notmuch (add-hook

Re: CI tests

2022-11-05 Thread Max Nikulin
On 06/11/2022 02:42, Christian Köstlin wrote: From time to time some tests fail, because the time when e.g. a timestamp is written to the buffer is different to when the timestamp is calculated in the test (the minute just flips there). The testing/org-test.el file defines the

[BUG] Escaping "<" and ">" inside math blocks when exporting to HTML/MathJax (was: Inequalities in math blocks)

2022-11-05 Thread Ihor Radchenko
Max Nikulin writes: > This is a reminder of an old bug. From my point of view it is serious > enough, but not release critical due to its age. > > &<> characters must be escaped as HTML entities when LaTeX snippets and > blocks are exported for MathJax > > Form my year-old notes: > -

Re: Interest in an Org video meetup?

2022-11-05 Thread Ihor Radchenko
Russell Adams writes: > Would there be any interest in a monthly 1-2 hour long ad-hoc screen > sharing and video discussion for Org-mode? > > I'm offering to schedule and moderate the first few events. I'd > propose a Saturday meeting in the afternoon European time to cover EU > and NA. > > I'm

Re: How to set latex preview font to regular instead of italics?

2022-11-05 Thread Ihor Radchenko
Mati writes: > As in subject, I can't find any info with search engine. Latex preview > is (imho) ugly italic. Is there an easy way to make it regular? It would help if you provided more details on what you tried, including your original Org file and the screenshots. See

Re: [PATCH] Re: Maxima code blocks does not work in windows revisited

2022-11-05 Thread Ihor Radchenko
Leo Butler writes: >> I do not have a Windows machine to test and not motivated enough to >> try Emacs in wine. > > Max, a minor modification of the test you sent earlier shows that when > system-type is ms-dos, the placement does not matter (the command-line > is the same); but for gnu/linux,