Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-03 Thread Samuel Wales
On 7/3/23, Max Nikulin wrote: > On 04/07/2023 07:28, Samuel Wales wrote: >> again i normally work with 1 window so i can have enough text. >> sometimes i have a minuibffer. the end. > > 8< > File Edit Options Buffers Tools Minibuf Help > > * title > :PROPERTIES: > :ID:

Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-03 Thread Max Nikulin
On 04/07/2023 07:28, Samuel Wales wrote: again i normally work with 1 window so i can have enough text. sometimes i have a minuibffer. the end. 8< File Edit Options Buffers Tools Minibuf Help * title :PROPERTIES: :ID: e69336ca-ca50-4535-9bad-63a31e030f31 -UU-:F1

Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-03 Thread Samuel Wales
again i normally work with 1 window so i can have enough text. sometimes i have a minuibffer. the end. On 7/3/23, Samuel Wales wrote: > the copletions window dos notc ontain the link dscription or a > default. there is no tdeafult listed in minibuffer or any tlink > description. so it is 1

Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-03 Thread Samuel Wales
the copletions window dos notc ontain the link dscription or a default. there is no tdeafult listed in minibuffer or any tlink description. so it is 1 orig buffer, which is saller and therefoere lss useful, 1 links buffer, which is useless beause does not show what i need, 1 copletions buffer

Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-03 Thread Samuel Wales
maybe most folk are ok with 3 windows + minibuffer. this is not useful to me. On 7/3/23, Samuel Wales wrote: > please feel free to give up if that doesn't get it across. i can't > continue a bac and forth for unrelated reasons. > > On 7/3/23, Samuel Wales wrote: >> scratch the expanded thing.

Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-03 Thread Samuel Wales
please feel free to give up if that doesn't get it across. i can't continue a bac and forth for unrelated reasons. On 7/3/23, Samuel Wales wrote: > scratch the expanded thing. > > it ends up showing orig smaller less useful, links uselessly > boilerplate, completions -- 3 windows! and a terse

Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-03 Thread Samuel Wales
scratch the expanded thing. it ends up showing orig smaller less useful, links uselessly boilerplate, completions -- 3 windows! and a terse minibuffer i wouldn't be able to use. -q. i cannot use such a ui. in contrast, what i expected is orig, and then expanded minibuffer with, instead of

Re: [PATCH v2] Keep the link if the command was cancelled

2023-07-03 Thread Evgenii Klimov
Ihor Radchenko writes: > Evgenii Klimov writes: > [...] >> -(when (funcall (if (equal complete-file '(64)) 'not 'identity) >> - (not org-link-keep-stored-after-insertion)) >> - (setq org-stored-links (delq (assoc link org-stored-links) >> -

Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-03 Thread Samuel Wales
my reading was: s> another window would not work for me but using completion as i do with e.g. refile goto would m> try again s> creates another window. ergo not work for me. in fact, it is worse than that for me. with my fonts, the links window shows nothing useful on screen. it is

Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-03 Thread Samuel Wales
defait cp[;etopm immediately makes 2 windows [orig+links] + expanded completion imnibuffer. not useful for me. On 7/3/23, Max Nikulin wrote: > On 02/07/2023 13:03, Samuel Wales wrote: >> there is not supposed to be any connection between org refile or org >> goto with the code in org insert

Re: [PATCH v2] lisp/org.el: Add final hooks to S-/M-/S-M-cursor commands

2023-07-03 Thread Evgenii Klimov
Ihor Radchenko writes: [...] >> +individual commands for more information. >> + >> +This function runs the hook `org-shiftmetaleft-hook' as a first >> +step, `org-shiftmetaleft-final-hook' as the penultimate step, and >> +returns at first non-nil value." > > Upon looking closer, I realized

Re: org babel output

2023-07-03 Thread Matt
On Sat, 01 Jul 2023 05:52:42 +0200 Robert Synofzik wrote --- > Hello, > the exact same error occurs for me: > https://emacs.stackexchange.com/questions/72243/macos-org-babel-python-with-session-output-give-python-el-eval > > do you possibly have any idea on how to fix this? Just

Re: [PATCH] Keep the link if the command was cancelled

2023-07-03 Thread Ihor Radchenko
Evgenii Klimov writes: >> If necessary, removing stored links without inserting can be made as an >> effect of negative prefix argument in `org-insert-link' or in >> `org-insert-all-links'. > > I tried `org-insert-link' with the negative prefix argument, but the > link was inserted though. > >

Re: [FR] Enhancing footnote managment (via indirect buffer)?

2023-07-03 Thread Ihor Radchenko
Andrea Lazzarini writes: > I was busy with work and had less time to focus on this, sorry! No problem. Just wanted to make sure that this thread did not fall through the cracks. > Well, sorry for the noob question but how do you suggest I fork the org.el > file to start tinkering with it? > I

Re: [PATCH] Keep the link if the command was cancelled

2023-07-03 Thread Evgenii Klimov
Ihor Radchenko writes: > Max Nikulin writes: [...] >> I had it in mind when I was writing my message. I had even tried to find >> another command that allows to remove stored links. > > If necessary, removing stored links without inserting can be made as an > effect of negative prefix

Re: [FR] Please add support for screenplay formatting

2023-07-03 Thread Ihor Radchenko
Fionn Stephens writes: > Thanks a million. I didn't know you could do that. Good that src blocks are good enough for your usage. Closed. > And apologies all for the bad email formatting, I'll try to change it to > plain text. I think your emails do have plain text parts as well, so they

Re: [FR] Please add support for screenplay formatting

2023-07-03 Thread Ihor Radchenko
Fionn Stephens writes: > And this is a LaTeX package that can create screenplays: > https://ctan.org/pkg/screenplay?lang=en. > > The Fountain Mode in emacs can use different backends, but I use > Afterwriting: https://afterwriting.com/. These two appear to produce full document, not

Re: [FR] Please add support for screenplay formatting

2023-07-03 Thread Ihor Radchenko
Christian Moe writes: > To my mind, Org should not support every kind of markup/markdown format > there is, but to the extent Fountain is the best format for screenplays, > and Org is good for organizing bits of screenplays, I think maybe using > Org-babel src blocks is the way to go? I mostly

Re: [PATCH] Keep the link if the command was cancelled

2023-07-03 Thread Evgenii Klimov
Ihor Radchenko writes: > Evgenii Klimov writes: >> ... > > This makes sense, but the patch may break removing stored link in > certain scenarios. Thanks for response, I'll look into this issue and try to avoid this breakage.

Re: [FR] Enhancing footnote managment (via indirect buffer)?

2023-07-03 Thread Andrea Lazzarini
> Il giorno 2 lug 2023, alle ore 12:56, Ihor Radchenko ha > scritto: > > Hello, > > It has been over one month since the last message in this thread. > Are you still interested to work on this feature? Do you need any help? Hi, I was busy with work and had less time to focus on this,

Re: [PATCH] Keep the link if the command was cancelled

2023-07-03 Thread Ihor Radchenko
Max Nikulin writes: >> This argument sounds like https://xkcd.com/1172/ to me. > > I had it in mind when I was writing my message. I had even tried to find > another command that allows to remove stored links. If necessary, removing stored links without inserting can be made as an effect of

Re: [PATCH] Keep the link if the command was cancelled

2023-07-03 Thread Max Nikulin
On 03/07/2023 22:11, Ihor Radchenko wrote: Max Nikulin writes: Sometimes I am using it as a feature to remove a link stored by mistake or due to ... This argument sounds like https://xkcd.com/1172/ to me. I had it in mind when I was writing my message. I had even tried to find another

Re: [PATCH] Keep the link if the command was cancelled

2023-07-03 Thread Ihor Radchenko
Max Nikulin writes: > Sometimes I am using it as a feature to remove a link stored by mistake > or due to ... This argument sounds like https://xkcd.com/1172/ to me. It is unexpected and undocumented that not inserting the link, but stopping in the middle removes it from the store list. --

Re: [PATCH] Keep the link if the command was cancelled

2023-07-03 Thread Max Nikulin
On 03/07/2023 19:48, Ihor Radchenko wrote: Evgenii Klimov writes: * lisp/ol.el (org-insert-link): Keep the link in `org-stored-links' if the command was interrupted by the user during the reading of a description from the minibuffer. --- Currently the link is lost if the user chooses the link

Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-03 Thread Max Nikulin
On 02/07/2023 13:03, Samuel Wales wrote: there is not supposed to be any connection between org refile or org goto with the code in org insert link. completion works to select ol paths for org refile and also for org refile when it is doing goto. i just want the same for links. I am giving

Re: [FR] Please add support for screenplay formatting

2023-07-03 Thread Fionn Stephens
Thanks a million. I didn't know you could do that. And apologies all for the bad email formatting, I'll try to change it to plain text. Fionn --- Original Message --- On Monday, July 3rd, 2023 at 2:53 PM, Bruno Cardoso wrote: > On 2023-07-03, 13:00 +, Fionn Stephens

Re: [PATCH] lisp/org-id.el: Add new relative timestamp feature for `ts' `org-id-method'

2023-07-03 Thread Kierin Bell
Ihor Radchenko writes: > It has been over one month since the last email in this thread. > May I know if you had a chance to work on your patch any further? Hello, I have made some progress, and I should have some time soon to finalize and submit version 2. Thanks! -- Kierin Bell GPG Key:

Re: [FR] Please add support for screenplay formatting

2023-07-03 Thread Fionn Stephens
I just found a python package that can convert fountain markdown to LaTeX: https://pypi.org/project/fountain/. And this is a LaTeX package that can create screenplays: https://ctan.org/pkg/screenplay?lang=en. The Fountain Mode in emacs can use different backends, but I use Afterwriting:

Re: [FR] Please add support for screenplay formatting

2023-07-03 Thread Christian Moe
Ihor Radchenko writes: > Fionn Stephens writes: > >> I think support for screenplay formatting would be a useful feature to add. >> Like to how comments or quotes are done, it could be in between the tags: >> #+BEGIN_SCREENPLAY and #+END_SCREENPLAY. I think using the markdown used by >>

Re: Cache must be active error

2023-07-03 Thread Colin Baxter
> Ihor Radchenko writes: > Colin Baxter writes: >> 1. emacs -q 2. eval in scratch buffer (add-to-list >> 'load-path (expand-file-name "~/path/to/git/org-mode/lisp")) >> 3. M-x org-agenda 4. Enter m 5. "Cache must be active" now >> appears in echo area >> >> Am

Re: [FR] Please add support for screenplay formatting

2023-07-03 Thread Bruno Cardoso
On 2023-07-03, 13:00 +, Fionn Stephens wrote: > Hi, > > I think support for screenplay formatting would be a useful feature to add. > Like to how comments or quotes are done, it could be in between the tags: > #+BEGIN_SCREENPLAY and #+END_SCREENPLAY. I think using the markdown used by >

Re: [BUG] Source block indentation does not work properly for yaml-mode [9.6.6 ( @ /home/user/.emacs.d/elpa/org-9.6.6/)]

2023-07-03 Thread Sébastien Miquel
Ihor Radchenko writes: For the second scenario, no special treatment of current line is needed. For the first scenario, why do we need to do it all the way in `org-src--contents-for-write-back'? Why not directly in `org-indent-line'? Ah, yes, that is much better. -- Sébastien MiquelFrom

Re: [FR] Please add support for screenplay formatting

2023-07-03 Thread Ihor Radchenko
[ Adding Org ML back to CC. Please use Reply All or wide reply to keep other mailing list members in the loop. ] > The industry standard is to use Final Draft > (https://en.wikipedia.org/wiki/Final_Draft_(software)), but I personally use > Emacs Fountain Mode

Re: [PATCH] ob-python: support header argument `:results file graphics'

2023-07-03 Thread Liu Hui
Ihor Radchenko 于2023年7月3日周一 19:41写道: > This already works, even without the patch. Yes. It means the patch doesn't break current usage. > > In this case, `graphics' can be removed too. > > May you elaborate? > > #+begin_src python :results file > implies that the result of execution is file

Re: [FR] Please add support for screenplay formatting

2023-07-03 Thread Ihor Radchenko
Fionn Stephens writes: > I think support for screenplay formatting would be a useful feature to add. > Like to how comments or quotes are done, it could be in between the tags: > #+BEGIN_SCREENPLAY and #+END_SCREENPLAY. I think using the markdown used by > Fountain would make the most sense.

Re: [BUG] Source block indentation does not work properly for yaml-mode [9.6.6 ( @ /home/user/.emacs.d/elpa/org-9.6.6/)]

2023-07-03 Thread Ihor Radchenko
Sébastien Miquel writes: >> May you please provide an example when it is necessary? >> `org-indent-line' will run `org-babel-do-key-sequence-in-edit-buffer', so >> it should still use `org-src--contents-for-write-back' and will not >> modify the org buffer text directly. > > You're at the end of

[FR] Please add support for screenplay formatting

2023-07-03 Thread Fionn Stephens
Hi, I think support for screenplay formatting would be a useful feature to add. Like to how comments or quotes are done, it could be in between the tags: #+BEGIN_SCREENPLAY and #+END_SCREENPLAY. I think using the markdown used by Fountain would make the most sense. For example, a section

Re: [BUG] Source block indentation does not work properly for yaml-mode [9.6.6 ( @ /home/user/.emacs.d/elpa/org-9.6.6/)]

2023-07-03 Thread Sébastien Miquel
Ihor Radchenko writes: What happens is: in the org buffer, the line is not empty, because it has the org indentation (which was possibly just added by org-indent-line), but in the edit buffer, the line is empty, because the common org indentation was removed. In that case, we want to add back

Re: [PATCH] Keep the link if the command was cancelled

2023-07-03 Thread Ihor Radchenko
Evgenii Klimov writes: > * lisp/ol.el (org-insert-link): Keep the link in `org-stored-links' if > the command was interrupted by the user during the reading of a > description from the minibuffer. > --- > Currently the link is lost if the user chooses the link but cancells > the comand while

Re: [PATCH v2] lisp/org.el: Add final hooks to S-/M-/S-M-cursor commands

2023-07-03 Thread Ihor Radchenko
Evgenii Klimov writes: > ... Thanks for the update. Few comments. First, please add Changelog entry for etc/ORG-NEWS. > +(defvar org-metaleft-final-hook nil > + "Hook for functions attaching themselves to `M-left'. > +See `org-ctrl-c-ctrl-c-hook' for more information.") Note that unlike

Re: Cache must be active error

2023-07-03 Thread Ihor Radchenko
Colin Baxter writes: > 1. emacs -q > 2. eval in scratch buffer >(add-to-list 'load-path (expand-file-name "~/path/to/git/org-mode/lisp")) > 3. M-x org-agenda > 4. Enter m > 5. "Cache must be active" now appears in echo area > > Am I seeing a new git/org-mode feature or a bug? A can

Re: org babel output

2023-07-03 Thread Ihor Radchenko
Robert Synofzik writes: > the exact same error occurs for me: > https://emacs.stackexchange.com/questions/72243/macos-org-babel-python-with-session-output-give-python-el-eval > > I use python 3.9 so guessing switching the version won't help. May you share your Org version as well? If it is not

Re: Cache must be active error

2023-07-03 Thread Colin Baxter
> Max Nikulin writes: > On 03/07/2023 14:03, Colin Baxter wrote: >> 2. If I remove all the org files from my emacs-30.50.0 and >> thereby force emacs to use only org-mode from git then I see the >> error. > Have you tried to recompile Org from git or to load it

[PATCH v2] lisp/org.el: Add final hooks to S-/M-/S-M-cursor commands

2023-07-03 Thread Evgenii Klimov
* lisp/org.el (org-metaleft-final-hook, org-metaright-final-hook, org-metaup-final-hook, org-metadown-final-hook): Define final hooks for S-cursor commands. (org-metaleft, org-metaright, org-metaup, org-metadown): Add final hooks to M-commands and document them in the docstring. * lisp/org.el

org babel output

2023-07-03 Thread Robert Synofzik
Hello, the exact same error occurs for me: https://emacs.stackexchange.com/questions/72243/macos-org-babel-python-with-session-output-give-python-el-eval I use python 3.9 so guessing switching the version won't help. #+begin_src python :session :results output print("yes") #+End_src

Re: Add final hooks to S-/M-/S-M-cursor commands

2023-07-03 Thread Evgenii Klimov
On July 1, 2023 11:40:07 AM GMT+01:00, Ihor Radchenko wrote: >Thanks for the patch! >May you please squash it into one > Don't you mind if I also add the final hook to `org-meta-return'? I didn't do it right away because it requires a little bit of refactoring: everything after the initial

[PATCH] Keep the link if the command was cancelled

2023-07-03 Thread Evgenii Klimov
* lisp/ol.el (org-insert-link): Keep the link in `org-stored-links' if the command was interrupted by the user during the reading of a description from the minibuffer. --- Currently the link is lost if the user chooses the link but cancells the comand while writing the description. lisp/ol.el |

Re: [PATCH] ob-python: support header argument `:results file graphics'

2023-07-03 Thread Ihor Radchenko
Liu Hui writes: > I have updated the patch and ‘:file’ header argument can be omitted > now, e.g. > > #+begin_src python :results graphics file > import matplotlib.pyplot as plt > plt.plot([1,2,3,4,5]) > plt.savefig('test.png') > return 'test.png' > #+end_src This already works, even without

Re: [PATCH] ob-python: support header argument `:results file graphics'

2023-07-03 Thread Liu Hui
Ihor Radchenko 于2023年7月3日周一 17:28写道: > This might be a useful feature, but it will break the existing > conventions, if used as in the patch. Currently, the above combination > of :file and :results is treated as the following: > > ‘graphics’ > When used along with ‘file’ type, the result

Re: [BUG] Source block indentation does not work properly for yaml-mode [9.6.6 ( @ /home/user/.emacs.d/elpa/org-9.6.6/)]

2023-07-03 Thread Ihor Radchenko
Sébastien Miquel writes: > On second thought, I don't think moving the LaTeX fragment logic away > from `org-src--contents-for-write-back` makes sense. This part of the > function does the opposite of `org-do-remove-indentation`, and the > latter has a boolean argument `skip-fl`, so it makes

Re: [PATCH] ob-python: support header argument `:results file graphics'

2023-07-03 Thread Ihor Radchenko
Liu Hui writes: > This patch adds graphics output support for ob-python via matplotlib. > Specifically, it allows to use header argument `:results file > graphics' as follows: > > #+begin_src python :file "test.png" :results graphics file > import matplotlib.pyplot as plt > plt.plot([1,2,3,4,5])

Re: exporting to PDF multi-lingual document

2023-07-03 Thread Ihor Radchenko
Stefan Nobis writes: > The other problem: Not everyone does a full installation of TeX Live. > So even if good fonts are available, they are not always installed on > every system (but this part could be mitigated by documentation and/or > error messages and hints). Fair point. I guess that a

Re: Cache must be active error

2023-07-03 Thread Max Nikulin
On 03/07/2023 14:03, Colin Baxter wrote: 2. If I remove all the org files from my emacs-30.50.0 and thereby force emacs to use only org-mode from git then I see the error. Have you tried to recompile Org from git or to load it uncompiled? Concerning mixed-version loading. M-x org-version when

Re: exporting to PDF multi-lingual document

2023-07-03 Thread Thomas Dye
Google’s Noto font might have the best coverage and is open source. Tom > On Jul 2, 2023, at 7:48 PM, Stefan Nobis wrote: > > Ihor Radchenko writes: > >> Though ideally all the necessary fonts should be provided by >> TeXLive. I am not sure why they are not yet there in 2023. > > First

Re: Cache must be active error

2023-07-03 Thread Colin Baxter
> Max Nikulin writes: > On 03/07/2023 00:44, Colin Baxter wrote: >>> Ihor Radchenko writes: >> > Just for context, the new version `org-element-cache-map' uses >> a > new macro `org-element-with-enabled-cache' that temporarily > >> enabled cache for the duration of