[O] Problem with org-indent-block

2014-09-12 Thread Fabrice Popineau
Hi, Recently, I started to get problems with org-indent-block returning errors Not at a block. Unfortunately, this is happening while restarting emacs, and I have no idea about how to debug it. It would be nice if somehow this function could give the file and the point in the file where the error

[O] [babel][table] Passing argument to Python code block using org-sbe

2014-09-12 Thread Dror Atariah
Consider the following code: -8-- #+NAME: test #+BEGIN_SRC python :var x=foobar return len(x) #+END_SRC

Re: [O] specifying the coding language resulting from a a :results code source block

2014-09-12 Thread Dror Atariah
Indeed, this seems to do the trick! Thanks! On Thu, Sep 11, 2014 at 8:19 PM, Ista Zahn istaz...@gmail.com wrote: Can't you just do #+begin_src foo :wrap src bar hello world #+end_src ? Best, Ista On Thu, Sep 11, 2014 at 5:11 AM, Dror Atariah dror...@gmail.com wrote: Is there

Re: [O] Problem with org-indent-block

2014-09-12 Thread Nicolas Goaziou
Hello, Fabrice Popineau fabrice.popin...@gmail.com writes: Recently, I started to get problems with org-indent-block returning errors Not at a block. Unfortunately, this is happening while restarting emacs, and I have no idea about how to debug it. AFAICT, nothing in the code base calls

Re: [O] [PATCH] org-table-beginning/end-of-field

2014-09-12 Thread Nicolas Goaziou
Hello, Florian Beck f...@miszellen.de writes: Thanks for your feedback. This I did. Well, (or (org-element-get 'table-cell) ;; Fuzzy matching when on a table border: (org-element-get 'table-cell (1+ (point))) (org-element-get 'table-cell (1- (point is not necessary,

Re: [O] Non-breaking space

2014-09-12 Thread Erwan
My 2 cents: \newcommand{\sectionref}[1]{Section~\ref{#1}} and then write \sectionref{bla} instead of Section~\ref{bla} and ditto for figure, etc.

[O] bug#18401: 24.4.50; emerge-files fails for org files

2014-09-12 Thread Detlev Zundel
Hi Glenn, Detlev Zundel wrote: problem and lingers for a while now. Who can merge the org repository? Is there something that an outsider like me can do to help? Thanks for asking! :) Anyone with a copy of the Org repo and the Emacs repo can generate the diff that needs to be applied

Re: [O] org-crypt doesn't automatically encrypt on save

2014-09-12 Thread Rémi Letot
Darlan Cavalcante Moreira darc...@gmail.com writes: You need to load org-crypt and call org-crypt-use-before-save-magic before you open the org file. I have this in my config: (add-to-list 'org-modules 'org-crypt) (require 'org-crypt) So I think that's what is done. I also checked

[O] How to put times into tables

2014-09-12 Thread Marcin Borkowski
Hi list, I'm preparing a scenario of an event, and I'd like to have a table like this: | Time | Duration | What happens | | | (minutes) | | |---+---+--| | 10:00 |10 | ... | | 10:10 | 2 | | | 10:12 | 5 |

Re: [O] Non-breaking space

2014-09-12 Thread Marcin Borkowski
Dnia 2014-09-12, o godz. 08:18:39 Erwan jah...@imag.fr napisał(a): My 2 cents: \newcommand{\sectionref}[1]{Section~\ref{#1}} and then write \sectionref{bla} instead of Section~\ref{bla} and ditto for figure, etc. My 2 cents: or just use the cleveref package instead of

Re: [O] org-ref no key found

2014-09-12 Thread Julian M. Burgos
Hi John, I am resending this... I think it did not went through the previous time. I think I can replicate the org-ref bug now (if it is a bug). This is the situation: a) If I open emacs, load a file that already has some link, and click on the link (or place the cursor on it and press enter)

Re: [O] Problem with org-indent-block

2014-09-12 Thread Fabrice Popineau
Thanks for your hint. The problem was not in in org.el:org-indent-block but in org.el:org-hide-block-toggle. This function should toggle special-block blocks too, else it barfs on them. In my setup, when an org file is restored by desktop.el, global visibility is set, which triggers calls to

Re: [O] org-crypt doesn't automatically encrypt on save

2014-09-12 Thread Jorge A. Alfaro-Murillo
Darlan Cavalcante Moreira writes: In my case I only have one file where I use org-crypt and I define the function below --8---cut here---start-8--- (defun my-find-senhas-org-heading nil (interactive) (require 'org-crypt) (find-file

Re: [O] org-crypt doesn't automatically encrypt on save

2014-09-12 Thread Darlan Cavalcante Moreira
One note first, if you change org-modules manually like that you must make sure this change is done before org-mode is loaded. I prefer to use the customize interface just for org-modules for that reason. I also add org-crypt to org-modules like you do. If I open my password.org file and open it

[O] Get :PROPERTY: value from drawer in other heading during HTML export?

2014-09-12 Thread D. C. Toedt
When generating an HTML file from an org-mode document, I'd like to do a GET operation to retrieve a property value from the drawer of an arbitrary heading, using the CUSTOM_ID property to identify the heading. From Google-searching, I suspect that org-heading-components will be involved, but I'm

[O] Boxquote for code in UTF-8 export

2014-09-12 Thread Sebastien Vauban
Hello, I'd advice to use UTF-8 characters more wildly available in the different fonts for drawing the Boxquote around code, in function: ╭ │ (defun org-ascii--box-string (s info) │ Return string S with a partial box to its left. │ INFO is a plist used as a communication channel.

[O] org-mode-hook not called when entering org files (Was: Re: org-crypt doesn't automatically encrypt on save)

2014-09-12 Thread Rémi Letot
look near the end of the post for org-mode-hook specific explanation :-) Darlan Cavalcante Moreira darc...@gmail.com writes: One note first, if you change org-modules manually like that you must make sure this change is done before org-mode is loaded. I prefer to use the customize interface

Re: [O] org-mode-hook not called when entering org files

2014-09-12 Thread Nick Dokos
hob...@poukram.net (Rémi Letot) writes: org-crypt-use-before-save-magic just populates org-mode-hook with a before-save-hook, which is correctly done in my case. The trick is that org-mode-hook doesn't seem to fire when I open an org file... confirmed: I had a look at the other variables

Re: [O] Problem with org-indent-block

2014-09-12 Thread Nicolas Goaziou
Fabrice Popineau fabrice.popin...@gmail.com writes: The problem was not in in org.el:org-indent-block but in org.el:org-hide-block-toggle. This function should toggle special-block blocks too, else it barfs on them. In my setup, when an org file is restored by desktop.el, global visibility

Re: [O] Get :PROPERTY: value from drawer in other heading during HTML export?

2014-09-12 Thread Nicolas Goaziou
Hello, D. C. Toedt d...@toedt.com writes: When generating an HTML file from an org-mode document, I'd like to do a GET operation to retrieve a property value from the drawer of an arbitrary heading, using the CUSTOM_ID property to identify the heading. From Google-searching, I suspect that

Re: [O] Boxquote for code in UTF-8 export

2014-09-12 Thread Nicolas Goaziou
Hello, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: I'd advice to use UTF-8 characters more wildly available in the different fonts for drawing the Boxquote around code, in function: ╭ │ (defun org-ascii--box-string (s info) │ Return string S with

[O] Using color in latex export

2014-09-12 Thread Chaitanya Krishna
Hello all, I would like to have some text in color when I export my org document to latex. I tried this: ... #+latex_header: \usepackage{color} \textcolor{red}{Text I want in red} ... But, this is producing ... \usepackage{color} \textcolor{red}\{Text I want in red\} in the exported latex

Re: [O] Using color in latex export

2014-09-12 Thread Nick Dokos
Chaitanya Krishna icym...@gmail.com writes: Hello all, I would like to have some text in color when I export my org document to latex. I tried this: ... #+latex_header: \usepackage{color} \textcolor{red}{Text I want in red} ... But, this is producing ... \usepackage{color}

Re: [O] Get :PROPERTY: value from drawer in other heading during HTML export?

2014-09-12 Thread D. C. Toedt
Beautiful -- thanks! Is there any documentation I can read to get a sense of how things work? I've done a little bit of browsing inside org.el and its comments, but that seems like it's not the most effective way to get up to speed. Regards, --D. C. *D*ell *C*harles D. C. Toedt III *(my**

Re: [O] Using color in latex export

2014-09-12 Thread Thomas S. Dye
Aloha Chai, Chaitanya Krishna icym...@gmail.com writes: Hello all, I would like to have some text in color when I export my org document to latex. I tried this: ... #+latex_header: \usepackage{color} \textcolor{red}{Text I want in red} One way is with a macro, e.g., #+MACRO: red

Re: [O] Boxquote for code in UTF-8 export

2014-09-12 Thread Samuel Wales
if boxquote is going to be changed, perhaps another option that would be nice for boxquote would be to optionally not print anything to the left of the contents? On 9/12/14, Sebastien Vauban sva-n...@mygooglest.com wrote: ╭ │ (defun org-ascii--box-string (s info) ^ here --