Re: [O] long outline entries

2015-01-23 Thread Subhan Michael Tindall


 -Original Message-
 From: emacs-orgmode-bounces+subhant=familycareinc@gnu.org
 [mailto:emacs-orgmode-bounces+subhant=familycareinc@gnu.org] On
 Behalf Of e.fr...@ucl.ac.uk
 Sent: Friday, January 23, 2015 12:55 AM
 To: Jude DaShiell
 Cc: emacs-orgmode@gnu.org
 Subject: Re: [O] long outline entries
 
 On Thursday, 22 Jan 2015 at 17:06, Jude DaShiell wrote:
  Is there any way in org-mode to have two things happeautomatically
  when a long outline entry gets keyed into a file?  First the lines of
  the outline entry do not go beyond a defined right margin and split on
 spaces.
  Second, subsequent lines created by above wrapping start on a left
  margin that makes it clear to org-mode that these additional lines are
  all part of the original outline entry since they're inside the
  indents created by the stars and space that started the original
  outline entry?  A question
 
 Maybe auto-fill-mode is what you want?
 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-717-gd36bd8

Auto-fil-mode doesn't apply to headlines.  AFAIK, there is no way to 
automatically wrap a headline other than hitting enter, and this moves the rest 
of what you are typing into the body of the entry.
If I'm recalling correctly, wrapping headlines like you have suggested (which I 
would like myself!) would break the new more formal drawers format without some 
significant rewrite.


This message is intended for the sole use of the individual and entity to which 
it is addressed and may contain information that is privileged, confidential 
and exempt from disclosure under applicable law. If you are not the intended 
addressee, nor authorized to receive for the intended addressee, you are hereby 
notified that you may not use, copy, disclose or distribute to anyone the 
message or any information contained in the message. If you have received this 
message in error, please immediately advise the sender by reply email and 
delete the message.  Thank you.




Re: [O] Autogenerating beamer overlay parameter?

2015-01-23 Thread e.fraga
On Friday, 23 Jan 2015 at 09:11, Loris Bennett wrote:
 Hi,

 I want to have the element of a list in a Beamer presentation appear
 one-by-one and then finally colour one entry red, so I do the following:

[...]

 This works, but is there something generic I can use to generate number
 of elements list + 1 to use to get the highlighting to occur at the
 right place?

No idea but I would suggest you look in the beamer manual and/or ask in
a LaTeX forum as this is not really an org question.  You already have
the org syntax sorted...  you just need to fill it in with the
appropriate beamer invocation.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-717-gd36bd8



Re: [O] [ANN] [OT] New Android app (Orgzly)

2015-01-23 Thread Greg Troxel

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

 On 2015-01-22, at 17:41, Jose E. Marchesi jema...@gnu.org wrote:

 *NOTE* It's about an app which is *not* open source (some parts of code
 will opened, see below).  If you have a problem with that, you can stop
 reading right about now...

 Please stop using the GNU mailing lists to promote proprietary software.

 It might be the case that I do not understand something.

 AFAIR, there was a recent discussion on another GNU mailing list about
 usability of Emacs under Windows.  (Maybe it was somewhere else, I'm not
 sure, then my question is theoretical.)  A few people claimed that Emacs
 under Windows is fully functional and works well.  Would this also be
 considered promoting proprietary software?

The point here is that the FSF is a charitable nonprofit which promotes
free software.  Their servers have usage guidelines:

  https://savannah.gnu.org/register/requirements.php

Basically, helping Free software to work on non-Free operating systems
is ok, as long as the non-Free OS is not the proprietary target and the
software works best (or equal) on Free systems.Supporting or
advertising non-Free software is not ok.

So the opinions of our hosts are pretty clear.



pgpFaGdEnh_3C.pgp
Description: PGP signature


Re: [O] Apply a patch with a single key press from Gnus

2015-01-23 Thread Charles C. Berry

On Fri, 23 Jan 2015, Sebastien Vauban wrote:


Hello,

I've seen some code to apply Git patches from Gnus [1].

That code should be updated to work for Org-mode, not to say for the
correct paths to my local repo.

Has someone done this already, or are you aware of a standard approach
in Gnus to apply a patch directly from the *Article* buffer?


Did you try navigating to the patch, then typing

   RET C-s diff RET M-x diff-apply-hunk RET

or `diff-ediff-patch'?

On my setup, it prompts for the file, just as it would if I had downloaded 
the patch, opened it in diff-mode, and issued those commands.


HTH,

Chuck



Re: [O] [ANN] [OT] New Android app (Orgzly)

2015-01-23 Thread Greg Troxel

Greg Troxel g...@ir.bbn.com writes:

 The point here is that the FSF is a charitable nonprofit which promotes
 free software.  Their servers have usage guidelines:

   https://savannah.gnu.org/register/requirements.php

 Basically, helping Free software to work on non-Free operating systems
 is ok, as long as the non-Free OS is not the proprietary target and the

sorry, primary target.  excess ranting leads to word errors :-)

 software works best (or equal) on Free systems.Supporting or
 advertising non-Free software is not ok.

 So the opinions of our hosts are pretty clear.



pgpScl0Q7rahE.pgp
Description: PGP signature


Re: [O] How to override :eval no in call lines?

2015-01-23 Thread Charles C. Berry

On Fri, 23 Jan 2015, Sebastien Vauban wrote:


Charles C. Berry wrote:

Sebastien Vauban wrote:

In a long document, I must have :eval no at file level, as this is
the common setting for most code blocks. However, how do I unset that
for some call lines.



[snip]


I don't get why one has to add :eval yes for both types of headers
arguments.

Moreover, I once read that when evaluating a call line, it is converted
into an ephemeral Emacs Lisp code block equivalent to the call line (and
created at the point of the call line):

 #+begin_src emacs-lisp :var result=NAME(ARGUMENTS) INSIDE-HEADER-ARGS
   result
 #+end_src

which is evaluated in place.



No, like this:

#+begin_src emacs-lisp :var result=NAME[INSIDE-HEADER-ARGS](ARGUMENTS)



Where do END-HEADER-ARGS fit into that picture?


Either before or after the :var ...

HTH,

Chuck



Re: [O] [babel, bug?] colnames with a list of columns does not work

2015-01-23 Thread Thomas S. Dye


Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 Yes, you just show that the documentation is not up-to-date, as that
 functionality *is* implemented for most languages.

This constant is defined in the ob-core.el I have

(colnames   . ((nil no yes)))

which seems to indicate that the documentation is up-to-date.

Also, I looked through the various language descriptions at
http://orgmode.org/worg/org-contrib/babel/languages.html and found two
that discuss :colnames,

picolisp prefers :colnames no, and sql sets :colnames yes by default.

I'm curious.  Is it the case that most languages accept a list of values
for the :colnames header argument?

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com




Re: [O] parser: verbatim or code?

2015-01-23 Thread Sebastien Vauban
Hello,

Sebastien Vauban wrote:
 Bastien wrote:
 Hi Yasushi, Michael and Nicolas,

 Michael Brand michael.ch.br...@gmail.com writes:
 The syntax for inline code snippets seems easier to read by human
 and to parse with ~ than with = because inline code snippets use
 ~ less often than =. I avoid ~/ by using $HOME/ in my notes
 about shell and shell scripts. Some examples:

 I've now fix those inconsistencies, both in the manual and in the
 code.  I followed Michael suggestion to use ~code~ and =verbatim=.

 We may need to update the way export backend treat this markup, and
 try to be consistent here too.

 Since = and ~ have been inverted, I think it'd make sense to make
 `org-babel-inline-result-wrap' now default to ~%s (instead of
 =%s), for markup that produces verbatim text.

Here is the patch.

Best regards,
  Seb

-- 
Sebastien Vauban
From 4168c424e3c112748951177121b1a4dcb5b712a5 Mon Sep 17 00:00:00 2001
From: Sebastien Vauban sva-n...@mygooglest.com
Date: Fri, 23 Jan 2015 20:17:25 +0100
Subject: [PATCH] Replace `=' by `~' in `org-babel-inline-result-wrap'

* ob-core.el (org-babel-inline-result-wrap): Replace `=' by `~'.
---
 lisp/ob-core.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index 24b83d6..5fd4119 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -1,6 +1,6 @@
 ;;; ob-core.el --- working with code blocks in org-mode
 
-;; Copyright (C) 2009-2014 Free Software Foundation, Inc.
+;; Copyright (C) 2009-2015 Free Software Foundation, Inc.
 
 ;; Authors: Eric Schulte
 ;;	Dan Davison
@@ -162,7 +162,7 @@ See also `org-babel-noweb-wrap-start'.
   :group 'org-babel
   :type 'string)
 
-(defcustom org-babel-inline-result-wrap =%s=
+(defcustom org-babel-inline-result-wrap ~%s~
   Format string used to wrap inline results.
 This string must include a \%s\ which will be replaced by the results.
   :group 'org-babel
-- 
2.1.1



Re: [O] parser: verbatim or code?

2015-01-23 Thread Aaron Ecay
Hi Sebastien,

2015ko urtarrilak 23an, Sebastien Vauban-ek idatzi zuen:
 Since = and ~ have been inverted, I think it'd make sense to make
 `org-babel-inline-result-wrap' now default to ~%s (instead of
 =%s), for markup that produces verbatim text.
 
 Here is the patch.

If I understand this thread correctly, = is now consistently interpreted
as verbatim and ~ as code.  I think verbatim (i.e. the status quo) is
what makes sense for inline babel results – results are not generally
speaking code (though of course in special cases they can be).

I’m not sure what you mean by

 That will put fix back as what they were for people having different CSS
 or LaTeX styles applied to both markers.

It sounds like perhaps there are user customizations which are out of
date with this change.  Maybe an announcement is needed in ORG-NEWS to
raise awareness of this change.

Thanks,

-- 
Aaron Ecay



Re: [O] Wanderlust and org-capture

2015-01-23 Thread Marco Wahl
Hi,

Cédric Chépied cedric.chep...@gmail.com writes:

 I'm using wanderlust to read and write emails in emacs. I wanted to use
 org-capture to add TODOs in my org files.

 In org-capture-templates documentation there is a line talking about 
 wanderlust
 (I think):

 vm, wl, mh, mew, rmail, |  %:type %:subject %:message-id

 But I was unable to use %:type or %:whatever in my template to capture
 wanderlust messages.

 I found an org-rmail.el file in org-mode sources but I couldn't find org-wl.el
 and I assumed this is the reason why I can't use org-capture.

There is ./contrib/lisp/org-wl.el at least in the current master branch.

See (info (org)Installation) for setting the load-path.  Then you can
activate module org-wl using M-x customize-variable org-modules.

 I wrote an
 org-wl.el file based on org-rmail. you can find sources here:
 https://github.com/chep/org-wl
 Feel free to comment it and to use it if you want.

A comparison with the existing org-wl could be interesting.


HTH and best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] Bug: org-babel-script-escape misses a lonely double quote [8.2.10 (8.2.10-23-g1ec416-elpaplus @ c:/Users/jowik/.emacs.d/elpa/org-plus-contrib-20141208/)]

2015-01-23 Thread Aaron Ecay
Hello,

2015ko urtarrilak 16an, Aaron Ecay-ek idatzi zuen:

[...]

 Unfortunately, while your suggested modification does correct the
 issue in your case, it is not a very general fix.  As you noted, the
 org-babel-script-escape function did not take account of backslash
 escapes; it had other issues as well.  Attached is a proposed patch
 which (tries to) improve the situation, including adding a test for
 this function.
 
 (There are also two clean-up patches attached.)

Since a week has passed with no comments, I have pushed these patches.

Thanks,

-- 
Aaron Ecay



Re: [O] [babel, bug?] colnames with a list of columns does not work

2015-01-23 Thread Aaron Ecay
Hi Sebastien,

2015ko urtarrilak 23an, Sebastien Vauban-ek idatzi zuen:
 Yes, you just show that the documentation is not up-to-date, as that
 functionality *is* implemented for most languages.
 
 Doing some bit of archeology, I just found out that:
 
 - Eric wrote a patch to support the above (but it hasn't be applied),
 
 - I (!) even wrote a test of that functionality (for a shell block) in
   `testing/lisp/test-ob.el'.
 
 See https://lists.gnu.org/archive/html/emacs-orgmode/2013-04/msg00527.html:

Thanks for bringing this back to the surface.  I reworked Eric’s patch
(which no longer applied cleanly).  The result is attached.  With this
patch:
- Both row/colnames set from R and from Org should work
- If they are set in both ways, the Org ones will win

There are tests for this behavior.

There is a slight mismatch between R and Org.  R considers the colnames
(C) and rownames (R) separate from the table (X):

  
R 
R 
R 

On the other hand, Babel assigns a colname to the column of rownames:

C 
R 
R 
R 

So, R users will need to watch out for this.  I wasn’t sure where to
document it – maybe Worg?  (There’s a comment about it in the test
suite, but that hardly counts.)

From e192ad71b61fd6ddf034a15c1012a99de00e5865 Mon Sep 17 00:00:00 2001
From: Aaron Ecay aarone...@gmail.com
Date: Fri, 23 Jan 2015 12:33:51 -0500
Subject: [PATCH] ob-R: Fix table row/colname processing.

* lisp/ob-R.el (org-babel-execute:R): Use babel-standard row/colname
processing.  Remove graphics-specific R code from here.
(org-babel-R-construct-graphics-device-call): Absorb graphics-specific
code.
(org-babel-R-process-value-result): Remove function.
(org-babel-R-evaluate-external-process):
(org-babel-R-evaluate-session): Adapt callers.

This is in line with a patch proposed by Eric Schulte:
http://mid.gmane.org/87obdp0ybb@gmail.com.  Thanks to Sebastien
for bringing it up again.

* testing/lisp/test-ob-R.el (test-ob-R/colnames-from-r):
(test-ob-R/colnames-from-org):
(test-ob-R/rownames-from-r):
(test-ob-R/rownames-from-org):
(test-ob-R/row-and-colnames-from-r):
(test-ob-R/row-and-colnames-from-org): New tests.
---
 lisp/ob-R.el  | 108 --
 testing/lisp/test-ob-R.el |  72 +++
 2 files changed, 128 insertions(+), 52 deletions(-)

diff --git a/lisp/ob-R.el b/lisp/ob-R.el
index 639b4f8..68aba30 100644
--- a/lisp/ob-R.el
+++ b/lisp/ob-R.el
@@ -155,36 +155,47 @@ This function is used when the table does not contain a header.)
   Execute a block of R code.
 This function is called by `org-babel-execute-src-block'.
   (save-excursion
-(let* ((result-params (cdr (assoc :result-params params)))
-	   (result-type (cdr (assoc :result-type params)))
+(let* ((result-params (cdr (assq :result-params params)))
+	   (result-type (cdr (assq :result-type params)))
(session (org-babel-R-initiate-session
-		 (cdr (assoc :session params)) params))
-	   (colnames-p (cdr (assoc :colnames params)))
-	   (rownames-p (cdr (assoc :rownames params)))
-	   (graphics-file (and (member graphics (assq :result-params params))
+		 (cdr (assq :session params)) params))
+	   (graphics-file (and (member graphics result-params)
 			   (org-babel-graphical-output-file params)))
+	   (colnames (cdr (assq :colnames params)))
+	   (rownames (cdr (assq :rownames params)))
+	   (inside (org-babel-expand-body:R body params graphics-file))
 	   (full-body
-	(let ((inside
-		   (list (org-babel-expand-body:R body params graphics-file
-	  (mapconcat 'identity
-			 (if graphics-file
-			 (append
-			  (list (org-babel-R-construct-graphics-device-call
- graphics-file params))
-			  inside
-			  (list },error=function(e){plot(x=-1:1, y=-1:1, type='n', xlab='', ylab='', axes=FALSE); text(x=0, y=0, labels=e$message, col='red'); paste('ERROR', e$message, sep=' : ')}); dev.off()))
-			   inside)
-			 \n)))
+	(if graphics-file
+		(org-babel-R-construct-graphics-device-call
+		 graphics-file params inside)
+	  inside))
 	   (result
 	(org-babel-R-evaluate
 	 session full-body result-type result-params
-	 (or (equal yes colnames-p)
-		 (org-babel-pick-name
-		  (cdr (assoc :colname-names params)) colnames-p))
-	 (or (equal yes rownames-p)
-		 (org-babel-pick-name
-		  (cdr (assoc :rowname-names params)) rownames-p)
-  (if graphics-file nil result
+	 (equal yes colnames)
+	 (equal yes rownames
+  (unless graphics-file
+	(org-babel-reassemble-table
+	 result
+	 (org-babel-pick-name
+	  ;; In most cases, the original colnames have been passed
+	  ;; into R and are coming back from there, thus we don't need
+	  ;; the copy that babel stashed in the :colname-names entry.
+	  ;; However, if :colnames nil is specified babel does not
+	  ;; pass along the colnames to R, but is expected to reapply
+	  ;; them to the table.  (nil is a confusing name for this
+	  ;; 

Re: [O] [PATCH] Replace `org-ctrl-c-ctrl-c' by `org-babel-execute-maybe' in tests

2015-01-23 Thread Nicolas Goaziou


Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 Attached a patch that I certify working -- I've applied it myself with
 success on a current master clone.

Thanks.

Good news is that I can apply it. Bad news is that some tests fail.

  5 unexpected results:
 FAILED  test-org-babel/inline-src_blk-default-results-replace-line-1
 FAILED  test-org-babel/inline-src_blk-default-results-replace-line-2
 FAILED  test-org-babel/inline-src_blk-manual-results-replace
 FAILED  test-org-babel/inline-src_blk-results-raw
 FAILED  test-org-babel/inline-src_blk-results-silent

Could you look into it?

Regards,




Re: [O] three bugs/misfeatures in org-reveal (or is org-reveal the wrong way to reveal around point?)

2015-01-23 Thread Samuel Wales
hi nicolas,

On 1/21/15, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
 Minimal view (state 1 above) and canonical view (state 4) are
 mandatory. In between, I'm not sure what is used. I suggested two of
 them. Apparently, you would also need 3 without 2 (i.e., siblings
 without hierachy above).

thanks for considering this topic.

i would use a state that is exactly like canonical except that all
body text [sections] would not show unless point is in a section.  we
can call it semi-canonical for lack of a better term.

otherwise i'm not qualified to select the intermediate states, as i
would not use them.  i'd use canonical and semi-canonical.


samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] 63 failures for org-test-run-all-tests in an Emacs GUI

2015-01-23 Thread Nicolas Goaziou


Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 Here is a patch you can apply with no problem -- just checked it on
 a fresh copy of master.

Thanks.

I can apply it but it introduces test failures.

   FAILED  ob-shell/generic-uses-no-arrays
   FAILED  ob-shell/generic-uses-no-assoc-arrays
   FAILED  ob-tangle/continued-code-blocks-w-noweb-ref
   FAILED  test-ob/specific-colnames

Could you look into it?


Regards,




[O] Apply a patch with a single key press from Gnus

2015-01-23 Thread Sebastien Vauban
Hello,

I've seen some code to apply Git patches from Gnus [1].

That code should be updated to work for Org-mode, not to say for the
correct paths to my local repo.

Has someone done this already, or are you aware of a standard approach
in Gnus to apply a patch directly from the *Article* buffer?

Best regards,
  Seb

[1] http://blog.printf.net/articles/2010/10/04/git-patches-in-gnus/

-- 
Sebastien Vauban




Re: [O] [bug] ox-taskjuggler

2015-01-23 Thread Christian Egli
Søren Mikkelsen so...@aamikkelsen.dk writes:

 It works, but only for tasks that aren't having a start attribute. It
 is possible to give a warning if the start attribute already exists
 and make the default one, the one specified in the attributes (drawer)?

What exactly doesn't work? Are there two start entries in the task? One
because of the SCHEDULED property and one because of the the start
property?

Then you might have to remove the start property from
org-taskjuggler-valid-task-attributes before adding the other valid
attributes i.e. 

;; Add other valid attributes.
(org-taskjuggler--indent-string
 (org-taskjuggler--build-attributes
  task org-taskjuggler-valid-task-attributes))

Might have to become (untested)

;; Add other valid attributes.
(org-taskjuggler--indent-string
 (org-taskjuggler--build-attributes
  task 
  (remq 'start org-taskjuggler-valid-task-attributes)))

HTH
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




Re: [O] [ANN] [OT] New Android app (Orgzly)

2015-01-23 Thread John Hendy
On Jan 22, 2015 10:13 PM, Scott Randby sran...@gmail.com wrote:

 On 01/22/2015 05:02 PM, Marcin Borkowski wrote:

 Now the question is: what is the most appropriate place to *inform*
 about his project.  If not the Org-mode discussion list, I really don't
 know.  (I assume that nobody denies his *right* to license his work
 according to his wishes, of course, for if not, another explanation
 would be that this project doesn't have any right to *exist* in the
 first place.)


 Since we cannot view the code of this software, then we have no way of
determining before we use it if it has any purpose other than its stated
purpose. For all we know, it contains some nasty code that takes over your
system and deletes all of your files or worse.

 To trust this software because the developer seems to have good
intentions is foolish. When I saw the announcement, I interpreted it as
saying this: Gee, here is some neat software I wrote. You can't see the
code, but trust me, I'm good. I'll open up part of the code maybe sometime,
but for now you can try it out for free. I'm not going to cut you off later
and make you pay to continue using this wonderful thing. And no, it doesn't
do anything bad like steal information or trash systems. Trust me. No
thanks, I say. Promote this somewhere else.


I somewhat get the sentiment, but it *is* on Google Play (granted, beta).
How is that different from other [android closed source] apps? I see the
announcement as relevant: i.e. I have an app relevant to org mode and
thought I'd let the list devoted to org mode know about it.

Just wanted to express a counter-view. I'm a list member without a 100% no
closed source policy on my phone (and computer for that matter).

John

 Scott Randby



Re: [O] [ANN] [OT] New Android app (Orgzly)

2015-01-23 Thread Marcin Borkowski

On 2015-01-22, at 23:46, Rasmus ras...@gmx.us wrote:

 Fine with me!

 Neven, whom I have exchange a couple of private emails with, is free to
 distribute his software as he see fit.  What I explicitly quoted as being
 uncomfortable was the association between his product with *org-mode*.
 Note, the tag-line on Neven's site was something like org-mode for
 Android up until this discussion.

Did not know that; sorry for not doing my homework.  Of course, calling
this org-mode for Android or similarly *is* unacceptable, for obvious
reasons.

 I'm sure everybody is excited that his program is working with the *org
 format*!

Apparently, not everybody.  But not everybody has to, of course.

 Then others come and say some, ekhm, not-extremely-nice things to
 someone who was definitely not trolling or anything like this.

 We should strive to keep the org-list friendly and civilized.

That's what I'm saying (see also my response to the Greg's email).

 Let us further assume that he will sell his book in bookstores (it might
 be in ebook form, with or without DRM, or in paper form - never mind, I
 do not know the exact details).  Would he be prohibited from mentioning
 his project (which clearly involves a non-free piece of *software*,
 i.e., the LaTeX source file, and promotes the *result* of executing this
 piece of code) on Emacs mailing list?  I am very interested in a serious
 answer, and (if it happens to be no) in explanation how and why the
 situation would be different.

 First, I don't have strong opinions on this.  However, as I recall there's
 a passage on articles vs software in Free as in Freedom 2.0:

 http://shop.fsf.org/product/free-as-in-freedom-2/

TL;DR, sorry - it is several hundred pages long, and I have a huge
backlog of books (technical, non-fiction and fiction).  I might add this
to the list.

 —Rasmus

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] [ANN] [OT] New Android app (Orgzly)

2015-01-23 Thread Marcin Borkowski

On 2015-01-23, at 03:59, Mike McLean mike.mcl...@pobox.com wrote:

 Orgzly is non-free software, and people should not install it, or suggest
 installing it, or even tell people it exists.

I appreciate you telling me what I should not install on my, as they
call it, personal computer, or what I should not tell other people
about.

(I *would* agree with you, btw, if (a) you added on this mailing list,
as I explained in an earlier email, *or* if (b) installing or using
non-free-as-defined-by-FSF software would be something immoral.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] [ANN] [OT] New Android app (Orgzly)

2015-01-23 Thread Marcin Borkowski

On 2015-01-23, at 10:56, Karl Voit devn...@karl-voit.at wrote:

 I don't like proprietary software. I promote open solutions wherever
 I can and accept a more painful living by ignoring comfy proprietary
 solutions.

+1, the same with me.  Although I do use some non-free-as-defined-by-FSF
software.  (Apparently, to be fully FSF-compliant you shouldn't say
open.  Assuming that you *want* to be FSF-compliant, that is;-).  BTW:
from now on I'm going to use the terms: free-as-defined-by-FSF and its
negation, because I do not want to borrow terms from an entity whose
philosophy I do oppose.)

 However, I do like to see (maintained) alternatives of MobileOrg and
 I do like to see third party tools using the Org syntax for storing
 and managing information.

+1

 So: Jose, I like what I see on your web page and please do carry on.
   Neven, not Jose!
 Thanks you for making it clear that your software is not open source
 and please keep on doing this.

+1 again.

 I will probably never use Orgzly by myself because I like open
 solutions. I accept that other people might want to have an
 easy-to-use closed alternative solution to use Org on their phone.
 It's so much better than using Evernote or other cloud-based
 solutions.

I might want to use Orgzly.  (I do use Evernote occasionally, btw; yes,
it is terrible.)

BTW, one more question: what about all the emails about dropbox-based
syncing of Emacs config or Org files?  Why didn't they get banned?  All
are equal, but some are more equal than others?

 Thanks for promoting Org!

+1!

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



[O] Discussion of non-free-as-defined-by-FSF software (was: [ANN] [OT] New Android app (Orgzly))

2015-01-23 Thread Marcin Borkowski

*NOTE* This email contains a strong opinion about a certain three-letter
organization.  If you have a problem with that, you can stop reading
right about now.  ;-)



On 2015-01-23, at 20:18, Greg Troxel g...@ir.bbn.com wrote:

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

 On 2015-01-22, at 17:41, Jose E. Marchesi jema...@gnu.org wrote:

 *NOTE* It's about an app which is *not* open source (some parts of code
 will opened, see below).  If you have a problem with that, you can stop
 reading right about now...

 Please stop using the GNU mailing lists to promote proprietary software.

 It might be the case that I do not understand something.

 AFAIR, there was a recent discussion on another GNU mailing list about
 usability of Emacs under Windows.  (Maybe it was somewhere else, I'm not
 sure, then my question is theoretical.)  A few people claimed that Emacs
 under Windows is fully functional and works well.  Would this also be
 considered promoting proprietary software?

 The point here is that the FSF is a charitable nonprofit which promotes
 free software.  Their servers have usage guidelines:

   https://savannah.gnu.org/register/requirements.php

 Basically, helping Free software to work on non-Free operating systems
 is ok, as long as the non-Free OS is not the proprietary target and the
 software works best (or equal) on Free systems.Supporting or
 advertising non-Free software is not ok.

 So the opinions of our hosts are pretty clear.

1. I see, it is indeed pretty clear.  I did not know that, and I am
thankful that you pointed it out.  (In particular, this seems to more or
less answer my questions.)  Incidentally, it makes me satisfied that
I decided not to sign the FSF copyright papers: I do not want to be
formally involved in any way with this organization (for instance, I do
not want them to have any piece of paper with my personal signature, nor
would I buy any book from them knowing that this way I would support
them with my money).

2. I would also prefer people here to express information about the
rules which might not be known to e.g. anybody who learned about list
from the Org-mode site and did not want to spend time on the FSF website
with similarly factual way as you (and let me make this very clear:
I again thank you for that, even if we do disagree), not with hostility
toward a person who (like me, and apparently other people) does not
treat software as religion and does not consider non-free (as defined by
RMS) software necessary immoral.  (And that's good for me, personally:
if I were to treat software as religion, I might consider switching to
Vim at this very moment, and it would be a nuisance, since I both am not
accustomed to it and consider it technically inferior to Emacs.  The
current situation also makes me uncomfortable: I did recommend Emacs to
many people, sometimes successfully, and from now on I'm going to
consider it my moral obligation to state clearly that when advertising
Emacs, I do not endorse any opinions of RMS or FSF – indeed, I would
rather warn people not to listen to them, or rather: to listen to them
while carefully judging what they hear.)

3. I would like to know where on the Internet I could discuss
Org-related topics in a free (“free as in freedom”, to quote RMS once
again) way, since clearly (and ironically, I'm inclined to add) this is
not possible on any mailing list hosted by the FSF.  Please note: I do
not consider freedom of speech an absolute value, and I do not consider
censorship necessarily immoral.  My criticism of the FSF is not that
they effectively endorse censorship of some kind; I'm fine with that, it
is their servers after all, they are the hosts and they write the rules.
(Although I find it a bit hypocritical that at the same time they
apparently deny programmers the somehow analogous right to license the
code they wrote using some non-FSF-approved license.)  My problem with
the FSF is that they represent and spread false moral views, and this is
something harmful.  (Even though I *do* agree with the FSF about many
things, e.g., many of the remarks on their words to avoid page are
definitely worth spreading.  OTOH, I am not convinced that free software
is necessarily the right answer to the problem they fight).

Regards,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



[O] Wanderlust and org-capture

2015-01-23 Thread Cédric Chépied
Hi,

I'm using wanderlust to read and write emails in emacs. I wanted to use
org-capture to add TODOs in my org files.

In org-capture-templates documentation there is a line talking about wanderlust
(I think):

vm, wl, mh, mew, rmail, |  %:type %:subject %:message-id

But I was unable to use %:type or %:whatever in my template to capture
wanderlust messages.

I found an org-rmail.el file in org-mode sources but I couldn't find org-wl.el
and I assumed this is the reason why I can't use org-capture. I wrote an
org-wl.el file based on org-rmail. you can find sources here:
https://github.com/chep/org-wl
Feel free to comment it and to use it if you want.

;;; org-wl.el --- Support for links to Wanderlust messages from within Org-mode

;; Copyright (C) 2014 Cédric Chépied cedric.chep...@gmail.com

;; Author: Cédric Chépied cedric.chep...@gmail.com
;; Keywords: org, wanderlust, link
;; Homepage: http://orgmode.org
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program; see the file COPYING.  If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth
;; Floor, Boston, MA 02110-1301, USA.
;
;;
;; Template example:
;; (add-to-list 'org-capture-templates '((e Email Todo entry
;;(file+headline ~/org/myfile.org 
Tasks)
;;* TODO %^{Brief Description}\nEmail: 
%a\nFrom: %:from \nTo: %:to \n%?Added: %U\n :prepend t)))


;;; Code:

(require 'org)

;; Declare external functions and variables
(declare-function elmo-folder-name-internal elmo (ENTITY))
(declare-function wl-summary-message-number wl-summary ())
(declare-function wl-summary-set-message-buffer-or-redisplay wl-summary 
(rest ARGS))
(declare-function wl-summary-redisplay-internal wl-summary (optional FOLDER 
NUMBER

FORCE-RELOAD

MIME-MODE HEADER-MODE))
(declare-function wl-folder-get-elmo-folder wl-folder (ENTITY optional 
NO-CACHE))

(org-add-link-type wl 'org-wl-open)
(add-hook 'org-store-link-functions 'org-wl-store-link)

(defun org-wl-store-link ()
  Store a link to a wl folder or message.
  (when (eq major-mode 'wl-summary-mode)
(let ((folder (elmo-folder-name-internal wl-summary-buffer-elmo-folder))
  (message-id (wl-summary-message-number)))
  (save-excursion
(wl-summary-set-message-buffer-or-redisplay)
(let* ((from (mail-fetch-field from))
   (to (mail-fetch-field to))
   (subject (mail-fetch-field subject))
   (date (mail-fetch-field date))
   (date-ts (and date (format-time-string
   (org-time-stamp-format t)
   (date-to-time date
   (date-ts-ia (and date (format-time-string
  (org-time-stamp-format t t)
  (date-to-time date
   link)
  (org-store-link-props
   :type wl :from from :to to
   :subject subject :message-id message-id)
  (when date
(org-add-link-props :date date :date-timestamp date-ts
:date-timestamp-inactive date-ts-ia))
  (setq link (concat wl: folder # (number-to-string message-id)))
  (org-add-link-props :link link :description subject)
  link)


(defun org-wl-open (path)
  Follow a wl message link to the specified PATH.
  (unless (string-match \\(.*\\)#\\([0-9]+\\) path)
(error Error in wl link))
  (let* ((folder (match-string 1 path))
 (msg (string-to-number (match-string 2 path)))
 (elmo-folder (wl-folder-get-elmo-folder folder)))
(wl-summary-redisplay-internal elmo-folder msg)
  ))


(provide 'org-wl)

;;; org-wl.el ends here

-- 
Cédric Chépied
cedric.chep...@gmail.com



Re: [O] [ANN] [OT] New Android app (Orgzly)

2015-01-23 Thread Rainer M Krug
Scott Randby sran...@gmail.com writes:

 On 01/22/2015 05:02 PM, Marcin Borkowski wrote:

 Now the question is: what is the most appropriate place to *inform*
 about his project.  If not the Org-mode discussion list, I really don't
 know.  (I assume that nobody denies his *right* to license his work
 according to his wishes, of course, for if not, another explanation
 would be that this project doesn't have any right to *exist* in the
 first place.)

 Since we cannot view the code of this software, then we have no way of
 determining before we use it if it has any purpose other than its
 stated purpose. For all we know, it contains some nasty code that
 takes over your system and deletes all of your files or worse.

 To trust this software because the developer seems to have good
 intentions is foolish. When I saw the announcement, I interpreted it
 as saying this: Gee, here is some neat software I wrote. You can't
 see the code, but trust me, I'm good. I'll open up part of the code
 maybe sometime, but for now you can try it out for free. I'm not going
 to cut you off later and make you pay to continue using this wonderful
 thing. And no, it doesn't do anything bad like steal information or
 trash systems. Trust me. No thanks, I say. Promote this somewhere
 else.

I just want to state here that not everybody feels the same as you.

Cheers,

Rainer


 Scott Randby



-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] parser: verbatim or code?

2015-01-23 Thread Sebastien Vauban
Hello,

Bastien wrote:
 Hi Yasushi, Michael and Nicolas,

 Michael Brand michael.ch.br...@gmail.com writes:
 The syntax for inline code snippets seems easier to read by human and
 to parse with ~ than with = because inline code snippets use ~
 less often than =. I avoid ~/ by using $HOME/ in my notes about
 shell and shell scripts. Some examples:

 I've now fix those inconsistencies, both in the manual and in the
 code.  I followed Michael suggestion to use ~code~ and =verbatim=.

 We may need to update the way export backend treat this markup, and
 try to be consistent here too.

Since = and ~ have been inverted, I think it'd make sense to make
`org-babel-inline-result-wrap' now default to ~%s (instead of =%s),
for markup that produces verbatim text.

That will put fix back as what they were for people having different CSS
or LaTeX styles applied to both markers.

Best regards,
  Seb

-- 
Sebastien Vauban



Re: [O] How to override :eval no in call lines?

2015-01-23 Thread Sebastien Vauban
Charles C. Berry wrote:
 Sebastien Vauban wrote:
 In a long document, I must have :eval no at file level, as this is
 the common setting for most code blocks. However, how do I unset that
 for some call lines.

 See (info (org) Evaluating code blocks)

 Note what it says about 'inside' and 'outside' header arguments. You
 need *both* set to `:eval yes'.

 The inside arg will allow execution of `plus' while the `outside' will
 allow execution of call_plus(...).

 Try this:

 6 + 6 = call_plus[:eval yes](x=6)[:eval yes].

That works, thanks!

However, I really have trouble understanding what are inside and outside
header arguments for.  I still don't get it properly.

Summarizing the above doc:

- inside header arguments are applied to the *evaluation of the code
  block*.  They /affect how the code block is evaluated/.

- end header arguments do not affect evaluation of the named code
  block; instead, they /affect how the results are incorporated/ into
  the Org mode buffer.

I don't get why one has to add :eval yes for both types of headers
arguments.

Moreover, I once read that when evaluating a call line, it is converted
into an ephemeral Emacs Lisp code block equivalent to the call line (and
created at the point of the call line):

  #+begin_src emacs-lisp :var result=NAME(ARGUMENTS) INSIDE-HEADER-ARGS
result
  #+end_src

which is evaluated in place.

Where do END-HEADER-ARGS fit into that picture?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] long outline entries

2015-01-23 Thread e.fraga
On Thursday, 22 Jan 2015 at 17:06, Jude DaShiell wrote:
 Is there any way in org-mode to have two things happeautomatically when a 
 long outline entry gets keyed into a file?  First the lines of the outline 
 entry do not go beyond a defined right margin and split on spaces.  
 Second, subsequent lines created by above wrapping start on a left margin 
 that makes it clear to org-mode that these additional lines are all part 
 of the original outline entry since they're inside the indents created by 
 the stars and space that started the original outline entry?  A question 

Maybe auto-fill-mode is what you want?
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-717-gd36bd8



Re: [O] [ANN] [OT] New Android app (Orgzly)

2015-01-23 Thread e.fraga
On Thursday, 22 Jan 2015 at 23:05, Melleus wrote:
 MobileOrg for Android was abandoned finally, was it?

I have no idea.  However, I use it daily and I hope it continues to work
until I no longer use an Android phone...

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-717-gd36bd8



Re: [O] [ANN] [OT] New Android app (Orgzly)

2015-01-23 Thread Karl Voit
* Jose E. Marchesi jema...@gnu.org wrote:
 
 *NOTE* It's about an app which is *not* open source (some parts of code
 will opened, see below).  If you have a problem with that, you can stop
 reading right about now...

 Please stop using the GNU mailing lists to promote proprietary software.

I don't like proprietary software. I promote open solutions wherever
I can and accept a more painful living by ignoring comfy proprietary
solutions.

However, I do like to see (maintained) alternatives of MobileOrg and
I do like to see third party tools using the Org syntax for storing
and managing information.

So: Jose, I like what I see on your web page and please do carry on.
Thanks you for making it clear that your software is not open source
and please keep on doing this.

I will probably never use Orgzly by myself because I like open
solutions. I accept that other people might want to have an
easy-to-use closed alternative solution to use Org on their phone.
It's so much better than using Evernote or other cloud-based
solutions.

Thanks for promoting Org!

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
get Memacs from https://github.com/novoid/Memacs 

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




[O] Traking estimated time for TODO items

2015-01-23 Thread Andreas Hilboll
Dear org experts,

I have a bunch of TODOs which represent tasks that I'd like to do some
time.  When I end up having a certain amount of spare time, I'd like to
be able to get a list of all of these someday tasks which would fit
into the available time frame.  I.e., when I know I have about 30mins,
I'd like to see only those someday tasks which are estimated to be
shorter than 30 mins.

I'd like to see how people are dealing with this sort of thing.  One
easy possibility would be to have tags 1hr, 2hrs, 0hrs, etc.

I appreciate any ideas =)

Cheers,
  Andreas.



Re: [O] Traking estimated time for TODO items

2015-01-23 Thread Sebastien Vauban
Dear Andreas,

Andreas Hilboll wrote:
 I have a bunch of TODOs which represent tasks that I'd like to do some
 time.  When I end up having a certain amount of spare time, I'd like
 to be able to get a list of all of these someday tasks which would
 fit into the available time frame.  I.e., when I know I have about
 30mins, I'd like to see only those someday tasks which are estimated
 to be shorter than 30 mins.

 I'd like to see how people are dealing with this sort of thing.  One
 easy possibility would be to have tags 1hr, 2hrs, 0hrs, etc.

 I appreciate any ideas =)

The right way to do such is by using the property Effort (available
through pressing `C-c C-x e'). Type in there your time estimate.

That will even be used when clocking to show you whether you still have
time to finish your task, or if you're already above your estimate.

For searching for tasks to do, you can then have such an agenda view:

  (tags-todo Effort{}+Effort\0:30\)

PS- IMO, there are still problems about the syntax of that property:
HH:MM format, or days of 8 hours, or days of 24 hours, etc.  See
http://comments.gmane.org/gmane.emacs.orgmode/84360 for more info about
it. But, if you stick to one common format, it should make it.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [babel, bug?] colnames with a list of columns does not work

2015-01-23 Thread Rainer M Krug
Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 Hello Thomas and Rainer,

 Rainer M Krug wrote:
 Sebastien Vauban writes:

 #+begin_src R :rownames yes :colnames '(Lg Nb)
   data(iris)
   head(table(iris$Petal.Length, iris$Species)[, setosa], n=2)
 #+end_src

 returns:

   | |  x |
   |-+|
   |   1 |  1 |
   | 1.1 |  1 |

 while I was expecting:

   |  Lg | Nb |
   |-+|
   |   1 |  1 |
   | 1.1 |  1 |

 WHy should it? The org-info manual states:

 ,
 | The `:colnames' header argument accepts the values `yes', `no', or
 | `nil' for unassigned.  The default value is `nil'.  Note that the
 | behavior of the `:colnames' header argument may differ across
 | languages. 
 `

 It says nothing about accepting any other values.
 Unless I am missing something?

 Yes, you just show that the documentation is not up-to-date, as that
 functionality *is* implemented for most languages.

Ups - wasn't aware of this.

Cheers,

Rainer


 Doing some bit of archeology, I just found out that:

 - Eric wrote a patch to support the above (but it hasn't be applied),

 - I (!) even wrote a test of that functionality (for a shell block) in
   `testing/lisp/test-ob.el'.

 See https://lists.gnu.org/archive/html/emacs-orgmode/2013-04/msg00527.html:

   ┌
   │ It looks like ob-R implements its own result table reconstruction
   │ instead of using the general support.  This is because R actually
   │ has a notion of column names and row names internally.  The
   │ implementation in ob-R does not correctly handle specified colnames
   │ as your example shows.
   │ 
   │ The attached patch brings ob-R closer to the using the unified
   │ general table reconstructed used in most other languages, and fixes
   │ your problem mentioned above.  I haven't applied it however, as it
   │ may introduce other bugs related to specifying column names from
   │ within R.  For example, I'm not sure that it will now correctly
   │ apply column names from a table built entirely from within R.
   │ 
   │ Additional testing by someone more familiar with R than myself would
   │ be greatly appreciated.
   └

 Should such someone (more familiar with R) be able to confirm that his
 patch work without introducing problems, it could be applied so that
 R should behave the same as in most languages...

 Best regards,
   Seb

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] [babel, bug?] colnames with a list of columns does not work

2015-01-23 Thread Sebastien Vauban
Hello Thomas and Rainer,

Rainer M Krug wrote:
 Sebastien Vauban writes:

 #+begin_src R :rownames yes :colnames '(Lg Nb)
   data(iris)
   head(table(iris$Petal.Length, iris$Species)[, setosa], n=2)
 #+end_src

 returns:

   | |  x |
   |-+|
   |   1 |  1 |
   | 1.1 |  1 |

 while I was expecting:

   |  Lg | Nb |
   |-+|
   |   1 |  1 |
   | 1.1 |  1 |

 WHy should it? The org-info manual states:

 ,
 | The `:colnames' header argument accepts the values `yes', `no', or
 | `nil' for unassigned.  The default value is `nil'.  Note that the
 | behavior of the `:colnames' header argument may differ across
 | languages. 
 `

 It says nothing about accepting any other values.
 Unless I am missing something?

Yes, you just show that the documentation is not up-to-date, as that
functionality *is* implemented for most languages.

Doing some bit of archeology, I just found out that:

- Eric wrote a patch to support the above (but it hasn't be applied),

- I (!) even wrote a test of that functionality (for a shell block) in
  `testing/lisp/test-ob.el'.

See https://lists.gnu.org/archive/html/emacs-orgmode/2013-04/msg00527.html:

  ┌
  │ It looks like ob-R implements its own result table reconstruction
  │ instead of using the general support.  This is because R actually
  │ has a notion of column names and row names internally.  The
  │ implementation in ob-R does not correctly handle specified colnames
  │ as your example shows.
  │ 
  │ The attached patch brings ob-R closer to the using the unified
  │ general table reconstructed used in most other languages, and fixes
  │ your problem mentioned above.  I haven't applied it however, as it
  │ may introduce other bugs related to specifying column names from
  │ within R.  For example, I'm not sure that it will now correctly
  │ apply column names from a table built entirely from within R.
  │ 
  │ Additional testing by someone more familiar with R than myself would
  │ be greatly appreciated.
  └

Should such someone (more familiar with R) be able to confirm that his
patch work without introducing problems, it could be applied so that
R should behave the same as in most languages...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Traking estimated time for TODO items

2015-01-23 Thread Eric Abrahamsen
Andreas Hilboll li...@hilboll.de writes:

 Dear org experts,

 I have a bunch of TODOs which represent tasks that I'd like to do some
 time.  When I end up having a certain amount of spare time, I'd like to
 be able to get a list of all of these someday tasks which would fit
 into the available time frame.  I.e., when I know I have about 30mins,
 I'd like to see only those someday tasks which are estimated to be
 shorter than 30 mins.

 I'd like to see how people are dealing with this sort of thing.  One
 easy possibility would be to have tags 1hr, 2hrs, 0hrs, etc.

 I appreciate any ideas =)

 Cheers,
   Andreas.

I don't use the EFFORT property, but I think it's exactly what you want.
See the (org) Effort estimates section of the manual.

Eric




Re: [O] [bug] ox-taskjuggler

2015-01-23 Thread Søren Mikkelsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2015-01-23 09:59, Christian Egli wrote:
 Søren Mikkelsen so...@aamikkelsen.dk writes:
 
 It works, but only for tasks that aren't having a start
 attribute. It is possible to give a warning if the start
 attribute already exists and make the default one, the one
 specified in the attributes (drawer)?
 
 What exactly doesn't work? Are there two start entries in the task?
 One because of the SCHEDULED property and one because of the the
 start property?
 
 Then you might have to remove the start property from 
 org-taskjuggler-valid-task-attributes before adding the other
 valid attributes i.e.
 
 ;; Add other valid attributes. (org-taskjuggler--indent-string 
 (org-taskjuggler--build-attributes task
 org-taskjuggler-valid-task-attributes))
 
 Might have to become (untested)
 
 ;; Add other valid attributes. (org-taskjuggler--indent-string 
 (org-taskjuggler--build-attributes task (remq 'start
 org-taskjuggler-valid-task-attributes)))
 
 HTH Christian
 
The problem by removing the start attribute is that it destroys the
backward compatibility. I want ox-taskjuggler to accept both methods,
where the start property attribute overrules the scheduled attribute,
if this is present.


- -- 
Best regards,
Søren Mikkelsen
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUwjEEAAoJECUE7rt2jWDw5WQH/AhkKBjfWZLryYG+Zqj1D5Re
+JXahe52HYf5oBXeSJHF250wKxF4KSme6JXHBfO5lfT5IZY+YwZTeUxm0a2KXod3
y9bxrWKqNglkqLLHxpwsZMpTGfcy4LOGJwxqL+brcRSJzftf17bpKnD1pcj62/uT
UxLQlWbmmj0WqP4f0xLMtyvkRc5OWDz6T/mylxM0/26cK2xIhdigV42dTXvwFu13
NZdfhL5lUgORHOYseSfV23e/89pnw3V9PIO/4QA/6HEBP7icsSlMb4qiAOMf6wdE
JbPVf4hkYfDmBKcFuWeWKAdz94I/Xcov2/0XoCc/qOFEhhlAvxrFm+KzI/Xjr30=
=EpK7
-END PGP SIGNATURE-




[O] Autogenerating beamer overlay parameter?

2015-01-23 Thread Loris Bennett
Hi,

I want to have the element of a list in a Beamer presentation appear
one-by-one and then finally colour one entry red, so I do the following:

#+TITLE: Test
#+STARTUP: beamer
#+OPTIONS: toc:nil num:nil

* Test
  :PROPERTIES:
  :BEAMER_act: [+-]
  :END:
  Fruit
   - apple
   - *@@beamer:4-@@banana*
   - pear

This works, but is there something generic I can use to generate number
of elements list + 1 to use to get the highlighting to occur at the
right place?

Cheers,

Loris

-- 
This signature is currently under construction.




Re: [O] [ANN] [OT] New Android app (Orgzly)

2015-01-23 Thread Scott Randby
On Fri, Jan 23, 2015 at 3:53 AM, Rainer M Krug rai...@krugs.de wrote:
 Scott Randby sran...@gmail.com writes:

 On 01/22/2015 05:02 PM, Marcin Borkowski wrote:

 Now the question is: what is the most appropriate place to *inform*
 about his project.  If not the Org-mode discussion list, I really don't
 know.  (I assume that nobody denies his *right* to license his work
 according to his wishes, of course, for if not, another explanation
 would be that this project doesn't have any right to *exist* in the
 first place.)

 Since we cannot view the code of this software, then we have no way of
 determining before we use it if it has any purpose other than its
 stated purpose. For all we know, it contains some nasty code that
 takes over your system and deletes all of your files or worse.

 To trust this software because the developer seems to have good
 intentions is foolish. When I saw the announcement, I interpreted it
 as saying this: Gee, here is some neat software I wrote. You can't
 see the code, but trust me, I'm good. I'll open up part of the code
 maybe sometime, but for now you can try it out for free. I'm not going
 to cut you off later and make you pay to continue using this wonderful
 thing. And no, it doesn't do anything bad like steal information or
 trash systems. Trust me. No thanks, I say. Promote this somewhere
 else.

 I just want to state here that not everybody feels the same as you.

I wasn't expecting that everybody would feel the way I feel about the
matter. It is clear from the discussion that some feel fine with this
software because it is alleged to do something desireable. I don't
feel fine with it because it is closed, and I have the same distrust
of the other pieces of proprietary software that have been promoted on
this list through the years.

Scott


 Cheers,

 Rainer


 Scott Randby



 --
 Rainer M. Krug
 email: Raineratkrugsdotde
 PGP: 0x0F52F982



Re: [O] babel: using empty lines in python code while using session

2015-01-23 Thread Puneeth Chaganti
On Tue, Mar 11, 2014 at 6:05 AM, Arun Persaud apers...@lbl.gov wrote:
 Hi

 I started using python in org babel. The manual, for example [1], points
 to the fact that in session mode you can't have empty lines, since they
 will be interpreted differently. However, if you use ipython you can get
 around this, by using the following in your .emacs:

This is great!  Thanks for investigating this, and letting us all
know!  `%cpaste -q` is great!

The advice function required now is much smaller.  Adding it below, in
case anyone else finds it useful.

---

(defun pc/ipython-use-cpaste (args)
  Add a %cpaste and '--' to the body, for IPython magic!.
  (let ((body (nth 1 args)))
(setcar (cdr args) (format %%cpaste -q\n%s\n--\n body

(advice-add 'org-babel-python-evaluate-session
:filter-args 'pc/ipython-use-cpaste)

---



Re: [O] 63 failures for org-test-run-all-tests in an Emacs GUI

2015-01-23 Thread Sebastien Vauban
Nicolas Goaziou wrote:
 Sebastien Vauban writes:
 Nicolas Goaziou wrote:
 Sebastien Vauban writes:

 Did I misunderstand the change of last year (Dec '13) or should `sh'
 language be abandoned in favor of `shell'?

 I think you're right.

 IIUC, then, those blocks should be updated: ...
 And those inline calls as well: ...
 I am willing to make the patch.

 Great. Please do.

 Here it is.

 Thanks. 

 Unfortunately, I'm still unable to apply your patch. Before using git
 format-patch, please ensure that your patch is the only one on top of
 HEAD, and send it again.

Here is a patch you can apply with no problem -- just checked it on
a fresh copy of master.

And you know what?  I've understood the problem: when editing the *patch
file* to include the results of `C-x 4 a', and *saving* it, all the
trailing spaces *in the patch file* are removed, because of my custom:

#+begin_src emacs-lisp
  (add-hook 'before-save-hook (lambda ()
;; Nuke all trailing whitespaces in the
;; buffer.
(unless (eq major-mode 'message-mode)
  (delete-trailing-whitespace
#+end_src

Hence, Git fails to find some of the lines it searches for, when trying
to apply my changes...

Best regards,
  Seb

-- 
Sebastien Vauban
From 744facc265a7fc3808d8af1438c2393be9168ef4 Mon Sep 17 00:00:00 2001
From: Sebastien Vauban sva-n...@mygooglest.com
Date: Fri, 23 Jan 2015 16:13:16 +0100
Subject: [PATCH] Replace `sh' language by `shell'

* testing/README, testing/examples/babel.org, ob-shell-test.org, testing/lisp/test-ob-exp.el, test-ob.el: Replace `sh' language by `shell'.
---
 testing/README |  2 +-
 testing/examples/babel.org | 54 +++---
 testing/examples/ob-shell-test.org | 11 
 testing/lisp/test-ob-exp.el| 12 -
 testing/lisp/test-ob.el| 24 -
 5 files changed, 51 insertions(+), 52 deletions(-)

diff --git a/testing/README b/testing/README
index 34f6fcd..d8a31ac 100644
--- a/testing/README
+++ b/testing/README
@@ -17,7 +17,7 @@ relative to the base of the Org-mode directory.
 
 Also note that many of the current tests uses babel evaluation...
 
-#+BEGIN_SRC sh :dir (expand-file-name ..)
+#+BEGIN_SRC shell :dir (expand-file-name ..)
   # For Emacs earlier than 24, add -L /path/to/ert
   emacs -Q --batch \
 -L lisp/ -L testing/ -L testing/lisp -l lisp/org.el \
diff --git a/testing/examples/babel.org b/testing/examples/babel.org
index 1f9ce3d..7bdc2ff 100644
--- a/testing/examples/babel.org
+++ b/testing/examples/babel.org
@@ -125,7 +125,7 @@
 (list (my-map 'list #'+
   (append prev-row '(0))
   (append '(0) prev-row)))
-  
+
   (pascals-triangle n)
 #+end_src
 
@@ -196,9 +196,9 @@ an = sign.
   :results:  silent
   :ID:   54cb8dc3-298c-4883-a933-029b3c9d4b18
   :END:
-Here is one in the middle src_sh{echo 1} of a line.
-Here is one at the end of a line. src_sh{echo 2}
-src_sh{echo 3} Here is one at the beginning of a line.
+Here is one in the middle src_shell{echo 1} of a line.
+Here is one at the end of a line. src_shell{echo 2}
+src_shell{echo 3} Here is one at the beginning of a line.
 
 * exported inline source block
 :PROPERTIES:
@@ -206,10 +206,10 @@ src_sh{echo 3} Here is one at the beginning of a line.
 :results:  silent
 :exports:  code
 :END:
-Here is one in the middle src_sh{echo 1} of a line.
-Here is one at the end of a line. src_sh{echo 2}
-src_sh{echo 3} Here is one at the beginning of a line.
-Here is one that is also evaluated: src_sh[:exports both]{echo 4}
+Here is one in the middle src_shell{echo 1} of a line.
+Here is one at the end of a line. src_shell{echo 2}
+src_shell{echo 3} Here is one at the beginning of a line.
+Here is one that is also evaluated: src_shell[:exports both]{echo 4}
 
 * mixed blocks with exports both
   :PROPERTIES:
@@ -235,27 +235,27 @@ Here is one that is also evaluated: src_sh[:exports both]{echo 4}
   :noweb-sep: 
   :END:
 
-#+begin_src sh :tangle yes :noweb yes :shebang #!/bin/sh
+#+begin_src shell :tangle yes :noweb yes :shebang #!/bin/sh
   fullest-disk
 #+end_src
 
 ** query all mounted disks
-#+begin_src sh :noweb-ref fullest-disk
+#+begin_src shell :noweb-ref fullest-disk
   df
 #+end_src
 
 ** strip the header row
-#+begin_src sh :noweb-ref fullest-disk
+#+begin_src shell :noweb-ref fullest-disk
   |sed '1d'
 #+end_src
 
 ** sort by the percent full
-#+begin_src sh :noweb-ref fullest-disk
+#+begin_src shell :noweb-ref fullest-disk
   |awk '{print $5   $6}'|sort -n |tail -1
 #+end_src
 
 ** extract the mount point
-#+begin_src sh :noweb-ref fullest-disk
+#+begin_src shell :noweb-ref fullest-disk
   |awk '{print $2}'
 #+end_src
 * resolving sub-trees as references
@@ -290,20 +290,20 @@ has length 14
   :results:  silent
   :ID:   

Re: [O] Autogenerating beamer overlay parameter?

2015-01-23 Thread Aaron Ecay
Hi Loris,

Since this question is mostly about beamer, you might have better luck
with it at the TeX Stack Exchange site: https://tex.stackexchange.com/.

-- 
Aaron Ecay



Re: [O] [PATCH] Replace `org-ctrl-c-ctrl-c' by `org-babel-execute-maybe' in tests

2015-01-23 Thread Sebastien Vauban
Nicolas Goaziou wrote:
 Sebastien Vauban writes:

 Could you use git format-patch instead?

 Of course.  Sorry.  Here it is.

 I still cannot apply it. It may be related to a whitespace change in
 test-ob.el:

   Application : Replace `org-ctrl-c-ctrl-c' by `org-babel-execute-maybe' in 
 tests
   error: le patch a échoué : testing/lisp/test-ob.el:269
   error: testing/lisp/test-ob.el : le patch ne s'applique pas

Attached a patch that I certify working -- I've applied it myself with
success on a current master clone.

I still don't understand why the previous one did not work (SPC vs TAB
or something like that, same guess as you).

Best regards,
  Seb

-- 
Sebastien Vauban
From 82c1f3bc268a856e6d20250c028157ede33528d7 Mon Sep 17 00:00:00 2001
From: Sebastien Vauban sva-n...@mygooglest.com
Date: Fri, 23 Jan 2015 15:47:43 +0100
Subject: [PATCH] Replace `org-ctrl-c-ctrl-c' by `org-babel-execute-maybe'

* testing/lisp/test-ob-emacs-lisp.el, test-ob-ruby.el, test-ob.el: Replace `org-ctrl-c-ctrl-c' by `org-babel-execute-maybe'.
---
 testing/lisp/test-ob-emacs-lisp.el | 10 ++---
 testing/lisp/test-ob-ruby.el   |  8 ++--
 testing/lisp/test-ob.el| 88 +++---
 3 files changed, 53 insertions(+), 53 deletions(-)

diff --git a/testing/lisp/test-ob-emacs-lisp.el b/testing/lisp/test-ob-emacs-lisp.el
index f771ee3..37d52a6 100644
--- a/testing/lisp/test-ob-emacs-lisp.el
+++ b/testing/lisp/test-ob-emacs-lisp.el
@@ -1,6 +1,6 @@
 ;;; test-ob-emacs-lisp.el

-;; Copyright (c) 2012, 2013, 2014 Free Software Foundation, Inc.
+;; Copyright (c) 2012-2015 Free Software Foundation, Inc.
 ;; Authors: Eric Schulte, Martyn Jago

 ;; This file is not part of GNU Emacs.
@@ -29,7 +29,7 @@
 ;;
 #+end_src
 (org-babel-next-src-block)
-(org-ctrl-c-ctrl-c)
+(org-babel-execute-maybe)
 (should (re-search-forward results: nil t))
 (forward-line)
 (should
@@ -42,7 +42,7 @@
 #+end_src

 (org-babel-next-src-block)
-(org-ctrl-c-ctrl-c)
+(org-babel-execute-maybe)
 (should (re-search-forward results: nil t))
 (forward-line)
 (should
@@ -56,7 +56,7 @@
 ;;
 #+end_src
 (org-babel-next-src-block)
-(org-ctrl-c-ctrl-c)
+(org-babel-execute-maybe)
 (re-search-forward results nil t)
 (forward-line)
 (should (string=
@@ -69,7 +69,7 @@
 2;;
 #+end_src
 (org-babel-next-src-block)
-(org-ctrl-c-ctrl-c)
+(org-babel-execute-maybe)
 (re-search-forward results nil t)
 (forward-line)
 (should (string=
diff --git a/testing/lisp/test-ob-ruby.el b/testing/lisp/test-ob-ruby.el
index ee7e837..eb5233b 100644
--- a/testing/lisp/test-ob-ruby.el
+++ b/testing/lisp/test-ob-ruby.el
@@ -1,6 +1,6 @@
 ;;; test-ob-ruby.el --- tests for ob-ruby.el

-;; Copyright (c) 2013 Oleh Krehel
+;; Copyright (c) 2013-2015 Oleh Krehel
 ;; Authors: Oleh Krehel

 ;; This program is free software; you can redistribute it and/or modify
@@ -28,7 +28,7 @@ s = \2\
 s = \3\
 puts s
 #+end_src
-  (org-ctrl-c-ctrl-c)
+  (org-babel-execute-maybe)
   (substring-no-properties
(buffer-string)))
 		   #+begin_src ruby :session :results output
@@ -47,7 +47,7 @@ puts s
 s = \5\
 puts s
 #+end_src
-  (org-ctrl-c-ctrl-c)
+  (org-babel-execute-maybe)
   (substring-no-properties
(buffer-string)))
 		   #+begin_src ruby :session :results output
@@ -63,7 +63,7 @@ puts s
 (should (equal (org-test-with-temp-text #+begin_src ruby :session :results output
 puts s
 #+end_src
-  (org-ctrl-c-ctrl-c)
+  (org-babel-execute-maybe)
   (substring-no-properties
(buffer-string)))
 		   #+begin_src ruby :session :results output
diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el
index 989c201..1f375ed 100644
--- a/testing/lisp/test-ob.el
+++ b/testing/lisp/test-ob.el
@@ -1,6 +1,6 @@
 ;;; test-ob.el --- tests for ob.el

-;; Copyright (c) 2010-2014 Eric Schulte
+;; Copyright (c) 2010-2015 Eric Schulte
 ;; Authors: Eric Schulte, Martyn Jago

 ;; This file is not part of GNU Emacs.
@@ -299,18 +299,18 @@ this is simple
 ;; src_ at bol line 1...
 (org-test-with-temp-text
 	test-line
-  (goto-char (point-min)) (org-ctrl-c-ctrl-c)
+  (goto-char (point-min)) (org-babel-execute-maybe)
   (should (string=
	   (concat test-line  =1=)
	   (buffer-substring-no-properties (point-at-bol) (point-at-eol
-  (forward-char) (org-ctrl-c-ctrl-c)
+  (forward-char) (org-babel-execute-maybe)
   (should (string=
	   (concat test-line  =1= =1=)
	   (buffer-substring-no-properties (point-at-bol) (point-at-eol
   (re-search-forward 1})
-  (should-error (org-ctrl-c-ctrl-c))
+  (should-error (org-babel-execute-maybe))
   (backward-char) ;; last char of block body
-  (org-ctrl-c-ctrl-c)
+  (org-babel-execute-maybe)
   (should (string=
	   (concat test-line  =1= =1= =1=)
	   (buffer-substring-no-properties (point-at-bol) (point-at-eol)
@@ -318,17 +318,17 @@ 

Re: [O] Newbie question: how to get a report of DONE items

2015-01-23 Thread J. David Boyd
Pete Siemsen siem...@ucar.edu writes:

 I'm a newbie, just switching to org-mode.

 For work, I have to produce quarterly reports that list what I've
 done. I want a report of all the items that were closed within a given
 date range.

 I could write some code to do this, but I suspect org-made comes with
 something close :-)

 -- Pete


Look on the screen after you hit Ctl-c a.

Dave