Re: [PATCH] Justify/align image previews in org-mode

2023-12-18 Thread Karthik Chikmagalur
I've incorporated the following suggestions: - Order of precedence: + #+attr_org overrides #+attr_html and #+attr_latex + `:center t' overrides `:align ...' - Update doc/org-manual.org under the images section. - Add a checker for `:align nil' to org-lint. `:align nil' is not supported.

Re: [PATCH] Justify/align image previews in org-mode

2023-12-18 Thread Karthik Chikmagalur
> I can only suggest something like > > (equal (org-element-begin link) > (save-excursion > (goto-char (org-element-contents-begin paragraph)) > (skip-chars-forward "\t ") > (point))) > > (equal (org-element-end link) > (save-excursion > (goto-char (org-element-contents-end paragraph)) >

Re: [BUG] Tab width in Org files must be 8, not 4 [9.7-pre (release_9.6.13-995-g1d7297 @ /Users/michael/.config/emacs/straight/build/org/)]

2023-12-18 Thread Michael Dixon
Oh… that would do it. Thank you for your help! > On Dec 18, 2023, at 12:10, Ihor Radchenko wrote: > > Michael Dixon mailto:dixiu...@gmail.com>> writes: > >> After a recent update, when I am editing a bulleted list (with an indent >> of 2 spaces, like you can see in the Org manual), I get the fo

Re: [BUG] cannot export org-file: Warning (org-element-cache): org-element--cache: Got empty parent while parsing [9.6.12 (N/A @ /gnu/store/h6351wyaf8gahx46y71vd1200wr5l9gv-emacs-org-9.6.12/share/emac

2023-12-18 Thread Dr. Arne Babenhauserheide
Ihor Radchenko writes: > "Dr. Arne Babenhauserheide" writes: > >> M-x org-toggle-debug-on-quit >> >> >> Debugger entered--Lisp error: (quit) >> org-element--parse-to(13994) >> org-element-at-point() >> org--collect-keywords-1(("SETUPFILE" "BIND") nil nil >> ("/home/arne/Schreibtisch/arne

Re: Citations bug with basic processor, plain bibliographies, LaTeX

2023-12-18 Thread William Denton
On 18 December 2023, Ihor Radchenko wrote: Sigh... Fixed, on main. (I hope) https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=41726d408 Fixed! Thanks. Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada CO₂:

Re: Citations bug with basic processor, plain bibliographies, LaTeX

2023-12-18 Thread Ihor Radchenko
William Denton writes: > Ihor, you patched this, but I rebuilt Org and tried again and it fails with a > *Messages* showing a slightly different error: > > org-cite-basic--shorten-names: Wrong type argument: stringp, (raw nil #("van > Dongen, M.R.C." 0 18 (:parent #0))) > > Soon all of these bu

Re: [BUG] Tab width in Org files must be 8, not 4 [9.7-pre (release_9.6.13-995-g1d7297 @ /Users/michael/.config/emacs/straight/build/org/)]

2023-12-18 Thread Ihor Radchenko
Michael Dixon writes: > After a recent update, when I am editing a bulleted list (with an indent > of 2 spaces, like you can see in the Org manual), I get the following > error when I press , M-, etc.: > > Tab width in Org files must be 8, not 4 > > This happens within any heading in which the bu

Re: [PATCH] Justify/align image previews in org-mode

2023-12-18 Thread Ihor Radchenko
Karthik Chikmagalur writes: >> This will not work when the image paragraph is indented: > > * This is test > #+attr_org: :align center > [[file:~/Downloads/wallpaper.png]] > > - Is there a better way to address this than checking if there is only > whitespace behind the link until the start o

Re: [PATCH] Justify/align image previews in org-mode

2023-12-18 Thread Karthik Chikmagalur
> It would make sense to allow 'left value as well (same as nil). Done. > I do not think that we need to consider 'justify value at this point. > Maybe in future, when (or if) we add proper justification support to > text. But not now. Removed support for 'justify. > This will not work when the

Re: Citations bug with basic processor, plain bibliographies, LaTeX

2023-12-18 Thread William Denton
Ihor, you patched this, but I rebuilt Org and tried again and it fails with a *Messages* showing a slightly different error: org-cite-basic--shorten-names: Wrong type argument: stringp, (raw nil #("van Dongen, M.R.C." 0 18 (:parent #0))) Soon all of these bugs will be squashed! Thanks, Bill

[BUG] Tab width in Org files must be 8, not 4 [9.7-pre (release_9.6.13-995-g1d7297 @ /Users/michael/.config/emacs/straight/build/org/)]

2023-12-18 Thread Michael Dixon
After a recent update, when I am editing a bulleted list (with an indent of 2 spaces, like you can see in the Org manual), I get the following error when I press , M-, etc.: Tab width in Org files must be 8, not 4 This happens within any heading in which the bulleted list exists. If I create a ne

Re: [BUG] cannot export org-file: Warning (org-element-cache): org-element--cache: Got empty parent while parsing [9.6.12 (N/A @ /gnu/store/h6351wyaf8gahx46y71vd1200wr5l9gv-emacs-org-9.6.12/share/emac

2023-12-18 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: > M-x org-toggle-debug-on-quit > > > Debugger entered--Lisp error: (quit) > org-element--parse-to(13994) > org-element-at-point() > org--collect-keywords-1(("SETUPFILE" "BIND") nil nil > ("/home/arne/Schreibtisch/arnebab-org/politik/geschl...") nil) >

Re: [BUG] cannot export org-file: Warning (org-element-cache): org-element--cache: Got empty parent while parsing [9.6.12 (N/A @ /gnu/store/h6351wyaf8gahx46y71vd1200wr5l9gv-emacs-org-9.6.12/share/emac

2023-12-18 Thread Dr. Arne Babenhauserheide
Ihor Radchenko writes: > I downloaded the files, adjusted paths, and tried to export the main org > file to html and latex. It was successfully export using the latest > bugfix and main branches. > > May you please provide more details? Ideally, a recipe starting from > emacs -Q. See https://org

Re: [BUG] cannot export org-file: Warning (org-element-cache): org-element--cache: Got empty parent while parsing [9.6.12 (N/A @ /gnu/store/h6351wyaf8gahx46y71vd1200wr5l9gv-emacs-org-9.6.12/share/emac

2023-12-18 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: > I have a file I currently cannot export (I get an infinite loop). The > error message is: > > Warning (org-element-cache): org-element--cache: Got empty parent while > parsing. Please report it to Org mode mailing list (M-x > org-submit-bug-report). > > The

[SUMMARY] #4 [[bbb:OrgMeetup]] on Wed, Dec 13, 19:00 UTC+3

2023-12-18 Thread Ihor Radchenko
Here is a short summary of the main discussion points (those that I remember): - We started late, and the meeting was a bit chaotic this time. But also a bit more relaxing as we just had a few people, with just me and Matt discussing ob-shell development towards the end. - Sacha Chua mentio

Re: #4 [[bbb:OrgMeetup]] on Wed, Dec 13, 19:00 UTC+3

2023-12-18 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor Radchenko writes: > >> Time & Date: <2023-12-13 Wed 19:00-21:00 @+03,Europe/Istanbul> > > When I click on the timestamp above, Org says: > > This should not happen > > Is that normal? Yes, it is. Because Org timestamps do not yet allow time zone specification.

Re: [Patch] Adding support for arxiv type link

2023-12-18 Thread Ihor Radchenko
Hammer Hu writes: > I made several commit adding support for link as arxiv:2208.11710. These codes > basically come from lisp/ol-doi.el. I copy and modify them side by side. Let > me > know what do you think! Thanks for the patch, but may you please explain why you need a new link type rather t

Re: [PATCH] Justify/align image previews in org-mode

2023-12-18 Thread Ihor Radchenko
Karthik Chikmagalur writes: > Please ignore the previous patch and use this one instead. I've fixed a > bug and a couple of formatting errors. Thanks for the patch! See my comments inline. > +(defcustom org-image-align nil > + "How to align images previewed using `org-display-inline-images'.

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

2023-12-18 Thread Ihor Radchenko
"Rick Lupton" writes: > Please find attached updated patch which I think addresses all the points > discussed. Let me know if you see any further changes needed. Thanks! 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 searc

[BUG] cannot export org-file: Warning (org-element-cache): org-element--cache: Got empty parent while parsing [9.6.12 (N/A @ /gnu/store/h6351wyaf8gahx46y71vd1200wr5l9gv-emacs-org-9.6.12/share/emacs/si

2023-12-18 Thread Dr. Arne Babenhauserheide
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: [PATCH] Justify/align image previews in org-mode

2023-12-18 Thread Karthik Chikmagalur
Please ignore the previous patch and use this one instead. I've fixed a bug and a couple of formatting errors. Karthik diff --git a/lisp/org.el b/lisp/org.el index 30a4e7aef..ad2ad2332 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -15673,6 +15673,25 @@ cache Display remote images, and open