Re: [O] [SOLVED] How to use xml src block as data input?

2018-04-30 Thread John Kitchin
all things in emacs are elisp... You can use this function: #+BEGIN_SRC emacs-lisp (defun get-xml (name) (save-excursion (org-babel-goto-named-src-block name) (org-element-property :value (org-element-context #+END_SRC #+RESULTS: : get-xml like this in a python (or other general

Re: [O] [SOLVED] How to use xml src block as data input?

2018-04-30 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Thanks, John and Simonyi. This is a solution on Elisp. Not general way. But as a intermedia step, really workable. I chose this method. BTW, is it possible to archived with noweb reference <> ? Like #+begin_src python :var data=<> ... #+end_src -

Re: [O] Inheriting some local variables from source code block editing buffers

2018-04-30 Thread Göktuğ Kayaalp
On 2018-04-30 00:09 +02, Bastien wrote: > Hi Göktuğ, > > thanks for your patch. You're welcome! > Kayaalp writes: > Do you have other examples on local variables that would be useful to > pass on when editing code in Org Src buffers? Currently I only pass on

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Steve Downey
>> For many existing users, restoring the old behaviour is just adding a require to their setup, so it isn't a lot to ask. Asking users to accept any breakage in the tool they use to get work done is a lot. Changes in UI in emacs are opt-in. Even if the change is the right thing to do. On

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Tim Cross
On 1 May 2018 at 08:39, Jon Snader wrote: > > Tim Cross writes: > > [Snip] >> >> Personally, I feel the new version should be the default and we should >> provide an easy way to re-enable the old version for those who wish to >> continue with what they

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Alan Tyree
I'm a non-technical user, and I've never used ysnippets, but I'm willing to give it a go with some proper instruction. I do see the argument of both sides. Here is a question: I see specialised snippet packages in the ELPA respositories. Is it possible to provide snippets that reproduce the

Re: [O] Smart archiving of subtrees with parent headlines

2018-04-30 Thread Mark Edgington
Hi Bastien, On Thu, Apr 26, 2018 at 7:34 PM, Bastien wrote: > I'd be interested in integrating such a functionality in > org-archive.el. > > Do you think that is feasible? I don't know why not -- I'm OK with the code being used in org-archive.el. As far as I'm concerned, you can

Re: [O] Does :block field of clocktable respect org-extend-today-until?

2018-04-30 Thread Robert Irelan
I have a patch to fix this in https://github.com/telotortium/org-mode (branch org-clock-table-extend-today-until-block). I've submitted a copyright assignment with the FSF. On Tue, Apr 17, 2018 at 5:54 AM Nicolas Goaziou wrote: > Hello, > Robert Irelan

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Kaushal Modi
Hi all, I normally am all for adapting to changes, staying on bleeding edges of emacs, Org, etc. But FWIW, for this particular change to the "

Re: [O] Moving from Jekyll to Orgmode

2018-04-30 Thread Kaushal Modi
Hi Diego, On Mon, Apr 30, 2018 at 4:29 PM Diego Zamboni wrote: > > ox-hugo takes a different approach: it uses org-mode’s ox-markdown > exporter to produce Markdown from the org source, so that Hugo processes a > Markdown file. This makes a big difference, as each tool is

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Jon Snader
Tim Cross writes: [Snip] Personally, I feel the new version should be the default and we should provide an easy way to re-enable the old version for those who wish to continue with what they are use to. We already have this. The problem, as you say, is how we

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Cook, Malcolm
If the poll is still open, I vote don’t change the default. Unless I missed a prior good argument for changing it… Or, unless, upon first invocation, org-mode guided you through or prompted you to changing your defaults, or at the very least, offered/insisted upon your reading ORG-NEWS.

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Tim Cross
I don't think anyone disagrees that this change comes at a cost. Change is very difficult and many people don't like change. The real question is how do we manage this change to minimise the pain while moving org forward to make it an even better solution. Many seem to believe that what is being

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Jon Snader
Richard Lawrence writes: Jon Snader writes: I use the

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Michael Gauland
Same here! On 01/05/18 08:46, Peter Dewey Ore wrote: > I second (third?) Richard and Jon. I use appreciate the simplicity. > > On Mon, Apr 30, 2018 at 1:37 PM, Richard Lawrence > > > wrote: > >

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Peter Dewey Ore
I second (third?) Richard and Jon. I use wrote: > Jon Snader writes: > > I use the

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Richard Lawrence
Jon Snader writes: I use the

Re: [O] Moving from Jekyll to Orgmode

2018-04-30 Thread Diego Zamboni
Hi Luis, easy-hugo is simply a control layer over plain Hugo. As such, when you write a post in org format, it’s not org-mode but Hugo who is doing the interpretation, using the goorgeous library (https://github.com/chaseadamsio/goorgeous/ ). This is

Re: [O] Bug: org-fill-paragraph deletes an extra line [9.1.11 (9.1.11-2-ge3b1c6-elpa @ /home/yminsky/.emacs.d/elpa/org-9.1.11/)]

2018-04-30 Thread Nicolas Goaziou
Hello, Yaron Minsky writes: > Oddly, it also gets indentation wrong. So if I start with this: > > - asdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf > asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf > asdfasdf asdfasdf asdfasdf asdfasdf

[O] bug#31273: 27.0.50; org: #+begin_right block is not exported correctly

2018-04-30 Thread Dmitry Alexandrov
Nicolas Goaziou wrote: > Dmitry Alexandrov <321...@gmail.com> writes: >> with the latest Emacs from git master, exporting #+begin_right block >> neither to HTML, nor to ODT (didn’t test other options) does not work >> as expected, while this should be pretty possible with

[O] Bug: org-fill-paragraph deletes an extra line [9.1.11 (9.1.11-2-ge3b1c6-elpa @ /home/yminsky/.emacs.d/elpa/org-9.1.11/)]

2018-04-30 Thread Yaron Minsky
This problem crops up when I install 9.1.11. I was previously using an 8.* version of org, and didn't see an issue. The basic problem is that every time I do M-q to fill a paragraph, it deletes an extra line from right after the paragraph, eventually sucking in following headers and paragraphs

[O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Jon Snader
I use the

Re: [O] Moving from Jekyll to Orgmode

2018-04-30 Thread Luis Roca
On Sun, 2018-04-29 at 09:45 +0200, Saša Janiška wrote: > ST writes: > > > I would like to rewrite my website using Orgmode (till now I used > > Jekyll). It would be nice if you could help me with following > > questions: > > I recommend you to take look at ox-hugo

[O] bug#31273: 27.0.50; org: #+begin_right block is not exported correctly

2018-04-30 Thread Dmitry Alexandrov
Nicolas Goaziou wrote: > Dmitry Alexandrov <321...@gmail.com> writes: > >> Now, I am not sure, whether am I supposed to use #+begin_org-center >> blocks instead of #+begin_center too. > > The latter. As I explained, ".org-center" is an internal style. > >> In fact, given

Re: [O] problems with tables using https://orgmode.org/worg/org-tutorials/org-lookups.html

2018-04-30 Thread Nicolas Goaziou
Hello, Uwe Brauer writes: > #+name: raw-data2 > |---+-+-+-+-+-+-+-+-| > | | / | | <> | <> | <> | <> | <> | <> | I also moved "/" to the left column. But it works without it. > | | Nombre Completo | DNI |

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Steve Downey
Changing the UI to no longer work is a very non-emacsy thing to do. There's a lot of existing doc and tutorials explaining the org template system, as well as current users who have trained fingers. Breaking

Re: [O] problems with tables using https://orgmode.org/worg/org-tutorials/org-lookups.html

2018-04-30 Thread Uwe Brauer
Thanks! Do you mean #+begin_src org #+name: raw-data2 |---+-+-+-+-+-+-+-+-| | | / | | <> | <> | <> | <> | <> | <> | | | Nombre Completo | DNI | Ej1 | Ej2 | Ej3 | Ej4 | Ej5 | Res |

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Kevin Foley
I should add that one issue with org-tempo is it doesn't seem to be backwards compatible with old templates. For example packages such as ob-sql-mode and org-reveal have easy templates based on the old format such as : (add-to-list 'org-structure-template-alist

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Kevin Foley
Bastien writes: > Here is what the experience can look like: > > - Upgrading Emacs or Org (hurray!!) > - Trying to hit - Thinking your stupid [...] I have to admit that Bastien's list describes my experience almost perfectly. It look me a long time to figure out something that

Re: [O] exporting drawers: odt versus LaTeX

2018-04-30 Thread Eric S Fraga
On Monday, 30 Apr 2018 at 13:46, Nicolas Goaziou wrote: > Eric S Fraga writes: > >> Yes, I understand. I am definitely not disagreeing about how org parses >> the elements, simply how it exports them. > > Then we agree on this point. Yes! > Export is different because,

Re: [O] How to use xml src block as data input?

2018-04-30 Thread John Kitchin
Here is a minor variation on this idea: #+name: xml-example #+BEGIN_SRC xml Tove Jani Reminder Don't forget me this weekend! #+END_SRC #+BEGIN_SRC emacs-lisp :var name="xml-example" (save-excursion (org-babel-goto-named-src-block name) (let ((data (org-element-property :value

Re: [O] problems with tables using https://orgmode.org/worg/org-tutorials/org-lookups.html

2018-04-30 Thread Nicolas Goaziou
Hello, Uwe Brauer writes: > #+TBLNAME: raw-data2 Not related, but : #+name: raw-data2 > |---+-+-+-+-+-+-+-+-| > > | | / | | <> | <> | <> | <> | <> | <> | > | | Nombre Completo | DNI | Ej1 | Ej2 | Ej3 |

Re: [O] exporting drawers: odt versus LaTeX

2018-04-30 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > Yes, I understand. I am definitely not disagreeing about how org parses > the elements, simply how it exports them. Then we agree on this point. Export is different because, well, target languages are also different... Since empty lines are

Re: [O] Moving from Jekyll to Orgmode

2018-04-30 Thread ST
On Sun, 2018-04-29 at 11:45 -0500, Grant Rettke wrote: > On Sat, Apr 28, 2018 at 4:05 PM, ST wrote: > > 3. is there a free modern "corporate" style theme for org-mode? > > Twitter Bootstrap https://github.com/marsmining/ox-twbs and This looks nice... 1. Does it mean that any

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Nicolas Goaziou
Hello, Bastien writes: > Here is what the experience can look like: > > - Upgrading Emacs or Org (hurray!!) > - Trying to hit - Thinking your stupid [...] I have an issue with this argument: it can be opposed to virtually any backward-incompatible change we make. There are

Re: [O] How to use xml src block as data input?

2018-04-30 Thread Simonyi András
Hello, if having the data in a source block is a must, then, as a last resort, you might try to pull the block's content from the buffer's parse tree: #+begin_src emacs-lisp :var src-block-name="xml-sample" (let ((xml-str (org-element-map (org-element-parse-buffer) 'src-block

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-04-30 Thread Eric S Fraga
On Sunday, 29 Apr 2018 at 15:22, Bastien wrote: [...] > But again, I might be wrong, I just don't want this to be a discussion > between us two :) The new system seems more powerful and works better for me as it doesn't conflict with predictive texting that also uses the TAB key. I'm am