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

2015-01-12 Thread Nicolas Goaziou
Rasmus  writes:

> One more thing.  For LaTeX, *we must load titletoc before hyperref*.

Requiring packages is not our problem.

> 3. Or we can add to the manual this deficit and advice how to solve it
> "manually".

I don't mind updating the footnote relative to titletoc package in the
manual. Do you want to provide a patch?

Regards,



Re: [O] doc patch: move footnote in external links

2015-01-12 Thread Nicolas Goaziou
Alan Schmitt  writes:

> I don't understand: won't you need the "[33%]" bit for an exact
> search?

A statistics cookie is a variable part. If it ever changes, all your
links become invalid. It is better to simply ignore them (which is
already the case).

> Also, does ignoring whitespace mean replacing any (non-empty) amount of
> whitespace by non-empty whitespace, or can you also insert or delete
> whitespace between contiguous strings:
> - do "foobar" and "foo bar" match?
> - do "foo bar" and "foobar" match?

The former. Or use `split string', like in
`org-export-resolve-fuzzy-link'.

> OK, I'll look into it.

Thanks.


Regards,



[O] Bug: org-dblock-update expects function calendar-absolute-from-iso, which no longer exists

2015-01-12 Thread Christoph LANGE

Hi all,

I'm using clocktables to compute my working hours per calendar week,
e.g.

#+NAME: T2014-W50
#+BEGIN: clocktable :block 2014-W50 :maxlevel 0 :scope ("default.org") 
:indent

#+CAPTION: Clock summary at [2015-01-12 Mon 09:47], for week 2014-W50.
| File| Headline | Time|
|-+--+-|
| | ALL *Total time* | *47:28* |
|-+--+-|
| default.org | *File time*  | *47:28* |
#+END:

For a while I haven't been able to run org-dblock-update on these tables
because the clocktable code calls the calendar-absolute-from-iso
function, which seems to have been abolished in preparation of Emacs 25.

The following workaround helps:

(defalias 'calendar-absolute-from-iso 'calendar-iso-to-absolute)

Cheers,

Christoph



Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
 of 2014-11-20 on KAEL
Package: Org-mode version 8.2.10 (8.2.10-29-g89a0ac-elpaplus @ 
c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150105/)


current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)

 org-contacts-files '("...")
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-time-clocksum-format '(:hours "%d" :require-hours t :minutes 
":%02d" :require-minutes t)

 org-clock-history-length 20
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-clock-into-drawer 2
 org-confirm-shell-link-function 'yes-or-no-p
 org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id
 org-finalize-agenda-hook '(bh/org-agenda-to-appt)
 org-clock-idle-time 10
 org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default) 
("\\.x?html?\\'" . "firefox %s")

 ("\\.pdf\\'" . "okular %s"))
 org-pretty-entities t
 org-agenda-custom-commands '(("h" "Work todos" tags-todo
   "-personal-doat={.+}-dowith={.+}/!-TASK"
   ((org-agenda-todo-ignore-scheduled t)))
  ("H" "All work todos" tags-todo 
"-personal/!-TASK-MAYBE"

   ((org-agenda-todo-ignore-scheduled nil)))
  ("A" "Work todos with doat or dowith" 
tags-todo

   "-personal+doat={.+}|dowith={.+}/!-TASK"
   ((org-agenda-todo-ignore-scheduled nil)))
  ("j" "TODO dowith and TASK with"
   ((org-sec-with-view "TODO dowith")
(org-sec-where-view "TODO doat")
(org-sec-assigned-with-view "TASK with")
(org-sec-stuck-with-view "STUCK with"))
   )
  ("J" "Interactive TODO dowith and TASK with"
   ((org-sec-who-view "TODO dowith")))
  )
 org-default-notes-file "..."
 org-todo-keyword-faces '(("TODO" :foreground "DarkOrange1" :weight bold)
  ("MAYBE" :foreground "sea green")
  ("DONE" :foreground "light sea green")
  ("CANCELLED" :foreground "forest green")
  ("TASK" :foreground "blue"))
 org-capture-templates '(("c" "Contacts" entry (file (\, 
my-org-contacts-file))

  "* \n  :PROPERTIES:\n  :CUSTOM_ID: \n  :END:")
 )
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp nil
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)

 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(org-mode-reftex-setup org-clock-load
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook 
org-show-block-all append local] 5]

 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append

local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-goto-auto-isearch nil
 org-stuck-projects '("+prj/-MAYBE-DONE" ("TODO" "TASK") nil)
 org-use-speed-commands t
 org-clock-persist 'history
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)

 org-directory "..."
 org-enforce-todo-dependencies t
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-tags-exclude-from-inheritance '("prj")
 org-

[O] [bug] Wrong type argument: arrayp, nil

2015-01-12 Thread Sebastien Vauban
Hello,

Trying to export the following in HTML:

- foo ::
 Bar

- baz ::

generates the error "replace-regexp-in-string: Wrong type argument:
arrayp, nil".

Best regards,
  Seb

-- 
Sebastien Vauban




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

2015-01-12 Thread Rasmus
Hi,

Nicolas Goaziou  writes:

>> One more thing.  For LaTeX, *we must load titletoc before hyperref*.
>
> Requiring packages is not our problem.

For titletoc, you can only enable it by either

1. adding a new org-latex-class
2. insert titletoc in org-latex-default-packages-alist manually.
   org-latex-packages-alist won't work as it's inserted later.
   
This seems like a problem to me.  [I'm sure there also exits a clever
filter that can do it].

>> 3. Or we can add to the manual this deficit and advice how to solve it
>> "manually".
>
> I don't mind updating the footnote relative to titletoc package in the
> manual. Do you want to provide a patch?

I can add documentation, but please reconfirm that you find the above
limitations acceptable and want to see suggestions of modifying
org-latex-packages-alist in the manual!

—Rasmus

-- 
m-mm-mmm- bacon!



Re: [O] [bug] Wrong type argument: arrayp, nil

2015-01-12 Thread Rasmus
Hi Seb,

Sebastien Vauban 
writes:

> - baz ::
>
> generates the error "replace-regexp-in-string: Wrong type argument:
> arrayp, nil".

This has been fixed.

I forgot to acknowledge that you reported the bug.  Sorry!!
I can revert the commit and redo the commit if you think?

–Rasmus

-- 
Dobbelt-A




Re: [O] Bug: org-dblock-update expects function calendar-absolute-from-iso, which no longer exists

2015-01-12 Thread Marco Wahl
Christoph LANGE  writes:

> Hi all,
>
> I'm using clocktables to compute my working hours per calendar week,
> e.g.
>
> #+NAME: T2014-W50
> #+BEGIN: clocktable :block 2014-W50 :maxlevel 0 :scope ("default.org") 
>
> :indent
>
> #+CAPTION: Clock summary at [2015-01-12 Mon 09:47], for week 2014-W50.
> | File| Headline | Time|
>
> |-+--+-|
> | | ALL *Total time* | *47:28* |
> |-+--+-|
> | default.org | *File time*  | *47:28* |
> #+END:
>
> For a while I haven't been able to run org-dblock-update on these tables
> because the clocktable code calls the calendar-absolute-from-iso
> function, which seems to have been abolished in preparation of Emacs 25.
>
> The following workaround helps:
>
> (defalias 'calendar-absolute-from-iso 'calendar-iso-to-absolute)

Thanks for your report and the workaround.

I had a similar issue some days ago.  The reson for these issues is that
the Emacs guys finally dropped some functions in the calendar which have
been marked obsolete for a long time.

I try to fix the concrete issue immediately.

If I find time I try to fix all similar issues.


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] doc patch: move footnote in external links

2015-01-12 Thread Alan Schmitt
On 2015-01-12 09:43, Nicolas Goaziou  writes:

> Alan Schmitt  writes:
>
>> I don't understand: won't you need the "[33%]" bit for an exact
>> search?
>
> A statistics cookie is a variable part. If it ever changes, all your
> links become invalid. It is better to simply ignore them (which is
> already the case).

OK. I see that the current regexp for headline matching is defined as
follows:

#+begin_src emacs-lisp
(concat "^\\(\\*+\\)"
"\\(?: +" org-todo-regexp "\\)?"
"\\(?: +\\(\\[#.\\]\\)\\)?"
"\\(?: +"
;; Stats cookies can be stuck to body.
"\\(?:\\[[0-9%%/]+\\] *\\)*"
"\\(%s\\)"
"\\(?: *\\[[0-9%%/]+\\]\\)*"
"\\)"
(org-re "\\(?:[ \t]+\\(:[[:alnum:]_@#%%:]+:\\)\\)?")
"[ \t]*$")
#+end_src

used like this (the regexp is `org-complex-heading-regexp-format'):

#+begin_src emacs-lisp
(re-search-forward (format org-complex-heading-regexp-format
   (regexp-quote s))
   nil t)
#+end_src

I see that the cookie is ignored, but it seems that it can only be at
the end of the searched heading.

The approach taken in ox.el is different: it gets rid of the cookie in
the found headlines:

#+begin_src emacs-lisp
(org-element-map data 'headline
  (lambda (headline)
(when (equal (org-split-string
  (replace-regexp-in-string
   "\\[[0-9]+%\\]\\|\\[[0-9]+/[0-9]+\\]" ""
   (org-element-property :raw-value headline)))
 name)
  headline))
  info 'first-match)
#+end_src

This allows the cookie to be anywhere (in fact not even surrounded by
white space).

Should we assume the cookie is at the end of the headline or not?

>> Also, does ignoring whitespace mean replacing any (non-empty) amount of
>> whitespace by non-empty whitespace, or can you also insert or delete
>> whitespace between contiguous strings:
>> - do "foobar" and "foo bar" match?
>> - do "foo bar" and "foobar" match?
>
> The former. Or use `split string', like in
> `org-export-resolve-fuzzy-link'.

I'd gladly do this, but to use the `org-element-map' function it seem
that I need a parse tree. How can I get it? Or is it possible to use
directly `org-element-map' on a buffer?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] Bug: org-dblock-update expects function calendar-absolute-from-iso, which no longer exists

2015-01-12 Thread Marco Wahl
Marco Wahl  writes:

> Christoph LANGE  writes:
>>[...]

>> The following workaround helps:
>>
>> (defalias 'calendar-absolute-from-iso 'calendar-iso-to-absolute)

> [...]
>
> I try to fix the concrete issue immediately.

Fixed, I think.  The workaround should be not necessary any more for the
current head version.


Ciao
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] [bug] Wrong type argument: arrayp, nil

2015-01-12 Thread Sebastien Vauban
Hi Rasmus,

Rasmus wrote:
> Sebastien Vauban writes:
>
>> - baz ::
>>
>> generates the error "replace-regexp-in-string: Wrong type argument:
>> arrayp, nil".
>
> This has been fixed.

OK, thanks!

> I forgot to acknowledge that you reported the bug.  Sorry!!
> I can revert the commit and redo the commit if you think?

Never mind, it certainly is not a beauty contest where we'd all run
after popularity points.  What counts is that *you* *fixed* it!  Thx.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [bug] Wrong type argument: arrayp, nil

2015-01-12 Thread Rasmus
Sebastien Vauban 
writes:

> What counts is that *you* *fixed* it! 

I also introduced it cf. the log!

-- 
. . . It begins of course with The Internet.  A Net of Peers




[O] Order of drawers will be checked i nnew org version

2015-01-12 Thread Stefan-W. Hahn
Hello,

I tried current version of org-mode:

  commit 10954832e5168c301e4c0d266089a5f77062212b
  Author: Nicolas Goaziou 
  Date:   Thu Jan 1 21:37:35 2015 +0100

and got the problem that most of my drawers are now regarded as
misformatted and I'm asked for repair.

Adding a new property to a task checks if the :PROPERTIES: drawer is the
first drawer after the task headline. In my case this is in most cases not
the case, because most of my task have a :LOGBOOK: oder :CLOCK: drawer at
first after headline.

Is this intended? I didn't found anything in the code or documentation.
Or is it a bug?

In any case this breaks nearly all my org-files.

With kinde regards,
Stefan

-- 
Stefan-W. Hahn  It is easy to make things.
It is hard to make things simple.



[O] contribution: ob-php

2015-01-12 Thread Hex
I use org mode for code review quite a bit. It's awesome to be able to
throw snippets of code in a doc and be able to verify fixes within the
doc. I noticed there's no PHP mode (and totally understand why seeing
as how "literate programming" is a keyword ;) so I wrote one.

Elsip isn't exactly a language I hit a lot, so it might be pretty
rough. I added the following files:

lisp/ob-php.el
testing/examples/ob-php-test.org
testing/lisp/test-ob-php.el

Unfortunately I wasn't able to run the test suite even against the
clean pull...

> Eager macro-expansion failure: (void-variable test-line)
> Symbol's value as variable is void: test-line

... but I ran all tests by hand and they passed, so I'd be surprised
if they didn't run in the suite.

I also submitted an assignment contract request to the FSF. The patch
is attached. It's against rev 2668d9e9cecce37d5598275fce380842f5a4a28c. 

Is there anything else I need to do to get this code included? Can
someone review this?

diff --git a/lisp/ob-php.el b/lisp/ob-php.el
new file mode 100644
index 000..daaad07
--- /dev/null
+++ b/lisp/ob-php.el
@@ -0,0 +1,119 @@
+;;; ob-php.el --- org-babel functions for php evaluation
+
+;; Copyright (C) 2014 Josh Dukes
+
+;; Author: Josh Dukes
+;; Keywords: literate programming, reproducible research
+;; Homepage: http://orgmode.org
+;; Version: 0.01
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs 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.
+
+;; GNU Emacs 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 GNU Emacs.  If not, see .
+
+;;; Commentary:
+
+;; Org-Babel support for evaluating php source code.
+
+;;; Requirements:
+
+;; php and php-mode
+
+;;; Code:
+(require 'ob)
+
+;; optionally define a file extension for this language
+(add-to-list 'org-babel-tangle-lang-exts '("php" . "php"))
+
+(defvar org-babel-php-command "php"
+"Name of command for executing PHP code.")
+
+;; This function expands the body of a source code block by doing
+;; things like prepending argument definitions to the body, it is
+;; be called by the `org-babel-execute:php' function below.
+(defun org-babel-expand-body:php (body params &optional processed-params)
+  "Expand BODY according to PARAMS, return the expanded body."
+  (if (or (car (assoc :expand params)) nil)
+  (let ((full-body
+	 (org-babel-expand-body:generic
+	  body
+	  params
+	  (org-babel-variable-assignments:php params
+	(concat ""))
+(let ((vars
+	   (concat "")))
+  (concat vars body
+
+(defun org-babel-prep-session:php (session params)
+  "Prepare SESSION according to the header arguments in PARAMS."
+  (error "Sessions are not supported for PHP"))
+
+(defun org-babel-php-initiate-session (&optional session params)
+  "Return nil because sessions are not supported by PHP."
+  nil)
+
+(defun org-babel-execute:php (body params)
+  (let* ((session (cdr (assoc :session params)))
+	 (flags (or (cdr (assoc :flags params)) ""))
+	 (src-file (org-babel-temp-file "php-src-"))
+	 (full-body (org-babel-expand-body:php body params))
+	 (session (org-babel-php-initiate-session session))
+	 (results
+	  (progn
+	(with-temp-file src-file (insert full-body))
+	(org-babel-eval
+	 (concat org-babel-php-command
+		 " " flags " " src-file) ""
+(progn
+  (org-babel-reassemble-table
+   (org-babel-result-cond (cdr (assoc :result-params params))
+	 (org-babel-read results)
+ (let ((tmp-file (org-babel-temp-file "c-")))
+   (with-temp-file tmp-file (insert results))
+   (org-babel-import-elisp-from-file tmp-file)))
+   (org-babel-pick-name
+(cdr (assoc :colname-names params)) (cdr (assoc :colnames params)))
+   (org-babel-pick-name
+(cdr (assoc :rowname-names params)) (cdr (assoc :rownames params)))
+
+(defun org-babel-variable-assignments:php (params)
+  "Return a list of PHP statements assigning the block's variables."
+  (mapcar
+   (lambda (pair)
+ (format "$%s=%s;"
+	 (car pair)
+	 (org-babel-php-var-to-php (cdr pair
+   (mapcar #'cdr (org-babel-get-header params :var
+
+(defun org-babel-php-var-to-php (var)
+  "Convert an elisp var into a string of php source code
+specifying a var of the same value."
+  (if (listp var)
+  (concat "Array(" (mapconcat #'org-babel-php-var-to-php var ",") ")")
+  (format "%S" var)))
+
+(defun org-babel-php-table-or-string (results)
+  "If the results look like a table, then convert them into an
+Emacs-lisp table, otherwise return the

Re: [O] Order of drawers will be checked i nnew org version

2015-01-12 Thread Marco Wahl
Hi!

"Stefan-W. Hahn"  writes:

> I tried current version of org-mode:
>
>   commit 10954832e5168c301e4c0d266089a5f77062212b
>   Author: Nicolas Goaziou 
>   Date:   Thu Jan 1 21:37:35 2015 +0100
>
> and got the problem that most of my drawers are now regarded as
> misformatted and I'm asked for repair.
>
> Adding a new property to a task checks if the :PROPERTIES: drawer is the
> first drawer after the task headline. In my case this is in most cases not
> the case, because most of my task have a :LOGBOOK: oder :CLOCK: drawer at
> first after headline.
>
> Is this intended?

Yes.  See http://permalink.gmane.org/gmane.emacs.orgmode/91752 for a
relevant thread.

> I didn't found anything in the code or documentation.  [...]

See etc/ORG-NEWS or
http://orgmode.org/cgit.cgi/org-mode.git/plain/etc/ORG-NEWS.  Find there
also a repair function (thanks to Nicolas.)

> In any case this breaks nearly all my org-files.


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




[O] [Bug] org-store-link produces different results if called from keyboard macro

2015-01-12 Thread Felix Fernandes

In the following post,
http://stackoverflow.com/questions/27872038/emacs-keyboard-macro-fails-to-invoke-org-mode-capture-template,
artscan showed that org capture templates don't work in org v.8.2.10 when
invoked from within a keyboard macro. I reproduce his results here.

The following function
(defun test-inside-kbd-macro ()
  (interactive)
  (print (ignore-errors (org-store-link nil
gives different results depending on how it was executed. 

(1) M-x test-inside-kbd-macro gives
"[[file:~/git/org/refile.org::*kbd%20capture][kbd capture]]" (string), but 
(2)(execute-kbd-macro (read-kbd-macro "M-x test-inside-kbd-macro RET"))
gives ("file:~/git/org/refile.org::*kbd capture" "kbd capture") (list). 

Consider the last 10 lines of function org-store-link. Note that in Case (1)
the value of the function test-inside-kbd-macro is created using
(org-make-link-string link desc) but in Case (2) it is created by (car
org-stored-links)
Hence the differing results. 

Consequently, the following keyboard test macro, (in which C-c c is bound to
M-x org-capture)
  (fset 'jj   [?\C-c ?c ?t ?j ?j  return ?\C-c ?\C-c]) 
which invokes this capture template definition
   (setq org-capture-templates '(("t" "Todo" entry (file "~/org/j.org"
produces the following error message:
After 0 kbd macro iterations: byte-code: Capture abort: (wrong-type-argument
stringp (file:~/org/todo.org::*Tasks Tasks))

I consider this a bug because such macros which invoked the capture template
did work in org v7.8.02. 

The org-mode configuration and backtrace for these bugs are available in the
preceding stackoverflow post and also in this previous
post:http://thread.gmane.org/gmane.emacs.orgmode/93890




[O] Hiring a programmer

2015-01-12 Thread Yuri Niyazov
I'd like to hire a programmer to hack on some things in org-mode for
my use. If these improvements are contributed back the main org-mode
repository, would the copyright assignment have to come from me, or
from the programmer?



Re: [O] Hiring a programmer

2015-01-12 Thread Peter Davis
Yuri Niyazov  writes:

> I'd like to hire a programmer to hack on some things in org-mode for
> my use. If these improvements are contributed back the main org-mode
> repository, would the copyright assignment have to come from me, or
> from the programmer?

It actually depends on the terms of hiring. In the U.S., a "work for
hire" contract means you own all rights to the results of the work, so
assigning rights to someone else would come from you.

Other arrangements are possible, and you can specify in the terms who
owns what rights, assuming your programmer agrees.

-pd




Re: [O] Transforming org-mode project in Gantt graphes

2015-01-12 Thread Alexandre Norman
Hello,

I reworked on my code. You can find it here :
https://pypi.python.org/pypi/python-gantt/

or with pip ::

  pip install python-gantt


Enclosed, there is two parts :

- python-gantt : this library is used to draw gantt svg charts from python
- org2gantt : used to transform org-mode files to python-gantt ones


You can see outputs here :

 - http://xael.org/norman/python/python-gantt/project.png
 - http://xael.org/norman/python/python-gantt/project_resources.png

Installation


To install python-gantt, just issue :

  python setup.py install

It requires :
- svgwrite
- clize

Usage
-

For using org2gantt, see help :

  python org2gantt/org2gantt.py -h


Basic usage is :

  python org2gantt/org2gantt.py org2gantt/example.org

It should generate two charts : one for tasks and one for resources
assignment.


Syntax for org-mode
---

See org2gantt/example.org and org2gantt/README.org for detailed
explanations.
Basically, you need to define :
- resources : in a special section "RESOURCES"
- and projects containing tasks.

Timeframe of tasks is defined by  (beginning) and 
(end).
Some properties are used for :
- duration of the task
- define some task's blockers
- resources used
- and some other things

Syntax is mostly compatible with org-taskjuggler when you have renamed
RESOURCES
section.

In addition, resources can also be defined as tags. I think it's better
than the
org-taskjuggler property method as you can use them directly in org-mode !


My work flow
---

I work for a big company with two missions :
- sysadmin (os + apps) on a 300+ server park,
- do some integration and qualification on applications,
- deploy those applications on our servers.

I am managing 15 persons in two teams. One do daily sysadmin and the other
one
do the IQ and deployment part.

For the sysadmin part, it's quite straightaway : daily repetitive tasks,
and little
scheduling (server installation, patch, updates…)

For the IQ / deployment team, the dates of operations are not defined by me
but
others (devs for the delivery and clients for production interruption).

Scheduling is done with a long term view (6 months - 1 year)… but evolve
as dev are usually in hurry at first and in late at the end.

For this, I need to check resources allocation in order to be able to do the
work. I used ganttproject for this. But it is not really user friendly and
lack
good outputs I can share with others.

org2gantt allows me to do some nice pictures for big managers. And with
org-mode, it helps me to easily keep track of tasks (notes, documents,
milestones) and who is assigned to what.
Org-mode is also really usefull keep the someday/maybe notes.


Regards,
Alexandre


On Mon, Jan 5, 2015 at 10:44 AM, Alexandre Norman  wrote:

> Hello,
>
>
> On Mon Jan 05 2015 at 10:07:47 Pascal Fleury 
> wrote:
>
>> Happy New Year!!!
>>
>
> Thanks.
> I wish you (all) an happy new year also !
>
>>
>> Just curious: did you see this ? http://orgmode.org/worg/org-
>> tutorials/org-taskjuggler.html
>>
>
> Unfortunately, no.
>
>
>> I must say I like your output better, rather than opening another tool.
>> But maybe there is a way to at least use the same properties to make it
>> useful to more users ?
>>
>
> After a quick look, there are good design ideas to take…
> I think I will do the switch !!!
>
> Thanks !
> Alexandre
>
>


Re: [O] doc patch: move footnote in external links

2015-01-12 Thread Nicolas Goaziou
Alan Schmitt  writes:

> Should we assume the cookie is at the end of the headline or not?

The cookie can be anywhere within the headline text.

> I'd gladly do this, but to use the `org-element-map' function it seem
> that I need a parse tree. How can I get it? Or is it possible to use
> directly `org-element-map' on a buffer?

You don't need to use `org-element-map'[fn:1]. However, you cannot just use
`re-search-forward' either. You probably need to map over entries (e.g.,
with `org-map-entries'), apply some filter to current headline, and
compare it with link's path. This is slower than the current
implementation.

Another option would be to ignore only contents of statistics cookies,
not the whole cookie. This way we still can turn path into a proper
regexp.

WDYT?


Regards,

[fn:1] Btw, you get a parse tree with `org-element-parse-buffer'.



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

2015-01-12 Thread Nicolas Goaziou
Rasmus  writes:

> I can add documentation, but please reconfirm that you find the above
> limitations acceptable and want to see suggestions of modifying
> org-latex-packages-alist in the manual!

AFAIU, this is the only solution since we do not support titletoc in
core. The modification is pretty trivial, too.


Regards,



[O] New patches WAS Re: [PATCH] inline src block results can be removed

2015-01-12 Thread Charles C. Berry

On Sun, 16 Nov 2014, Nicolas Goaziou wrote:


"Charles C. Berry"  writes:


For now, I'd be willing to make patches that will allow removal of the
inline src block results that do *not* involve these header args:

- :file 
- :wrap 
- :results latex html drawer org code

which I can do barely touching `org-babel-insert-result' and this
simplifies matters a lot.


IMO, we're too much focused on the implementation details. We ought to
agree on what should be done first. For example, considering
`org-babel-insert-result' and its RESULT-PARAMS argument, I think the
following makes sense:

 | Param   | Example output|
 |-+---|
 | default | {{{results(42)}}} |
 | file| {{{results(file:something.pdf)}}} |
 | list|   |
 | raw | 42|
 | drawer  |   |
 | org | {{{results(src_org{...})}}}|
 | html| {{{results(@@html:...@@)}}}   |
 | latex   | {{{results(@@latex:...@@)}}}  |
 | code| {{{results(src_xxx{...})}}}|

Basically, it should be possible to remove any kind of result using
"results" macro, with the exception of "raw".  "list" and "drawer" can
be ignored since there is no inline equivalent.

Another option for "drawer" is to also use export snippets. So,
basically, "drawer something" would generate
{{{results(@@something:...@@)}}}.



I'm back online.

I've attached three patches and two files that show the behavior under the 
current master (12 Jan 2015, e0879b03d08bb4acc663084076370482f61e8698) and 
under the patched version.


With the patches, inline source block results can be removed by 
re-executing the source block if they are wrapped in a 
`{{{results(...)}}}' macro. The schema for the RESULT-PARAMS is as 
follows, but see the examples for caveats:


  | Param   | Example output|
  |-+---+
  | default/replace | {{{results(=42=)}}}   |
  | list| \n: - 42\n\n  |
  | raw | 42|
  | drawer/wrap | {{{results(42)}}} |
  | org | {{{results(src_org{...})}}}   |
  | html| {{{results(@@html:...@@)}}}   |
  | latex   | {{{results(@@latex:...@@)}}}  |
  | code| {{{results(src_emacs-lisp{...})}}}|
  | table   | \n| 42 |\n\n  |
  |-+---+

where the default is `src_emacs-lisp{42}' and subsequent rows give the 
`:results' arg.


`:file my.pdf' produces `{{{results([[file:/my.pdf]])}}}', although
link style fontification and open on click are lost as a consequence.

Also `:wrap whatknot' does the obvious.

In addition a few bugs have been squashed (as seen in the difference 
between the two example files).


The `results' macro is hard coded to wrap `value' except when list, table, 
or raw is specified as a RESULT-PARAM or when (listp value). And obviously, :file


Users can still customize org-babel-inline-result-wrap, but the macro will 
wrap the around whatever it yields.


HTH,

Chuck

p.s. The November dates on the patches are a result of using
`git rebase -i' to squash newer commits on top of older ones.From badc80465860ad63251ae68170cc09daa676b490 Mon Sep 17 00:00:00 2001
From: chasberry 
Date: Thu, 13 Nov 2014 20:45:01 -0800
Subject: [PATCH 1/3] lisp/ob-core.el: Inline source block results are
 replaceable

* lisp/ob-core.el (org-babel-insert-result): Delete any `results'
  macro following current inline src block; insert current value in
  'results' macro possibly wrapping RESULT in an export snippet or
  inline source block first. Protect commas and backslash commas in the
  RESULT with backslashes if the macro form is used.

* lisp/ob-core.el (org-babel-remove-inline-result): Add function to
  delete "{{{results(.*)}}}" macro call of current inline src block.

Inline source block results can be removed by re-executing the source
block if they are wrapped in a `{{{results(...)}}}' macro. The schema
for the RESULT-PARAMS is:

  | Param   | Example output|
  |-+---+
  | default | {{{results(42)}}} |
  | file| {{{results(file:something.pdf)}}} |
  | list| \n: - 42\n\n  |
  | raw | 42|
  | drawer  | {{{results(42)}}} |
  | org | {{{results(src_org{...})}}}   |
  | html| {{{results(@@html:...@@)}}}   |
  | latex   | {{{results(@@latex:...@@)}}}  |
  | code| {{{results(src_xxx{...})}}}   |
  | table   | \n| 42 |\n\n  |
  |-+---+

where the default is `src_emacs{42}' and subsequent rows give the `:results' 
arg.

The `:wrap something' header arg gives an

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

2015-01-12 Thread Rasmus
Hi,

Nicolas Goaziou  writes:

> AFAIU, this is the only solution since we do not support titletoc in
> core. 

As said, I'd prefer load hyperref via org-latex-hyperref-template, but
it's probably too big a change too late.  Though, it would resolve the
"issue" that if I do

   (setq org-latex-default-packages-alist
 (delete '("" "hyperref" nil)
 org-latex-default-packages-alist))

Hypersetup is still inserted.

> The modification is pretty trivial, too.

Of course, but isn't it contradicting the docstring of
org-latex-default-packages-alist?

> Therefore you should not modify this variable unless you know what you
> are doing.

Unless I've managed to convenience you otherwise I will add a footnote
explaining and recommending the following snippet

(with-eval-after-load 'ox-latex
  (require 'cl)
  (let* ((packages (mapcar (lambda (elt) (and (listp elt) (nth 1 elt)))
   org-latex-default-packages-alist))
 (pos (position "hyperref" packages :test 'equal))
 (titletocp (member "titletoc" packages)))
(when (and pos (not titletocp))
  (push '("" "titletoc" nil)
(nthcdr pos org-latex-default-packages-alist)


Cheers,
Rasmus

-- 
. . . The proofs are technical in nature and provides no real
understanding



Re: [O] Hiring a programmer

2015-01-12 Thread Achim Gratz
Yuri Niyazov writes:
> I'd like to hire a programmer to hack on some things in org-mode for
> my use. If these improvements are contributed back the main org-mode
> repository, would the copyright assignment have to come from me, or
> from the programmer?

IANAL… you'd normally own the resulting program, so you'd be the one to
assign the copyright to the FSF as well (just as Google does for their
employees).  But in some jurisdictions the programmer retains some
rights (and the moral rights on the works are non-transferrable) and
there the contract would need to spell out which parts of the copyright
are transferred to you so you can assign to the FSF.  If the programmer
already has the copyright transferred to the FSF then things get even
more interesting.  In short, have a lawyer that knows something about
copyright set up that contract.


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

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




[O] org-download.el

2015-01-12 Thread Chao Lu
Dear all,

Does anyone get org-download.el to work under Mac OSX? I'm struggling to
get it work, but it seems to help a lot, empowering org to handle images a
lot easier.

I believe I've installed org-download.el correctly, but when I'm dragging
and drop the image into an org buffer, all I get is the link address
inserted into the buffer, no downloading events trigger.

I double checked a few things before coming here:
- My system has both curl and download.
- I've set the download image dir to ~/Downloads/Foo
- The value of dnd-protocol-alist contains
("^\\(https?\\|ftp\\|file\\|nfs\\)://" . org-download-dnd)

The emacs I'm using is "GNU Emacs 24.3.1 (x86_64-apple-darwin, NS
apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org"

Is there any thought what I should check?

Best,

Chao