Re: Sharing variables between source blocks without session

2021-03-19 Thread Loris Bennett
Loris Bennett writes: > "Cook, Malcolm" writes: > >> Eric S Fraga writes: >>> On Tuesday, 16 Mar 2021 at 09:56, Loris Bennett wrote: > How can I avoid having to declare the variable 'user' for both blocks? I imagine you could use a property, as in >>

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread tomas
On Thu, Mar 18, 2021 at 11:41:11PM +0100, Juan Manuel Macías wrote: > Tim Cross writes: > > > From watching these discussions in the past, I think the big stumbling > > block is how easily multi-row columns can be added and maintained in the > > various export formats [...] > I don't know if any

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Juan Manuel Macías
Hi Tomas, writes: > If the aim is "just rendering in Org" and "breaks have no special > meaning" (so each render is allowed to re-flow), then your approach > makes sense (I think Org table has something like that: you can > set the column width and shrink/expand the column appropriately. > Perso

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread tomas
On Fri, Mar 19, 2021 at 09:44:48AM +0100, Juan Manuel Macías wrote: > Hi Tomas, [...] > I was writing yesterday some rudimentary code (just a proof of concept) > and I've made this screencast: > > https://lunotipia.juanmanuelmacias.com/edit-cell-sample-2021-03-19_09.29.17.mp4 Looks nice. And fo

org-capture-template with changing heading (including a TIMESTAMP)

2021-03-19 Thread Uwe Brauer
Hi For an org-capture-template I have a setting of the form ("mg" "Exercicios Annu21: asignados" table-line (file+headline "~/somefile.org" "Exercicios Annu21: asignados") However in that file I also want a header of the form * Exercicios Annu21: asignados <2021-03-19 vie 09:48> That is a c

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Juan Manuel Macías
to...@tuxteam.de writes: > My post was rather a warning that "multi-line" will mean > different things to different people. Yes I agree. It is not the same as how a table is represented in Org and how it should be rendered when exported to some typographic format like (let's say) LaTeX. I think a

Re: Exam LaTeX class

2021-03-19 Thread Christine Köhn
Hi Xianwen, Xianwen Chen (陈贤文) writes: > Does someone have experiences with the exam LaTeX class: > http://www-math.mit.edu/~psh/exam/examdoc.pdf? Yes, but I haven't useid it with orgmode. > The next step I'm trying to do, but don't know how, is to ask LaTeX > exporter to create two exports t

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread tomas
On Fri, Mar 19, 2021 at 10:22:20AM +0100, Juan Manuel Macías wrote: > to...@tuxteam.de writes: > > > My post was rather a warning that "multi-line" will mean > > different things to different people. > > Yes I agree. It is not the same as how a table is represented in Org and > how it should be r

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Juan Manuel Macías
to...@tuxteam.de writes: > For export formats, there could be (yet another) "signal" to convey > "new paragraph here" which then is the exporter's job. Perhaps an > empty line (as is traditional in TeX) or something else. I think that signal would be a good solution within a single line. For exam

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Juan Manuel Macías
* sorry for the typo. I meant "...n columns x n rows..." Juan Manuel Macías writes: > Anyway, I suspect that Org tables are not originally intended for such a > 'literary' content :-) ... LaTeX tabular(x) environment and Org tables > have in common that they are plain text, but that’s where the

[PATCH] Improve documentation of #+startup keyword

2021-03-19 Thread Timothy
Hello all, I was talking to someone who was finding the behaviour of `#+startup' confusing, and they managed to work out a table summarising the behaviour. I think that this would be a good addition to the manual, and help clarify the behaviour --- so I've prepared a little patch to the manual. I

Re: [PATCH] Re: Bug: Plain https links with brackets are not recognised [9.4.4 (release_9.4.4-625-g763c7a @ /home/yantar92/.emacs.d/straight/build/org/)]

2021-03-19 Thread Maxim Nikulin
On 16/03/2021 19:35, Ihor Radchenko wrote: +;;; Link regexps + +(ert-deftest test-ol/plain-link-re () + "Test `org-link-plain-re'." + (should + (equal +'("https" "//example.com/qwe()") +(org-test-with-temp-text +"(Some text in parenthesis followed by link with brackets https:

Re: Sharing variables between source blocks without session

2021-03-19 Thread Eric S Fraga
On Friday, 19 Mar 2021 at 07:38, Loris Bennett wrote: > However, the restriction to source blocks of a particular language does > not seem to work like this, but maybe I have got the syntax wrong > (again). Maybe ;-) This seems to work for me for a shell: :PROPERTIES: :header-args:sh: :var user=

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Eric S Fraga
On Friday, 19 Mar 2021 at 08:58, Tim Cross wrote: > I am a little concerned about the expansion and addition of features in > org mode when there seems to already be a challenge with respect to > maintenance and bug fixing. Personally, I would prefer an org mode which > is consistent and reliable o

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread tomas
On Fri, Mar 19, 2021 at 11:53:14AM +0100, Juan Manuel Macías wrote: > to...@tuxteam.de writes: > > > For export formats, there could be (yet another) "signal" to convey > > "new paragraph here" which then is the exporter's job. Perhaps an > > empty line (as is traditional in TeX) or something else

org-ref / Edit notes problem

2021-03-19 Thread Christian Barthel
Hi, I am using Emacs 27.1 on OpenBSD 6.8 and org-ref (20210315.1730). When I am trying to Edit notes on an existing org-ref entry ([f9] Edit Notes), emacs stops working and hangs. By some observation, I saw that emacs is consuming a lot of memory and the garbage collector seems to run quite fre

Re: Sharing variables between source blocks without session

2021-03-19 Thread Loris Bennett
Eric S Fraga writes: > On Friday, 19 Mar 2021 at 07:38, Loris Bennett wrote: >> However, the restriction to source blocks of a particular language does >> not seem to work like this, but maybe I have got the syntax wrong >> (again). > > Maybe ;-) > > This seems to work for me for a shell: > > :PR

Re: Sharing variables between source blocks without session

2021-03-19 Thread Eric S Fraga
On Friday, 19 Mar 2021 at 14:59, Loris Bennett wrote: > To be honest, I find it is a wee bit confusing that it's > > #+PROPERTY: header-args:sh :var user="loris" > > *without* a colon after the language (if I add it, there is not error, > but the variable is just not set) but > > :PROPERTIES: >

Re: [PATCH] Re: Bug: Plain https links with brackets are not recognised [9.4.4 (release_9.4.4-625-g763c7a @ /home/yantar92/.emacs.d/straight/build/org/)]

2021-03-19 Thread Ihor Radchenko
Maxim Nikulin writes: > I could not guess how to benchmark font-lock. I have tried to open file > (to get everything loaded), kill the buffer, I usually just use profiler-start/open buffer/profiler-report. However, there is also https://github.com/Lindydancer/font-lock-profiler for more fine-gr

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Juan Manuel Macías
to...@tuxteam.de writes: > [...] My point was that it probably makes sense to separate concerns > here. Yes, that separation is essential. I agree. > That's right. OTOH, people will try to stretch it in every conceivable > direction. That's in a way Org's biggest strength (and at the same time >

Re: [PATCH] Re: Bug: Plain https links with brackets are not recognised [9.4.4 (release_9.4.4-625-g763c7a @ /home/yantar92/.emacs.d/straight/build/org/)]

2021-03-19 Thread Ihor Radchenko
Maxim Nikulin writes: > To be clear, I do not ask for any changes. It is great to have some > tests even in the current form. I just have never tried ert before, so I > have some questions. Note that I have no experience with tests since I never did programming professionally. I wrote the test

Re: Using lexical-binding

2021-03-19 Thread Greg Minshall
hi. i just upgraded to : Org mode version 9.4.4 (9.4.4-27-gb712b9-elpa @ /home/minshall/.emacs.d/elpa/org-20210315/) and, have also just started playing with (org-babel-map-inline-src-blocks), the documentation for which says During evaluation of BODY the following local variables are set r

[PATCH] org.el (org-do-latex-and-related): Fix duplicate 'latex-and-related faces

2021-03-19 Thread Sébastien Miquel
Hi, With the current org-do-latex-and-related function, fontification of a region before a LaTeX fragment repeatedly adds the 'org-latex-and-related face to the fragment. You can reproduce with an org buffer with the following content. #+BEGIN_SRC org Foo  $a^2 + b^2 = c^2$ #+END_SRC  - Use (s

Re: org-capture-template: table lines including newline of sorts

2021-03-19 Thread TRS-80
On 2021-03-15 10:14, Uwe Brauer wrote: Uwe Brauer writes: Break up the line however you wish into quoted substrings and concat them together..? No entirely sure that you mean by quoted substrings, can you give me an example, please? I am not same guy you were replying to, but: #+begin_sr

Re: org-capture-template: table lines including newline of sorts

2021-03-19 Thread TRS-80
On 2021-03-18 03:38, Uwe Brauer wrote: I commented out all my templates So the only entry is ("s" "timeslip" table-line (file "/home/oub/timeslips.org") ;; (file "d:/ActiveFiles/timeslips.org") "\| %(org-read-date)\| %^{FileName} %

Re: org-ref / Edit notes problem

2021-03-19 Thread Christian Barthel
Christian Barthel writes: > I am using Emacs 27.1 on OpenBSD 6.8 and org-ref > (20210315.1730). When I am trying to Edit notes on an existing > org-ref entry ([f9] Edit Notes), emacs stops working and hangs. > > By some observation, I saw that emacs is consuming a lot of [..] > Other observation

Re: Syntax Proposal: Multi-line Table Cells/Text Wrapping

2021-03-19 Thread Tim Cross
Eric S Fraga writes: > On Friday, 19 Mar 2021 at 08:58, Tim Cross wrote: >> I am a little concerned about the expansion and addition of features in >> org mode when there seems to already be a challenge with respect to >> maintenance and bug fixing. Personally, I would prefer an org mode which

How to jump from one spelling mistake to the next?

2021-03-19 Thread Sharon Kimble
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 When I'm writing in org-mode I very often make spelling mistakes which I can go back to later to correct. So how can I jump from one mistake to the next please? For example - - --8<---cut here---start->8--- John

Re: How to jump from one spelling mistake to the next?

2021-03-19 Thread Timothy
Sharon Kimble writes: > So in that example how do I jump, using the keyboard only, from the > misspelled apples to the misspelled oranges so that I can correct them? With a package like spell-fu or flyspell you'll be able to find a command like `spell-fu-goto-previous-error'. Bind that to some

Re: How to jump from one spelling mistake to the next?

2021-03-19 Thread Kyle Meyer
Sharon Kimble writes: > When I'm writing in org-mode I very often make spelling mistakes which I > can go back to later to correct. So how can I jump from one mistake to > the next please? If you have Flyspell mode enabled in the buffer, flyspell-goto-next-error (bound to `C-,' by default) will j

Re: How to jump from one spelling mistake to the next?

2021-03-19 Thread Samuel Wales
i wonder why the generic next-error is not used. On 3/19/21, Kyle Meyer wrote: > Sharon Kimble writes: > >> When I'm writing in org-mode I very often make spelling mistakes which I >> can go back to later to correct. So how can I jump from one mistake to >> the next please? > > If you have Flyspe

Re: Using lexical-binding

2021-03-19 Thread Greg Minshall
> but, iiuc, that relies on dynamic binding. so, as =lexical-binding= is > =t=, i don't have access to those appealing variables. from reading the elisp manual, it seems that one could define those variables to be "special variables", and, iiuc, one can achieve this by using a =defvar= without a

Re: How to jump from one spelling mistake to the next?

2021-03-19 Thread Kyle Meyer
Samuel Wales writes: > i wonder why the generic next-error is not used. Hmm, good question. Ignoring any historical reasons for why flyspell does what it does, a quick search on the Emacs lists makes me think at least one open issue is how to prioritize/combine different next-error sources: *

Re: Using lexical-binding

2021-03-19 Thread Kyle Meyer
Greg Minshall writes: > hi. i just upgraded to > : Org mode version 9.4.4 (9.4.4-27-gb712b9-elpa @ > /home/minshall/.emacs.d/elpa/org-20210315/) > > and, have also just started playing with > (org-babel-map-inline-src-blocks), the documentation for which says > > During evaluation of BODY t

Re: Using lexical-binding

2021-03-19 Thread Greg Minshall
Kyle, thanks. i see. i wondered why the talk was all about agendas. since, in my (brand new, experimenting) use of =org-babel-map-src-blocks=, i'm calling a function, and that function is trying to de-reference, e.g., =beg-block=, i get an error. it is (or does seem to be) the case that if the