Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]

2021-11-17 Thread Ihor Radchenko
Aaron Jensen writes: > Here's another on c47b535bb: > > https://gist.github.com/aaronjensen/348d879f79099c0d9b660bad199f25af > > I don't recall what I was doing at the time, it was during a meeting. I do not see anything meaningful in the backtrace, except that "Current command: nil" is

Re: table and Cyrillic characters: org-element--cache: Unregistered buffer modifications detected. Resetting

2021-11-17 Thread Ihor Radchenko
Max Nikulin writes: > Unintentionally I pressed some keys and it appeared again > ... > C-\ russian-computer RET > || > > By "|" I mean Shift+\ that inserts "/" with russian-computer input method. I pushed yet another workaround. That part of code is turning into one giant FIXME and I do not

Re: [BUG] Unregistered buffer modifications detected [9.5 (9.5-g49e2f6 @ /Users/myuser/.emacs.d/straight/29/straight/build/org/)]

2021-11-17 Thread Max Nikulin
On 17/11/2021 13:05, Aaron Jensen wrote: I don't recall what I was doing at the time, it was during a meeting. You press C-h l that calls view-lossage and look into help buffer later. This command helped me to realize what was the cause of

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread John Kitchin
there is nothing like that that I know of. You can write your own, in org (following Eric's use of radio targets) it might look like this. (defun my-heading () (interactive) (let* ((title (string-trim (read-string "title: "))) (tokens (split-string title " " t)) (label (format "<>"

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Eric S Fraga
On Wednesday, 17 Nov 2021 at 08:36, Uwe Brauer wrote: > In auctex+reftex it is possible that when I insert a new section header > a reference label is inserted automatically: I do the following usually: --8<---cut here---start->8--- * <> Introduction In

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Uwe Brauer
>>> "UB" == Uwe Brauer writes: > Hi > In auctex+reftex it is possible that when I insert a new section header > a reference label is inserted automatically: > 1. Example >\subsection{Inverse problem} >\label{sec:one} > 2. And then using reftex-reference >I can insert

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga writes: > On Wednesday, 17 Nov 2021 at 08:36, Uwe Brauer wrote: >> In auctex+reftex it is possible that when I insert a new section header >> a reference label is inserted automatically: > I do the following usually: > * <> Introduction Right, but how do you do

Re: Should be possible to export list items emphasized by default?

2021-11-17 Thread Juan Manuel Macías
Ypo writes: > /1. Introduction/ > > It doesn't work as a list item > > 1. /Introduction/ > > It works as a list item but, when exporting, it doesn't export the > whole item emphasized. If I have understood correctly, you want to export the label emphasized as well, not just the item content...

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Juan Manuel Macías
Stefan Nobis writes: > #+begin_src emacs-lisp > (defun sn/ox-latex-filter-special-ref-vref (text backend info) > (when (org-export-derived-backend-p backend 'latex) > (replace-regexp-in-string "ref{" "vref{" text))) > > (add-to-list 'org-export-filter-link-functions >

Re: [BUG] Weird sparse tree folding [9.5 (release_9.5-225-g494c20.dirty @ /Users/carlos/Install/Source/org-mode/lisp/)]

2021-11-17 Thread Carlos Pita
Hi Ihor, > > Maybe I'm not getting how this is supposed to work, but it makes no > > sense to me. > > M-x org-reveal (C-c C-r) Thanks for the tip, I didn't know about this and it indeed seems useful in order to avoid unfolding everything else. That said, my report was about the expansion of:

Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create] (was: insert automatically a reference to a section header and a link)

2021-11-17 Thread John Kitchin
in the most current version (3) of org-ref, the labels that are found are defined in org-ref-ref-label-regexps. At the moment there isn't a pattern for ID. No particular reason, I haven't used ID like that for many years. I added and pushed that to the current repo just now. John

Re: [org-cite] CSL processor, APA Style, and no-date citations

2021-11-17 Thread John Kitchin
in org-ref there is a natbib-bbl preprocessor for this. It works with bibtex (not biblatex) though. You can see how it works here: https://www.youtube.com/watch?v=lq3LspE-rAs=PL0sMmOaE_gs3E0OjExoI7vlCAVygj6S4I=8 You would have to use another preprocessor to convert org-cites to org-ref links, or

Re: [BUG] org-occur doesn't hide unmatching top-levels [9.5 (release_9.5-225-g494c20.dirty @ /Users/carlos/Install/Source/org-mode/lisp/)]

2021-11-17 Thread Carlos Pita
Hi Ihor, > Can you elaborate? If the docstring is not clear enough, we can easily > improve it. Consider for example: minimal show current headline; if point is not on headline, also show entry So if you have: * a * b ** b1 ** b2 ** b3 * c I see no reason why a match inside b2 will

Re: [org-cite] CSL processor, APA Style, and no-date citations

2021-11-17 Thread Bruce D'Arcus
On Wed, Nov 17, 2021 at 12:47 PM Rudolf Adamkovič wrote: > In the meantime, can I use the BibLaTeX backend (or something else) for > *HTML* export? I don't believe so, unless there's some good latex -> html solution I'm not aware of. Bruce

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Stefan Nobis
Juan Manuel Macías writes: > In Org 9.5 there is a new variable `org-latex-reference-command'. Thanks for the reminder! I once read about it, but forgot to use it after upgrading to 9.5. :) -- Until the next mail..., Stefan.

Re: [org-cite] CSL processor, APA Style, and no-date citations

2021-11-17 Thread Rudolf Adamkovič
András Simonyi writes: > this looks like a citeproc-el bug indeed -- could you post a bug > report on the GitHub project page? Done. Opened 3 GitHub issues: - Fix "literal" authors (#72) - Fix title capitalization (#71) - Support no-date citations (#70) In the meantime, can I use the BibLaTeX

Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create]

2021-11-17 Thread Uwe Brauer
> in the most current version (3) of org-ref, the labels that are found are > defined in org-ref-ref-label-regexps. At the moment there isn't a pattern > for ID. No particular reason, I haven't used ID like that for many years. I > added and pushed that to the current repo just now. Thanks, that

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Stefan Nobis
Uwe Brauer writes: > Yes, but, what do you do, if you have a 10 header and each has 20 > subheaders. I avoid writing such complex documents for the moment. :) [Some custom functions] > Thanks but this did not work! Sorry. The code is meant as an inspiration, not to be used out-of-the box. I

Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create]

2021-11-17 Thread John Kitchin
it usually takes up to 4 hours to propagate to MELPA. I can't reproduce the error you report. At least, with a fresh emacs and install from MELPA everything seems to load and work fine, even with emacs 29. There seem to be many issues with native-compiling on the most modern emacs, are you

Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create]

2021-11-17 Thread Uwe Brauer
>>> "JK" == John Kitchin writes: > it usually takes up to 4 hours to propagate to MELPA. I can't reproduce > the error you report. At least, with a fresh emacs and install from MELPA > everything seems to load and work fine, even with emacs 29. There seem to > be many issues with

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Uwe Brauer
>>> "JK" == John Kitchin writes: > there is nothing like that that I know of. You can write your own, in org > (following Eric's use of radio targets) it might look like this. > (defun my-heading () > (interactive) > (let* ((title (string-trim (read-string "title: "))) > (tokens

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Uwe Brauer
> Stefan Nobis writes: > Completely agree. I also tend to use `org-super-link' > (https://github.com/toshism/org-super-links). Interesting. This package is not in MELPA, but I will download and test it. > It can be run with helm-org-ql, so if there are a lot of headings in > the document, I

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Eric S Fraga
On Wednesday, 17 Nov 2021 at 17:00, Uwe Brauer wrote: > While > > ** That <> Well, you could write --8<---cut here---start->8--- ** That <> --8<---cut here---end--->8--- to get what you like in terms of LaTeX export. I

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Stefan Nobis
Uwe Brauer writes: > I wonder why this was not implemented or asked for. Hmmm... for me, the default way to link to headings is just fine, I seldom need more control over the generated labels: #+begin_src org ,* Intro Lorem ipsum dolor sit amet... ,* Another section As seen in

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Eric S Fraga
On Wednesday, 17 Nov 2021 at 16:55, Uwe Brauer wrote: "SN" == Stefan Nobis writes: >> As seen in [[*Intro]] there is not much to say. > > I am not following you. You insert a header as in > > * Intro > > > Now you want to refer to it with a link The point is that the link uses the heading

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga writes: > On Wednesday, 17 Nov 2021 at 17:00, Uwe Brauer wrote: >> While >> >> ** That <> > Well, you could write > ** That > <> Right, good idea > to get what you like in terms of LaTeX export. > I tend to put the label on the headline so that I can see it when

Re: Bug: org-no-popups disregards display-buffer-fallback-action 9.4.6

2021-11-17 Thread Max Nikulin
On 15/11/2021 14:49, Jan Seeger wrote: On 13.11.21 14:15, Max Nikulin wrote: My thought is that I have a perfectly good window manager that allows me to manage Emacs frames. ... Thus, I prefer to have my window manager manage Emacs frames, instead of adding yet another way to switch between

Re: [org-cite] CSL processor, APA Style, and no-date citations

2021-11-17 Thread Bruce D'Arcus
On Wed, Nov 17, 2021 at 9:59 AM Rudolf Adamkovič wrote: > I would like to start using the new citations with the APA Style. To cite in > APA, I use a CSL file. Everything works well with Pandoc, but with Org, all > citations with no "date" BibTeX field render as "$AUTHOR" instead of "$AUTHOR

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Uwe Brauer
>>> "SN" == Stefan Nobis writes: > Uwe Brauer writes: >> I wonder why this was not implemented or asked for. > Hmmm... for me, the default way to link to headings is just fine, I > seldom need more control over the generated labels: > #+begin_src org > ,* Intro > Lorem ipsum dolor sit

Re: c47b535bb origin/main org-element: Remove dependency on ‘org-emphasis-regexp-components’

2021-11-17 Thread Max Nikulin
On 17/11/2021 04:56, Samuel Wales wrote: might be useful to know whether a default regexp change could satisfy everybody? in my case i remove " and , from third re. Samuel, I have seen your next message, but it still may be helpful to have an example (for a case if you will meet the problem

Re: [BUG] Agenda query trailing spaces [9.5 (release_9.5-225-g494c20.dirty @ /Users/carlos/Install/Source/org-mode/lisp/)]

2021-11-17 Thread Ihor Radchenko
Carlos Pita writes: > when I press [ or ] to add additional words to the agenda query but then > immediately abort the prompt with C-g without actually adding any new > word, a trailing extra space is added to the query. After doing the same > n times, the query includes n trailing spaces.

Re: [BUG] Weird sparse tree folding [9.5 (release_9.5-225-g494c20.dirty @ /Users/carlos/Install/Source/org-mode/lisp/)]

2021-11-17 Thread Ihor Radchenko
Carlos Pita writes: > The new three dots are not expandable. > > Maybe I'm not getting how this is supposed to work, but it makes no > sense to me. M-x org-reveal (C-c C-r)

[org-cite] CSL processor, APA Style, and no-date citations

2021-11-17 Thread Rudolf Adamkovič
I would like to start using the new citations with the APA Style. To cite in APA, I use a CSL file. Everything works well with Pandoc, but with Org, all citations with no "date" BibTeX field render as "$AUTHOR" instead of "$AUTHOR (n.d.)" both in-text and in the reference list. This renders Org

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Juan Manuel Macías
Stefan Nobis writes: > Hmmm... for me, the default way to link to headings is just fine, I > seldom need more control over the generated labels: > > #+begin_src org > ,* Intro > > Lorem ipsum dolor sit amet... > > ,* Another section > > As seen in [[*Intro]] there is not much to say. >

Re: [PATCH] ob-clojure.el: Add support for babashka and nbb backend

2021-11-17 Thread Max Nikulin
On 15/11/2021 23:05, Daniel Kraus wrote: Max Nikulin writes: Attached is the patch changed the logic to use a temp file with org-babel-eval. Thank you for contribution. I do not have strong objection any more. I am not familiar with babel internals, so I leave further discussion to

Re: [org-cite] CSL processor, APA Style, and no-date citations

2021-11-17 Thread András Simonyi
Dear All, On Wed, 17 Nov 2021 at 16:07, Bruce D'Arcus wrote: > > On Wed, Nov 17, 2021 at 9:59 AM Rudolf Adamkovič wrote: > > > I would like to start using the new citations with the APA Style. To cite > > in APA, I use a CSL file. Everything works well with Pandoc, but with Org, > > all

Re: [BUG] org-occur doesn't hide unmatching top-levels [9.5 (release_9.5-225-g494c20.dirty @ /Users/carlos/Install/Source/org-mode/lisp/)]

2021-11-17 Thread Ihor Radchenko
Carlos Pita writes: > Hi all, > > I don't see any clear reason why org-occur should hide unmatching > entries except at the top level, where it merely folds them. For files > containing lots of top-level entries this requires tree demoting in > order to hide irrelevant information, but this

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga writes: > On Wednesday, 17 Nov 2021 at 14:58, Uwe Brauer wrote: >> Right, but how do you do this automatically? > John's given you an answer along the lines of what you wanted but I > would suggest that sometimes we over-complicate things? Hm not sure > LaTeX needs

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Stefan Nobis
Uwe Brauer writes: > I am not following you. You insert a header as in > * Intro > Now you want to refer to it with a link > As we have seen in section ... > So what precisely are you typing? I type "As we have seen in section [[*Intro]]" (literally, I tend to not use any keybindings or

[Problems with org-ref-helm-insert-ref-link and org-id-get-create] (was: insert automatically a reference to a section header and a link)

2021-11-17 Thread Uwe Brauer
Please look at this example * new :PROPERTIES: :ID: 43b3de77-4074-47f2-9a4a-9cddebb33951 :END: ** Inverse problem :PROPERTIES: :CUSTOM_ID: sec:one :END: ** new title :PROPERTIES: :ID: f3c76e50-5be9-47f2-bad4-257166670481 :END: Two ids were generated

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga writes: > On Wednesday, 17 Nov 2021 at 16:55, Uwe Brauer wrote: > "SN" == Stefan Nobis writes: >>> As seen in [[*Intro]] there is not much to say. >> >> I am not following you. You insert a header as in >> >> * Intro >> >> >> Now you want to refer to it with a

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Uwe Brauer
>>> "SN" == Stefan Nobis writes: > Uwe Brauer writes: >> I am not following you. You insert a header as in >> * Intro >> Now you want to refer to it with a link >> As we have seen in section ... >> So what precisely are you typing? > I type "As we have seen in section [[*Intro]]"

Re: insert automatically a reference to a section header and a link

2021-11-17 Thread Eric S Fraga
On Wednesday, 17 Nov 2021 at 14:58, Uwe Brauer wrote: > Right, but how do you do this automatically? John's given you an answer along the lines of what you wanted but I would suggest that sometimes we over-complicate things? LaTeX needs help because it's a lot more verbose. Org, however, has a

Re: [BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-11-17 Thread Kévin Le Gouguec
Ingo Lohmar writes: > It seems the change was introduced in > 565361eb698b0b39c1d823ad1565f5bd88fa2034 and persists. > > Can people actually enter "C-c C-TAB" into their emacs (how?), or has > everybody has just bound another key in their config? Mmm, I can't seem to input C-c C-TAB either.

Re: [BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-11-17 Thread Ingo Lohmar
On Fri, Oct 01 2021 23:16 (+0200), Ingo Lohmar wrote: > 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

Re: [BUG] org-occur doesn't hide unmatching top-levels [9.5 (release_9.5-225-g494c20.dirty @ /Users/carlos/Install/Source/org-mode/lisp/)]

2021-11-17 Thread Carlos Pita
As a concrete example: * a ca * b ** ba cba ** bb cbb ** bc cbc * c cc Then C-c / / cbb: * a... * b... ** bb cbb ... * c... This is also true going deeper into the hierarchy: * a ca * b ** ba cba ** bb *** bba cbba *** bbb cbbb *** bbc cbbc ** bc cbc * c cc Then C-c / / cbbb: * a... * b...

Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create]

2021-11-17 Thread Uwe Brauer
>>> "JK" == John Kitchin writes: > it usually takes up to 4 hours to propagate to MELPA. I can't reproduce > the error you report. At least, with a fresh emacs and install from MELPA > everything seems to load and work fine, even with emacs 29. There seem to > be many issues with

Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create]

2021-11-17 Thread John Kitchin
Probably M-x org-ref-insert-ref-link will do what you want. A lot of things got "simplified" in version 3 to leverage completing-read more natively. helm-mode should work with org-ref-insert-ref-link. See https://github.com/jkitchin/org-ref#configuration for some details on how to configure v3

Re: [org-cite] CSL processor, APA Style, and no-date citations

2021-11-17 Thread Joost Kremers
On Wed, Nov 17 2021, Bruce D'Arcus wrote: > I don't believe so, unless there's some good latex -> html solution > I'm not aware of. There's (at least) tex4ht and lwarp, but to what extent they support biblatex, I don't know. -- Joost Kremers Life has its moments

Re: c47b535bb origin/main org-element: Remove dependency on ‘org-emphasis-regexp-components’

2021-11-17 Thread Samuel Wales
i think i found it useful, long ago, when it was ok/tolerated to change the var, and probably still, to /"do this"/ and /this,/. although the latter seems weird to me now so i must not now understand what i was doing. i think changing the var was at least in a faq or on worg or so, so it might

Re: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to html

2021-11-17 Thread Sun Lin
Hi Timothy, Thank you so much! B.R. Lin

Re: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to html

2021-11-17 Thread Timothy
Hi Sun, > [snipped patch description] > Please help review the patch. Thanks. > [2. text/x-patch; > 0001-Fix-DISPLAY-error-on-exporting-org-with-plantuml-to-.patch]... Thanks for your patience. This looks quite straight-forward. I don't use or have plantuml so I'm in a poor position to test.

Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create]

2021-11-17 Thread Uwe Brauer
>>> "JK" == John Kitchin writes: > Probably M-x org-ref-insert-ref-link will do what you want. A lot of things > got "simplified" in version 3 to leverage completing-read more natively. > helm-mode should work with org-ref-insert-ref-link. I see. I think I got it to work, but the navigation is

Re: [BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-11-17 Thread Timothy
I think that the two actions we may want to take here are: 1. Replace "C-TAB" with "C-" in the keybinding 2. Change the keybinding to something else that doesn't use control+tab for instance, "C-c M-TAB" seems to be available. Which option seems preferable? -- Timothy

Re: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to html

2021-11-17 Thread Sun Lin
Hi Bastien, > Hi, > I will - but please be aware that we have a policy of waiting at least > one month before bumping a thread: > https://orgmode.org/worg/org-mailing-list.html#i-didnt-receive-an-answer > Thanks, > Bastien Please help the patch, thanks. Lin    From