Re: Slowdowns and hangs when loading org from elpa

2024-06-05 Thread Pedro Andres Aranda Gutierrez
On Wed, 5 Jun 2024 at 17:00, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez writes: > > > Background: the origin for bug #71356 was that I was trying to get org > > installed from elpa, which apparently didn't work and Emacs (master) took > > the bundled mode instead. > > > >

Re: ob-sql-mode/session

2024-06-05 Thread Phil
* [2024-06-06 02:20] Phil: * [2024-06-05 20:50] Ihor Radchenko: Phil writes: In need for a sessions support on SQL, I checked ob-sql.el and sql.el lately, then wrote https://github.com/flintforge/ob-sql-session CCing Daniel, the ob-sql maintainer. it sounds to me like a proposal to

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Suhail Singh
Ihor Radchenko writes: > Indeed. But I wanted to nudge you to do a bit better :) "Better" here is subjective and we have a difference in opinion, which is okay. While I am not motivated to submit such an alternative patch, I also am not aware of any common usecases that would become much more

Re: [BUG] org-capture: %\N template expansion

2024-06-05 Thread Bruno Cardoso
On 2024-06-05, 11:29 +, Ihor Radchenko wrote: > See the attached tentative patch. > > I introduced a new placeholder - %\*N. It refers to _all_ the prompts, > unlike %\N. If you have better ideas about syntax, please share. > Thank you, Ihor! I tested it both from `org-capture-templates'

Re: [PATCH] Add support for shortdoc link type

2024-06-05 Thread Bruno Cardoso
On 2024-06-05, 22:37 +0700, Max Nikulin wrote: > > A couple of notes that unlikely affect real life usage. > >> + (defun org-link--store-shortdoc ( _interactive?) >> +"Store \"shortdoc\" type link." >> +(when (eq major-mode 'shortdoc-mode) > > `derived-mode-p' is more reliable in

Re: [PATCH] function and symbol for headline and olp for org-capture-templates

2024-06-05 Thread Bastien Guerry
Ihor Radchenko writes: > Nafiz Islam writes: > >> Craig Topham has cleared me to contribute to Emacs. > > Bastien, may you please check the FSF records? Yes, things are okay. Thanks Nafiz! -- Bastien Guerry

Re: [PATCH] Add support for shortdoc link type

2024-06-05 Thread Bastien Guerry
Ihor Radchenko writes: > Bruno Cardoso writes: Please, proceed with the copyright agreement form. >>> >>> Thank you very much, Max. Just sent the form. >> >> Hi all. My copyright assignment with the FSF is complete. > > Bastien, may you please confirm? I do. Thanks Bruno for

Re: [FR] Org babel: mixing multiple outputs (was: Output of R code block: only text or plot but not both? And only one "result" can be output?)

2024-06-05 Thread Berry, Charles
> On Jun 5, 2024, at 11:17 AM, Ihor Radchenko wrote: > > "Berry, Charles" writes: > >>> I am trying to have an R code block output both the results of a numerical >>> expression AND a plot, but if I set up the header arguments to display the >>> plot, the numerical outcome is not

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Ihor Radchenko
Suhail Singh writes: > Ihor Radchenko writes: > >> This would work, but it modifies the checker list destructively. > > Yes, as does org-lint-add-checker. In the same vein, > org-lint-remove-checker is intended to be able to undo the "effect" of > one or more org-lint-add-checker invocations.

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Suhail Singh
Ihor Radchenko writes: > This would work, but it modifies the checker list destructively. Yes, as does org-lint-add-checker. In the same vein, org-lint-remove-checker is intended to be able to undo the "effect" of one or more org-lint-add-checker invocations. > What about introducing some

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Ihor Radchenko
Suhail Singh writes: > Ihor Radchenko writes: > >> There is currently no such way. Although, it would be nice to have such >> a feature. Patches welcome! > > See attached. Thanks! > +;;;###autoload > +(defun org-lint-remove-checker (name names) > + "Remove checker(s) from linter. > +NAME is

Re: ob-sql-mode/session

2024-06-05 Thread Ihor Radchenko
Phil writes: > In need for a sessions support on SQL, I checked > ob-sql.el and sql.el lately, then wrote > [[https://github.com/flintforge/ob-sql-session][ob-sql-session]] > (no pun intended, at all:) > > It started with a quick workaround on ob-sql, > which turned out to be the same logic to

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-05 Thread Ihor Radchenko
Giuseppe Pagnoni writes: > #+begin_src R :file example.png :results output graphics file > x <- rnorm(100) > print(mean(x)) > hist(x) > hist(x^2) > #+end_src > > Here, only the last plot gets displayed. Is it not possible to display > more than 1 plot? We currently do not have

[FR] Org babel: mixing multiple outputs (was: Output of R code block: only text or plot but not both? And only one "result" can be output?)

2024-06-05 Thread Ihor Radchenko
"Berry, Charles" writes: >> I am trying to have an R code block output both the results of a numerical >> expression AND a plot, but if I set up the header arguments to display the >> plot, the numerical outcome is not displayed. A simple example: >> >> #+begin_src R :file example.png

Re: Incremental search in hidden text does not work in Org 9.7 Emacs 28

2024-06-05 Thread Ihor Radchenko
Max Nikulin writes: > On 05/06/2024 22:06, Ihor Radchenko wrote: >> `org-fold-core-style' text-properties is going to be obsoleted. >> I tried to support isearch, but it is ultimately an uphill battle >> against bugs popping out here and there. > > I have seen these words in another thread, but

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-05 Thread Berry, Charles
Giuseppe, > On Jun 3, 2024, at 6:47 AM, Giuseppe Pagnoni wrote: > > Hi, > > I am trying to have an R code block output both the results of a numerical > expression AND a plot, but if I set up the header arguments to display the > plot, the numerical outcome is not displayed. A simple

ob-sql-mode/session

2024-06-05 Thread Phil
Hi all, In need for a sessions support on SQL, I checked ob-sql.el and sql.el lately, then wrote [[https://github.com/flintforge/ob-sql-session][ob-sql-session]] (no pun intended, at all:) It started with a quick workaround on ob-sql, which turned out to be the same logic to what _ob-sql-mode_

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Suhail Singh
Ihor Radchenko writes: > There is currently no such way. Although, it would be nice to have such > a feature. Patches welcome! See attached. >From 7d7a240d82202fcb3323453648dd2d8b78d22a6f Mon Sep 17 00:00:00 2001 From: Suhail Date: Wed, 5 Jun 2024 11:55:10 -0400 Subject: [PATCH] org-lint: Add

Re: [ANN] Org mode 9.7 is out

2024-06-05 Thread Juergen Fenn
Am 05.06.24 um 08:01 Uhr schrieb Visuwesh: >> M-x yank-media-types RET yields: >> >> Yank type: >> clipboard:image/tiff >> clipboard:STRING >> clipboard:text/plain > I'm afraid there's nothing much we can do. IIUC, you copy the file from > a file manager, so Org expects clipboard to be

Re: [PATCH] Add support for shortdoc link type

2024-06-05 Thread Max Nikulin
On 13/05/2024 20:04, Bruno Cardoso wrote: +++ b/etc/ORG-NEWS Bruno, I am sorry, but Org-9.7 has been released and your patch can not be cleanly applied any more. Please, rebase it and check that the new feature is described in the proper section for changes that have not released yet. A

Re: Incremental search in hidden text does not work in Org 9.7 Emacs 28

2024-06-05 Thread Max Nikulin
On 05/06/2024 22:06, Ihor Radchenko wrote: `org-fold-core-style' text-properties is going to be obsoleted. I tried to support isearch, but it is ultimately an uphill battle against bugs popping out here and there. I have seen these words in another thread, but I did not expect a regression in

Re: [PATCH] Add support for shortdoc link type

2024-06-05 Thread Ihor Radchenko
Bruno Cardoso writes: >>> Please, proceed with the copyright agreement form. >> >> Thank you very much, Max. Just sent the form. > > Hi all. My copyright assignment with the FSF is complete. Bastien, may you please confirm? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Ihor Radchenko
Suhail Singh writes: >> You can always ignore this warning. > > I presently update (via setq) org-lint--checker after filtering out this > checker. Is there a better way (i.e., one that doesn't rely on an > internal variable) for non-interactive use? Perhaps an > #'org-lint-remove-checker

Re: Incremental search in hidden text does not work in Org 9.7 Emacs 28

2024-06-05 Thread Ihor Radchenko
Max Nikulin writes: > Consider a file with a link > 8< > Text > > [[file:text.org][Something]] > >8 > > Incremental search > C-s file > does not work with current main HEAD (v9.7) and Emacs-28. > > `org-fold-core-style' text-properties > > There is no issue for Org

Re: Slowdowns and hangs when loading org from elpa

2024-06-05 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Background: the origin for bug #71356 was that I was trying to get org > installed from elpa, which apparently didn't work and Emacs (master) took > the bundled mode instead. > > Observation: loading org from elpa with M-x p-l-p leads to errors and >

Re: Org mode version 9.7.2 (release_N/A-N/A-88dd2c)

2024-06-05 Thread Ihor Radchenko
Sharon Kimble writes: > I've just updated my elpa setup and got the new version of org-mode, which > when I check the version shows up as - > > > Org mode version 9.7.2 (release_N/A-N/A-88dd2c @ > /home/boudiccas/.emacs.d/elpa/org-9.7.2/) > > > And that doesn't look right!

Re: What might ‘org-element-at-point’ be doing in *scratch*?

2024-06-05 Thread Ihor Radchenko
Bob Newell writes: > ... It does however leave open the > question about whether there are or are not legitimate cases > for org-element-at-point in buffers which are not org buffers > but present summary or custom views of org material like the > agenda. Yes, calling `org-element-at-point' in

Re: What might ‘org-element-at-point’ be doing in *scratch*?

2024-06-05 Thread Bob Newell
Christian Moe writes: > Hi, > > After upgrading to 9.7.1 on Emacs 27.1, I get a curious warning on Emacs > start-up: > > "Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org > buffer # (fundamental-mode)" > > It does not happen with 'emacs -Q', but it also did not happen

Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-05 Thread Giuseppe Pagnoni
Hi, I am trying to have an R code block output both the results of a numerical expression AND a plot, but if I set up the header arguments to display the plot, the numerical outcome is not displayed. A simple example: #+begin_src R :file example.png :results output graphics file x <-

Re: [ANN] Org mode 9.7 is out

2024-06-05 Thread Ihor Radchenko
Visuwesh writes: > BTW, we might have similar problems in Windows too. See this thread in > emacs-devel when yank-media was initially added: > https://yhetil.org/emacs-devel/837ddk9tc8@gnu.org Looking at that thread, I see https://yhetil.org/emacs-devel/yz18w18vybg7cb%...@idiocy.org/ +

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Suhail Singh
Ihor Radchenko writes: > Org mode has no idea which languages are intended to be executed, but > happen to not have their ob-lang.el backend loaded; and which > languages do not need execution. So, Org mode warns just in case. If the primary function of this check is to ensure that the user

Re: Structure templates moving point

2024-06-05 Thread Ihor Radchenko
Psionic K writes: > As of 9.7.2 > > Using `org-insert-structure-template' to add comment blocks to a > document where I previously added comment blocks is moving the point > to unrelated comments, and definitely not to the body of the block > that was just inserted. I am unable to reproduce.

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Ihor Radchenko
"Suhail Singh" writes: > When there is, say, an "example" result block that is indented (i.e., > the entire block including the delimiters is indented) and it contains > some asterisks in the middle, org-lint considers it to be a possible > case of misplaced-heading. Case in point: > >

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Ihor Radchenko
"Suhail Singh" writes: > Any code block in a language that isn't intended to be executed results in a > warning from 'suspicious-language-in-src-block checker. For instance: > > #+begin_src conf > [Unit] > Description=Blah > #+end_src > > In the above example, conf-mode exists and is used

Incremental search in hidden text does not work in Org 9.7 Emacs 28

2024-06-05 Thread Max Nikulin
Hi, Consider a file with a link 8< Text [[file:text.org][Something]] >8 Incremental search C-s file does not work with current main HEAD (v9.7) and Emacs-28. `org-fold-core-style' text-properties There is no issue for Org 9.6.28. Link part is temporary revealed when

Re: [BUG] org-capture: %\N template expansion

2024-06-05 Thread Ihor Radchenko
Bruno Cardoso writes: >> We may also make %^{prompt}X expansions to work with %\N, but it can >> break the existing templates that are tuned to the current behaviour. > > I see. Would it make sense to have another placeholder for '%^{prompt}X'? See the attached tentative patch. I introduced a

Re: [PATCH 1/2] org-capture: Allow entry template to start without heading

2024-06-05 Thread Rens Oliemans
Ihor Radchenko writes: > Applied, onto main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0c8fba93f > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a62f75c84 > > I added you to the contributor list: > https://git.sr.ht/~bzg/worg/commit/05c4acae Great,

Slowdowns and hangs when loading org from elpa

2024-06-05 Thread Pedro Andres Aranda Gutierrez
Hi, Background: the origin for bug #71356 was that I was trying to get org installed from elpa, which apparently didn't work and Emacs (master) took the bundled mode instead. Observation: loading org from elpa with M-x p-l-p leads to errors and emacs(master) freezing for a long time. When

Re: [PATCH] function and symbol for headline and olp for org-capture-templates

2024-06-05 Thread Ihor Radchenko
Nafiz Islam writes: > Craig Topham has cleared me to contribute to Emacs. Bastien, may you please check the FSF records? > > All you need to create a new symbol in local context is (let ((my-symbol > > value)) ...). > > I don't think that will work because of lexical binding. For example: >

Org mode version 9.7.2 (release_N/A-N/A-88dd2c)

2024-06-05 Thread Sharon Kimble
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I've just updated my elpa setup and got the new version of org-mode, which when I check the version shows up as - Org mode version 9.7.2 (release_N/A-N/A-88dd2c @ /home/boudiccas/.emacs.d/elpa/org-9.7.2/) And that doesn't look

Re: [ANN] Org mode 9.7 is out

2024-06-05 Thread Visuwesh
[புதன் ஜூன் 05, 2024] Juergen Fenn wrote: > Am 03.06.24 um 07:06 Uhr schrieb Visuwesh: >> [ஞாயிறு ஜூன் 02, 2024] Juergen Fenn wrote: >>> [...] >>> I'm afraid I forgot to mention that I don't get prompted, and I did not >>> copy the image from my webbrowser. Rather, I downloaded the jpg file >>>