Re: [O] bug in org-habits

2015-11-04 Thread John Wiegley
> Bastien Guerry writes: > I think Achim's points above are very valid, and the flexibility offered by > the option above should be very carefully examined. I spoke to Nicolas directly and he mentioned that a goal for syntax regularity is to make it possible to reliably read

[O] org-capture-template: file+datetree+prompt not using prompted date in template

2015-11-04 Thread Shankar Rao
For the following org capture template: (setq org-capture-templates '(("d" "Date Tree Test" plain (file+datetree+prompt "~/org/testdt.org") "This date should be the date i picked: %<%y%m%d>"))) Though this is filed under the correct date in the datetree, no matter what date I select in the

Re: [O] org-capture-template: file+datetree+prompt not using prompted date in template

2015-11-04 Thread Shankar Rao
Earlier in org-capture-fill-template, there is the following: (let* (... (ct (org-capture-get :default-time)) ... The property :default-time defaults to the current time and is overwritten by file+datetree+prompt, If ct was passed as a 2nd argument to format-time-string in your

Re: [O] org-capture-template: file+datetree+prompt not using prompted date in template

2015-11-04 Thread Nick Dokos
Shankar Rao writes: > For the following org capture template: > > (setq org-capture-templates >       '(("d" "Date Tree Test" plain > (file+datetree+prompt "~/org/testdt.org") > "This date should be the date i picked: %<%y%m%d>"))) > > Though this is filed under the

Re: [O] contributing to work on citations

2015-11-04 Thread Matt Price
On Wed, Nov 4, 2015 at 10:18 AM, Aaron Ecay wrote: > Hi Matt, > > Thanks for your willingness to help with the project. > > 2015ko urriak 30an, Matt Price-ek idatzi zuen: > > > > So, from the "some projects" thread I have the sense there is a group of > > users with some

Re: [O] Adding new switch or header

2015-11-04 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > On Tuesday, 3 Nov 2015 at 21:57, Phillip Lord wrote: > > [...] > >> Are these form of attributes specific to the source block which they >> precede? Or is it possible to do any kind of inheritance with them? For >> my use case, all the code

Re: [O] problems with export and :cache

2015-11-04 Thread Nicolas Goaziou
Hello, Aaron Ecay writes: > See the attached patch. I’ve tried to put all my experience and best > practices in there; comments are welcome of course. Thank you. It looks good. Some comments follow. > +unchanged code blocks. When the cache is active, a source block is

[O] bug#21818: 24.5; org-set-tags-to indentation problems when called programmatically

2015-11-04 Thread Emanuel Evans
Apologies if this is a dupe; I think some of my posts aren't getting through to the list (I just subscribed, so hopefully that will help). Glenn Morris writes: > Nope, just a mailing list AFAIK. Assigning something to the debbugs > org-mode package (which I already did for this

Re: [O] ox-html HOWTO? exporting #+RESULTS inside div

2015-11-04 Thread Cook, Malcolm
Charles, Thanks again for you suggestion. Alas, using 'header-args :wrap org-results-container' has the unforeseen (by me) side effect of masking my use of `#+ATTR_HTML :class dataTable` on selected exported tables (which I use to allow for search/sortable/scrollable tables). Now, the

Re: [O] Favorite contrib/ packages?

2015-11-04 Thread Samuel Wales
mouse capture link minor mode dunno which are contrib

[O] Capture and use export header numbering?

2015-11-04 Thread Lawrence Bottorff
When an outline tree of headers * top 1 ** something ** something ** something *** something something * something ** something is exported, say, to html, org-mode produces a numerical outline as deep as the options are set 1. top 1.1. something 1.2. something 1.3. something 1.3.1.

[O] bug#21818: 24.5; org-set-tags-to indentation problems when called programmatically

2015-11-04 Thread Emanuel Evans
Apologies if this is a dupe; I think some of my posts aren't getting through to the list (I just subscribed, so hopefully that will help). Glenn Morris writes: > Nope, just a mailing list AFAIK. Assigning something to the debbugs > org-mode package (which I already did for this

Re: [O] org-capture-template: file+datetree+prompt not using prompted date in template

2015-11-04 Thread Shankar Rao
Looks like a similar issue was addressed earlier here: http://sachachua.com/blog/2015/02/org-mode-reusing-date-file-datetree-prompt/ Shankar On Wed, Nov 4, 2015 at 2:54 PM, Shankar Rao wrote: > Earlier in org-capture-fill-template, there is the following: > > (let* (...

Re: [O] ox-html HOWTO? exporting #+RESULTS inside div

2015-11-04 Thread Charles C. Berry
On Wed, 4 Nov 2015, Cook, Malcolm wrote: Charles, Thanks again for you suggestion. Alas, using 'header-args :wrap org-results-container' has the unforeseen (by me) side effect of masking my use of `#+ATTR_HTML :class dataTable` on selected exported tables (which I use to allow for

Re: [O] contributing to work on citations

2015-11-04 Thread William Denton
On 4 November 2015, Will Monroe wrote: As someone who uses Zotero and org-mode quite a bit, I'd be glad to help with testing, if that would be useful. I'm learning Elisp but I'm still a beginner. Nevertheless, I have a keen interest in bringing together these tools. Same here---I'm glad to

Re: [O] contributing to work on citations

2015-11-04 Thread John Wiegley
> Will Monroe writes: > As someone who uses Zotero and org-mode quite a bit, I'd be glad to help > with testing, if that would be useful. I'm learning Elisp but I'm still a > beginner. Nevertheless, I have a keen interest in bringing together these > tools. Me too,

Re: [O] contributing to work on citations

2015-11-04 Thread Will Monroe
Aaron, Matt: > Based on the interests you’ve expressed, I think working on the JS > citation processor and/or zotero integration would be good contributions > you can make. But you can work on other things as well. I think the > best way to coordinate will be to keep the list apprised of your >

Re: [O] [PATCH 3/9] org-clock: fix `org-clock-time%'

2015-11-04 Thread Jan Malakhovski
Aaron Ecay writes: > This could be converted to dolist while you’re here (I realize you > didn’t touch this line). Ok. >> - (if (string-match "\\([0-9]+\\):\\([0-9]+\\)" s) >> - (throw 'exit >> - (/ (* 100.0 (+ (string-to-number (match-string

Re: [O] [PATCH 5/9] rename `org-duration-string-to-minutes' to `org-clocksum-string-to-minutes' everywhere

2015-11-04 Thread Jan Malakhovski
Aaron Ecay writes: > You can use ‘define-obsolete-function-alias’. Ok.

Re: [O] problems with export and :cache

2015-11-04 Thread Aaron Ecay
Hi Nicolas, 2015ko azaroak 1an, Nicolas Goaziou-ek idatzi zuen: > > Hello, > > Aaron Ecay writes: > >> If this means “can it ever work?” then I think the answer is “yes it >> can”. But I think the current implementation is broken and likely to >> remain so for the

Re: [O] Org Babel resolution of `:var` value reference inconsistent

2015-11-04 Thread Andreas Leha
Hi Nick, Nick Dokos writes: > Andreas Leha writes: > >> ... >> So, to me it is more surprising that the manual execution works. For >> instance, I might have two tables with the same name. Then, COMMENTing >> one of them should ensure that

[O] export to beamer

2015-11-04 Thread 童俊翔
I want to export org to beamer. It worked well previously when I press C-c C-e l O. But in recent days, when I press C-c C-e l, the options for beamer are missing. I can only export to pdf, not beamer. What’s the problem, and what can I do? Thanks a lot!

Re: [O] [PATCH 9/9] ob-calc: don't leave garbage on the stack

2015-11-04 Thread Aaron Ecay
2015ko azaroak 4an, Jan Malakhovski-ek idatzi zuen: > > Aaron Ecay writes: > >> Are you missing a close paren at the end of the above line? > > It evaluates and works ok, so I think it's ok. Ok. Then: 1. The indentation is wrong, because (calc-pop 1) is the second

[O] export to beamer

2015-11-04 Thread 童俊翔
I want to export org to beamer. It worked well previously when I press C-c C-e l O. But in recent days, when I press C-c C-e l, the options for beamer are missing. I can only export to pdf, not beamer. What’s the problem, and what can I do? Thanks a lot!

Re: [O] export to beamer

2015-11-04 Thread Benda Xu
童俊翔 writes: > I want to export org to beamer. It worked well previously when I press > C-c C-e l O. But in recent days, when I press C-c C-e l, the options > for beamer are missing. I can only export to pdf, not beamer. > > What’s the problem, and what can I do? I found

Re: [O] export to beamer

2015-11-04 Thread Eric S Fraga
On Wednesday, 4 Nov 2015 at 22:29, 童俊翔 wrote: > I want to export org to beamer. It worked well previously when I press > C-c C-e l O. But in recent days, when I press C-c C-e l, the options > for beamer are missing. I can only export to pdf, not beamer. > > What’s the problem, and what can I do?

Re: [O] [babel] :eval and #+call lines

2015-11-04 Thread Aaron Ecay
Hi Andreas, 2015ko urriak 29an, Andreas Leha-ek idatzi zuen: > > Hi all, > > Since this is not related to caching, I post this as a separate question > from [1]. Thanks for the report. > > I want to argue that specifying ':eval never' as argument to a #+call > line should transitively apply

Re: [O] [PATCH 6/9] factor out date-timestamp* calculations to org-store-link-props

2015-11-04 Thread Jan Malakhovski
Aaron Ecay writes: > Checking the source, date-to-time can raise an error (invalid date). > format-time-string is a C function, so it’s less easy for me to > understand. But it looks like if it raises any errors, these are bugs > that we want to know about and not suppress.

[O] [RFC] [PATCH] Automatically quote the arguments to an eval macro

2015-11-04 Thread Aaron Ecay
Hello all, Currently, eval macros need to quote their arguments: #+macro: identity (eval "$1") This means: 1. Users need to remember to put quotes around $n all the time 2. It’s impossible to pass arguments with a " character to a macro The attached patch changes the behavior of eval macro

Re: [O] [PATCH 6/9] factor out date-timestamp* calculations to org-store-link-props

2015-11-04 Thread Aaron Ecay
Hi Jan, 2015ko azaroak 4an, Jan Malakhovski-ek idatzi zuen: [...] >> Also, what is ignore-errors protecting? The call to date-to-time, or >> format-time-string? I think the scope of ignore-errors should be as >> narrow as it can be. > > I have no idea. I moved these lines from org-gnus,

Re: [O] [PATCH 9/9] ob-calc: don't leave garbage on the stack

2015-11-04 Thread Aaron Ecay
Hi Jan, 2015ko azaroak 3an, Jan Malakhovski-ek idatzi zuen: > > * lisp/ob-calc.el (org-babel-calc-eval-string): Clean up the stack after > expression > evaluation. > --- > lisp/ob-calc.el | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/lisp/ob-calc.el

Re: [O] [PATCH v2 0/9] mail, clock and calc changes

2015-11-04 Thread Aaron Ecay
Hi Jan, Thanks for the patches! They look good to me. I sent a few minor comments about code style. I didn’t review the 8th patch (ob-calc: add more API, documentation and examples so that it can be used in tables) because I didn’t feel familiar enough with the calc API to be useful. Do you

Re: [O] [PATCH 9/9] ob-calc: don't leave garbage on the stack

2015-11-04 Thread Jan Malakhovski
Aaron Ecay writes: > Are you missing a close paren at the end of the above line? It evaluates and works ok, so I think it's ok. > Also, shouldn’t calc-eval take a string as an argument, not a lisp > form? (I’m asking based on the docstring, I don’t know the calc API at >

Re: [O] how to set the max width of the table in the exported pdf?

2015-11-04 Thread Grant Rettke
On Mon, Oct 12, 2015 at 11:19 PM, glen wrote: > Hi, all. > > The table in org file is too wide, so the default table in the exported pdf > only show the left parts. > Is there anyway to set set max-width to the 90% of the page's width? [The > contents in the table is wrapped

Re: [O] [PATCH 6/9] factor out date-timestamp* calculations to org-store-link-props

2015-11-04 Thread Jan Malakhovski
Aaron Ecay writes: > Can you introduce a let binding so that (date-to-time x) is only called > once? Ok. > Also, what is ignore-errors protecting? The call to date-to-time, or > format-time-string? I think the scope of ignore-errors should be as > narrow as it can be. I

Re: [O] [PATCH v2 0/9] mail, clock and calc changes

2015-11-04 Thread Jan Malakhovski
Hi. Aaron Ecay writes: > Thanks for the patches! They look good to me. I sent a few minor > comments about code style. I didn’t review the 8th patch (ob-calc: add > more API, documentation and examples so that it can be used in tables) > because I didn’t feel familiar

Re: [O] Resolving links breaks workflow using org-narrow-to-subtree

2015-11-04 Thread Aaron Ecay
Hi Andreas, This issue has been discussed recently. Nicolas proposed a “draft mode” that would solve your problem. His most recent proposal is at . It hasn’t been pushed to the org repository yet though. -- Aaron Ecay

Re: [O] [PATCH 6/9] factor out date-timestamp* calculations to org-store-link-props

2015-11-04 Thread Aaron Ecay
Hi Jan, 2015ko azaroak 3an, Jan Malakhovski-ek idatzi zuen: [...] > diff --git a/lisp/org.el b/lisp/org.el > index c466870..cf0ef1f 100755 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -9960,7 +9960,7 @@ active region." >(car org-stored-links)) > > (defun org-store-link-props (

Re: [O] [PATCH 9/9] ob-calc: don't leave garbage on the stack

2015-11-04 Thread Jan Malakhovski
Aaron Ecay writes: > Ok. Then: > 1. The indentation is wrong, because (calc-pop 1) is the second argument >to calc-eval. > 2. The prog1 form is not needed, because it only wraps a single form >(the calc-eval call). > > This looks wrong to me, so please double-check.

Re: [O] Adding new switch or header

2015-11-04 Thread Phillip Lord
Eric S Fraga writes: > On Tuesday, 3 Nov 2015 at 21:57, Phillip Lord wrote: > > [...] > >> Are these form of attributes specific to the source block which they >> precede? Or is it possible to do any kind of inheritance with them? For >> my use case, all the code blocks

[O] bug#21818: 24.5; org-set-tags-to indentation problems when called programmatically

2015-11-04 Thread Glenn Morris
Eli Zaretskii wrote: > Org mode has its own bug tracker, AFAIR. Nope, just a mailing list AFAIK. Assigning something to the debbugs org-mode package (which I already did for this report) sends stuff there.

Re: [O] Combine tables which are results from calculations?

2015-11-04 Thread Rick Frankel
On Wed, Nov 04, 2015 at 10:03:48AM +0100, Rainer M Krug wrote: > Rick Frankel writes: > > > On Tue, Nov 03, 2015 at 02:18:05PM +0100, Rainer M Krug wrote: > >> Hi > >> > >> Considering the following example: > > > > here's a way to do it in ruby. There is probably a way in

Re: [O] Favorite contrib/ packages?

2015-11-04 Thread Michael Strey
On Di, 2015-11-03 at 19:58, Kaushal Modi wrote: > What are your favorite org contrib/ packages that you simply can't > live without, and consider them to be a part of your org-mode core? org-checklist org-collector org-contacts org-dial org-download org-drill org-learn org-mime org-notmuch

Re: [O] bug in org-habits

2015-11-04 Thread Stelian Iancu
On 04/11/15 02:01, John Wiegley wrote: Nicolas Goaziou writes: Also, supporting both locations means that users will pay the full price in entries without a property drawer, even if they chose the fast path, i.e., drawer at the beginning of the entry, in the first

Re: [O] Adding new switch or header

2015-11-04 Thread Eric S Fraga
On Tuesday, 3 Nov 2015 at 21:57, Phillip Lord wrote: [...] > Are these form of attributes specific to the source block which they > precede? Or is it possible to do any kind of inheritance with them? For > my use case, all the code blocks inside a Header One block will behave > in the same way

Re: [O] bug in org-habits

2015-11-04 Thread Eric S Fraga
On Tuesday, 3 Nov 2015 at 20:01, John Wiegley wrote: [...] > I'm having a hard time buying the performance argument, since I've been using > Org-mode for many years, and never has this been a problem. You're making me > pay a cost (enforced structure), for a value only one of us perceives.

Re: [O] Favorite contrib/ packages?

2015-11-04 Thread Eric S Fraga
On Tuesday, 3 Nov 2015 at 13:58, Kaushal Modi wrote: > HI all, > > What are your favorite org contrib/ packages that you simply can't > live without, and consider them to be a part of your org-mode core? There is only one that I use with any regularity: org-mime. Well, and maybe org-bullets

Re: [O] [PATCH] Prevent overwriting of output files from babel calls with nil result

2015-11-04 Thread Aaron Ecay
Hi Éibhear, 2015ko urriak 30an, Éibhear-ek idatzi zuen: [...] > > The following works (":results raw" being the significant change): I’m glad you figured it out! Thanks for updating us with your solution. -- Aaron Ecay

Re: [O] Emacs+org-mode in a Docker?

2015-11-04 Thread John Kitchin
Thanks for all the notes! It looks like a not too trivial exercise that might have to be a summer project for me. briangpowell . writes: > * Here are some of my notes+URL links on some docker+emacs experiments thus > far: > > ** Last I checked some glimmering developments seem to be coming to

Re: [O] [PATCH 3/9] org-clock: fix `org-clock-time%'

2015-11-04 Thread Aaron Ecay
Hi Jan, A couple stylistic comments. 2015ko azaroak 3an, Jan Malakhovski-ek idatzi zuen: > > * lisp/org-clock.el (org-clock-time%): Respect org-effort-durations. > > This also fixes a bug with time percents looking pretty much random and adding > to a number that is less than 100% when a clock

Re: [O] [PATCH 5/9] rename `org-duration-string-to-minutes' to `org-clocksum-string-to-minutes' everywhere

2015-11-04 Thread Aaron Ecay
Hi Jan, 2015ko azaroak 3an, Jan Malakhovski-ek idatzi zuen: > > * lisp/org-agenda.el: > * lisp/org-clock.el: > * lisp/org-colview.el: > * lisp/org.el: > * contrib/lisp/org-depend.el: > * contrib/lisp/ox-taskjuggler.el: Rename (org-duration-string-to-minutes) > to