Re: babel/noweb concatenation of equally-named code blocks fails?

2020-04-21 Thread Greg Minshall
Nicolas, thank you. wordsmithing opens up endless possibilities, so i don't know that the following is at all an improvement on your suggestion. but, it occurs to me to get the importance of =noweb-ref=, and its role in concatenation, brought out early on the "page". one paragraph currently

Re: Public API change: How to handle function signature change gracefully

2020-04-21 Thread General discussions about Org-mode.
Thanks John and Nicolas. I sort of arrived at the same point with my over-engineered approach and change of public API. modified   lisp/org.el @@ -5081,10 +5081,18 @@ This includes angle, plain, and bracket links." (link (org-element-property :raw-link link-object)) (type (org-element-property

Re: Public API change: How to handle function signature change gracefully

2020-04-21 Thread John Kitchin
I think what Nicolas suggests is probably the easiest path. Here is one example that does what I think you are looking for. I use a simple string comparison on the contents, you could do something more sophisticated. #+BEGIN_SRC emacs-lisp (defun fruit-link-face (path) (let* ((ln

bug? org-lint issues warning when ;PROPERTIES: drawer before first headline

2020-04-21 Thread Charles Millar
Org mode version 9.3.6 (release_9.3.6-528-gf874b6 @ /usr/local/share/org-mode/lisp/) GNU Emacs 28.0.50 (build 102, x86_64-pc-linux-gnu, GTK+ Version 3.24.18, cairo version 1.16.0) of 2020-04-21 AFAIU this is now allowed. Should org-lint be modified?

Re: Public API change: How to handle function signature change gracefully

2020-04-21 Thread Nicolas Goaziou
Hello, Benjamin Andresen writes: > > I would like to change the public API of the :face part of > `org-link-set-parameters': > >     (org-link-set-parameters "file" :face 'org-link) > > My ultimate goal is to have org-links be able to be have their face changed > based on the contents, not

Re: adding paragraph folding to visibility cycling?

2020-04-21 Thread Nicolas Goaziou
Hello, "Bruce D'Arcus" writes: > Right now, I just keybindings for origami-toggle-all-nodes > origami-toggle-node. > > But I was thinking to have this folding as a step between disclosing > all headings, and disclosing everything. > > Does that make sense? There could be elements between

Re: [PATCH] Re: Inconsistent use of \ref and \eqref in ox-latex and ox-html

2020-04-21 Thread Nicolas Goaziou
Hello, Brian Powell writes: > Thanks again. Please find attached patch addressing issues below. Perfect. Applied. Thank you! I forgot to add TINYCHANGE at the end of the commit message, but I added you to the list of contributors. Regards, -- Nicolas Goaziou

Re: Faces and spaces

2020-04-21 Thread Nicolas Goaziou
Hello, Norman Tovey-Walsh writes: > I admit, up front, that this is of no practical consequence, but it’s > something that distracts me every single time I see it. (Which, I might > argue, is a practical consequence *for me*.) > > Consider the following todo: > > ** TODO Do something next week.

Re: Adding Romanian translation for ox.el

2020-04-21 Thread Kaushal Modi
On Tue, Apr 21, 2020 at 12:43 PM Claudiu Tănăselia wrote: > Yay! My first contribution to org-mode and Emacs! > > Thank you cleaning it up and making it part of the official branch! > > Regards, > Claudiu. > Congrats! Really glad you followed through the whole submission procession. :)

Re: Conditionally loading ob-sh or ob-shell

2020-04-21 Thread Steve Downey
My workaround for dealing with different org versions on different machines: > (org-babel-do-load-languages > 'org-babel-load-languages > `((perl . t) > (ruby . t) > ,(if (version< org-version "9.0") > '(sh . t) >'(shell . t)) > (python

Re: Adding Romanian translation for ox.el

2020-04-21 Thread Claudiu Tănăselia
Yay! My first contribution to org-mode and Emacs! Thank you cleaning it up and making it part of the official branch! Regards, Claudiu. On Tue, Apr 21, 2020, at 19:40, Nicolas Goaziou wrote: > Hello, > > Claudiu Tănăselia writes: > > > I hope I'm doing this right, since it's my first time

Re: Adding Romanian translation for ox.el

2020-04-21 Thread Nicolas Goaziou
Hello, Claudiu Tănăselia writes: > I hope I'm doing this right, since it's my first time trying something > like this, but I've added a Romanian translation for ox.el that > I would like to share with you, hoping that it will make it into the > main branch. Since I'm using a website generated

Re: Conditionally loading ob-sh or ob-shell

2020-04-21 Thread Loris Bennett
Loris Bennett writes: > Hi, > > I want to use one init.el across multiple machines with different > versions of Emacs and Org. Since 'ob-sh.el' changed to 'ob-shell', I > need to do either > > (org-babel-do-load-languages >'org-babel-load-languages >'((org . t) > (emacs-lisp . t)

Re: Failing tests

2020-04-21 Thread Marco Wahl
Kyle Meyer writes: > Marco Wahl writes: > >> When building with "make test" I get >> >> #v+ >> 2 unexpected results: >>FAILED ob-tangle/jump-to-org >>FAILED test-org-attach/dir >> #v- >> >> does this ring a bell for anybody? > > FWIW I don't see either failure on my end (Emacs 26.3).

Conditionally loading ob-sh or ob-shell

2020-04-21 Thread Loris Bennett
Hi, I want to use one init.el across multiple machines with different versions of Emacs and Org. Since 'ob-sh.el' changed to 'ob-shell', I need to do either (org-babel-do-load-languages 'org-babel-load-languages '((org . t) (emacs-lisp . t) (shell . t) (perl . t) (R

Re: issue indent src block?

2020-04-21 Thread zimoun
Hi Nicolas, On Mon, 20 Apr 2020 at 18:12, Nicolas Goaziou wrote: > I cannot reproduce it. You may want to check if something is setting > `org-edit-src-content-indentation' to 0, e.g., .dir-locals.el or some > such. Thanks! I have not found the culprit yet but hunt in progress... :-) All the

Adding Romanian translation for ox.el

2020-04-21 Thread Claudiu Tănăselia
Hello, I hope I'm doing this right, since it's my first time trying something like this, but I've added a Romanian translation for ox.el that I would like to share with you, hoping that it will make it into the main branch. Since I'm using a website generated from ox-hugo, that uses ox.el,

Faces and spaces

2020-04-21 Thread Norman Tovey-Walsh
Hello, I admit, up front, that this is of no practical consequence, but it’s something that distracts me every single time I see it. (Which, I might argue, is a practical consequence *for me*.) Consider the following todo: ** TODO Do something next week. DEADLINE: <2020-04-28 Tue>