Re: [O] I have terminated my assignment

2013-04-03 Thread Bastien
Jambunathan K kjambunat...@gmail.com writes:

 For the sake of record, I haven't authorized Bastien to move the
 ox-html.el and ox-odt.el out of the ./contrib/lisp directory in to the
 main ./lisp/ directory.  He didn't seek my permissions to move the file
 away from contrib/lisp in to lisp/.

1. Nicolas announced the merge of new exporters on Feb, 2nd
   http://article.gmane.org/gmane.emacs.orgmode/65574

   As a contributor to org-e-html.el and org-e-odt.el, you
   perfectly knew the merge will end up in putting ox-html.el
   and ox-odt.el in lisp/.

   If you didn't want the files to go into core, you should
   have said it at this time.

   We never received a word from you suggesting that you may
   refuse to merge your changes into Org's core.

2. You were well aware of the merge since you participated in
   the discussions that followed:

   http://article.gmane.org/gmane.emacs.orgmode/65728
   http://article.gmane.org/gmane.emacs.orgmode/65872

So -- Nicolas and I had absolutely no reason to believe that
you would oppose to merging your changes into lisp/.

You also stated that the main reason for your current behavior
is to delay Org 8.0, to create chaos and to annoy me.

I don't think your strategy is very well-thought, because all
your moves may only annoy Emacs developers, not me.  I'm fine
with releasing ox-html.el and ox-odt.el in Org 8.0.

-- 
 Bastien



Re: [O] some key sequence transform my text in outline

2013-04-03 Thread Luca Ferrari
Apparently I found the sequence that lead to the problem: I opened a
#+begin_src on a line and then pressed TAB on such line. This folded
the following text until a new #+end_src is found, masking whole
sections. The problem is that this is no more able to be expanded.
However, editing the text file externally and removing some text after
the #+begin_src (in particular a table) solved the problem.
I'm investigating more...

Thanks,
Luca

On Wed, Mar 27, 2013 at 1:39 PM, Marcin Borkowski mb...@wmi.amu.edu.pl wrote:
 Dnia 2013-03-27, o godz. 13:22:47
 Luca Ferrari fluca1...@infinito.it napisał(a):

 Hi,
 I cannot understand exactly what I type, but this is what happened
 twice. I was editing in the middle of a document, in particular
 within a ~ block with a src block on the next line, as in the
 following:

 I was editing ~here~
 #+begin_src shell
 


 Now, with some key sequence Org eated all the text below the cursor
 position, transforming it into an outline block and therefore showing
 me three dots. The problem is that I'm unable to expand it anymore
 with TAB, and moreover I cannot delete it without killing the whole
 outline itself. I'm sure I've not pressed the SHIFT+TAB sequence, that
 apparently does the same but allows me to expand the outline, while
 the one I'm getting is not expandable in the ordinary way.
 I know this is not a detailed explaination, but I don't understand
 exactly what I (wrongly) activated.
 Any suggestion?

 C-h l (or M-x view-lossage)

 Thanks,
 Luca

 Best,

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




Re: [O] I have terminated my assignment

2013-04-03 Thread Jambunathan K

 You also stated that the main reason for your current behavior
 is to delay Org 8.0, to create chaos and to annoy me.

Yes.

 I'm fine with releasing ox-html.el and ox-odt.el in Org 8.0.

By releasing Org-8.0 your responsibilities will only increase, not
decrease.  You will be obliged to purge my changes and make sure that
the replacement is ready and available for merge with Emacs.

Someone - it may not be you yourself - from within the community would
have paid the price for annoying me.  I will try hard to extract a
price.

ps: I dare you to re-write those changes.  Show me the code Luke.

Jambunathan K.



Re: [O] I have terminated my assignment

2013-04-03 Thread Carsten Dominik
Jambunathan,

I am not entering a discussion here, based on some wildly
constructed examples.  What I am doing is countering the
impression you are lately trying to make, that these files
were never intended for release and Emacs.  You are trying
to imply this by insisting that they were in contrib.
This is a false impression for two reasons, as I have shown
in my previous mail.

The copyright quotation is not about the year, but about
the fact that it says FSF, not Jambunathan.  This was
never changed, also not when you changed the author name
from Nicolas Goaziou (because the files was apparently
created by changing a copy org-e-latex.el) to your name.

http://orgmode.org/cgit.cgi/org-mode.git/commit/EXPERIMENTAL/org-e-html.el?id=fac58412f3c23a4c3cb03e050cd7809cfc8651fe

Org-mode is not a company.  It is an open source project,
and the complete project history is open to the world.
It's most important distribution channel is as git
repository - so it is published and republished after
each push to the main repository at orgmode.org. 
Introducing cuts like a tar ball release is artificial
for this discussion.  At each state it may contain bugs
and typos, but fact that the copyright notice was never
changed shows at the very least that you did not care,
and probably it shows that you, at the time, were
proud to contribute to the Org-mode and Emacs and
perfectly aware that the copyright was transferred to
the FSF.

It is known that your intent has now changed, but the
original intent was plain to you and others and has caused
others to rely on the code, to add and invest.  This is why
I am helping to protect the code.  Not to pry it away from
you[1], but to protect users of and contributors to Org-mode.
If we cannot trust that code contributed to a project like
Org-mode can be used and built upon, then the letter and
spirit of free software is endangered.  Even if you try
to paint yourself into the victim role, you are quite the
opposite in this situation.

- Carsten

[1] What would I have to gain from that?  I would have more
fun rewriting it than I have writing this mail, but I do
what I consider necessary.


On 3.4.2013, at 07:52, Jambunathan K kjambunat...@gmail.com wrote:

 
 Carsten
 
 When this code first entered the Org-mode repository, it was not in
 contrib/.  The code entered in EXPERIMENTAL/.  Both files where marked
 Copyright (C) 2011-2012 FSF and Copyright (C) 2010-2012 FSF from
 the first moment they entered into the repository, in agreement with
 Jambunathan's standing assignment with the FSF at the time.
 
 http://orgmode.org/cgit.cgi/org-mode.git/commit/EXPERIMENTAL/org-e-html.el?id=93ec2c7a5034944f5f6c77be6f37c49b4a697b72
 
 http://orgmode.org/cgit.cgi/org-mode.git/commit/EXPERIMENTAL/org-e-odt.el?id=c2ea76e71034a161d875647b27cfbd72264b5d64
 
 The files moved to contrib/ only in April of 2012, in a period when
 the exporter structure was fleshed out and completed.  This move was
 clearly a staging event for a later move into core, rather than a
 change of copyright assignment.  While unassigned files are are only
 allowed in contrib/, the reverse is not true and never was.
 
 What does FSF record indicate?  
 
 Last I checked, it indicates that Emacs contains no such files and these
 files are unknown to the Emacs product.  FSF email records also say that
 I have out of my own initiative refused to assign *my* rights to them.
 
 
 
 I haven't authorized Bastien to move contrib/lisp changes to lisp/.  I
 invite him to show a proof to that effect. 
 
 
 
 What you indicate is daily routine.  IMNSHO, they are good to know but
 not substantial to resolve the dispute.  
 
 It is common knowledge that unreleased source is *known* to show wrong
 Copyright years prior to release.  Corporations securely back up - as in
 put in a locker - only released tar balls.
 
 
 
 What matters is the product (product here is Emacs) and a public release
 of product together with source tarball.
 
 Org-8.0 is not released yet.  It is a work-in-progress and not known to
 public at large.  Org-8.0 is not in Emacs, it is merely a staging ground
 for Emacs and Emacs maintainers will do their own due diligence
 *independent* of the due diligence done by Org maintainer.
 
 
 
 Thought experiment: 
   I steal my employer's code, slap my authorship and assign copyright to
   FSF.  Does that mean the code is assigned to FSF? No.
 
 
 
 Bottomline: 
   Intent to act is not the same as act itself.
 
 Jambunathan K.




Re: [O] I have terminated my assignment

2013-04-03 Thread Jambunathan K

 It is known that your intent has now changed,

Correct.

 but the original intent was plain to you and others

Yes.

 and has caused others to rely on the code, to add and invest.

Code is GPL.

Nicolas Goaziou has already grown in respect by committing a fix to the
ODT exporter in a manner that makes Christian Moe happy.  I am happy.

I will not mention how much Bastien invested in a fix for the problem
and how his fix fared when it was put to test.  This pattern of Bastien
playing to the gallery is not merely anecdotal but has repeated more or
less regularly for the last 3 years or so.

The truth of the matter is Bastien has been unwilling to spend
substantial time maintaing Orgmode since he took over.  I am unwilling
to trust my work in the hands of someone whose sole purpose is to please
the crowd but runs of shy of taking hard considered decisions or
actually supporting the ongoing work.  To my eyes, his maintainership is
ceremonial.  The unwanted side-effect is that he is having an influence
that is incommensurate with the responsibility he is shouldering.

 This is why I am helping to protect the code.  Not to pry it away from
 you[1], but to protect users of and contributors to Org-mode.  If we
 cannot trust that code contributed to a project like Org-mode can be
 used and built upon, then the letter and spirit of free software is
 endangered.  Even if you try to paint yourself into the victim role,
 you are quite the opposite in this situation.

Fair enough.

 [1] What would I have to gain from that?  I would have more
 fun rewriting it than I have writing this mail, but I do
 what I consider necessary.

Actions speak louder than words.  That's where Nicolas Goaziou has
scored very consistently.

Bottomline: I will co-operate but not under current maintainer who has
never acted in a way to win my trust.  I am speaking of a 3 year horizon
here.

Jambunathan K.



[O] global keys not working on version 20130401

2013-04-03 Thread Chris Henderson
I have installed version 20130401 on emacs 24.3 on os x mountain lion via
M-x package list. But my global keys don't seem to be working. I get an
error:
Invalid function: org-no-popups. The only orgmode that seem to work for me
is version: 20121217.

My global keys are:

^c-c capture
^c-t todo
^c-^c - org-tag-list

Here's the snippet from .emacs

(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
 (add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when
global-font-lock-mode is on
 (global-set-key \C-cl 'org-store-link)
 (global-set-key \C-ca 'org-agenda)
 (global-set-key \C-cb 'org-iswitchb)
 (global-set-key \C-cl 'org-store-link)
 (global-set-key \C-cc 'org-capture)

(setq org-tag-alist '((computer . ?c) (Errands . ?e) (work . ?o)
(calls . ?a)
(Internet . ?i) (waitingfor . ?w)))

(setq org-agenda-files '(~/org))

(setq org-capture-templates
   '((t Tasks entry (file+headline ~/org/gtd_home.org Tasks)
  ** %?\n  %i Added:%U)
 (p Project entry (file+headline ~/org/gtd_home.org
Projects)
  ** %?\n  %i Added:%U)))

(setq org-todo-keywords
'((sequence TODO(t) | DONE(d))
  (sequence | CANCELED(c

(setq org-todo-keyword-faces
   '((CANCELED . (:foreground blue :weight bold

Thanks.


Re: [O] I have terminated my assignment

2013-04-03 Thread Jambunathan K
Carsten Dominik carsten.domi...@gmail.com writes:

 Org-mode is not a company.

I am not taking about Orgmode per-se.  I am talking about Orgmode in so
as far as it is part of Emacs, the copy rights to which are owned and
enforced by FSF. 

Much of my argument relate to policies of Emacs.

FSF *is* an organization.  If one assigns right to FSF, then one can
turn to FSF for doing all the grunt work of enforcing compliance in case
of license violation.

If one is not assigning right to FSF, then one is left to his own means.

See http://www.gnu.org/licenses/why-assign.html



Re: [O] yanking a headline in folded state

2013-04-03 Thread Bastien
Hi 42,

42 147 aeus...@gmail.com writes:

 So in fewer words: how do I yank a headline in its folded state?

In Emacs 24.3, there is `yank-excluded-properties' and
`yank-handled-properties' which allow you to select what
properties are excluded/handled by a yank.

HTH,

-- 
 Bastien



Re: [O] css link colors for Worg are difficult to spot

2013-04-03 Thread Bastien
Hi John,

John Hendy jw.he...@gmail.com writes:

 I find the links difficult to spot in Worg sometimes, especially
 depending on monitor angle and current brightness setting. Is this an
 issue for anyone else?

Yes, it is for me too.

 I fiddled around in /style/worg.css a bit and didn't land on anything
 too great. I'm wondering if anyone with a design background might have
 suggestions for link colors? I guess if no one else is affected by
 this... I'll just deal with it and mine sweep wildly with my mouse
 when I think a link should be in there somewhere :)

Even if that's not great, something *better* would be nice already.
The difficult part is to stick to the colors of the Unicorn while
making the link more readable -- if you can enhance this, the change
will be welcome.

Thanks,

-- 
 Bastien



Re: [O] css link colors for Worg are difficult to spot

2013-04-03 Thread Christian Moe

Bastien writes:
 Even if that's not great, something *better* would be nice already.
 The difficult part is to stick to the colors of the Unicorn while
 making the link more readable

Surely you mean the colors of the Ostrich? (It's April 3, and the
ostrich is still up on the main Orgmode page.)

Ostriches hide in plain sight by laying their head and neck on the
ground to look like stones or mounds of earth, hence the head-in-sand
myth. So camouflaging the links to blend in with their environment seems
like the right thing to do.

:)

Yours,
Christian 



Re: [O] global keys not working on version 20130401

2013-04-03 Thread Bastien
Hi Chris,

Chris Henderson henders...@gmail.com writes:

 I have installed version 20130401 on emacs 24.3 on os x mountain lion
 via M-x package list. But my global keys don't seem to be working. I
 get an error:

See this excerpt from http://orgmode.org/elpa.html:

,
| By default, Emacs loads packages after it loads your Emacs init file.
| 
| We recommend intializing packages as early as possible in your Emacs
| init file so that your Org configuration will be correctly handled:
| 
| ;; -*- emacs-lisp -*-
| (package-initialize);; Initialize  Install Package
| ;; (setq org-...)   ;; Your custom settings
| 
| The package initialization should happen before you require Org and
| set any Org options.
`

You surely need to add (package-initialize) before Org options in your
.emacs.  Otherwise, Emacs will load the built-in Org and you will end
up with mixed autoloads.

HTH,

-- 
 Bastien



Re: [O] Visibility cycling bugs when an org file ends with a plain list

2013-04-03 Thread Bastien
Hi James,

James Harkins jamshar...@gmail.com writes:

 I don't remember if this was reported or not. I frequently get the
 following message in the mini-buffer, after trying to expand the last
 top-level node in a file. The behavior seems to depend on the last
 node containing a plain list.

 byte-code: Invalid search bound (wrong side of point)

This should be fixed now.  Thanks for the detailed report,

-- 
 Bastien



Re: [O] css link colors for Worg are difficult to spot

2013-04-03 Thread Vincent Beffara
  Even if that's not great, something *better* would be nice already.
  The difficult part is to stick to the colors of the Unicorn while
  making the link more readable
 
 Surely you mean the colors of the Ostrich? (It's April 3, and the
 ostrich is still up on the main Orgmode page.)

The angry unicorn is still in worg though ...




Re: [O] css link colors for Worg are difficult to spot

2013-04-03 Thread Bastien
Vincent Beffara vbeff...@ens-lyon.fr writes:

 The angry unicorn is still in worg though ...

And it's back on orgmode.org too.

No time for procrastination anymoe :)

-- 
 Bastien



Re: [O] [PATCH] Fix several byte-compile warnings in org-contrib files

2013-04-03 Thread Bastien
Hi Aaron,

Aaron Ecay aarone...@gmail.com writes:

 * contrib/lisp/org-bibtex-extras.el: convert to using cl-lib functions
   (obe-bibtex-file),
   (obe-html-link-base): add a 'group argument to defcustoms
   (obe-citations): replace non-existent org-babel-clean-text-properties
   with org-no-properties
 * contrib/lisp/org-git-link.el: add an eval-and-compile to avoid
   undefined function warnings
   (org-git-show): use with-current-buffer instead of
   save-excursion+set-buffer

I applied some of the changes above:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=137fd3
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=69eb39

Thanks!

Please help us with the Changelog formatting, there are
many tiny issues with your changelogs -- see details:

  http://orgmode.org/worg/org-contribute.html#sec-5

Best,

-- 
 Bastien



Re: [O] yanking a headline in folded state

2013-04-03 Thread Bastien
42 147 aeus...@gmail.com writes:

 Therefore, I was yanking the org text rather than org-yanking it.
 org-cut-special turns out not to be necessary, although I appreciate the
 suggestion; and in fiddling around with it, I found the solution to my
 problem.

There is also this variable: `org-yank-folded-subtrees' of potential
interest for the readers of this thread.

Best,

-- 
 Bastien



Re: [O] What Happened to org-export-html-extension?

2013-04-03 Thread Bastien
Hi Ian,

Ian Barton li...@wilkesley.net writes:

 Thanks for the clear explanation. Using my own function works, but this
 does seem to be a regression. Defining your own extension is useful e.g. if
 you want to emit .php files.

Indeed.  I fixed this regression, and using either :html-extension in
publication projects or (setq org-html-extension php) globally will
work now.

Thanks for reporting this,

-- 
 Bastien



Re: [O] export parameters in ORG file

2013-04-03 Thread Suvayu Ali
On Sun, Mar 31, 2013 at 11:45:09PM -0400, J. David Boyd wrote:
 
 Back in the day, when I C-x C-e to export from an org file, I could tap
 a key and put all the control factors into the top of the file.
 
 Now I don't see that option when I do this.
 
 Are they gone?  Or is it still possible to do this?

It's gone: http://mid.gmane.org/87ehgqfr0o@gmail.com

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] export parameters in ORG file

2013-04-03 Thread Bastien
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 On Sun, Mar 31, 2013 at 11:45:09PM -0400, J. David Boyd wrote:
 
 Back in the day, when I C-x C-e to export from an org file, I could tap
 a key and put all the control factors into the top of the file.
 
 Now I don't see that option when I do this.
 
 Are they gone?  Or is it still possible to do this?

 It's gone: http://mid.gmane.org/87ehgqfr0o@gmail.com

... but sorely missing.  I plan to try resurrect this.

-- 
 Bastien



Re: [O] [PATCH] replace function name in org-bbdb

2013-04-03 Thread Bastien
Hi Rasmus,

Rasmus ras...@gmx.us writes:

 org-bbdb-anniversary was not working on my system before using bbdb3
 from package.el (probably from MELPA...).  This fixes this by renaming
 a function which has been changed upstream.

 Looks good.  Is there any versioning we can check in order to know
 what function's name will the users use?

 bbdb3 hasn't been released yet.  It's a moving target and I would
 assume that people who use it are on the edge of the development. . .
 The function(s) in question were renamed four months ago.

I fixed this slightly differently:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=04b13a

Thanks for spotting this and providing the patch!

Best,

-- 
 Bastien



Re: [O] org-html-postamble-format and #+DATE: specification in 8.0pre

2013-04-03 Thread Alan Schmitt
Dieter Wilhelm writes:

 Dear list,

 I changed the html postamble

 org-html-postamble-format is a variable defined in `ox-html.el'.
 Its value is
 ((en p class=\author\Author: %a (%e)/p\np class=\date\Date: %d 
 /p\np class=\creator\Generated by %c /p\n)
  (de p class=\author\Autor: %a (%e)/p\np class=\date\Datum: %d 
 /p\np class=\creator\Generiert von %c /p\n)
  (fr p class=\author\Auteur: %a (%e)/p\np class=\date\Date: %d 
 /p\np class=\creator\Generated by %c /p\n))

 Original value was 
 ((en p class=\author\Author: %a (%e)/p\np class=\date\Date: 
 %d/p\np class=\creator\Generated by %c/p\np 
 class=\xhtml-validation\%v/p))

 but now I can't specify a date in the form

 #+DATE:  %Y-%m-%d

 Formerly an empty specification meant the current date, but now in the
 preamble the date remains empty.

I'm having the same issue. Did you find a way around it?

Alan



Re: [O] I have terminated my assignment

2013-04-03 Thread Eric Schulte
Jambunathan K kjambunat...@gmail.com writes:

 You also stated that the main reason for your current behavior
 is to delay Org 8.0, to create chaos and to annoy me.

 Yes.


I would suggest that further emails from Jambunathan be ignored.  The
more effort expended reasoning with him, the more time wasted by
members of the Org-mode community who are valuable contributors.

Also, despite his bellicose threats, the *only* means he has to hurt the
Org-mode community is the tool he is using now; namely trolling our
mailing list.  Lets take this from him.

Cheers,

PS. For gnus users, the following may help.

;; Info link on using kill files to ignore certain posts
(info (gnus)Kill Files)

To use a kill file, from the Org-mode mailing list summary buffer
press M-k, and then insert the following (or something like it) into
the resulting buffer, save it and close it.

(gnus-kill From Jambunathan K)

If Jambunathan replies to this message, please don't let me know,
I'll be blissfully unaware.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-03 Thread Eric Schulte
Carsten Dominik carsten.domi...@gmail.com writes:

 On 2.4.2013, at 23:54, Eric Schulte schulte.e...@gmail.com wrote:

 Gary Oberbrunner ga...@oberbrunner.com writes:
 
 Aha -- you have to use the :var syntax on the begin_src line, not the
 params-in-parens syntax on the name line.  Your version works:
 
 #+name: example-block
 #+begin_src sh :var input=
  echo input is $input
 #+end_src
 
 but this doesn't:
 
 #+name: example-block(input=)
 #+begin_src sh
  echo input is $input
 #+end_src
 
 The doc seems to say it should work the same, in
 http://orgmode.org/manual/var.html (see Alternate Argument Syntax).
 
 
 At this point I'm not sure if the documentation or the code should be
 amended.  I've personally never liked the args-in-block-name syntax, but
 I don't recall if we formally decided to abandon it, or if it has simply
 been broken in a recent commit.

 I am not sure if I have any say here, but I agree that the args in
 name notation looks not as good and might be considered for
 abolishment.


Great, I agree wholeheartedly and I'll update the documentation
accordingly (and take a look at lob-ingest to ensure it no longer uses
this var-in-name style).

Cheers,


 - Carsten

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH 03/10] Clean up various org-babel-*-maybe commands

2013-04-03 Thread Bastien
Hi Aaron,

Aaron Ecay aarone...@gmail.com writes:

 * lisp/ob-core.el (org-babel-if-in-src-block): New macro
 (org-babel-execute-src-block-maybe),
 (org-babel-expand-src-block-maybe),
 (org-babel-load-in-session-maybe),
 (org-babel-pop-to-session-maybe): Use it

A slightly enhanced version:

* lisp/ob-core.el (org-babel-if-in-src-block): New macro.
(org-babel-execute-src-block-maybe)
(org-babel-expand-src-block-maybe)
(org-babel-load-in-session-maybe, org-babel-pop-to-session-maybe):
Use it.

In a nutshell:

1. No commas outside parentheses;
2. A full-stop at the end of sentences...

C-x 4 a and M-q should be all what you need.

 org-babel-get-src-block-info is a potentially expensive operation, which
 is why its ‘light’ argument exists.  But in any case, it is overkill to
 query the whole info, if all that is needed is whether point is in a
 block or not.  Factor the simplified common code out into a macro.

The let-bound info variable is not only used to check if we are within
a src block, it is also passed as an argument to functions, see the ^^
marks below.

 ---
  lisp/ob-core.el | 31 +--
  1 file changed, 17 insertions(+), 14 deletions(-)

 diff --git a/lisp/ob-core.el b/lisp/ob-core.el
 index 723aa9d..283628e 100644
 --- a/lisp/ob-core.el
 +++ b/lisp/ob-core.el
 @@ -365,15 +365,22 @@ of potentially harmful code.
(or (org-babel-execute-src-block-maybe)
(org-babel-lob-execute-maybe)))
  
 +(defmacro org-babel-when-in-src-block (rest body)
 +  `(if (or (org-babel-where-is-src-block-head)
 +   (org-babel-get-inline-src-block-matches))
 +   (progn
 +  ,@body
 +  t)
 + nil))

(Please always add a docstring of defuns and defmacros)

  (defun org-babel-execute-src-block-maybe ()
Conditionally execute a source block.
  Detect if this is context for a Babel src-block and if so
  then run `org-babel-execute-src-block'.
(interactive)
 -  (let ((info (org-babel-get-src-block-info)))
 -(if info
 - (progn (org-babel-eval-wipe-error-buffer)
 -(org-babel-execute-src-block current-prefix-arg info) t) nil)))
   
 +  (org-babel-when-in-src-block
 +   (org-babel-eval-wipe-error-buffer)
 +   (org-babel-execute-src-block current-prefix-arg)))
  
  ;;;###autoload
  (defun org-babel-view-src-block-info ()
 @@ -409,10 +416,8 @@ a window into the `org-babel-get-src-block-info' 
 function.
  Detect if this is context for a org-babel src-block and if so
  then run `org-babel-expand-src-block'.
(interactive)
 -  (let ((info (org-babel-get-src-block-info)))
 -(if info
 - (progn (org-babel-expand-src-block current-prefix-arg info) t)
  
 -  nil)))
 +  (org-babel-when-in-src-block
 +   (org-babel-expand-src-block current-prefix-arg)))
  
  ;;;###autoload
  (defun org-babel-load-in-session-maybe ()
 @@ -420,10 +425,8 @@ then run `org-babel-expand-src-block'.
  Detect if this is context for a org-babel src-block and if so
  then run `org-babel-load-in-session'.
(interactive)
 -  (let ((info (org-babel-get-src-block-info)))
 -(if info
 - (progn (org-babel-load-in-session current-prefix-arg info) t)
 
 -  nil)))
 +  (org-babel-when-in-src-block
 +   (org-babel-load-in-session current-prefix-arg)))
  
  (add-hook 'org-metaup-hook 'org-babel-load-in-session-maybe)
  
 @@ -433,8 +436,8 @@ then run `org-babel-load-in-session'.
  Detect if this is context for a org-babel src-block and if so
  then run `org-babel-pop-to-session'.
(interactive)
 -  (let ((info (org-babel-get-src-block-info)))
 -(if info (progn (org-babel-pop-to-session current-prefix-arg info) t) 
 nil)))

 +  (org-babel-when-in-src-block
 +   (org-babel-pop-to-session current-prefix-arg)))

(Let's use the current name `org-babel-switch-to-session' instead of
the obsolete alias.)

Maybe we don't always need to pass the info as an argument, but at
least for this last example it is needed.  

Thanks,

-- 
 Bastien



Re: [O] [PATCH] replace function name in org-bbdb

2013-04-03 Thread Rasmus
Bastien b...@altern.org writes:

 Hi Rasmus,

 Rasmus ras...@gmx.us writes:

 org-bbdb-anniversary was not working on my system before using bbdb3
 from package.el (probably from MELPA...).  This fixes this by renaming
 a function which has been changed upstream.

 Looks good.  Is there any versioning we can check in order to know
 what function's name will the users use?

 bbdb3 hasn't been released yet.  It's a moving target and I would
 assume that people who use it are on the edge of the development. . .
 The function(s) in question were renamed four months ago.

 I fixed this slightly differently:
 http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=04b13a

 Thanks for spotting this and providing the patch!

Thanks!  I'm extremely proud to have provided a TINYCHANGE to Org :)
Maybe it will lead the way to a real patch one day? 

In any case it should probably be 

-;; `bbdb-record-xfield' was part of BBDB v3.x
+;; `bbdb-record-note' was part of BBDB v3.x

–Rasmus

-- 
If you can mix business and politics wonderful things can happen!



Re: [O] [PATCH] replace function name in org-bbdb

2013-04-03 Thread Bastien
Hi Rasmus,

Rasmus ras...@gmx.us writes:

 Thanks for spotting this and providing the patch!

 Thanks!  I'm extremely proud to have provided a TINYCHANGE to Org :)
 Maybe it will lead the way to a real patch one day? 

:)

 In any case it should probably be 

 -;; `bbdb-record-xfield' was part of BBDB v3.x
 +;; `bbdb-record-note' was part of BBDB v3.x

Right, fixed in my local branch, thanks!

-- 
 Bastien



Re: [O] I have terminated my assignment

2013-04-03 Thread Christian Moe

John Hendy writes:
 With respect to Org staying up to date on these developments, it
 probably *is* a good idea to know how Emacs/FSF responds. Should the
 rights be granted back to Jambunathan, Org should behave accordingly.

Exceedingly unlikely, I think. There is no legal case, the FSF takes a
dim view of copyright trolling against free software, and the trolling
behavior surely squanders any moral claim. What remains is the creation
of fear, uncertainty and doubt (FUD). My worst-case scenario would be
that we give in to that.

OK, that's more than my ten cents' worth already, so I'll take Eric
Schulte's advice on this thread and leave it.

Yours,
Christian





Re: [O] phone links...

2013-04-03 Thread Michael Strey
This gives me the opportunitie to publish my own attempt to implement
telephone functionality into org.  I'm using Linphone
(http://www.linphone.org/) instead of Skype.

Best regards
-- 
Michael Strey 
www.strey.biz
;;; org-dial.el --- Provide org links to dial with the softphone
;;; application linphone

;; Copyright (C) 2011  Michael Strey

;; Author: Michael Strey mst...@strey.de
;; Keywords: dial, phone, softphone, contacts, hypermedia

;; 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 3 of the License, or
;; (at your option) any later version.

;; This program is distaributed 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.  If not, see http://www.gnu.org/licenses/.

;;; Commentary:

;; `org-dial.el' defines the new link type `dial' for telephone
;; numbers in contacts (refer to org-contacts). Calling this link type
;; leads to the execution of a linphone command dialing this number.

;;; Code:

(require 'org)

;; org link functions
;; dial link
(org-add-link-type tel 'org-dial)

(defcustom org-dial-program linphonecsh dial 
  Name of the softphone executable used to dial a phone number in a `tel:' 
link.
  :type '(string)
  :group 'org)

(defun org-dial (phonenumber)
  Dial the phone number. The variable phonenumber should contain only numbers, 
whitespaces, backslash and maybe a `+' at the beginning.
  ;; remove whitespaces from phonenumber
  (shell-command (concat org-dial-program (trim-phone-number phonenumber

(defun trim-phone-number (phonenumber)
  Remove whitespaces from a telephone number
  (setq trimmed_phonenumber
(mapconcat 'identity
   (delete (0) (split-string phonenumber [ /-])) )))

(provide 'org-dial)

;;; org-dial.el ends here


Re: [O] [PATCH 06/10] Use prefix arg in org-edit-special

2013-04-03 Thread Eric Schulte
Aaron Ecay aarone...@gmail.com writes:

 * lisp/org.el (org-edit-special): Use prefix arg, as docstring says we
   do


This is beyond my ken.  I'll leave review of this patch to Bastien.


 Only makes a difference for src-block editing.
 ---
  lisp/org.el | 7 ---
  1 file changed, 4 insertions(+), 3 deletions(-)

 diff --git a/lisp/org.el b/lisp/org.el
 index 04ce386..1edfbc4 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -19943,7 +19943,7 @@ When in a fixed-width region, call 
 `org-edit-fixed-width-region'.
  When at an #+INCLUDE keyword, visit the included file.
  On a link, call `ffap' to visit the link at point.
  Otherwise, return a user error.
 -  (interactive)
 +  (interactive P)
(let ((element (org-element-at-point)))
  (assert (not buffer-read-only) nil
   Buffer is read-only: %s (buffer-name))
 @@ -19958,8 +19958,9 @@ Otherwise, return a user error.
   ;; At a src-block with a session and function called with
   ;; an ARG: switch to the buffer related to the inferior
   ;; process.
 - (funcall (intern (concat org-babel-prep-session: lang))
 -  session params)
 + (switch-to-buffer
 +   (funcall (intern (concat org-babel-prep-session: lang))
 +session params))
(keyword
 (if (member (org-element-property :key element) '(INCLUDE 
 SETUPFILE))
 (find-file

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH 01/10] Fix org-babel-R-initiate-session

2013-04-03 Thread Eric Schulte
Aaron Ecay aarone...@gmail.com writes:

 * lisp/ob-R.el (org-babel-R-initiate-session): handle case where the
   session buffer exists, but does not have a live process


Applied, but I removed an unnecessary save-excursion nested inside of a
save-window-excursion.

Thanks!

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH 08/10] Fix testing/lisp/test-ob-emacs-lisp.el

2013-04-03 Thread Eric Schulte
Aaron Ecay aarone...@gmail.com writes:

 * testing/lisp/test-ob-emacs-lisp.el: Move stray test inside
 ert-deftest

Applied, Thanks!

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH 07/10] Simplify org-babel-execute-src-block

2013-04-03 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes:

 Aaron Ecay writes:
 * lisp/ob-core.el (org-babel-execute-src-block): Simplify control flow

 Avoid potential duplication of org-babel-process-params call.  Also
 makes the code simpler.

 You may be changing semantics here.  I'm not entirely certain if the
 current way of dealing with the the unmerged and merged parameters and
 the info block is necessary, but I'd be wary of such a change.


Can you check if this change causes any of the existing tests to fail?

Thanks,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH 02/10] Clean up org-babel-expand-body: functions for awk and picolisp

2013-04-03 Thread Eric Schulte
Aaron Ecay aarone...@gmail.com writes:

 * lisp/ob-awk.el (org-babel-expand-body:awk),
   lisp/ob-picolisp.el (org-babel-expand-body:picolisp): remove optional
   arg from these functions

 The optional argument is apparently never passed by org-babel code.
 

Applied, Thanks!

 
 Maybe this is a relic of an earlier calling convention?
 

Yes, that is exactly the case.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] babel results handling

2013-04-03 Thread Eric Schulte
Rick Frankel r...@rickster.com writes:

 On Sun, Mar 31, 2013 at 07:37:38AM -0600, Eric Schulte wrote:
 It is certainly true that Emacs Lisp is treated differently than all
 other languages.  There are also significant differences between
 languages, e.g., session evaluation doesn't make sense for some
 languages, and for other languages session evaluation is the only type
 of evaluation that does make sense.
 
 In addition to that, with over 40 supported languages [1], There
 undoubtedly are cases where we are doing a bad job of ensuring
 inter-languages consistency.  If you can find concise examples which use
 demonstrate significant inconsistencies between languages, then we
 should be able to resolve those on a case by case basis.  In general I
 think ob-sh is probably the most widely used code block language, and
 can be treated as the gold standard against which other languages should
 be compared.

 `sh' is probably not the best choice as a gold standard due to the
 fact that it only supports STDOUT (output and not value).

 Many of the languages are obviously not general purpose, or do not
 support (like shell), wrapped values (only STDOUT), or don't generate
 text, so consistency does not matter (e.g., css, sass, sql, sqlite,
 plantuml, dot).

 Regardless, the attached org file is a first step an comparing the
 result processing of some languages (specifically, sh, emacs-lisp,
 perl and ruby), which, I think, covers a good portion of the babel use
 of general purpose languages.


This is a great file.  Thanks for generating it and sharing it.
Although I think it would be more useful if languages were the smallest
scale of organization rather than the largest to make cross-language
comparison easier.

Would it be difficult to add another set of code blocks which
automatically compare the output of these automatically generated code
blocks, indicating when there are differences.


 The upshot, is that perl value results match shell value/output
 results and emacs-lisp, python and ruby all return about the same
 results (elisp returns the quote characters from a verbatim string).


What are the perl-shell vs. python-ruby-elisp differences?


 I still think that the scalar pipe-delimited processing from shell and
 perl is wrong in that pipe-delimited data ends up w/ an extra column
 if each line starts w/ a pipe, but not if the pipe is used like a
 csv separator (between columns but not at the beginning or end of the
 line).


If you want to use pipes to delimit data, then I'd suggest *not*
interpreting the data as a value, but rather doing something like
:results verbatim drawer.  Generally pipes aren't considered to be
table column delimiters, I'd try tabs or spaces instead.


 Also, looking at the manual
 (http://orgmode.org/manual/results.html#results) vs. the code, are
 there are actually four classes of :results arguments with type broken
 into type and format?

  - Type :: (file list vector table scalar verbatim)
  - Format :: (raw html latex org code pp drawer)


Yes, this does seem to be more clear.  If you're willing to supply a
documentation patch I'd be very happy to apply it.

Thanks!

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH 09/10] Remove org-babel-check-confirm-evaluate macro

2013-04-03 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes:

 Aaron Ecay writes:
 * lisp/ob-core.el (org-babel-check-confirm-evaluate): remove
   (org-babel-check-evaluate),
   (org-babel-confirm-evaluate): move logic here

 This macro is used in only two places, and has two almost-independent
 complex logics coded into it.  So, suppress the macro and move the logic
 into the respective functions.

 I have recently introduced that macro because no amount of documentation
 can guarantee that the two functions using these values compute them the
 same way when somebody makes further changes down the road.  That is,
 however, mandatory for these functions to work properly and safely.

 I haven't checked if the logic hasn't changed with that patch, but I
 don't think it's any easier to understand than before.


I agree with Achim, I think we should retain the macro.

Best,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH 00/10] babel cleanups

2013-04-03 Thread Eric Schulte
Eric Schulte schulte.e...@gmail.com writes:

 Aaron Ecay aarone...@gmail.com writes:

 Here are several patches to fix things in and around org-babel.
 They're each independent of the others (and hopefully all apply
 cleanly, without depending on other members of the series).  Here's a
 little summary of each:


 Thanks for these patches, many look like obvious wins, some less so.  I
 likely won't have time to review them (or do much of anything) in the
 near term, but at some point I will make time to review them and reply
 here.

I've reviewed these patches and applied most of them.

Let me express a heartfelt THANKS.  It is always good to have more eyes
on code (as these patches indicate), and I'm very happy you're learning
the internals of Org mode's code block support.  Although these patches
are mainly refactoring I'm excited to have your help in bug-fixing and
feature enhancements in the future.

Cheers,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH 04/10] Add 'light argument to some uses of org-babel-get-src-block-info

2013-04-03 Thread Eric Schulte
Aaron Ecay aarone...@gmail.com writes:

 * lisp/ob-core.el (org-babel-do-key-sequence-in-edit-buffer),
 (org-babel-expand-noweb-references),
 * lisp/ob-tangle.el (org-babel-tangle):
 Use 'light argument to `org-babel-get-src-block-info'.

I'd like to apply this patch, however tracing the effects of these
changes can be tricky and `org-babel-expand-noweb-references' and
`org-babel-tangle' are both core functions.

Have you run the test suite to confirm that these changes don't break
any existing tests?

Thanks,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH 05/10] Remove info arg from several org-babel functions

2013-04-03 Thread Eric Schulte
Aaron Ecay aarone...@gmail.com writes:

 * lisp/ob-core.el (org-babel-load-in-session),
   (org-babel-initiate-session),
   (org-babel-switch-to-session)
   (org-babel-switch-to-session-with-code): Remove info optional arg

 The info arg is threaded through this code, but never used by
 callers (at least in org code).

The rgrep command disagrees with this last statement.

./ob-core.el:411:   (progn (org-babel-load-in-session current-prefix-arg 
info) t)

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [RFC] new :post header argument for post-processing of code block results

2013-04-03 Thread Eric Schulte
Aaron Ecay aarone...@gmail.com writes:

 Hi Eric

 2013ko martxoak 31an, Eric Schulte-ek idatzi zuen:
 
 Hi,
 
 I've been wanting to add the ability to post-process the results of a
 code block for some time, and some recent threads (e.g., [1] and [2])
 could both have benefited from post-processing of code block output.

 This looks very nice!

 
 Does this new header argument seem useful?  Any suggestions for better
 syntax which don't add too much conceptual or code complexity?

 See below.

 @@ -625,6 +626,11 @@ block.
(not (listp result)))
   (list (list result)) result))
 (funcall cmd body params)))
 +;; possibly perform post process provided its appropriate
 +(when (cdr (assoc :post params))
 +  (let ((*this* result))
 +(setq result (org-babel-ref-resolve
 +  (cdr (assoc :post params))

 What if you did some string surgery on the :post string, to insert
 ,data=\the result\ into the call?  That way users could just write
 :post add-width(width=5cm), which would be automatically transformed
 into add-width(width=5cm,data=[[graph.png]]) before being passed to
 o-b-ref-resolve.


I don't like this idea, because then it becomes magic which value is
assigned the result of the current code block, rather than the current
case in which it is very explicit.


 (I guess you’d have to take special care to handle things like :post
 no-args() and :post no-args properly, stripping the initial comma in
 the first case and adding parens in the second.)

 This requires that all :post code blocks take a data
 argument, but I don’t think that’s more onerous than stipulating the
 *this* variable at the lisp level.


I think it is more onerous, I also think it reduces flexibility (the
writing of the called block needs to know exactly which argument will
want to be set by later code blocks).


 Also, I’m unclear on whether elisp is supported

Yes it is

 (or should be)

Yes again

 .  Do we want to allow :post (message *this*)?

Yes again

If your issue is that (identity *this*) is cumbersome, then I would
agree.  What about if we change `org-babel-read' as with the attached
patch s.t. *any* variable with ear-muffs will be read as Emacs Lisp,
allowing this simpler alternative.

#+name: val-wrap
#+begin_src sh :input= :results verbatim
  echo 
  echo $input
  echo 
#+end_src

#+begin_src sh :post val-wrap(input=*this*)
  echo foo
#+end_src

#+RESULTS:
: 
: foo
: 

Cheers,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH 10/10] Document how :var introduces code block dependencies.

2013-04-03 Thread Eric Schulte
Aaron Ecay aarone...@gmail.com writes:

 * doc/org.texi: Document how :var introduces code block dependencies.

I've committed this patch, although I then simplified your discussion of
code block re-execution.

Thanks!

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



[O] Help with error due to (require 'ox-beamer)?

2013-04-03 Thread John Hendy
Just pulled and with emacs -Q and then a minimal config loaded (just
setting org dirs), I've traced the problem down to =(require
'ox-beamer)=.

Min config:

;; set load dirs and global config options
(add-to-list 'load-path ~/.emacs.d/org.git/lisp)
(add-to-list 'load-path ~/.emacs.d/org.git/contrib/lisp)
(add-to-list 'load-path ~/.emacs.d/ess-12.04/lisp)
(add-to-list 'load-path ~/.emacs.d/site-lisp)

;; exporters
(require 'ox-beamer)

I get this error:

Problems while trying to load export back-end `icalendar'
org-export-barf-if-invalid-backend: Unknown (quote latex) back-end:
Aborting export

Not sure why it's trying to load icalendar?

This in Windows 7, git pull, and then make per the Worg instructions:

emacs -batch -Q -L lisp -l ../mk/org-fixup -f org-make-autoloads-compile


Thanks for any suggestions,
John



Re: [O] [PATCH 00/10] babel cleanups

2013-04-03 Thread Bastien
Eric Schulte schulte.e...@gmail.com writes:

 I've reviewed these patches and applied most of them.

 Let me express a heartfelt THANKS.  It is always good to have more eyes
 on code (as these patches indicate), and I'm very happy you're learning
 the internals of Org mode's code block support.  Although these patches
 are mainly refactoring I'm excited to have your help in bug-fixing and
 feature enhancements in the future.

Yes, thanks a lot to both of you!

-- 
 Bastien



Re: [O] [PATCH 06/10] Use prefix arg in org-edit-special

2013-04-03 Thread Bastien
Eric Schulte schulte.e...@gmail.com writes:

 Aaron Ecay aarone...@gmail.com writes:

 * lisp/org.el (org-edit-special): Use prefix arg, as docstring says we
   do


 This is beyond my ken.  I'll leave review of this patch to Bastien.

Applied, thanks.

-- 
 Bastien



Re: [O] [PATCH 07/10] Simplify org-babel-execute-src-block

2013-04-03 Thread Achim Gratz
Eric Schulte writes:
 Can you check if this change causes any of the existing tests to fail?

I don't think there is a test for that, at least I don't remember
anything in that direction.  However when implementing my earlier change
w.r.t. confirmation I noticed that merging the parameters early has
potential for triggering execution of source blocks that would otherwise
lay dormant until the execution of the current block was already
confirmed.  As I said, I have no idea if this behaviour is intended, but
that was reason enough for me not to try to optimize this away.  The
behaviour Aaron tries to implement is maybe more sane, but it does alter
some corner cases and I can't tell how practically relevant this is.
But if we want to change it then I agree that the time is now.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables




Re: [O] Sync Org with Google Calendar using google API (rather than caldav)

2013-04-03 Thread Bastien
Salut Baptiste,

Baptiste bate...@bat.fr.eu.org writes:

 I have started a google calendar synchronization Emacs
 module. Rather than using ical format, I use directly Google
 API. For sure it is less usefull for other calendar services, but it
 will keep working when Google is stopping supporting caldav.

I didn't realize it was importing the Google calendar as an Org
file, this is nice and a nice use of Babel.  



 For now, only fetch from Google is implemented, but extension (then
 push and sync) should be quiet easy to manage.

Maybe you can have a look at org-sync for ideas:
  http://orgmode.org/cgit.cgi/org-sync.git/

Best,

-- 
 Bastien



[O] Effort Per Day

2013-04-03 Thread daya
There are some tasks on which I would like spend a specified time of the day.  I
would like to set a per-day effort on these tasks.  The current effort system
seem to support effort per task, not effort per day.  What is the recommended
way of doing this?

- daya





Re: [O] I have terminated my assignment

2013-04-03 Thread Eli Zaretskii
 From: Jambunathan K kjambunat...@gmail.com
 Date: Tue, 02 Apr 2013 14:12:36 +0530
 
 I have terminated my copyright assignment to Emacs (or atleast notified
 the copyright desk).

I'm not sure we should believe this statement.  As of a few minutes
ago, your assignment for Emacs still appears on file in FSF records;
until it is removed, nothing's changed.  If you want your
termination to have any real effect, you better ask the FSF
personnel to modify the records to that effect ASAP.

Judging by Jambunathan's tone and attitude, I'd advise Org maintainers
to be very careful, and consider also a possibility that Jambunathan
is simply lying about this, and that his entire goal is just to make
himself famous by harassing Org and Emacs, without taking any real
action (a.k.a. trolling).



[O] Export a Subtree to an other .org file

2013-04-03 Thread Steve Prud'Homme
Hi,
I want to export a subtree C-e-1 to an other org file. It is possible ?
Thanks




Re: [O] [PATCH 07/10] Simplify org-babel-execute-src-block

2013-04-03 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes:

 Eric Schulte writes:
 Can you check if this change causes any of the existing tests to fail?

 I don't think there is a test for that, at least I don't remember
 anything in that direction.  However when implementing my earlier change
 w.r.t. confirmation I noticed that merging the parameters early has
 potential for triggering execution of source blocks that would otherwise
 lay dormant until the execution of the current block was already
 confirmed.  As I said, I have no idea if this behaviour is intended, but
 that was reason enough for me not to try to optimize this away.  The
 behaviour Aaron tries to implement is maybe more sane, but it does alter
 some corner cases and I can't tell how practically relevant this is.
 But if we want to change it then I agree that the time is now.


I'm happy with the current implementation, even if it is a couple of
lines longer, it has the benefit of having been used in production for a
time and proven itself (sufficiently) bug free.

So lets discard this patch and stick with the current for now.

Thanks,



 Regards,
 Achim.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] I have terminated my assignment

2013-04-03 Thread Jambunathan K
Eli Zaretskii e...@gnu.org writes:

 From: Jambunathan K kjambunat...@gmail.com
 Date: Tue, 02 Apr 2013 14:12:36 +0530
 
 I have terminated my copyright assignment to Emacs (or atleast notified
 the copyright desk).

 I'm not sure we should believe this statement.  As of a few minutes
 ago, your assignment for Emacs still appears on file in FSF records;
 until it is removed, nothing's changed.  If you want your
 termination to have any real effect, you better ask the FSF
 personnel to modify the records to that effect ASAP.

I have notified ass...@gnu.org.  Stefan Monnier and Bastien Guerry are
in the CC list of my communication.

 Judging by Jambunathan's tone and attitude, I'd advise Org maintainers
 to be very careful, and consider also a possibility that Jambunathan
 is simply lying about this, and that his entire goal is just to make
 himself famous by harassing Org and Emacs, without taking any real
 action (a.k.a. trolling).

I don't lie.  I have taken action already.

Jambunathan K.



Re: [O] babel results handling

2013-04-03 Thread Achim Gratz
Eric Schulte writes:
 Would it be difficult to add another set of code blocks which
 automatically compare the output of these automatically generated code
 blocks, indicating when there are differences.

I'd lobby for integration into the test framework.

 I still think that the scalar pipe-delimited processing from shell and
 perl is wrong in that pipe-delimited data ends up w/ an extra column
 if each line starts w/ a pipe, but not if the pipe is used like a
 csv separator (between columns but not at the beginning or end of the
 line).


 If you want to use pipes to delimit data, then I'd suggest *not*
 interpreting the data as a value, but rather doing something like
 :results verbatim drawer.  Generally pipes aren't considered to be
 table column delimiters, I'd try tabs or spaces instead.

Yes they are (by accident mostly as a side effect of how the table gets
imported), but only for Babel languages (except elisp) that can return
tables as values.  I only recently implemented the necessary processing
for Perl.  The returned string gets interpreted as a table if it is
multiline and/or has pipe symbol in it.  Normally the separator should
be a TAB character, but pipes work just the same (the actual
interpretation is done by org-table-convert-region, which also inserts
the leading |  that Rick is complaining about).

If you want to have Org interpret the table the way Rick seems to want,
then the string must be a valid Org table that should be cycled after
insertion (type org or wrap).  I think the only thing still missing
is interpreting ^[ \t]*|- as hline.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] Help with error due to (require 'ox-beamer)?

2013-04-03 Thread Suvayu Ali
On Wed, Apr 03, 2013 at 11:09:49AM -0500, John Hendy wrote:
 Just pulled and with emacs -Q and then a minimal config loaded (just
 setting org dirs), I've traced the problem down to =(require
 'ox-beamer)=.
 
 Min config:
 
 ;; set load dirs and global config options
 (add-to-list 'load-path ~/.emacs.d/org.git/lisp)
 (add-to-list 'load-path ~/.emacs.d/org.git/contrib/lisp)
 (add-to-list 'load-path ~/.emacs.d/ess-12.04/lisp)
 (add-to-list 'load-path ~/.emacs.d/site-lisp)
 
 ;; exporters
 (require 'ox-beamer)
 
 I get this error:
 
 Problems while trying to load export back-end `icalendar'
 org-export-barf-if-invalid-backend: Unknown (quote latex) back-end:
 Aborting export

I just pulled and checked; I can export to beamer without problems.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] yanking a headline in folded state

2013-04-03 Thread Samuel Wales
Have you tried org-yank-adjusted-subtrees?

Samuel

On 4/1/13, 42 147 aeus...@gmail.com wrote:
 sub-headlines, and the killed headline itself needs to be adjusted to a
 deeper / shallower level (depending on where I inserted it).

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

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is NO hope without action.  This means YOU.



Re: [O] I have terminated my assignment

2013-04-03 Thread Eli Zaretskii
 From: Jambunathan K kjambunat...@gmail.com
 Cc: emacs-orgmode@gnu.org
 Date: Wed, 03 Apr 2013 23:21:22 +0530
 
 Eli Zaretskii e...@gnu.org writes:
 
  From: Jambunathan K kjambunat...@gmail.com
  Date: Tue, 02 Apr 2013 14:12:36 +0530
  
  I have terminated my copyright assignment to Emacs (or atleast notified
  the copyright desk).
 
  I'm not sure we should believe this statement.  As of a few minutes
  ago, your assignment for Emacs still appears on file in FSF records;
  until it is removed, nothing's changed.  If you want your
  termination to have any real effect, you better ask the FSF
  personnel to modify the records to that effect ASAP.
 
 I have notified ass...@gnu.org.  Stefan Monnier and Bastien Guerry are
 in the CC list of my communication.

No one else knows, until the records are updated.  (And it's not
difficult to forge email headers if one wants to.  I'm not saying you
did that, I'm just saying that one mail is not proof of anything.)

  Judging by Jambunathan's tone and attitude, I'd advise Org maintainers
  to be very careful, and consider also a possibility that Jambunathan
  is simply lying about this, and that his entire goal is just to make
  himself famous by harassing Org and Emacs, without taking any real
  action (a.k.a. trolling).
 
 I don't lie.

Your writings tell a different story, unfortunately.



[O] is speedup possible in the agenda?

2013-04-03 Thread Samuel Wales
The agenda in general is slow for me, and follow mode especially; many
operations take several seconds.

This is just an indication as I have not tried with emacs -Q yet:

===
org-agenda-goto   23
   146.9413486.3887542608
org-agenda-cycle-show 22
   141.0351866.4106902727
org-agenda-show-1 22
   141.0335376.4106153181
org-agenda-todo   3
   45.624037 15.208012333
org-agenda-switch-to  4
   29.725949 7.43148725
org-agenda-priority-up3
   17.500432 5.833477
org-agenda-priority   3
   17.500319 5.833439
org-agenda-do-context-action  51
   7.865143  0.1542184901
org-agenda-next-line  32
   7.861315  0.2456660937
org-agenda-show   1
   6.097801  6.097801
===

Thanks.

Samuel

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

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is NO hope without action.  This means YOU.



Re: [O] [PATCH] Process hlines in imported tables

2013-04-03 Thread Achim Gratz
Rick Frankel writes:
 Missed verbatim. Thanks for the pointer, it works, but i think that
 perl is double-processing returned values. If we do the same things in
 elisp i get (my) expected results:

 #+begin_src elisp :results raw
   |c1|c2|
   |-
   |a|1|
   |b|2|;
 #+end_src

Elisp is different from all other languages: it doesn't do any
processing of strings to begin with for value returns.  The reason that
Perl processes raw results is that org-babel-result-cond does not
switch to the scalar path for this condition, which is why you need
the extra verbatim.  It probably should, though, so if Eric agrees
then I will push a change that does this.



Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Org-mode outside Org-mode

2013-04-03 Thread Samuel Wales
Great write-up, Thorsten.

There is a whole other set of options also.  I don't know if they are
close enough for you to include, but it's worth pointing them out.

These are in the general category of Org annotations.  Instead of
editing Org in a temporary buffer, you use a real, permanent Org file
(can include an agenda file).

There are two types of options: those that allow you to use Org to
annotate external files without changing those files, and those that
allow you to annotate external files by putting persistent markers in
them.

In both types, you can in principle do C-c ' to get to your Org agenda
files location from your external files, and the same thing in
reverse.

The existing mechanisms include org-pua.el, org-registry.el, and
org-annotate.el.

In principle, you should be able to annotate web pages in w3m.el and
dired entries and info notes also.

To me, there is a lot of possibility here.

It should also be possible to put an ID marker in an external file,
which corresponds exactly to the Org IDs in a canonical entry in your
agenda files.  Then C-c ' can bounce between the external file and
your agenda file.

Samuel

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

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is NO hope without action.  This means YOU.



Re: [O] Export a Subtree to an other .org file

2013-04-03 Thread Bastien
Hi Steve,

Steve Prud'Homme sprud...@gmail.com writes:

 I want to export a subtree C-e-1 to an other org file. It is
 possible ?

Did you try C-c C-e C-s ... ?

-- 
 Bastien



Re: [O] is speedup possible in the agenda?

2013-04-03 Thread Bastien
Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 The agenda in general is slow for me, and follow mode especially; many
 operations take several seconds.

 This is just an indication as I have not tried with emacs -Q yet:

Just throwing this in case, to make sure you saw it already:

  http://orgmode.org/worg/agenda-optimization.html

HTH,

-- 
 Bastien



Re: [O] is speedup possible in the agenda?

2013-04-03 Thread Tim Howe
On 3 Apr 2013, Samuel Wales samolog...@gmail.com wrote:

 This is just an indication as I have not tried with emacs -Q yet:

How are you getting those profiling results?

 ===
 org-agenda-goto   23
146.9413486.3887542608
 org-agenda-cycle-show 22
141.0351866.4106902727
[...]
 ===

-- 
Tim Howe
http://quadium.net/~vsync/

The lack of interest, the disdain for history is what makes computing
not-quite-a-field.  [...]  They have no idea where [their culture came
from] and the Internet was done so well that most people think of it
as a natural resource like the Pacific Ocean, rather than something
that was man-made.  When was the last time a technology with a scale
like that was so error-free?  The Web, in comparison, is a joke.  The
Web was done by amateurs.
-- Alan Kay



Re: [O] is speedup possible in the agenda?

2013-04-03 Thread Samuel Wales
On 4/3/13, Bastien b...@altern.org wrote:
 Just throwing this in case, to make sure you saw it already:

   http://orgmode.org/worg/agenda-optimization.html

Hi Bastien,

Thanks, that is a great resource and I already did everything that it
suggested before posting.

Samuel

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

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is NO hope without action.  This means YOU.



Re: [O] is speedup possible in the agenda?

2013-04-03 Thread Samuel Wales
On 4/3/13, Tim Howe vs...@quadium.net wrote:
 How are you getting those profiling results?

24.2.  I know 24.3 has a possibly better profiler.

Run agenda T.

(defun alpha-elp-instrument-packages ()
  Instrument some likely packages.
  (interactive)
  ;;too slow:
  ;;  (elp-instrument-package org)
  ;;(elp-instrument-list
  (loop for i in '(alpha-
   hoka-
   cl-
   org-agenda-
   org-babel-)
do
(message instrumenting %s i)
(elp-instrument-package i))
  (message ))

Then follow mode, then moving around, TAB, and a few occasional other
things like changing metadata.

Samuel

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

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is NO hope without action.  This means YOU.



Re: [O] is speedup possible in the agenda?

2013-04-03 Thread Nick Dokos
Probably using the elp package: M-x elp-instrument-package RET org RET, run
whatever, M-x elp-results RET

Nick


On Wed, Apr 3, 2013 at 2:32 PM, Tim Howe vs...@quadium.net wrote:

 On 3 Apr 2013, Samuel Wales samolog...@gmail.com wrote:

  This is just an indication as I have not tried with emacs -Q yet:

 How are you getting those profiling results?

  ===
  org-agenda-goto   23
 146.9413486.3887542608
  org-agenda-cycle-show 22
 141.0351866.4106902727
 [...]
  ===

 --
 Tim Howe
 http://quadium.net/~vsync/

 The lack of interest, the disdain for history is what makes computing
 not-quite-a-field.  [...]  They have no idea where [their culture came
 from] and the Internet was done so well that most people think of it
 as a natural resource like the Pacific Ocean, rather than something
 that was man-made.  When was the last time a technology with a scale
 like that was so error-free?  The Web, in comparison, is a joke.  The
 Web was done by amateurs.
 -- Alan Kay




Re: [O] org-html-postamble-format and #+DATE: specification in 8.0pre

2013-04-03 Thread Nicolas Goaziou
Hello,

Alan Schmitt alan.schm...@polytechnique.org writes:

 Dieter Wilhelm writes:

 Dear list,

 I changed the html postamble

 org-html-postamble-format is a variable defined in `ox-html.el'.
 Its value is
 ((en p class=\author\Author: %a (%e)/p\np class=\date\Date: %d 
 /p\np class=\creator\Generated by %c /p\n)
  (de p class=\author\Autor: %a (%e)/p\np class=\date\Datum: %d 
 /p\np class=\creator\Generiert von %c /p\n)
  (fr p class=\author\Auteur: %a (%e)/p\np class=\date\Date: %d 
 /p\np class=\creator\Generated by %c /p\n))

 Original value was 
 ((en p class=\author\Author: %a (%e)/p\np class=\date\Date: 
 %d/p\np class=\creator\Generated by %c/p\np 
 class=\xhtml-validation\%v/p))

 but now I can't specify a date in the form

 #+DATE:  %Y-%m-%d

 Formerly an empty specification meant the current date, but now in the
 preamble the date remains empty.

 I'm having the same issue. Did you find a way around it?

I didn't try to reproduce the problem, but specifying a format time
string as a DATE value is not possible anymore. You still can provide
a timestamp and tweak `org-export-date-timestamp-format' (or BIND it) to
format it.


Regards,

-- 
Nicolas Goaziou



Re: [O] Export a Subtree to an other .org file

2013-04-03 Thread Steve Prud'Homme
Message :
No command associated with key  ^S


-Original Message-
From: Bastien Guerry [mailto:bastiengue...@gmail.com] On Behalf Of Bastien
Sent: 3 avril 2013 14:37
To: Steve Prud'Homme
Cc: emacs-orgmode@gnu.org
Subject: Re: Export a Subtree to an other .org file

Hi Steve,

Steve Prud'Homme sprud...@gmail.com writes:

 I want to export a subtree C-e-1 to an other org file. It is possible 
 ?

Did you try C-c C-e C-s ... ?

--
 Bastien




Re: [O] Visibility cycling applied on several windows

2013-04-03 Thread Bastien


Hi Francesco,

Francesco Pizzolante
fpz-djc/ipccudyqhejpep6iedvlejwur...@public.gmane.org writes:

 Hi Christopher and Thorsten,

 Thanks for your replies.

 Christopher Schmidt wrote:
 Thorsten Jolitz tjolitz-re5jqeeqqe8avxtiumw...@public.gmane.org writes:
 maybe this is what you need (untested):

 http://www.gnu.org/software/emacs/manual/html_node/emacs/Indirect-Buffers.html

 No, an indirect buffer shares its parent's text properties.

 It's true: the indirect buffer shares its parent's text properties.

Org-mode relies on outline-mode for visibility cycling, and
outline-mode uses overlay to set the visibility of various parts
of the buffer.

 But, the visibility cycling is applied only in the active window: either in
 the main buffer or in the indirect buffer but not in both windows at the same
 time. So, it works as expected to me. Thanks for the trick!

 But this trick seems like a workaround to me : using visibility cycling in one
 window should not affect another window, isn't it?

Overlays are inherited at cloning time, but not each time they are
modified, either in the window displaying the base buffer, or in the
window displaying an indirect buffer -- while text properties are
inherited each time they are modified in any buffer.

HTH,

-- 
 Bastien




Re: [O] phone links...

2013-04-03 Thread Robert Goldman
On 4/3/13 Apr 3 -9:52 AM, Michael Strey wrote:
 This gives me the opportunitie to publish my own attempt to implement
 telephone functionality into org.  I'm using Linphone
 (http://www.linphone.org/) instead of Skype.

Thanks!  I am folding the linphone code in to make org-phone more generic.  

Question: why the removal of (0)?  For international calls?  Why (0) only,
instead of any 0 prefix?

Also, do you ever want to remove it anywhere but as a prefix?  
If so, maybe DELETE is the wrong function call.

Current draft:

;;;---
;;; org-phone.el
;;; Add support for phone: links to phone numbers.
;;; Optional support for calling them with skype
;;;---

;;; Copyright (C) 2013 Free Software Foundation, Inc.

;; Author: Robert P. Goldman rpgoldman at sift dot net
;; Homepage: http://orgmode.org
;; Version: 0.02

;; This file is not yet part of GNU Emacs.
(require 'org)

(org-add-link-type phone 'org-phone-open)
;; not sure whether we need/want this yet...
;;(add-hook 'org-store-link-functions 'org-phone-store-link)

(defcustom org-phone-function 'org-phone-call
  The Emacs function to be used to call a phone number.
By default, a simple function that uses shell-command to 
apply org-phone-call-command (qv.) to the phone number.
  :group 'org-link
  :type 'symbol)

(defcustom org-phone-call-command skype-call
  The executable command to be used to call a phone number.
This should be a script that starts the call and returns: it
should not block.
  :group 'org-link
  :type 'string)


(defun org-phone-open (phone-number)
  Phone the number PHONE-NUMBER.
PHONE-NUMBER should be a string for a PSTN phone number.
  (funcall org-phone-function phone-number))

(defun org-phone-call (phone-number)
  (shell-command (format %s %s
 org-phone-call-command
 phone-number)))
  
(defun trim-phone-number (phone-number)
  Remove whitespaces from a telephone number
  (mapconcat 'identity
 (delete (0) (split-string phone-number [ /-])) ))
  

;; (defun org-phone-store-link ()
;;   Store a link to a phone number.
;; ;; This is a man page, we do make this link
;; (let* ((page (org-man-get-page-name))
;; (link (concat man: page))
;; (description (format Manpage for %s page)))
;;   (org-store-link-props
;;:type man
;;:link link
;;:description description


(provide 'org-phone)



[O] LaTeX error when using radio tables

2013-04-03 Thread David Kincaid
I'm following the instructions in the user guide in section A.5.2 for using
org-mode table editing in LaTeX. The editing works great and it inserts the
table in the right place. However, I get an error when trying to compile
the file.

Here is the error:

ERROR: Illegal parameter number in definition of \test.

--- TeX said ---
to be read again
   +
l.220 \end{comment}

and my LaTeX code looks like this:

% BEGIN RECEIVE ORGTBL pi-current-data
\begin{tabular}{ll}
Entity  Volume \\
\hline
Practice   \\
Pet Owner   \\
Animal   \\
Transaction   \\
\end{tabular}
% END RECEIVE ORGTBL pi-current-data
\begin{comment}
#+ORGTBL: SEND pi-current-data orgtbl-to-latex :splice nil :skip 0
   | Entity  | Volume |
   |-+|
   | Practice||
   | Pet Owner   ||
   | Animal  ||
   | Transaction ||
\end{comment}

does anyone have an idea what is going on?


[O] More generic taskjuggler export proposal

2013-04-03 Thread Buddy Butterfly
Hi,

I would like propose the following for taskjuggler export
as base for a discussion to change export functionality.
Here I will refer to the example project of taskjuggler 3.

Pre-requesites:
- Functionality of tj should be kept in tj as much as possible
- org export should be as generic as possible such that changes
  in tj will not impact org.

Suggestions:
- There should be configurable global taskjuggler prefix to define
  what shoudl be exported. Here we will take tj_ as an example.

- tj elements of the form
  : keyword id name { attributes }
  should be implemented as tagged tasks (like already done for resources
and project).
  The org tag should be prefixed by the tj prefix and the tag name
should automatically
  be exported as the keyword of tj. Org task should go into tj name
and the org
  property tj_id should go into id.

  The attributes should be org properties prefixed by the prefix (here
tj_).
  
  Example for the project tag:

  The tj example project lists the following project keyword header:

  project your_project_id Your Project Title  2011-11-11-0:00--0500 +4m {
timezone America/New_York
timeformat %Y-%m-%d
numberformat -  , . 1
currencyformat ( ) , . 0
now 2011-12-24
currency USD

# You can define multiple scenarios here if you need them.
#scenario plan Plan {
#  scenario actual Actual
#}

# You can define your own attributes for tasks and resources. This
# is handy to capture additonal information about the project that
# is not directly impacting the project schedule but you like to
# keep in one place.
#extend task {
#  reference spec Link to Wiki page
#}
#extend resource {
#  text Phone Phone
#}
  }

  This would be written in org like

  * Your Project Title :tj_project:
:PROPERTIES:
:tj_id: your_project_id
:tj_timezone: America/New_York
:tj_timeformat: %Y-%m-%d
:tj_numberformat:  -  , . 1
:tj_currencyformat: ( ) , . 0
:tj_now: 2011-12-24
:tj_currency: USD
:END:

* Plan   :tj_scenario:
  :PROPERTIES:
  :tj_scenario: actual Actual
  :END:

* task   :tj_extend:
  :PROPERTIES:
  :tj_reference: spec Link to Wiki page
  :END:

* resource   :tj_extend:
  :PROPERTIES:
  :tj_text: Phone Phone
  :END:

  As we can see, org can export everything in a generic way with mainly
stripping
  the prefix tj_ from the tags and properties and export as is to
taskjuggler.
  
  This also maps to the well known resource mapping:

  # This is a set of example resources.
  resource r1 Resource 1
  resource t1 Team 1 {
managers r1
resource r2 Resource 2
resource r3 Resource 3
  }

  # This is a resource that does not do any work.
  resource s1 System 1 {
efficiency 0.0
rate 600.0
  }

  Would be written in org-mode like:

  * Resource 1 :tj_resource:
:PROPERTIES:
:tj_id: r1
:END:

  * Team 1 :tj_resource:
:PROPERTIES:
:tj_id: t1
:tj_managers: r1
:END:
   
* Resource 2
  :PROPERTIES:
  :tj_id: r2
  :END:

* Resource 3
  :PROPERTIES:
  :tj_id: r3
  :END:

  * System 1 :tj_resource:
:PROPERTIES:
:tj_id: s1
:tj_efficiency: 0.0
:tj_rate: 600.0
:END:
   

 Here the fact of inheritance of org tags have been taken into account in
 org task Team 1 for resource Resource 2 and Resource 3.

 For the tasks the same holds:

 task project Project {
  task wp1 Workpackage 1 {
task t1 Task 1
task t2 Task 2
  }
  task wp2 Work package 2 {
depends !wp1
task t1 Task 1
task t2 Task 2
  }
  task deliveries Deliveries {
task Item 1 {
  depends !!wp1
}
task Item 2 {
  depends !!wp2
}
  }
  }

  Org mode:

  * Project  :tj_task:
:PROPERTIES:
:tj_id: project
:END:

* Workpackage 2
  :PROPERTIES:
  :tj_id: wp2
  :END:

  * Task 1
:PROPERTIES:
:tj_id: t1
:tj_depends: !wp1
:END:
  * Task 2
:PROPERTIES:
:tj_id: t2
:END:


Also accounts could be easily generated with this
method:

account cost Project Cost {
  account dev Development
  account doc Documentation
}

---

 * Project Cost  :tj_account:
   :PROPERTIES:
   :tj_id: cost
   :END:

   * Development
 :PROPERTIES:
 :tj_id: dev
 :END:
   * Documentation
 :PROPERTIES:
 :tj_id: doc
 :END:

 There is still the question how to implement properties that go into
 the global part of a tj file. Here I would suggest that one can place
 this data inbetween

 #+BEGIN_TASKJUGGLER
 # The ProfitLoss analysis 

Re: [O] Export a Subtree to an other .org file

2013-04-03 Thread John Hendy
On Wed, Apr 3, 2013 at 2:31 PM, Steve Prud'Homme sprud...@gmail.com wrote:
 Message :
 No command associated with key  ^S


Bastien's response was for the new exporter and your C-e 1 command
indicates you're not using that version yet. I'm on the new exporter,
so I can't recall what old options looked like, but from the manual
could you try ASCII?
- 
http://orgmode.org/manual/ASCII_002fLatin_002d1_002fUTF_002d8-export.html#ASCII_002fLatin_002d1_002fUTF_002d8-export

Perhaps you could just export that to a buffer and then save as *.org
instead of the default export format of .txt?

As an alternative, would it take about the same amount of time to fold
the headline and do =C-space C-e M-w C-x C-f ~/path/to/file.org RET
C-y C-x C-s= ?

That would just copy, yank, and save your desired subtree into a new
org file. Not sure what your intentions are, though, so maybe that's
too laborious.


Best regards,
John

P.S. If you're interested in upgrading: http://orgmode.org/worg/org-8.0.html



 -Original Message-
 From: Bastien Guerry [mailto:bastiengue...@gmail.com] On Behalf Of Bastien
 Sent: 3 avril 2013 14:37
 To: Steve Prud'Homme
 Cc: emacs-orgmode@gnu.org
 Subject: Re: Export a Subtree to an other .org file

 Hi Steve,

 Steve Prud'Homme sprud...@gmail.com writes:

 I want to export a subtree C-e-1 to an other org file. It is possible
 ?

 Did you try C-c C-e C-s ... ?

 --
  Bastien





Re: [O] Help with error due to (require 'ox-beamer)?

2013-04-03 Thread John Hendy
On Wed, Apr 3, 2013 at 1:10 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 On Wed, Apr 03, 2013 at 11:09:49AM -0500, John Hendy wrote:
 Just pulled and with emacs -Q and then a minimal config loaded (just
 setting org dirs), I've traced the problem down to =(require
 'ox-beamer)=.

 Min config:

 ;; set load dirs and global config options
 (add-to-list 'load-path ~/.emacs.d/org.git/lisp)
 (add-to-list 'load-path ~/.emacs.d/org.git/contrib/lisp)
 (add-to-list 'load-path ~/.emacs.d/ess-12.04/lisp)
 (add-to-list 'load-path ~/.emacs.d/site-lisp)

 ;; exporters
 (require 'ox-beamer)

 I get this error:

 Problems while trying to load export back-end `icalendar'
 org-export-barf-if-invalid-backend: Unknown (quote latex) back-end:
 Aborting export

 I just pulled and checked; I can export to beamer without problems.


Not sure what the problem was. Wiped org.git, repulled, and re-made
and it's working. May have been an issue when I was trying to go
through the steps of setting org-version manually per Worg's
instructions for Windows so I don't get the !NA Fixup error on M-x
org-version.

All's well now.


John

 --
 Suvayu

 Open source is the future. It sets us free.




Re: [O] Export a Subtree to an other .org file

2013-04-03 Thread Hsiu-Khuern Tang
* On Wed 03:35PM, 03 Apr 2013, John Hendy (jw.he...@gmail.com) wrote:
 On Wed, Apr 3, 2013 at 2:31 PM, Steve Prud'Homme sprud...@gmail.com wrote:
  Message :
  No command associated with key  ^S
 
 
 Bastien's response was for the new exporter and your C-e 1 command
 indicates you're not using that version yet. I'm on the new exporter,
 so I can't recall what old options looked like, but from the manual
 could you try ASCII?
 - 
 http://orgmode.org/manual/ASCII_002fLatin_002d1_002fUTF_002d8-export.html#ASCII_002fLatin_002d1_002fUTF_002d8-export
 
 Perhaps you could just export that to a buffer and then save as *.org
 instead of the default export format of .txt?

I think the ascii export does not produce a file in Org format.

The old exporter function org-export-as-org may do the trick for Steve.

I too find it useful to export to org, and would love to see this implemented
in the new exporter.  I rely on this together with the SELECT_TAGS and
EXCLUDE_TAGS keywords to create an Org file with a subset of the headings, not
just a subtree.  Is there a new exporter function that does this?


-- 
Best,
Hsiu-Khuern.



Re: [O] LaTeX error when using radio tables

2013-04-03 Thread Bastien
Hi David,

David Kincaid kincaid.d...@gmail.com writes:

 I'm following the instructions in the user guide in section A.5.2 for
 using org-mode table editing in LaTeX. The editing works great and it
 inserts the table in the right place. However, I get an error when
 trying to compile the file.

 Here is the error:

 ERROR: Illegal parameter number in definition of \test.

Can you share more from your file?  

Thanks,

-- 
 Bastien



Re: [O] Export a Subtree to an other .org file

2013-04-03 Thread John Hendy
On Wed, Apr 3, 2013 at 4:36 PM, Hsiu-Khuern Tang tan...@gmail.com wrote:
 * On Wed 03:35PM, 03 Apr 2013, John Hendy (jw.he...@gmail.com) wrote:
 On Wed, Apr 3, 2013 at 2:31 PM, Steve Prud'Homme sprud...@gmail.com wrote:
  Message :
  No command associated with key  ^S
 

 Bastien's response was for the new exporter and your C-e 1 command
 indicates you're not using that version yet. I'm on the new exporter,
 so I can't recall what old options looked like, but from the manual
 could you try ASCII?
 - 
 http://orgmode.org/manual/ASCII_002fLatin_002d1_002fUTF_002d8-export.html#ASCII_002fLatin_002d1_002fUTF_002d8-export

 Perhaps you could just export that to a buffer and then save as *.org
 instead of the default export format of .txt?

 I think the ascii export does not produce a file in Org format.

You're right -- sorry about that; had never tried it. I'm curious
about a use case for this? Is it just that it's faster than this
combo:

#+begin_quote  http://orgmode.org/manual/Structure-editing.html
C-c C-x M-w (org-copy-subtree)Copy subtree to kill ring. With a
numeric prefix argument N, copy the N sequential subtrees.

C-c C-x C-y (org-paste-subtree)Yank subtree from kill ring. This
does modify the level of the subtree to make sure the tree fits in
nicely at the yank position. The yank level can also be specified with
a numeric prefix argument, or by yanking after a headline marker like
‘’.
#+end_quote

I can also see advantages in not having to C-x C-f to a new file
before yanking and just being able to send the subtree to a
generated file specified with an :EXPORT_FILE_NAME: property in the
tree (though from the manual, that looks only to apply to ODT,
DocBook, and LaTeX).


Best regards,
John



 The old exporter function org-export-as-org may do the trick for Steve.

 I too find it useful to export to org, and would love to see this implemented
 in the new exporter.  I rely on this together with the SELECT_TAGS and
 EXCLUDE_TAGS keywords to create an Org file with a subset of the headings, not
 just a subtree.  Is there a new exporter function that does this?


 --
 Best,
 Hsiu-Khuern.




[O] clock-out broken?

2013-04-03 Thread Robert Eckl
Hi,
with some changes from today seems clocking out is broken:

  Clock starts at [2013-04-04 Do 01:22] - showing entire task time.
  Clock stopped at [2013-04-04 Do 01:22] after 0:00
  org-clocking-buffer: Wrong type argument: markerp, nil
  org-check-running-clock: Wrong type argument: markerp, nil [3 times]
  Modified buffers exist; exit anyway? (y or n)  y

It's not possible to stop emacs, theres an endless loop 

  org-clocking-buffer: Wrong type argument: markerp, nil  
  Modified buffers exist; exit anyway? (y or n)  y
 
FWIW, the entry expects a note for stopped clock

Emacs/24.3.50 linux mint 
Org-mode version 8.0-pre (release_8.0-pre-245-gde4d52

Cu
Robert



Re: [O] css link colors for Worg are difficult to spot

2013-04-03 Thread John Hendy
Alright, just pushed changes. I just used this site to upload the
original Org unicorn and get the colors from it:
- http://www.colr.org/

Then all I did was reverse the scheme -- unvisited/visited are now
light/dark greenish and the hover color is rust (dark red). I think
the green pops a bit more off the screen than the red. I tried and
find a balance between unvisited links looking different (lighter)
while not dimming the visited links *too* much so that they became
hidden again.

Another option would be to have unvisited as lighter green or red,
visited as the opposite, and the hover as something completely
different and obvious (not necessarily in the color scheme at all) as
that's the rarest color experienced.

Anyway, hopefully it's not too jarring and seen as at least a slight
improvement. Let me know if you don't like it!


Best regards,
John

On Wed, Apr 3, 2013 at 5:57 AM, Bastien b...@altern.org wrote:
 Vincent Beffara vbeff...@ens-lyon.fr writes:

 The angry unicorn is still in worg though ...

 And it's back on orgmode.org too.

 No time for procrastination anymoe :)

 --
  Bastien




Re: [O] avoid subscripting text

2013-04-03 Thread Gary Oberbrunner
On Wed, Mar 27, 2013 at 5:50 PM, John Hendy jw.he...@gmail.com wrote:

 On Wed, Mar 27, 2013 at 1:24 PM, Samuel Wales samolog...@gmail.com
 wrote:
 
  Maybe this would be good as default nil?

 I'd like to poll the list for frequent LaTeX exporters vs. everyone
 else before making a change like that. My intuition would suggest that
 underscores get used a lot by LaTeX users and not a ton by the rest,
 but I could be wrong!


I use LaTeX export all the time, but almost always with words with
underscores in them (data from external tables, variable names and so on).
 So I never want _ to turn into a subscript.  Just one data point, but
that's how I use it.

-- 
Gary


Re: [O] [RFC] new :post header argument for post-processing of code block results

2013-04-03 Thread Eric Schulte

 If your issue is that (identity *this*) is cumbersome, then I would
 agree.  What about if we change `org-babel-read' as with the attached
 patch s.t. *any* variable with ear-muffs will be read as Emacs Lisp,
 allowing this simpler alternative.


The attached patches change to the more natural *this* syntax, make
:post processing work intuitively with the :file header argument, and
adds documentation.  I'm posting them as patches here, rather than
simply committing them, because I don't want to push in a change like
this at the 11th hour before the release of 8.0.

Bastien, please commit these whenever you want, or let me know and I can
commit them.

Cheers,



post-patches.tar.bz2
Description: BZip2 compressed data

-- 
Eric Schulte
http://cs.unm.edu/~eschulte


[O] Restore an archived subtree - Restauration d'une branche spécique archivée

2013-04-03 Thread Steve Prud'Homme
Hi, I archive with C-c C-x C-a  on a .org_archive file.

How can I restore a subtree. It is possible

 

Bonjour, j’archive mes données dans mes fichier org avec C-c C-x C-a dans un
fichier avec l’extension .org_archive.

Est-ce que c’est possible de récupérer une branche spécifique.