Re: [O] Exzessive newlines in org-element item interpreter?

2014-10-20 Thread Nicolas Goaziou
Hello,

Thorsten Jolitz tjol...@gmail.com writes:

 ,[ C-h f yes-or-no-p RET ]
 | yes-or-no-p is an alias for `y-or-n-p'.
 | 
 | (yes-or-no-p PROMPT)
 | 
 | Ask user a y or n question.
 `

= nil

The interpreter produces _normalized_ syntax. It ignores indentation,
capitalization on keywords and, obviously, specific bullets (which might
not be allowed in the target environment). This is a feature.


Regards,

-- 
Nicolas Goaziou



Re: [O] Exzessive newlines in org-element item interpreter?

2014-10-20 Thread Thorsten Jolitz
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Hello,

 Thorsten Jolitz tjol...@gmail.com writes:

 ,[ C-h f yes-or-no-p RET ]
 | yes-or-no-p is an alias for `y-or-n-p'.
 | 
 | (yes-or-no-p PROMPT)
 | 
 | Ask user a y or n question.
 `

 = nil

 The interpreter produces _normalized_ syntax. It ignores indentation,
 capitalization on keywords and, obviously, specific bullets (which might
 not be allowed in the target environment). This is a feature.

Thanks for the answer.

I did not mean to point fingers, I just wanted to know if it _can_ be
done and I have to investigate further to find out how, or if I can save
me the time and effort.

PS

Your interpretation of 'obvious' seems (obviously?) be a bit overly
optimistic sometimes.

-- 
cheers,
Thorsten




[O] Example or tutorial for org-invoice.el?

2014-10-20 Thread Thorsten Jolitz

Hi List, 

I cannot find a good example file for org-invoice, does it exist
somewhere? 

And does anybody have a workflow (and maybe src-code) that uses
org-invoice report data and a (customized) latex-class to
semi-automatically create good looking invoices from Org files? I would
be interested.

-- 
cheers,
Thorsten





Re: [O] [PATCH] Fix typo in org.texi

2014-10-20 Thread Bastien
Hi Rafael,

Rafael Laboissiere raf...@laboissiere.net writes:

 The patch below fixes (what i think) is a minor typo in the info
 documentation.

Applied, thanks,

-- 
 Bastien



Re: [O] Link to named block

2014-10-20 Thread Bastien
Hi Greg,

Daimrod daim...@gmail.com writes:

 I've made a small function to link to a named block in org files.

 #+BEGIN_SRC emacs-lisp
 (defun dmd--org-link-to-named-block ()
   Create an org-link to the named block at point.

 Blocks are named with #+NAME.
   (when (eq major-mode 'org-mode)
 (let* ((el (org-element-at-point))
(name (org-element-property :name el)))
   (when name
 (org-store-link-props
  :link name)
 #+END_SRC

 Do you think it should be added to org? I find it useful to add a link
 to a figure when I'm exporting to latex.

I'm not sure how to use the function above -- how do you set the link
itself, not just its properties?

 I tried to add it to `org-store-link` but it's a big function and I
 wonder why it's not splitted in smaller functions. (e.g.
 org-help-store-link, org-w3-store-link, org-image-store-link, ...).
 If you agree, I could split it.

Yes, please go ahead.

Thanks,

-- 
 Bastien



Re: [O] Exponents / subscripts

2014-10-20 Thread Nicolas Goaziou
Hello,

Fabrice Popineau fabrice.popin...@supelec.fr writes:

 Given that it is only a matter of presentation, does that mean it could be
 changed ?
 If yes, I can try to give it a shot.

If you mean that a^bc should be equivalent to a^{b}c, then I think it is
superior in its current state.


Regards,

-- 
Nicolas Goaziou



[O] After org-agenda-tag-filter-preset, (search .) seems to break.

2014-10-20 Thread Brady Trainor

For a global search, the result of custom command `g' seems to work,
while the custom command `f' fails. I am guessing this has to do with
`search' block is not tied in strongly to the greater set of custom
command tools, but wanted to bring it to your attention in case it was
found to be unwanted behavior.

#+BEGIN_SRC emacs-lisp
(setq org-agenda-custom-commands
  '((g Global search
 ((search .)))
(f Global search after tag filter
 ((search .))
 ((org-agenda-tag-filter-preset '(+work))
#+END_SRC

In other words, the regexp wildcard `.' works with `(search .)'
alone, but seems to fail after a tag-filter, i.e. only headlines with
periods in them work.

--
Brady




Re: [O] Append a second agenda view then refresh; this kills first agenda view.

2014-10-20 Thread Bastien
Hi Brady,

Brady Trainor algeb...@uw.edu writes:

 If I append (A) a second agenda-view to a first, then refresh for
 clocking (g), the first agenda-view vanishes and I am left with the
 second.

I confirm the bug -- but a difficult one to fix for now.
I've added it to my TODO list.

Thanks,

-- 
 Bastien



Re: [O] Exzessive newlines in org-element item interpreter?

2014-10-20 Thread Nick Dokos
Thorsten Jolitz tjol...@gmail.com writes:


 Your interpretation of 'obvious' seems (obviously?) be a bit overly
 optimistic sometimes.

Probably apocryphal but ...

http://mystatpage.wordpress.com/tag/g-h-hardy/

-- 
Nick




Re: [O] Small bug? Strange behaviour of

2014-10-20 Thread Bastien
Hi Igor,

Igor Sosa Mayor joseleopoldo1...@gmail.com writes:

 I have the following template for capture 

   (tp TODO privado entry (file+headline ~/Documents/org/privat.org 
 General)
* TODO %?\n SCHEDULED: %t )

 It works perfectly, except from a small strange behaviour. If I try to
 change the included date for schedule using C-c C-s, the cursor in the
 appearing calendar is always situated on the day BEFORE today, instead
 of on the present date.

I can't reproduce this.  Where is the cursor when you hit C-c C-s ?
Can you share a reproducible recipe?

Thanks,

-- 
 Bastien



Re: [O] After org-agenda-tag-filter-preset, (search .) seems to break.

2014-10-20 Thread Bastien
Hi Brady,

Brady Trainor algeb...@uw.edu writes:

 For a global search, the result of custom command `g' seems to work,
 while the custom command `f' fails. I am guessing this has to do with
 `search' block is not tied in strongly to the greater set of custom
 command tools, but wanted to bring it to your attention in case it was
 found to be unwanted behavior.

 #+BEGIN_SRC emacs-lisp
 (setq org-agenda-custom-commands
   '((g Global search
  ((search .)))
 (f Global search after tag filter
  ((search .))
  ((org-agenda-tag-filter-preset '(+work))
 #+END_SRC

 In other words, the regexp wildcard `.' works with `(search .)'
 alone, but seems to fail after a tag-filter, i.e. only headlines with
 periods in them work.

I cannot reproduce this: with your custom agenda views, when I hit
`C-c a f' in my agendas (with a different tag matching something here)
I do get a list of all items with the tag, including items that don't
have a dot in them.

Can you share a reproducible recipe with a minimal example?

Thanks,

-- 
 Bastien



Re: [O] after-todo-statistics hook for checkboxes

2014-10-20 Thread Bastien
Hi James and Nicolas,

Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 I have no objection to this.

FWIW, same here.

 Thanks for working on it.

+1!

-- 
 Bastien



Re: [O] How to change a link?

2014-10-20 Thread Nicolas Goaziou
Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 OK, it works, but: if the link description is empty, after this change
 it's still empty, so that it becomes the result of concatenation.  I'd
 like the link description to stay the same, no matter whether it's empty
 or not.  How do I set the /contents/ of a link object (as opposed to a
 property)?

Two examples:

1. with a full AST

(org-with-wide-buffer
 (dolist (link (nreverse
(org-element-map (org-element-parse-buffer) 'link
  (lambda (l)
(member (org-element-property :type l)
'(custom-id fuzzy))
   (goto-char (+ (org-element-property :begin link) 2))
   (insert file:path/to/other-file.org::)))

2. working directly on the buffer

(org-with-wide-buffer
 (goto-char (point-min))
 (while (re-search-forward org-bracket-link-regexp nil t)
   (let ((context (org-element-context)))
 (when (and (eq (org-element-type context) 'link)
(member (org-element-property :type context)
'(custom-id fuzzy)))
   (goto-char (+ (org-element-property :begin context) 2))
   (insert file:path/to/other-file.org::)


Regards,

-- 
Nicolas Goaziou



Re: [O] How to change a link?

2014-10-20 Thread Nicolas Goaziou
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 (org-with-wide-buffer
  (dolist (link (nreverse
 (org-element-map (org-element-parse-buffer) 'link
   (lambda (l)
 (member (org-element-property :type l)
 '(custom-id fuzzy))
(goto-char (+ (org-element-property :begin link) 2))
(insert file:path/to/other-file.org::)))

Err, should be

  (org-with-wide-buffer
   (dolist (link (nreverse
  (org-element-map (org-element-parse-buffer) 'link
(lambda (l)
  (and (member (org-element-property :type l)
   '(custom-id fuzzy))
   l)
 (goto-char (org-element-property :begin link))
 (forward-char 2)
 (insert file:path/to/other-file.org::)))



Re: [O] in-agenda item formatting

2014-10-20 Thread Bastien
Hi Torys,

torys.ander...@gmail.com (Tory S. Anderson) writes:

 I notice that the agenda doesn't support markup the way standard org
 files do; I can't use +strikeout+ to mark appointments I've missed, or
 *bold* to emphasize things. Is there an option to turn this on, or a
 simple patch to enable font markup?

This should do the trick:

(add-hook 'org-agenda-finalize-hook
  (lambda () (let ((inhibit-read-only t))
   (goto-char (point-min))
   (org-do-emphasis-faces (point-max)

HTH,

-- 
 Bastien



Re: [O] [Feature Request] HEADLINE special property

2014-10-20 Thread Nicolas Goaziou
Hello,

Bastien b...@gnu.org writes:

 Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 I think ITEM is expected return the headline without all the meta
 data. If no one objects, I'll change it so in master.

 Yes, thanks for this,

Here is the current state:

ITEM property includes stars, TODO keyword, priority, headline and tags,
but only if they do not have already a dedicated column. So, in the
following example

  #+COLUMNS: %25ITEM %TODO %PRIORITY %TAGS

ITEM will contain only stars and headline. This cannot properly work in,
e.g., a clock table, which doesn't know about columns.

We can get rid of this smart behaviour and remove TODO keyword,
priority and tags in all cases.

However the situation is not so simple for the stars, since there is no
LEVEL special property. IOW, if we remove the stars, it is actually not
possible anymore to know the level of the headline.

If we want to remove them, I suggest adding a new LEVEL special
property. Note that in this case, user defined properties cannot be
labelled level anymore. Another option, as the OP suggested, is to
create a new special property, e.g., HEADLINE, which will contain only
the title.

WDYT?


Regards,

-- 
Nicolas Goaziou



Re: [O] Exzessive newlines in org-element item interpreter?

2014-10-20 Thread Thorsten Jolitz
Nick Dokos ndo...@gmail.com writes:

 Thorsten Jolitz tjol...@gmail.com writes:

 Your interpretation of 'obvious' seems (obviously?) be a bit overly
 optimistic sometimes.

 Probably apocryphal but ...

 http://mystatpage.wordpress.com/tag/g-h-hardy/

Nice.

Whats really obvious is that spelling errors in Mail Subjects become kind of
embarrassing when repeated so often ... 

-- 
cheers,
Thorsten




Re: [O] *Clock Task Select* - feature request

2014-10-20 Thread Bastien
Hi Marcin,

Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 I'd love it if *Clock Task Select* were buried (or better, killed) after
 use.  (Is there ever a scenario when someone might want it not to be
 killed?)  It seems that this should do:

 
 *** /home/marcin/.emacs.d/elpa/org-20140116/org-clock.el
 --- #buffer org-clock.el
 ***
 *** 559,564 
 --- 559,565 
   (fit-window-to-buffer nil nil (if ( chl 10) chl (+ 5 chl)))
   (message (or prompt Select task for clocking:))
   (setq cursor-type nil rpl (read-char-exclusive))
 + (kill-buffer)
   (cond
((eq rpl ?q) nil)
((eq rpl ?x) nil)
 ***
 *** 975,980 
 --- 976,982 
   (read-char (concat (funcall prompt-fn clock)
   [jkKgGSscCiq]? )
  nil 45)))
 + (kill-buffer)
   (and (not (memq char-pressed '(?i ?q))) char-pressed)
(default
  (floor (/ (org-float-time
 

 (the second addition should kill the buffer with the menu shown after
 some idle time, though I didn't test it).

Good idea, I pushed this change.  I don't think the second kill-buffer
is necessary, as this buffer is already temporary.  Let me know if I'm
wrong.

Thanks,

-- 
 Bastien



Re: [O] Internal links not working?

2014-10-20 Thread Bastien
Hi Marcin,

Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 Funny thing - I /never/ turned this module on!  The only thing connected
 with tag tables in Emacs I do is I sometimes accidentally hit M-. or
 something like that.

Can you check that M-. (or some other command) is not adding those
functions in the hook behind your back?

-- 
 Bastien



Re: [O] electric-indent-mode in Emacs 25 not indenting in Org

2014-10-20 Thread Bastien
Hi William,

William Denton w...@pobox.com writes:

 But when I run Emacs 25 with emacs -Q, check to make sure
 electric-indent-mode is enabled and see that it is because that's the
 default, open foo.org, and type

 * Heading

 then when I hit return the cursor ends up under the *!

What happens if you run M-x electric-indent-mode RET *twice* (to
disable and re-enable it) after you open the buffer?

-- 
 Bastien



Re: [O] [PATCH] contrib/lisp/org-velocity: Fix failure for big window

2014-10-20 Thread Bastien
Hi Marco,

Marco Wahl marcowahls...@gmail.com writes:

 I found a bug which might not have occurred in the past since the
 monitors were smaller.  The bug shows up when the number of lines of the
 match window exceeds the number of available indexes (which is 61).  I
 think the patch (which is just a switch from 'greater than' to 'smaller
 than') in the attachment is a way to go.

applied, thanks,

-- 
 Bastien



Re: [O] [PATCH] org.el: Use normalized names in org-agenda-file-p

2014-10-20 Thread Bastien
Hi Yann,

Yann Hodique yann.hodi...@gmail.com writes:

 attached is a patch that fixes a bug where `org-agenda-file-p' doesn't
 recognize files when, for example, `org-agenda-files' contains entries
 that involve symlinks.

Applied, thanks,

-- 
 Bastien



Re: [O] Table of contents for just one section?

2014-10-20 Thread Nicolas Goaziou
Hello,

D. C. Toedt d...@toedt.com writes:

 I'd like to do sub-TOCs for individual sections and subsections.

We could add a local keyword to TOC lines, e.g.,

  #+TOC: headlines 1 local

would mean only top level children in current headline.

This feature is trivial to add to ox-ascii, probably easy for ox-html or
ox-odt, assuming someone can provide the expected code.

Implementing it in ox-latex probably boils down to requiring another
package (minitoc?).

WDYT?


Regards,

-- 
Nicolas Goaziou



Re: [O] *Clock Task Select* - feature request

2014-10-20 Thread Marcin Borkowski

On 2014-10-20, at 15:28, Bastien wrote:

 Hi Marcin,

 Good idea, I pushed this change.  I don't think the second kill-buffer
 is necessary, as this buffer is already temporary.  Let me know if I'm
 wrong.

 Thanks,

Thanks a lot - that was quite annoying for me!

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] Table of contents for just one section?

2014-10-20 Thread D. C. Toedt
The local keyword would be great.

Right now I'm interested only in HTML export -- I can use Pandoc to convert
to anything else.

Thanks!



D. C. (Dell Charles) Toedt III  *(my** last name is pronounced Tate) *
Attorney and neutral arbitrator -- tech contracts and intellectual property
Lecturer, University of Houston Law Center
​Editor, ​​​Common Draft http://www.commondraft.org/ project:  A readable
library of best-practices contract clauses,
 with extensive citations and commentary, updated often.
d...@toedt.com LinkedIn: dctoedt http://www.linkedin.com/in/dctoedt
Calendar
https://www.google.com/calendar/embed?src=dc.to...@toedt.commode=WEEK
(redacted)
O: +1 (713) 364-6545C: +1 (713) 516-8968
​​

​
Houston, Texas (Central time zone)

Unless expressly stated otherwise, this message is not intended
to serve as an electronic signature nor as assent to an agreement.



On Mon, Oct 20, 2014 at 8:41 AM, Nicolas Goaziou m...@nicolasgoaziou.fr
wrote:

 Hello,

 D. C. Toedt d...@toedt.com writes:

  I'd like to do sub-TOCs for individual sections and subsections.

 We could add a local keyword to TOC lines, e.g.,

   #+TOC: headlines 1 local

 would mean only top level children in current headline.

 This feature is trivial to add to ox-ascii, probably easy for ox-html or
 ox-odt, assuming someone can provide the expected code.

 Implementing it in ox-latex probably boils down to requiring another
 package (minitoc?).

 WDYT?


 Regards,

 --
 Nicolas Goaziou



Re: [O] electric-indent-mode in Emacs 25 not indenting in Org

2014-10-20 Thread William Denton

On 20 October 2014, Bastien wrote:


But when I run Emacs 25 with emacs -Q, check to make sure
electric-indent-mode is enabled and see that it is because that's the
default, open foo.org, and type

* Heading

then when I hit return the cursor ends up under the *!


What happens if you run M-x electric-indent-mode RET *twice* (to
disable and re-enable it) after you open the buffer?


Nothing different---the cursor ends up under the * after I hit return (and under 
the H if I hit C-j, as someone else noticed).


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Org-mode Habit with Varying Description

2014-10-20 Thread Daya Atapattu
Is there a way to create a habit that picks-up the description from a list?

I like to schedule studying a book:  It would be scheduled as Read pages
100-125.  Then the next day it should read Read pages 126-150.  The
description of the habit varies; org-mode picks that up sequentially from a
list.

Is that possible?

Regards,

- Daya


Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Bastien
Hi Daya,

Daya Atapattu atapat...@gmail.com writes:

 Is there a way to create a habit that picks-up the description from a
 list?

 I like to schedule studying a book:  It would be scheduled as Read
 pages 100-125.  Then the next day it should read Read pages
 126-150.  The description of the habit varies; org-mode picks that
 up sequentially from a list.

 Is that possible?

No.  Also, a habit with a varying description is not really a habit
anymore.  You really have several recurring tasks, each is different.

-- 
 Bastien



Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Daya Atapattu
Thanks for the response, Bastien.

I guess, short of writing some elisp code, I will have to reschedule each
evening for next day.I can't schedule in advance, because I miss some
days.

- Daya


On Mon, Oct 20, 2014 at 10:52 AM, Bastien b...@gnu.org wrote:

 Hi Daya,

 Daya Atapattu atapat...@gmail.com writes:

  Is there a way to create a habit that picks-up the description from a
  list?
 
  I like to schedule studying a book:  It would be scheduled as Read
  pages 100-125.  Then the next day it should read Read pages
  126-150.  The description of the habit varies; org-mode picks that
  up sequentially from a list.
 
  Is that possible?

 No.  Also, a habit with a varying description is not really a habit
 anymore.  You really have several recurring tasks, each is different.

 --
  Bastien



Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Jorge A. Alfaro-Murillo

Daya Atapattu writes:

Is there a way to create a habit that picks-up the description 
from a list? 

I like to schedule studying a book: It would be scheduled as 
Read pages 100-125. Then the next day it should read Read 
pages 126-150.  The description of the habit varies; org-mode 
picks that up sequentially from a list. 


Maybe you want to take a look at TODO dependencies (info (org) 
TODO dependencies) set `org-enforce-todo-dependencies' to t, and 
do something like


#+BEGIN_EXAMPLE
 * TODO Read book
 :PROPERTIES:
 :ORDERED:  t
 :END:
 ** TODO Pages 1-150
 ** TODO Pages 151-300
  
#+END_EXAMPLE


Then when closing one of the sub headlines, schedule the next one.

Best,
--
Jorge.




Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Pete Ley
As Bastien said, this doesn't really fit the idea of a habit, but I
think there is a reasonable non-elisp way of tweaking it to fit. Maybe
it would help.

What if you had something like this:

* Read book
  :LOGBOOK:
  - Note taken on [2014-10-20 Mon 10:33] \\
151-300
  - Note taken on [2014-10-20 Mon 10:32] \\
1-150
  :END:
  :PROPERTIES:
  :STYLE:habit
  :END:

I do this sometimes for things like this. The heading doesn't need to
change as it can just be a reminder to read book and you can keep
track of what you've read in the notes with C-c C-z.

Optionally, if you have multiple books and you're reading different
amounts of each one each day, you can just write how much you plan to
read under the heading for each one, e.g.

* Read book
  100 pages each day
* Read book 2
  50 pages each day



Re: [O] Link to named block

2014-10-20 Thread Daimrod
Bastien b...@gnu.org writes:

 Hi Greg,

Hi Bastien,

 Daimrod daim...@gmail.com writes:

 I've made a small function to link to a named block in org files.

 #+BEGIN_SRC emacs-lisp
 (defun dmd--org-link-to-named-block ()
   Create an org-link to the named block at point.

 Blocks are named with #+NAME.
   (when (eq major-mode 'org-mode)
 (let* ((el (org-element-at-point))
(name (org-element-property :name el)))
   (when name
 (org-store-link-props
  :link name)
 #+END_SRC

 Do you think it should be added to org? I find it useful to add a link
 to a figure when I'm exporting to latex.

 I'm not sure how to use the function above -- how do you set the link
 itself, not just its properties?

I don't. The link name is enough because named block usually have nice
name. For example, given the following named block:

#+NAME: fig:my-fig
[[file:my-fig.png]]

Then link will be [[fig:my-fig]].

 I tried to add it to `org-store-link` but it's a big function and I
 wonder why it's not splitted in smaller functions. (e.g.
 org-help-store-link, org-w3-store-link, org-image-store-link, ...).
 If you agree, I could split it.

 Yes, please go ahead.

noted.

-- 
Daimrod/Greg


signature.asc
Description: PGP signature


Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Melleus
Why don't you set your habit as a read 25 pages and use a piece of
paper or some card as a bookmark to remember where you finished? E-book
readers provide the functionality of remembering where you stopped last
time as I know. The title of the book is written on the book itself and
e-book readers always open the last one so no need to remember it.




Re: [O] [PATH] Speedups to org-table-recalculate

2014-10-20 Thread Michael Brand
Hi Nathaniel

On Mon, Oct 20, 2014 at 3:56 AM, Nathaniel Flath flat0...@gmail.com wrote:
 Thanks for the review! Updated patches attached.  I believe I've fixed
 everything you mentioned -

Yes, thank you. I tried them out.

 let me know if I missed something.

 Subject: [PATCH 1/2] org-table.el: Add early return check to
  org-table-recalculate

 Subject: [PATCH 2/2] org-table.el: Print far fewer messages when recalculating
  tables.

http://orgmode.org/worg/org-contribute.html
says: Line 2 is an empty line.

I try to limit my commit subjects to 50 chars which is a rule for some
projects and helpful for e. g. git log with certain options.

 +(and all (org-table-execute-once-per-second
 +  log-last-time
 +  (message
 +   Re-applying formulas to full table...(line %d)
 +   (setq cnt (1+ cnt)

Before trying out I have overseen it, setq does not increment on each
line any more so it has to move before
org-table-execute-once-per-second. Now probably better wrapped in a
`when' instead of the original `and' with an added `progn'.

 +(org-table-execute-once-per-second
 + log-first-time
 + (message Re-applying formulas...done cnt))

cnt is superfluous.

Only during trying out I noticed: This message could still be kept as
a feedback at least for single row updates, like e. g. Tab on a row
with # in the first column, by changing log-first-time to (when all
log-first-time).

Or more conservative why not leave this message unconditional to avoid
that any user could complain for any use case that all feedback
messages disappeared like it would be the case for e. g. the typical
C-c C-c on TBLFM? I think that would be a simple, safe compromise.

Otherwise the right but not so simple thing to do would be to log this
message for a simple C-c C-c on TBLFM and to not log it for only
those cases that throw after other feedback messages like e. g.
sometimes C-u C-u C-c C-c on TBLFM (Table was already stable), M-x
org-table-iterate-buffer-tables and more. These repetition intensive
use cases are the only ones that can profit noticeable from the
conditional removal of this last message, aren't they?

Michael



[O] Captions below figures in LaTeX export

2014-10-20 Thread Suvayu Ali
Hi everyone,

I am trying to export to LaTeX, and I include images like this:

  #+name: fig:ads-glw-plot
  #+caption: \BtoDh events measured using the GLW, and ADS methods.
  #+attr_latex: :width 0.9\linewidth :placement [!ht]
  [[file:ali/ADS_GLW_Fig2_Fig4.pdf]]

When exported this generates LaTeX code like this:

  \begin{figure}[!ht]
  \caption{\label{fig:ads-glw-plot}\BtoDh events measured using the GLW, and 
ADS methods.}
  \centering
  \includegraphics[width=0.9\linewidth]{ali/ADS_GLW_Fig2_Fig4.pdf}
  \end{figure}

I would like to put the caption command after includegraphics.  Is that
possible?  I tried reordering the #+caption: line without success.

Any thoughts, ideas?  Thanks in advance.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Brady Trainor
Daya Atapattu atapat...@gmail.com writes:

 Is there a way to create a habit that picks-up the description from a
 list?

 I like to schedule studying a book: It would be scheduled as Read
 pages 100-125. Then the next day it should read Read pages 126-150.
 The description of the habit varies; org-mode picks that up
 sequentially from a list.

 Is that possible?

 Regards,

 - Daya


I was scheduling all my TODOs for the day and using agenda view to clock my 
progress through them. But I've been skimming once again through org-mode 
users' descriptions of how they use org-mode, and one mentioned only to use 
scheduling for things like appointments. 

So my advice will step around your use of habits, although I do this without 
recently haing adopted org-habits into my workflow, so maybe I am missing 
something. 

So instead of scheduling, I would have you tag these headlines, or similarly 
set them under a tree with a CATEGORY, and simly toggle their TODO state as you 
want to work on them. Here is an example of a custom-command: 

#+BEGIN_SRC emacs-lisp
(setq org-agenda-custom-commands
  '((B Books
 ((tags-todo -nofilter))
 ((org-agenda-category-filter-preset '(+read))
  ;; or
  ;; (org-agenda-tags-filter-preset '(+read))
))
#+END_SRC

So if you think you will keep the reading notes in a few concentrated places, 
then CATEGORY should do, whereas if you think you would have related headlines 
strewn about, the tag-filter may be better. 

Here is an example org-file: 

#+BEGIN_SRC org

#+TODO: TODO(t) NEXT | DONE
#+TAGS: read(r) other

* book reading
:PROPERTIES:
:CATEGORY: read
:VISIBILITY: children
:END:
** DONE pages 100-125 :read:
** NEXT pages 125-150 :read:
** TODO pages 150-175 :read:

#+END_SRC

If you'd like to experiment with an additional agenda view for clocking, try

#+BEGIN_SRC emacs-lisp
(agenda 
(org-agenda-span 'day)
(org-agenda-log-mode-items '(closed clock state))
(org-agenda-start-with-log-mode t)
(org-agenda-skip-scheduled-if-done t))
#+END_SRC

You may want to tweak so that you can get a view of total clocked or just a 
view of those days where you read. It's not org-habits, but it could still 
potentially show you your progress in way that can motivate. 

--
Brady




[O] [PATCH] org.el: Fix bindings of and for calendar scrolling

2014-10-20 Thread Marco Wahl
Dear list,

Find a fix for the bindings of  and  for calendar scrolling for Emacs
25.  The fix is necessary because Emacs 25 dropped some aliases in the
calendar lib, in particular those that have been bound to  and .

Since the fix is small and clear (AFAICT) and the tests pass I try to
push it directly to maint.


Regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2
From 8b63dc950302dad862b9e03bda3854d7d351cac4 Mon Sep 17 00:00:00 2001
From: Marco Wahl marcowahls...@gmail.com
Date: Mon, 20 Oct 2014 21:47:42 +0200
Subject: [PATCH] org.el: Fix bindings of  and  for calendar scrolling

* lisp/org.el (org-read-date-minibuffer-local-map): Switch to the
  current calendar API for scrolling the calendar.
---
 lisp/org.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 2b5603c..7f4be6b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16285,10 +16285,10 @@ So these are more for recording a certain time/date.
   (message )))
 (org-defkey map 
 (lambda () (interactive)
-  (org-eval-in-calendar '(scroll-calendar-left 1
+  (org-eval-in-calendar '(calendar-scroll-left 1
 (org-defkey map 
 (lambda () (interactive)
-  (org-eval-in-calendar '(scroll-calendar-right 1
+  (org-eval-in-calendar '(calendar-scroll-right 1
 (org-defkey map \C-v
 (lambda () (interactive)
   (org-eval-in-calendar
-- 
2.1.2



[O] org-lookup formula missing

2014-10-20 Thread Chris Drane
For some reason, the org-lookup formula [1] are not available to me. I
don't see anything that I'm supposed to enable to have access to them, and
I don't think there's anything in my config that would be blocking them.
Does anyone know why this might be?

Thanks

[1] http://orgmode.org/manual/Lookup-functions.html


Re: [O] Small bug? Strange behaviour of

2014-10-20 Thread Igor Sosa Mayor
Bastien b...@gnu.org writes:

 I can't reproduce this.  Where is the cursor when you hit C-c C-s ?
 Can you share a reproducible recipe?

Hi Bastien,

the cursor is here:

** TODO esto es una prueba [CURSOR]
 SCHEDULED: 2014-10-20 lun

I hit C-c C-s and the calendar has the cursor on 2014-10-19. 

The capture command is like that:

--8---cut here---start-8---
(tp TODO privado entry (file+headline ~/Documents/org/privat.org 
General)
 * TODO %?\n SCHEDULED: %t )
--8---cut here---end---8---

thanks for your answer.

I have: org 8.2.10 on emacs 24.3.

PS: BTW is there a command to insert org-version and emacs version 
in a emails automatically? 

-- 
:: Igor Sosa Mayor :: joseleopoldo1...@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/  ::
:: jabberid: rogorido  ::::




Re: [O] Captions below figures in LaTeX export

2014-10-20 Thread Suvayu Ali
Hi John,

On Mon, Oct 20, 2014 at 04:04:55PM -0500, John Hendy wrote:
 
 On Mon, Oct 20, 2014 at 2:44 PM, Suvayu Ali fatkasuvayu+li...@gmail.com 
 wrote:
  Hi everyone,
 
  I am trying to export to LaTeX, and I include images like this:
 
#+name: fig:ads-glw-plot
#+caption: \BtoDh events measured using the GLW, and ADS methods.
#+attr_latex: :width 0.9\linewidth :placement [!ht]
[[file:ali/ADS_GLW_Fig2_Fig4.pdf]]
 
  When exported this generates LaTeX code like this:
 
\begin{figure}[!ht]
\caption{\label{fig:ads-glw-plot}\BtoDh events measured using the GLW, 
  and ADS methods.}
\centering
\includegraphics[width=0.9\linewidth]{ali/ADS_GLW_Fig2_Fig4.pdf}
\end{figure}
 
  I would like to put the caption command after includegraphics.  Is that
  possible?  I tried reordering the #+caption: line without success.
 
 This seems similar, though for tables. Perhaps the code could be adapted?
 - 
 http://stackoverflow.com/questions/15642388/make-org-mode-table-caption-appear-below-table-when-exported-to-latex

That was very helpful!  There is a master variable called
org-latex-caption-above.  Setting it to nil, puts the caption below for
all elements.  One can selectively put the caption above for some
elements by setting that variable to a list.

Thank you,

:)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Small bug? Strange behaviour of

2014-10-20 Thread Marco Wahl
Hi Igor,

 I have: org 8.2.10 on emacs 24.3.

 PS: BTW is there a command to insert org-version and emacs version 
 in a emails automatically? 

What about using

(signature (concat Org  (org-version) ,  (emacs-version)))

in gnus-posting-styles?


Best regards,  Marco
-- 
Org 8.2.10, GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
 of 2014-10-14 on tm6592




Re: [O] [Feature Request] HEADLINE special property

2014-10-20 Thread Brett Witty
Seems like a good solution. Although how about HEADLINE_LEVEL,
OUTLINE_LEVEL or some abbreviation to make it more unlikely to clash with
user defined properties?

BrettW

On Tue, Oct 21, 2014 at 12:16 AM, Nicolas Goaziou m...@nicolasgoaziou.fr
wrote:

 Hello,

 Bastien b...@gnu.org writes:

  Nicolas Goaziou m...@nicolasgoaziou.fr writes:
 
  I think ITEM is expected return the headline without all the meta
  data. If no one objects, I'll change it so in master.
 
  Yes, thanks for this,

 Here is the current state:

 ITEM property includes stars, TODO keyword, priority, headline and tags,
 but only if they do not have already a dedicated column. So, in the
 following example

   #+COLUMNS: %25ITEM %TODO %PRIORITY %TAGS

 ITEM will contain only stars and headline. This cannot properly work in,
 e.g., a clock table, which doesn't know about columns.

 We can get rid of this smart behaviour and remove TODO keyword,
 priority and tags in all cases.

 However the situation is not so simple for the stars, since there is no
 LEVEL special property. IOW, if we remove the stars, it is actually not
 possible anymore to know the level of the headline.

 If we want to remove them, I suggest adding a new LEVEL special
 property. Note that in this case, user defined properties cannot be
 labelled level anymore. Another option, as the OP suggested, is to
 create a new special property, e.g., HEADLINE, which will contain only
 the title.

 WDYT?


 Regards,

 --
 Nicolas Goaziou



Re: [O] Exponents / subscripts

2014-10-20 Thread Rasmus
Hi,

Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Fabrice Popineau fabrice.popin...@supelec.fr writes:

 Given that it is only a matter of presentation, does that mean it could be
 changed ?
 If yes, I can try to give it a shot.

 If you mean that a^bc should be equivalent to a^{b}c, then I think it is
 superior in its current state.

As I understand Fabrice's mail, it's only about display of scripts in
Org buffers (when org-pretty-entities-include-sub-superscripts is
non-nil).  So rather than displaying

(+)   \(a^nb^n\)

as

  \(aⁿᵇⁿ\)

it would be displayed as

(*)   \(aⁿbⁿ\)

Of course, it /only/ makes sense to change how it is displayed in
math-mode, for which (*) is the more accurate depiction of (+).

If what was indeed what Fabrice had in mind I think it makes sense.
But I also have been bothered by how (+) is displayed in the past. . .

—Rasmus

-- 
I hear there's rumors on the, uh, Internets. . .




Re: [O] \input causes conflict with LaTeX equation preview

2014-10-20 Thread Rasmus
Ken Mankoff mank...@gmail.com writes:

 I have

[+]
 #+LATEX_HEADER: \input{preamble}

 in an Org file. When I try to preview equations, it does not work
 because \input{preamble} is exported to the equation preview preamble,
 but no file preamble.tex is exported. The preamble.tex file is not
 needed just to preview an equation.

 Can anyone suggest a work-around?

\IfFileExists{./preamble.tex}{true}{false}

Etoolbox has a number of nice tests for more sophisticated
conditioning.

—Rasmus

-- 
Dobbelt-A




Re: [O] Small bug? Strange behaviour of

2014-10-20 Thread Igor Sosa Mayor
Marco Wahl marcowahls...@gmail.com writes:

 Hi Igor,
 What about using

 (signature (concat Org  (org-version) ,  (emacs-version)))

 in gnus-posting-styles?

thanks for your answer. This is a good idea!




Re: [O] [RFC] Change property drawer syntax

2014-10-20 Thread Rasmus
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 As discussed previously, I would like to modify property drawers syntax.

I think the syntax change looks great (based on the proposal)!

Thanks a bunch!

—Rasmus

-- 
Dobbelt-A




Re: [O] org-lookup formula missing

2014-10-20 Thread Rasmus
Hi,

Chris Drane csdr...@gmail.com writes:

 For some reason, the org-lookup formula [1] are not available to me. I
 don't see anything that I'm supposed to enable to have access to them, and
 I don't think there's anything in my config that would be blocking them.
 Does anyone know why this might be?

In my Org-mode version 8.3beta (release_8.3beta-422-gb54ad3 @
/usr/share/emacs/site-lisp/org/) they are defined in org-table.el.

Are the functions available when you explictly require that file?

M-: (require 'org-table) RET

—Rasmus

-- 
Together we will make the possible totay impossible!




Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Eric Abrahamsen
Pete Ley peteley11...@gmail.com writes:

 As Bastien said, this doesn't really fit the idea of a habit, but I
 think there is a reasonable non-elisp way of tweaking it to fit. Maybe
 it would help.

 What if you had something like this:

 * Read book
   :LOGBOOK:
   - Note taken on [2014-10-20 Mon 10:33] \\
 151-300
   - Note taken on [2014-10-20 Mon 10:32] \\
 1-150
   :END:
   :PROPERTIES:
   :STYLE:habit
   :END:

I've been (very gradually) working on something I'm calling org-log, for
just this sort of situation -- a library that would possibly go
underneath org-habit and maybe even org-clock. It would look like:

* Read book
  :LOGBOOK:
  - Note taken on [2014-10-20 Mon 10:33] \\
PAGES: 49
  - Note taken on [2014-10-20 Mon 10:32] \\
PAGES: 150
  :END:

When adding notes (or state-change log notes) the user would be prompted
to record values for the key(s) already existing in the logbook (in this
case, PAGES). Multiple key-value pairs would be possible. Generic tables
could be created for a heading, with more specialized tables with
user-defined column formulas and all that.

Add unit manipulation/calculation from the calc-units package, and I
think this could be a nice extension to Org.

I originally started thinking of this while translating a novel. I had a
certain number of characters to translate, and a certain deadline. What
I wanted was a single heading where I logged my progress, and a
reporting facility that said given today's date and how many characters
you've already done, you'll need to average XXX characters per day to
hit the deadline. I envisioned a gnuplot table that showed
actual-characters-per-day against the shifting
average-characters-per-day.

I didn't make my deadline. I don't blame Org for that, but I think I
would have stood a better chance if org-log existed. :)

Eric

 I do this sometimes for things like this. The heading doesn't need to
 change as it can just be a reminder to read book and you can keep
 track of what you've read in the notes with C-c C-z.

 Optionally, if you have multiple books and you're reading different
 amounts of each one each day, you can just write how much you plan to
 read under the heading for each one, e.g.

 * Read book
   100 pages each day
 * Read book 2
   50 pages each day




Re: [O] \input causes conflict with LaTeX equation preview

2014-10-20 Thread Ken Mankoff

* On 2014-10-20 at 18:26, Rasmus wrote:
 Ken Mankoff mank...@gmail.com writes:

 I have

 #+LATEX_HEADER: \input{preamble}

 in an Org file. When I try to preview equations, it does not work
 because \input{preamble} is exported to the equation preview
 preamble, but no file preamble.tex is exported. The preamble.tex
 file is not needed just to preview an equation.

 Can anyone suggest a work-around?

 \IfFileExists{./preamble.tex}{true}{false}

 Etoolbox has a number of nice tests for more sophisticated
 conditioning.


Works great. Thank you.

  -k.