Re: [O] bug in org-habits

2015-11-03 Thread John Wiegley
> Nicolas Goaziou writes: > As a matter of fact, going to the end of an entry is not negligible, because > of inlinetasks. Also, it is not really O(1) since it depends on the size of > the entry. To get an idea, on my computer, moving past a 500 lines entry > takes around 0.001s. I can imagin

Re: [O] bug in org-habits

2015-11-03 Thread Nicolas Goaziou
John Wiegley writes: > Thanks for discussing this with me, Nicolas. I appreciate there may be > technical complexities involved. Could we special-case allow PROPERTIES to be > the *very last thing* in an entry? I don't need it to float anywhere else. I > just like it to be at the end. I think it

[O] why does exporting look for org-id in the entire file even when subtree export?

2015-11-03 Thread Samuel Wales
i do not claim to understand the code but org-export-get-environment is possibly calling org-id-find on entire buffer instead of subtree. perhaps this explains why exporting a couple of lines without any org-id link takes 15s to a minute or so. it is always checking all of my files for org id eve

Re: [O] export breaks on org-id in maint

2015-11-03 Thread Samuel Wales
> Fixed. Thank you. thanks. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com Ramsay's disease DOES progress. MANY people have died from it. And ANYBODY can get it. Denmark: free Karina Hansen NOW.

Re: [O] bug in org-habits

2015-11-03 Thread John Wiegley
> Achim Gratz writes: > I don't think so. Search for end of entry can be complex in itself and you > would never know if the properties you find by looking back aren't belonging > to an entry one level down unless you scanned the whole span again. Also, > properties can be any size and you ha

Re: [O] bug in org-habits

2015-11-03 Thread Achim Gratz
John Wiegley writes: >> Jonathan Leech-Pepin writes: >> Wouldn't last item in entry scale without issues? Find end of headline >> (start of next or end of buffer) and search backwards. If first element from >> end is a property drawer you have it, otherwise you still know there is >> none. > >

Re: [O] Adding new switch or header

2015-11-03 Thread Phillip Lord
Eric S Fraga writes: > On Tuesday, 3 Nov 2015 at 15:54, Phillip Lord wrote: >> I am trying to implement a new backend based on the HTML export. I need >> to do some post-processing to the source blocks that needs to be >> optional. For some blocks I need to replace "[" with "\[" and for some I >

Re: [O] bug in org-habits

2015-11-03 Thread John Wiegley
> Jonathan Leech-Pepin writes: > Wouldn't last item in entry scale without issues? Find end of headline > (start of next or end of buffer) and search backwards. If first element from > end is a property drawer you have it, otherwise you still know there is > none. That sounds even better tha

Re: [O] bug in org-habits

2015-11-03 Thread Jonathan Leech-Pepin
On November 3, 2015 4:31:11 PM EST, Achim Gratz wrote: >John Wiegley writes: >> Thanks for discussing this with me, Nicolas. I appreciate there may >be >> technical complexities involved. Could we special-case allow >PROPERTIES to be >> the *very last thing* in an entry? I don't need it to float

Re: [O] bug in org-habits

2015-11-03 Thread John Wiegley
> Achim Gratz writes: > Well, that's precisely the thing that doesn't scale and that Nicolas wanted > to avoid. Putting the properties at the beginning of an entry makes the > search pretty much constant time and if you find something else at the start > of the entry then you know there aren'

Re: [O] bug in org-habits

2015-11-03 Thread Achim Gratz
John Wiegley writes: > Thanks for discussing this with me, Nicolas. I appreciate there may be > technical complexities involved. Could we special-case allow PROPERTIES to be > the *very last thing* in an entry? I don't need it to float anywhere else. I > just like it to be at the end. Well, that's

Re: [O] bug in org-habits

2015-11-03 Thread John Wiegley
> Nicolas Goaziou writes: > I'd rather not have syntax too much customizable, for portability, ease of > maintenance, too. There are already too many mistakes in that area. Thanks for discussing this with me, Nicolas. I appreciate there may be technical complexities involved. Could we specia

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

2015-11-03 Thread Eli Zaretskii
> From: Emanuel Evans > Date: Tue, 03 Nov 2015 10:14:33 -0800 > > Eli Zaretskii writes: > > > Are you sure this isn't a problem with Org mode? If not, can you tell > > why you think so? > > Oh, I think it could definitely be a problem with Org mode, I just > thought this would be the right pl

Re: [O] bug in org-habits

2015-11-03 Thread Nicolas Goaziou
John Wiegley writes: > Since it scales for my use case, can I please have a customization variable to > relax this restriction? I'd rather not have syntax too much customizable, for portability, ease of maintenance, too. There are already too many mistakes in that area. Also, please note that p

Re: [O] insert aligned table using capture template

2015-11-03 Thread Shankar Rao
Oops. (set org-capture-templates '(... should be (set org-capture-templates `(... On Tue, Nov 3, 2015 at 12:28 PM, Nick Dokos wrote: > Shankar Rao writes: > > > I'm trying to use to org-capture insert tables into a datetree that I > use to manage my finances. Below is the capture template

Re: [O] insert aligned table using capture template

2015-11-03 Thread Nick Dokos
Shankar Rao writes: > I'm trying to use to org-capture insert tables into a datetree that I use to > manage my finances. Below is the capture template I set up for it. Is there a > way to make the table be aligned > after I finalize the capture? > > Shankar > > - > > (setq org-capture-templ

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

2015-11-03 Thread Jan Malakhovski
* 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 b/lisp/ob-calc.el index e8b43e7..2656f27 100644 --- a/lisp/ob-calc.el +++ b/lisp/ob-calc.el

[O] [PATCH 8/9] ob-calc: add more API, documentation and examples so that it can be used in tables

2015-11-03 Thread Jan Malakhovski
* lisp/ob-calc.el (org-babel-calc-eval): (org-babel-calc-set-env): (org-babel-calc-reset-env): (org-babel-calc-store-env): (org-babel-calc-eval-string): (org-babel-calc-eval-line): New funcion. (org-babel-execute:calc): Rewrite to use new functions. This also makes ob-calc useful for computing com

Re: [O] bug in org-habits

2015-11-03 Thread John Wiegley
> Nicolas Goaziou writes: > It is for efficiency reasons. Properties are an important feature in Org, > letting them anywhere in a potentially long entry doesn't scale well. Since it scales for my use case, can I please have a customization variable to relax this restriction? I prefer PROPER

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

2015-11-03 Thread Jan Malakhovski
* lisp/org.el (org-store-link-props): Rewrite function to get date-timestamp* calculations. * lisp/org-gnus.el: * lisp/org-mhe.el: * lisp/org-rmail.el: * contrib/lisp/org-mew.el: * contrib/lisp/org-vm.el: * contrib/lisp/org-wl.el: Remove date-timestamp* copy-paste. * doc/org.texi: Fix `org-captur

[O] [PATCH 4/9] org: move `org-duration-string-to-minutes' to a better place

2015-11-03 Thread Jan Malakhovski
--- lisp/org.el | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 6218a3a..a0fe644 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -18328,6 +18328,26 @@ If no number is found, the return value is 0." (s

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

2015-11-03 Thread Jan Malakhovski
Hello. While my assignment is snail-mail delivered to and processed by FSF I'd like to request comments on the following set of patches, which contains all the patches I sent to this list before and some new ones. I'm mainly worried by ChangeLog format and possibly unorthodox elisp in ob-calc. T

[O] [PATCH 1/9] org-clock: fix a typo

2015-11-03 Thread Jan Malakhovski
TINYCHANGE --- lisp/org-clock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 09f8391..ad423f1 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -2774,7 +2774,7 @@ following structure: (LEVEL HEADLINE TIMESTAMP TIME)

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

2015-11-03 Thread Jan Malakhovski
* 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 (org-clocksum-string-to-minutes). --- contrib/lisp/org-depend.el | 2 +- contrib/lisp/ox-taskjuggler.el

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

2015-11-03 Thread Jan Malakhovski
* 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 report has long intervals (e.g. days). --- lisp/org-clock.el | 29 +++-- 1 fi

[O] [PATCH 2/9] org-colview: add a FIXME

2015-11-03 Thread Jan Malakhovski
TINYCHANGE --- lisp/org-colview.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/org-colview.el b/lisp/org-colview.el index b698801..d27abc3 100644 --- a/lisp/org-colview.el +++ b/lisp/org-colview.el @@ -1113,6 +1113,9 @@ display, or in the #+COLUMNS line of the current buffer."

[O] [PATCH 7/9] org-notmuch: add date support to org-notmuch-store-link

2015-11-03 Thread Jan Malakhovski
* contrib/lisp/org-notmuch.el (org-notmuch-store-link): Add date support. * doc/org.texi: Fix `org-capture-templates' documentation. --- contrib/lisp/org-notmuch.el | 7 --- doc/org.texi| 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/contrib/lisp/org-notm

[O] (no subject)

2015-11-03 Thread Fritz Kunze
i am running emacs on a chromebook namely emacs 24.4.1 and org 8.3.1-87-g4ef2c0...) on chromebrew(https://skycocker.github.io/chromebrew/) . My question:How to make emacs org-mode open links to sites in Google Chrome?How to make emacs org-mode open links to sites in Google Chrome thanks in adva

Re: [O] bug in org-habits

2015-11-03 Thread Nicolas Goaziou
Hello, John Wiegley writes: >> Nicolas Goaziou writes: > >> This is not a bug. The order is HEADLINE (SCHEDULED PROPERTIES). > > Ah, I had misspoken. It's not SCHEDULE-before-PROPERTIES that has broken for > me, it is the inability to have PROPERTIES at the very end of the entry. > > Why mu

Re: [O] bug in org-habits

2015-11-03 Thread John Wiegley
> Nicolas Goaziou writes: > This is not a bug. The order is HEADLINE (SCHEDULED PROPERTIES). Ah, I had misspoken. It's not SCHEDULE-before-PROPERTIES that has broken for me, it is the inability to have PROPERTIES at the very end of the entry. Why must the properties drawer appear before the

Re: [O] Favorite contrib/ packages?

2015-11-03 Thread Rasmus
Hi, Kaushal Modi writes: > What are your favorite org contrib/ packages that you simply can't > live without ox-koma-letter.el seems to be the only contrib package I load in my init. I have used org-drill.el in the past. Rasmus -- This is the kind of tedious nonsense up with which I will no

Re: [O] Favorite contrib/ packages?

2015-11-03 Thread Jorge A. Alfaro-Murillo
Kaushal Modi writes: 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-contacts and org-passwords, definitely. Sometimes I use org-checklist. -- Jorge.

[O] insert aligned table using capture template

2015-11-03 Thread Shankar Rao
I'm trying to use to org-capture insert tables into a datetree that I use to manage my finances. Below is the capture template I set up for it. Is there a way to make the table be aligned after I finalize the capture? Shankar - (setq org-capture-templates '(... ("f" "Add Tables" plain

[O] Favorite contrib/ packages?

2015-11-03 Thread Kaushal Modi
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? For now, I compile just 3 contrib/ packages by putting the below in my local.mk: ORG_ADD_CONTRIB = org-eldoc org-mime org-eww -- Kaushal Modi

Re: [O] org-capture templates broken?

2015-11-03 Thread Kaushal Modi
The issue got fixed when I changed the below in my local.mk file and rebuilt org: From ORG_ADD_CONTRIB = org-mime org-eww To ORG_ADD_CONTRIB = org-eldoc org-mime org-eww I figured out why I was seeing the problem: I have org-plus-contrib installed too. So when `package-initialize` was called,

Re: [O] org-capture templates broken?

2015-11-03 Thread Kaushal Modi
I have bound org-capture to "C-c c" and "C-c c j" is working fine when using the latest version of org-plus-contrib from org elpa.

[O] org-capture templates broken?

2015-11-03 Thread Kaushal Modi
Hi all, I am on the following build of emacs: Emacs version: GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2015-11-02, built using commit 5401bb8645f955b6fde8c0a5e5c8cf5ec1cab626. ./configure options: --prefix=/home/kmodi/usr_local/apps/6/emacs/master 'CPPFLAGS=-fgnu

Re: [O] Wrong results from R source block when returning a list

2015-11-03 Thread Charles C. Berry
On Tue, 3 Nov 2015, Rainer M Krug wrote: Hi The following code block returns a wrong table / list: #+begin_src R :results value list list(1:10, 1:5) #+end_src #+RESULTS: - (1 1) - (2 2) - (3 3) - (4 4) - (5 5) - (6 1) - (7 2) - (8 3) - (9 4) - (10 5) The result is actually in R: In parti

Re: [O] Adding new switch or header

2015-11-03 Thread Eric S Fraga
On Tuesday, 3 Nov 2015 at 15:54, Phillip Lord wrote: > I am trying to implement a new backend based on the HTML export. I need > to do some post-processing to the source blocks that needs to be > optional. For some blocks I need to replace "[" with "\[" and for some I > don't. > > I am not sure wh

Re: [O] bug in org-habits

2015-11-03 Thread Nicolas Goaziou
Hello, Stelian Iancu writes: > I have an org file with calendar appointments. I also have attachments > to the appointments. The attachment appears in a PROPERTIES drawer. > > Now if I have the timestamp (plain one) before the drawer, I cannot > open the attachment. Pressing C-c C-a o just inser

[O] Adding new switch or header

2015-11-03 Thread Phillip Lord
I am trying to implement a new backend based on the HTML export. I need to do some post-processing to the source blocks that needs to be optional. For some blocks I need to replace "[" with "\[" and for some I don't. I am not sure whether to use headers or switches. So #+begin_src java -s st

Re: [O] bug in org-habits

2015-11-03 Thread Stelian Iancu
On 03/11/15 14:46, Marco Wahl wrote: John Wiegley writes: Puneeth Chaganti writes: Actually there has been introduced a constraint on the ordering planning lines and property drawers in 8.3. See http://orgmode.org/Changes.html.> This at least invalidates to use PROPERTIES before SCHEDULED

[O] Using link abbrevations for EXPORT_FILE_NAME ?

2015-11-03 Thread AW
Hi, on orgmode 8.3.2 I've got a large org-file. Offen, I need to export a subtree like this: - * Subtree to be exported :PROPERTIES: :EXPORT_FILE_NAME: /PATH/TO/FOLDER/filename :EXPORT_TITLE: :END: foo - I'd like to save the exported file in a project folder, a

Re: [O] bug in org-habits

2015-11-03 Thread Marco Wahl
John Wiegley writes: >> Puneeth Chaganti writes: > >>> Actually there has been introduced a constraint on the ordering planning >>> lines and property drawers in 8.3. See http://orgmode.org/Changes.html.> >>> This at least invalidates to use PROPERTIES before SCHEDULED afaics. > >> Yes, that

[O] Combine tables which are results from calculations?

2015-11-03 Thread Rainer M Krug
Hi Considering the following example: --8<---cut here---start->8--- #+NAME t1 #+begin_src R :colnames yes data.frame(a = 1:3) #+end_src #+RESULTS: | a | |---| | 1 | | 2 | | 3 | #+NAME t2 #+begin_src R :colnames yes data.frame(b = 1:10) #+end_src #+RESULTS: |

Re: [O] bug in org-habits

2015-11-03 Thread John Wiegley
> Puneeth Chaganti writes: >> Actually there has been introduced a constraint on the ordering planning >> lines and property drawers in 8.3. See http://orgmode.org/Changes.html.> >> This at least invalidates to use PROPERTIES before SCHEDULED afaics. > Yes, that is correct and you can use th

[O] Wrong results from R source block when returning a list

2015-11-03 Thread Rainer M Krug
Hi The following code block returns a wrong table / list: #+begin_src R :results value list list(1:10, 1:5) #+end_src #+RESULTS: - (1 1) - (2 2) - (3 3) - (4 4) - (5 5) - (6 1) - (7 2) - (8 3) - (9 4) - (10 5) The result is actually in R: #+begin_src R :results output list(1:10, 1:5) #+end_sr

Re: [O] bug in org-habits

2015-11-03 Thread Puneeth Chaganti
On Tue, Nov 3, 2015 at 3:26 PM, Marco Wahl wrote: > > > Actually there has been introduced a constraint on the ordering planning > lines and property drawers in 8.3. See http://orgmode.org/Changes.html. > > This at least invalidates to use PROPERTIES before SCHEDULED afaics. Yes, that is correc

Re: [O] Publishing a Book as PDF and ePub.

2015-11-03 Thread Eric S Fraga
On Monday, 2 Nov 2015 at 15:37, Ian Barton wrote: > Next year our mountaineering club has its 50th anniversary. On the > 21st anniversary we published a book of articles written by members of > the club. [...] > However, as a Latex > neophyte I was wondering which of the several Latex packages w

Re: [O] bug in org-habits

2015-11-03 Thread Marco Wahl
"Mark A. Hershberger" writes: > org-habit.el is sensitive to the ordering PROPERTIES and SCHEDULED > and expects them /in only/ the following order: > > * TODO habit name > SCHEDULED: <2015-11-03 Tue 07:00 .+1d> > :PROPERTIES: > :LAST_REPEAT: [2015-11-02 Mon 07:54] > :STYLE: habit > :END: >