[O] [PATCH] ox: add Simplified Chinese translations for `org-export-dictionary'

2013-07-02 Thread feng shu



0001-ox-add-Simplified-Chinese-translations-for-org-expor.patch
Description: Binary data


[O] [PATCH] ox-latex.el: Wrap table into figure environment

2013-07-02 Thread Xavier Garrido

Hi Orgers,

Since I did not find another way to do it, I would like to submit the 
following patch


diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 09928a4..3da2dd5 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -2333,6 +2333,7 @@ This function assumes TABLE has `org' as its 
`:type' property and

 ((and (not float) (plist-member attr :float)) nil)
 ((string= float sidewaystable) sidewaystable)
 ((string= float multicolumn) table*)
+((string= float figure) figure)
 ((or float (org-element-property :caption table))
  table)
 ;; Extract others display options.

Maybe it is quite counterintuitive to use =figure= environment inside 
=table= env. but I heavily use tabular to put figures side-by-side or on 
a grid array (I guess I am not the only one). There may be a better way 
to achieve that...


Cheers,
Xavier



Re: [O] Using different image format given the export backend

2013-07-02 Thread Xavier Garrido

Hi Vincent,

Thanks for the trick. Until I found something else I will try it ;)

Xavier

Le 01/07/2013 21:22, Vincent Beffara a écrit :


Hello,


#+CAPTION: Toto figure
#+NAME: fig::toto
#+ATTR_LATEX: :width 0.38\textwidth
#+BEGIN_SRC emacs-lisp :exports results :results value raw
(case (and (boundp 'backend) backend)
  (nil )
  (latex [[file:./toto.pdf]]
  (html  [[file:./toto.png]]))
#+END_SRC


I do it like this:

(defun vb-massage-includegraphics (str backend opts)
   (replace-regexp-in-string .png} .pdf} str))
(add-hook 'org-export-filter-final-output-functions
   'vb-massage-includegraphics)

And then, simply refer to the png file in the .org file. Then nothing
happens for the html output, but on latex export, the regexp matches the
'}' and includes the .pdf file instead.

That is extremely ugly, and makes plenty of assumptions, most of all
that the .pdf file exists. And it should probably test for the value of
'backend'. But for personal use, it is convenient ...

/v





[O] [PATCH](v2) ox: add Simplified Chinese translations for `org-export-dictionary'

2013-07-02 Thread feng shu



0001-ox-add-Simplified-Chinese-translations-for-org-expor.patch
Description: Binary data


[O] [question] What does list of listing mean?

2013-07-02 Thread feng shu
Hi

List of listing  = list of figure ?


Thanks!

feng


Re: [O] Refiling list items

2013-07-02 Thread Bastien
Samuel Wales samolog...@gmail.com writes:

 Now there is a new bug.  When the region is not active, I expect an
 ordinary refile.

 What happens instead is that the entire entry gets copied to the
 target location and the line point is on gets deleted.

Argh, should be fixed now.  Thanks for reporting!

-- 
 Bastien



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Alan Schmitt
devn...@karl-voit.at writes:

 Unison does not offer any merge functionality. However, you can
 easily use third party tools to handle merge conflicts (Emacs, vim,
 ...).

(Disclaimer, I participate in Unison's development). Just to clarify
what I think Karl is saying: one can plug in external tools to handle
merge into unison, these tools can be specialized depending on the file
name (for instance the file extension) or the file path. Getting the
correct configuration line may be tricky, but I, or people on the
unison-users mailing list, are ready to help.

Alan



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Karl Voit
* Alan Schmitt alan.schm...@polytechnique.org wrote:
 devn...@karl-voit.at writes:

 Unison does not offer any merge functionality. However, you can
 easily use third party tools to handle merge conflicts (Emacs, vim,
 ...).

 (Disclaimer, I participate in Unison's development). 

Jay! \o/

 Just to clarify what I think Karl is saying: one can plug in
 external tools to handle merge into unison, these tools can be
 specialized depending on the file name (for instance the file
 extension) or the file path. Getting the correct configuration
 line may be tricky, but I, or people on the unison-users mailing
 list, are ready to help.

Of course. Thanks for clarifying!

Alan, how about a short how-to on Worg about Unison and Org-mode
methods?

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

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




[O] finding a parent node

2013-07-02 Thread Łukasz Stelmach
Hello All.

What is the best way to iterate over ((great)*grand)?parent headlines of
the current one (at point), that meets some criteria.

--8---cut here---start-8---
* Projects
  I am working on.

** Project for Mondays

*** tasks

*** resources

** Project for the rest of the week

*** tasks:TASKS:
^  -- (3) I'd like it to move here
If I do this stuff I will rule the world.
 ^   - (2) or it may be here.
 TODO do this  

 TODO do that  
 I am trying.
 ^ -- (1) point is here
 TODO WAT?

*** resources
--8---cut here---end---8---

With my point somewher deep I'like to find the closest parent heading
tagged :TASKS:.

If that helps, I'd like to export the subtree of the heading I find by
simply running the export function at any point of the subtree.

Kind regards,
-- 
Łukasz Stelmach
Samsung RD Institute Poland
Samsung Electronics




Re: [O] Broken Link on worg (org-contribute)

2013-07-02 Thread Bastien
Hi Josiah,

Josiah Schwab jsch...@gmail.com writes:

 The link to the emacs elisp coding conventions on the page
 http://orgmode.org/worg/org-contribute.html
 was incorrect.

 I have attached a patch which fixes the link.

Applied, thanks.  Please send me your public key if you
want to fix these yourself next time.

Best,

-- 
 Bastien



Re: [O] [question] What does list of listing mean?

2013-07-02 Thread Sebastien Vauban
Hello Feng,

 List of listing  = list of figure ?

No. A listing is a code block, printed (in LaTeX) via Listings or via Minted.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Rasmus
Hi,

Nice discussion.  I hope it makes it into a Worg page eventually :)

Karl Voit devn...@karl-voit.at writes:
 * Alan Schmitt alan.schm...@polytechnique.org wrote:
 Just to clarify what I think Karl is saying: one can plug in
 external tools to handle merge into unison, these tools can be
 specialized depending on the file name (for instance the file
 extension) or the file path. Getting the correct configuration
 line may be tricky, but I, or people on the unison-users mailing
 list, are ready to help.

 Of course. Thanks for clarifying!

 Alan, how about a short how-to on Worg about Unison and Org-mode
 methods?

Yeah, I'd like that too.  

Another option is Git Annex.  In my experience, it takes some effort
to get used to it, but perhaps less so if you're used to git.  One can
configure it to use regular git for e.g. text files.  It's build with
Haskell (and success of building it is more or less random), but the
author now provides binary packages for 32 and 64 bits.

It comes with a webapp, which provides a minimalistic gui and
handles registration of new files etc.

And there's of course Bittorrent Sync, but its source has yet to be
released, but this is true for the dropbox as well.

–Rasmus

-- 
This is the kind of tedious nonsense up with which I will not put




Re: [O] [PATCH] ox-latex.el: Wrap table into figure environment

2013-07-02 Thread Rasmus
Xavier,

 Since I did not find another way to do it, I would like to submit the
 following patch

Great!

 diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
 index 09928a4..3da2dd5 100644
 --- a/lisp/ox-latex.el
 +++ b/lisp/ox-latex.el
 @@ -2333,6 +2333,7 @@ This function assumes TABLE has `org' as its
 :type' property and
((and (not float) (plist-member attr :float)) nil)
((string= float sidewaystable) sidewaystable)
((string= float multicolumn) table*)
 +  ((string= float figure) figure)
((or float (org-element-property :caption table))
 table)
;; Extract others display options.



 Maybe it is quite counterintuitive to use =figure= environment
 inside =table= env. but I heavily use tabular to put figures
 side-by-side or on a grid array (I guess I am not the only one). There
 may be a better way to achieve that...

Yeah, you should do it with the package subfigure or subcaption.  I
use the latter mostly, recently.  Do /not/ use the package subfig!  Is
there support for this now?  I have no idea.  I've usually just added
it manually, with #+LATEX-lines.  But I agree that support might be
nice.  It could probably be handled how matrices are handled
(i.e. with no newline between the lines tables and #+LATEX_ATTR lines
they are put into the same math environment).  

I don't know how often people requires side-by-side floats, but for me
it would certainly be of interest.  I lack time experimenting with it
right now, though.

–Rasmus

-- 
May contains speling mistake





Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Myles English

Hi,

Rasmus writes:

 Another option is Git Annex.  In my experience, it takes some effort
 to get used to it, but perhaps less so if you're used to git.  One can
 configure it to use regular git for e.g. text files.  It's build with
 Haskell (and success of building it is more or less random), but the
 author now provides binary packages for 32 and 64 bits.

And git-annex is supported by the org attachment features, the author of
git-annex, Joey Hess, has also written a tool called 'mr'.

I sync between computers on a LAN and keep my org files in a git repo,
and the attachment directory, named 'data' by default, is another git
repo.  To sync both of these repos at the same time, they are collected
together in a .mrconfig file like this:


[DEFAULT]
lib =
syncOrg() {
git commit -a -m update || true
git pull pi master
git push pi master
}
[org]
update = syncOrg

[org/data]
update = syncOrg

other git repos can be added of course.  These pull and push to/from a
bare repos on a RaspberryPi that is always on.

There are some things that I wish worked better and I feel could be
improved:

1) when you add a repo (e.g. adding an attachment to an attachment will
result in a nested repo because an attachment isn't self-aware) the
corresponding bare repo must be added to the .mrconfig and the RaspPI.

2) git log shows lots of commit messages in the master branch that say

Merge branch 'master' of pi:org/etc

or

update

and so Made some really important changes becomes buried in the log.
I have a feeling that this could be fixed by using a separate branch for
syncing, but there would still be a merge commit message.

Myles



Re: [O] finding a parent node

2013-07-02 Thread Thorsten Jolitz
l.stelm...@samsung.com (Łukasz Stelmach) writes:

Hello,

 What is the best way to iterate over ((great)*grand)?parent headlines of
 the current one (at point), that meets some criteria.

not an answer to your question, but rather a related question I wanted
to post anyway, so I do it in this thread:

simple-test.org:
#+begin_src org
* header 1
  :PROPERTIES:
  :CUSTOM_ID: XYZ22
  :END:
* header 2
  [2013-06-28 Fr 11:01]
** subheader 1
Some text
** subheader 2

More text and a table

| label  | col1 | col2 |
|+--+--|
| string | 3| 4|

Text and a src-block

#+begin_src emacs-lisp
 (+ 3 4)
#+end_src

#+end_src

parse buffer:
#+begin_src emacs-lisp
(progn
  (goto-char (point-max))
  (newline 2)
  (insert
   (format %s
   (with-current-buffer
   (find-file-noselect
/path/to/simple-test.org)
 (setq tree (org-element-parse-buffer) )
#+end_src

excerpts form parse-tree:
#+begin_src emacs-lisp
  (org-data
   nil
   ;; first headline
   (headline
(:raw-value header 1 :begin 1 :end55 :pre-blank0 :hiddenp
  outline :contents-begin 12 :contents-end 55 :level 1 :priority
  nil :tags nil :todo-keyword nil :todo-type nil :post-blank
  1 :footnote-section-p nil :archivedp nil :commentedp nil :quotedp
  nil :CUSTOM_ID XYZ22 :CATEGORY simple-test :title (header
  1) :parent #0)

(section (:begin 12 :end 55 :contents-begin 12 :contents-end
  55 :post-blank 0 :parent #1)

 (property-drawer (:begin 12 :end 55 :hiddenp
  outline :contents-begin 27 :contents-end 47 :post-blank
  0 :post-affiliated 12 :parent #2) (node-property (:key
  CUSTOM_ID :value XYZ22 :begin 27 :end 47 :post-blank 0 :parent
  #3)

   ;; second headline
   (headline (:raw-value header 2 :begin 55 :end 295 :pre-blank
  0 :hiddenp outline :contents-begin 66 :contents-end 295 :level
  1 :priority nil :tags nil :todo-keyword nil :todo-type
  nil :post-blank 0 :footnote-section-p nil :archivedp
  nil :commentedp nil :quotedp nil :CATEGORY
  simple-test :title (header 2) :parent #0)

(section (:begin 66 :end 90 :contents-begin 66 :contents-end
  90 :post-blank 0 :parent #1) (paragraph (:begin 66 :end
  90 :contents-begin 66 :contents-end 90 :post-blank
  0 :post-affiliated 66 :parent #2)

 (timestamp (:type inactive :raw-value [2013-06-28 Fr
  11:01] :year-start 2013 :month-start 6 :day-start 28 :hour-start
  11 :minute-start 1 :year-end 2013 :month-end 6 :day-end
  28 :hour-end 11 :minute-end 1 :begin 68 :end 89 :post-blank
  0 :parent #3)) )) ...) )

#+end_src

now I can use `org-element-map' to access the elements and their attributes:

#+begin_src emacs-lisp
(insert
 (format \n\n%s
 (org-element-map
 tree
 'timestamp
   '(lambda (X) (org-element-property :raw-value X)

;; = ([2013-06-28 Fr 11:01])

#+end_src

this gives me the first timestamp element and its property list:
#+begin_src emacs-lisp
(setq stamp1
  (org-element-map
  tree
  'timestamp
'identity nil t))
#+end_src

but for further processing I always struggle with the :parent attribute and
the circularities in the list. 

I often would like to use just a sublist like this, with :parent being a Link
or ID and not the parent object that refers to its parent object and so on ...

#+begin_src emacs-lisp
(timestamp (:type inactive :raw-value [2013-06-28 Fr
  11:01] :year-start 2013 :month-start 6 :day-start 28 :hour-start
  11 :minute-start 1 :year-end 2013 :month-end 6 :day-end
  28 :hour-end 11 :minute-end 1 :begin 68 :end 89 :post-blank
  0 :parent ID of or LINK to #3))
#+end_src

I tried to use the NO-RECURSION arg of `org-element-map' for this, but often
the parent is a headline or section, and then 'org-element-map' doesn't enter
headlines or sections and returns nil, i.e. the timestamp is never found. 

Is there a way - using the parser/export framework toolbox - to avoid these
circularities, i.e. to either ignore the :parent attribute or better replace
the list object in it by something else that nevertheless identifies the
parent unmistakenly? 

I know that with special bookkeeping while walking the tree one can deal with
these circularities, maybe I'm just new to this stuff, but I feel they make
the usual processing of such a nested list a bit complicated. 

--
cheers,
Thorsten




Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Suvayu Ali
Hello,

On Mon, Jul 01, 2013 at 01:25:26PM -0300, Tomas Grigera wrote:
 On Mon, Jul 1, 2013 at 1:10 PM, Brian van den Broek 
 brian.van.den.br...@gmail.com wrote:
 
  bzr and hg are (superficially?) easier and git is pretty dominant.

 [...chomp...chomp...chomp...]

 But I agree with Brian that in the long run, though harder to learn, git is
 a charm.

A comment about using git:

I have noticed that git *always* conflicts with TODO state changes.  It
seems changes to a headline is not easy to resolve.  This is where the
Org merge tool would be perfect.  There was a GSoC project[1], but I
have not tested the end result.  As far as I recall, although
functional, it was not complete.

Please do not take this as a vote against using git, I use it myself and
I'm a big git enthusiast (as many on the list know by now :-p).

Cheers,


Footnotes:

[1] 
http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/git-merge-tool/

-- 
Suvayu

Open source is the future. It sets us free.



[O] How to apply longtable onto a clocktable?

2013-07-02 Thread Sebastien Vauban
Hello,

For time-reporting purpose, I need to use `longtable' for my work table, as it
becomes way too long (over one page).

However,

  #+attr_latex: :environment longtable :float nil

seems completely ignored in that case. Hence, the results is a `tabular'
inside a `table' float...

Here an ECM (where the table is not so long).

--8---cut here---start-8---
#+TITLE: ECM Prestas
#+OPTIONS:   H:4 num:t toc:t

* Tasks

Some tasks with CLOCK lines.

** Design

*** TODO Do this
:LOGBOOK:
CLOCK: [2013-06-19 Wed 09:00]--[2013-06-19 Wed 10:11] =  1:11
:END:
:PROPERTIES:
:Effort:   2:00
:END:

** Develop

*** TODO Do that
:LOGBOOK:
CLOCK: [2013-06-19 Wed 10:00]--[2013-06-19 Wed 12:22] =  2:22
CLOCK: [2013-06-20 Thu 10:01]--[2013-06-20 Thu 12:35] =  2:34
:END:

* Reporting

** Summary

#+TBLNAME: prestasTotal
#+attr_latex: :environment longtable :float nil
#+BEGIN: clocktable :maxlevel 4 :scope file :block 2013-06 :lang en :narrow 
80! :indent t
#+CAPTION: Clock summary at [2013-07-02 Tue 12:16], for June 2013.
| Headline| Time |  |  |
|-+--+--+--|
| Total time  | 6:07 |  |  |
|-+--+--+--|
| Tasks   | 6:07 |  |  |
| \__ Design  |  | 1:11 |  |
| \_ TODO Do this |  |  | 1:11 |
| \__ Develop |  | 4:56 |  |
| \_ TODO Do that |  |  | 4:56 |
#+END:
--8---cut here---end---8---

How can I set the desired table environment?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] finding a parent node

2013-07-02 Thread Thorsten Jolitz
l.stelm...@samsung.com (Łukasz Stelmach) writes:

Hello Lukasz, 

assume my simple-test.org with a :TASK: tag:

#+begin_src org
* header 1
  :PROPERTIES:
  :CUSTOM_ID: XYZ22
  :END:
* header 2 :TASK:
  [2013-06-28 Fr 11:01]
** subheader 1
Some text
** subheader 2

More text and a table

| label  | col1 | col2 |
|+--+--|
| string | 3| 4|

Text and a src-block

#+begin_src emacs-lisp 
 (+ 3 4)
#+end_src

#+end_src

 With my point somewher deep I'like to find the closest parent heading
 tagged :TASKS:.

Lets move point to the source-block and get `org-element-context':

#+begin_src emacs-lisp
(with-current-buffer
(find-file
 /path/to/simple-test.org)
(goto-char (point-min))
(org-babel-next-src-block)
(message %s (point))
 (format %s
 (org-element-context)))
#+end_src

#+begin_quote
(src-block (:language emacs-lisp :switches nil :parameters nil :begin 319
 :end 362 :number-lines nil :preserve-indent nil :retain-labels t :use-labels
 t :label-fmt nil :hiddenp nil :value (+ 3 4) :post-blank 0 :post-affiliated
 319 :parent nil))
#+end_quote

too bad, does not work in isolated use, :parent is nil. Othewise one could
get the parent(s) and check for the :TASK: tag. 

So the only way to find this headline I know of would be:

#+begin_src emacs-lisp
(with-current-buffer
  (find-file-noselect
 /path/to/simple-test.org)
  (let ((tree (org-element-parse-buffer)))
  (org-element-map tree 'headline
   (lambda (hl)
 (and
  (member TASK (org-element-property :tags hl))
  (list (org-element-property :begin hl)
(org-element-property :end hl)))
#+end_src

returns

,---
| ((55 362))
`---

so you could at least find out if (point) is inside a headline with a :TASK:
tag, then get this headline and use its attribute list to move to some place
inside of it. 

But I'm sure Nicolas can give you a much better solution (I would be
interested in that solution too). 

-- 
cheers,
Thorsten




[O] Weekly clock reports for the previous or current week, with a per-dayproject breakdown?

2013-07-02 Thread Steinar Bang
Is it possible to get a clock report for the previous week (and the
current week), with a breakdown of project and day? (this is how I need
it to fill out my time sheets)

Using Bernt Hansens instructions[1], I have been able to get the hours
for the current month: C-c a  a v m b R (in the clock table at the
bottom) 

And by experimentation I have found that this does the same thing for
the current week: C-c a  a b R

The command here http://doc.norang.ca/org-mode.html#VerifyingClockData
ie.: C-c a v m b v c
sounds from the description like it could do what I want.

However, I get only the days and their date, and the week number.  I
don't see any clocks for the different days...?

Thanks!

- Steinar


[1] http://doc.norang.ca/org-mode.html#TimeReportingAndTracking




[O] [PATCH] (V3) ox: add Simplified Chinese translations for `org-export-dictionary'

2013-07-02 Thread feng shu



0001-ox-add-Simplified-Chinese-translations-for-org-expor.patch
Description: Binary data


Re: [O] [PATCH] (V3) ox: add Simplified Chinese translations for `org-export-dictionary'

2013-07-02 Thread Feng Shu
Please include this V3 patch to master. Thanks!


Feng



Re: [O] finding a parent node

2013-07-02 Thread Łukasz Stelmach
It was 2013-07-02 wto 13:06, when Thorsten Jolitz wrote:
 l.stelm...@samsung.com (Łukasz Stelmach) writes:

 Hello Lukasz, 

 assume my simple-test.org with a :TASK: tag:

 #+begin_src org
 * header 1
   :PROPERTIES:
   :CUSTOM_ID: XYZ22
   :END:
 * header 2 :TASK:
   [2013-06-28 Fr 11:01]
 ** subheader 1
 Some text
 ** subheader 2

 More text and a table

 | label  | col1 | col2 |
 |+--+--|
 | string | 3| 4|

 Text and a src-block

 #+begin_src emacs-lisp 
  (+ 3 4)
 #+end_src

 #+end_src

 With my point somewher deep I'like to find the closest parent heading
 tagged :TASKS:.

 Lets move point to the source-block and get `org-element-context':

 #+begin_src emacs-lisp
 (with-current-buffer
 (find-file
  /path/to/simple-test.org)
 (goto-char (point-min))
 (org-babel-next-src-block)
 (message %s (point))
  (format %s
  (org-element-context)))
 #+end_src
 #+begin_quote
 (src-block (:language emacs-lisp :switches nil :parameters nil :begin 319
  :end 362 :number-lines nil :preserve-indent nil :retain-labels t :use-labels
  t :label-fmt nil :hiddenp nil :value (+ 3 4) :post-blank 0 :post-affiliated
  319 :parent nil))
 #+end_quote

 too bad, does not work in isolated use, :parent is nil. Othewise one could
 get the parent(s) and check for the :TASK: tag. 

 So the only way to find this headline I know of would be:

 #+begin_src emacs-lisp
 (with-current-buffer
   (find-file-noselect
  /path/to/simple-test.org)
   (let ((tree (org-element-parse-buffer)))
   (org-element-map tree 'headline
(lambda (hl)
  (and
   (member TASK (org-element-property :tags hl))
   (list (org-element-property :begin hl)
 (org-element-property :end hl)))
 #+end_src

 returns

 ,---
 | ((55 362))
 `---

 so you could at least find out if (point) is inside a headline with a :TASK:
 tag, then get this headline and use its attribute list to move to some place
 inside of it. 

 But I'm sure Nicolas can give you a much better solution (I would be
 interested in that solution too). 

This might be enough for me as I get the tree in the exporting
code.  However, this way is far from efficient. If only there was a way
to find the current element in the tree.

I am not sure yet, but a sequence of org-back-to-heading  and
re-search-backward inside a save-excursion may be the easiest way to
place the point where I want it.

Any other thoughts?
-- 
Łukasz Stelmach
Samsung RD Institute Poland
Samsung Electronics




Re: [O] Weekly clock reports for the previous or current week, with a per-dayproject breakdown?

2013-07-02 Thread Łukasz Stelmach
It was 2013-07-02 wto 13:10, when Steinar Bang wrote:
 Is it possible to get a clock report for the previous week (and the
 current week), with a breakdown of project and day? (this is how I need
 it to fill out my time sheets)

 Using Bernt Hansens instructions[1], I have been able to get the hours
 for the current month: C-c a  a v m b R (in the clock table at the
 bottom) 

 And by experimentation I have found that this does the same thing for
 the current week: C-c a  a b R

 The command here http://doc.norang.ca/org-mode.html#VerifyingClockData
 ie.: C-c a v m b v c
 sounds from the description like it could do what I want.

How about

+ entering the agenda: C-c a 

+ choosing week view: v w

+ going forward and backward with f and b (respectively)

+ toggling clockreport if needed: v R

You might also want to read about clocktables

http://orgmode.org/org.html#The-clock-table

-- 
Łukasz Stelmach
Samsung RD Institute Poland
Samsung Electronics




Re: [O] finding a parent node

2013-07-02 Thread Thorsten Jolitz
l.stelm...@samsung.com (Łukasz Stelmach) writes:

 It was 2013-07-02 wto 13:06, when Thorsten Jolitz wrote:
 l.stelm...@samsung.com (Łukasz Stelmach) writes:
 This might be enough for me as I get the tree in the exporting
 code.  However, this way is far from efficient. If only there was a way
 to find the current element in the tree.

 I am not sure yet, but a sequence of org-back-to-heading  and
 re-search-backward inside a save-excursion may be the easiest way to
 place the point where I want it.

 Any other thoughts?


#+begin_src emacs-lisp
(defun tj/export-enclosing-header (tag backend)
  Export enclosing header with TAG member of tags.
  (save-excursion
(unless (org-on-heading-p)
  (outline-previous-heading))
(while (not (member tag (org-get-tags)))
  (outline-up-heading 1))
(org-export-as backend 'SUBTREEP)))
#+end_src


then doing (with point e.g. at the src-block)

,--
| M-: (tj/export-enclosing-header TASK 'html)
`--

works in my sample org file. Not sure if this what you are looking for

-- 
cheers,
Thorsten




Re: [O] Weekly clock reports for the previous or current week, with a per-dayproject breakdown?

2013-07-02 Thread Steinar Bang
 l.stelm...@samsung.com (Łukasz Stelmach):

 How about

 + entering the agenda: C-c a 

 + choosing week view: v w

Hm... I get invalid key when pressing 'v' after doing 'C-c a'... am I
missing some key binding or other setting?




Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes:

 +(defconst org-export-dictionary



Why?  



Re: [O] [question] What does list of listing mean?

2013-07-02 Thread Jambunathan K
feng shu tuma...@gmail.com writes:

 List of listing = list of figure ?

List of listing = List of src blocks



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Xebar Saram
Wow

thx guys, so many great tips ill slowly start looking into them. as i said
i am a neewb (and not to technical :)).

Alan, a unison guide focused on org would be great as some of the guys
mentioned.

best to all and thx alot for the info its truly helpful

take care

-Itai


On Tue, Jul 2, 2013 at 6:17 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote:

 Hello,

 On Mon, Jul 01, 2013 at 01:25:26PM -0300, Tomas Grigera wrote:
  On Mon, Jul 1, 2013 at 1:10 PM, Brian van den Broek 
  brian.van.den.br...@gmail.com wrote:
  
   bzr and hg are (superficially?) easier and git is pretty dominant.

  [...chomp...chomp...chomp...]

  But I agree with Brian that in the long run, though harder to learn, git
 is
  a charm.

 A comment about using git:

 I have noticed that git *always* conflicts with TODO state changes.  It
 seems changes to a headline is not easy to resolve.  This is where the
 Org merge tool would be perfect.  There was a GSoC project[1], but I
 have not tested the end result.  As far as I recall, although
 functional, it was not complete.

 Please do not take this as a vote against using git, I use it myself and
 I'm a big git enthusiast (as many on the list know by now :-p).

 Cheers,


 Footnotes:

 [1] 
 http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/git-merge-tool/
 

 --
 Suvayu

 Open source is the future. It sets us free.




Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Rasmus
Nicolas Goaziou n.goaz...@gmail.com writes:

 I would like to move every variable and function related to
 internationalization (i.e smart quotes and translations) in a dedicated
 file (ox-i18n.el) instead of ox.el.

 Considering ox.el is 6k lines long, I think it can be a bit tedious to
 locate and modify internationalization entries. And since we are missing
 quite a few translations, every little bit can help.

So I did some translation work today, and I now support this notion
further.  It's super tedious /finding/ all the correct variables, as
they are not spread all over the place.

Should the ox-latex language-code to babel list also be included in an
ox-int'l file?  The reason is that I found some bugs in this list
and perhaps further language related bugs would be easier to detect if
they were in the same file.

-- 
Don't panic!!!




Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Alan Schmitt
Hello Karl,

devn...@karl-voit.at writes:

 Alan, how about a short how-to on Worg about Unison and Org-mode
 methods?

Well, what would be there? If there is (and there may be) an external
tool that knows how to merge org files (it can be a 3-way merge, if it
makes things simpler), I could try to devise the magical incantation to
use it.

Alan



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Rasmus
Alan Schmitt alan.schm...@polytechnique.org writes:

 Alan, how about a short how-to on Worg about Unison and Org-mode
 methods?

 Well, what would be there? If there is (and there may be) an external
 tool that knows how to merge org files (it can be a 3-way merge, if it
 makes things simpler), I could try to devise the magical incantation to
 use it.

There's the GSOC project from last year:

 http://orgmode.org/cgit.cgi/org-merge-driver.git

Whether it is complete or abandoned I don't know.  Here's the Worg
page

  
http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/git-merge-tool/index.html

–Rasmus

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




[O] Use babel to import table data from OpenDocument spreadsheets?

2013-07-02 Thread James Harkins
Just wondering if anyone out there has some magic code snippets that will 
automatically bring in data from a LibreOffice spreadsheet during HTML export.

I think I could save, by hand, the required worksheets out of the ods file into 
separate CSVs, and then write an emacs-lisp Babel block to import the table 
from file -- presumably this would run the lisp function at export time.

But it would be so much slicker if something could go into the ods file 
directly and return the results in org table format. If somebody has already 
done something like this, it would save me quite a bit of time.

If not, I would have to weigh my available time (not much), the time it would 
take to implement (maybe not extremely difficult, but not trivial either, 
especially if it involves digging through LibreOffice library documentation) 
and the weekly time I would save by just hitting C-e h h, instead of doing 
another manual process before C-e h h.

(Or possibly an alternative would be to write a macro in LibreOffice to write 
the CSV files and run that from the commandline as part of the org export 
process.)

Thanks -- this is just, no harm in asking. Otherwise I'll deal with it some 
other way.

hjh



Re: [O] Use babel to import table data from OpenDocument spreadsheets?

2013-07-02 Thread James Harkins
At Tue, 02 Jul 2013 19:49:43 +0530,
Jambunathan K wrote:
 M-x org-odt-convert RET
 
 or
 
 (org-odt-convert ..)

Is this valid for .ods, or only .odt? The file is from LibreOffice Calc, not 
Writer.

I made a quick test and got only failed. From the Messages, I can see it's 
using a headless soffice, so maybe it needs some other command line parameters. 
That will have to wait for another day... busy with other things now.

Debug (ox-odt): Searching for OpenDocument styles files...
Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/...
Debug (ox-odt): Using styles under /usr/share/emacs/etc/org/styles/
Debug (ox-odt): Searching for OpenDocument schema files...
Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/...
Debug (ox-odt): Using schema files under /usr/share/emacs/etc/org/schema/
Making completion list...
Executing soffice --headless --convert-to csv --outdir 
/home/dlm/Documents/xinghai/12-13-spring/ 
/home/dlm/Documents/xinghai/12-13-spring/gradesheet.ods

Export to /home/dlm/Documents/xinghai/12-13-spring/gradesheet.csv failed

hjh



Re: [O] [BUG] :colnames not applied to #+call input

2013-07-02 Thread Rick Frankel

On 2013-06-30 19:21, Eric Schulte wrote:

Rick Frankel r...@rickster.com writes:

it seems that the :colnames header is not being respected on parsing 
the

input
to a `#+call:' line containing arguments, but is being applied to the
output!

For example:

#+BEGIN_SRC org
* Identity
#+name: table
| a | b | c |
|---+---+---|
| 1 | 2 | 3 |

#+name: identity
#+BEGIN_SRC emacs-lisp :var table=table :colnames yes
(mapcar 'identity table)
#+END_SRC

Emacs Lisp handles the :colnames header argument differently than other
languages, hence the Note that the behavior of the ':colnames' header
argument may differ across languages. phrase in the manual.  If you
remove :colnames yes from the emacs-lisp code block in your example
everything should work fine.


I understand the differing handling of ':colnames' in different
langauages, but you solution does not address the issue of not being
able to call the block. It would mean handling the header and
hline in the called block in all cases. The problem i am addressing is
that the :colnames argument to the original source block is being
applied on the reassembly of the output regardless of the value of the
:colnames argument to the call line. This is a regresssion since 7.9
(see the 7.9 example at the end of this message). Let's try a
different example to make the issue clearer.


Given the same table, and the method:

#+name: map
#+BEGIN_SRC emacs-lisp :var table=table :colnames yes
(mapcar (lambda (row) (mapcar '1+ row)) table)
#+END_SRC

The results are:

#+RESULTS: map
| a | b | c |
|---+---+---|
| 2 | 3 | 4 |


If I call the function w/o a table argument i get the same results.
However, if i try to pass the table argument, i get the following
errors:

/mapcar: Wrong type argument: number-or-marker-p, a/ on:

#+call: map(table=table)
#+call: map(table=table) :colnames yes
#+call: map[:colnames yes](table=table) :colnames yes

/Wrong type argument: sequencep, 1/ on:

#+call: map(table=table[2:-1])

(since the (now one row) table is turned into a list.

So there is no way to call this function with a single-row table as an
argument.

If we have the following table instead:

#+name: table2
| a | b | c |
|---+---+---|
| 1 | 2 | 3 |
| 4 | 5 | 6 |

we get:

#+name: map2
#+BEGIN_SRC emacs-lisp :var table=table2 :colnames yes
(mapcar (lambda (row) (mapcar '1+ row)) table)
#+END_SRC

#+RESULTS: map2
| a | b | c |
|---+---+---|
| 2 | 3 | 4 |
| 5 | 6 | 7 |

#+call: map2(x=)

#+RESULTS: map2(x=)
| a | b | c |
|---+---+---|
| 2 | 3 | 4 |
| 5 | 6 | 7 |

#+call: map(table=table2[2:-1])

#+RESULTS: map(table=table2[2:-1])
| a | b | c |
|---+---+---|
| 2 | 3 | 4 |
| 5 | 6 | 7 |


which looks right, but we shouldn't have any header on the above
results as we have (supposedly) stripped it from the input with the
slice).

Here' are the results from 7.9.3f. Note that calling the source block
with a single row table is still impossible in 7.9, as the slice is
still turned into a list, and the :colnames argument is also not being
applied to the input (but is only being applied to the output if
specified in the call line):

#+name: map2
#+BEGIN_SRC emacs-lisp :var table=table2 :colnames yes
(mapcar (lambda (row) (mapcar '1+ row)) table)
#+END_SRC

#+RESULTS: map2
| a | b | c |
|---+---+---|
| 2 | 3 | 4 |
| 5 | 6 | 7 |

#+call: map2(x=)

#+RESULTS: map2(x=)
| 2 | 3 | 4 |
| 5 | 6 | 7 |

#+call: map2(x=) :colnames yes

#+RESULTS: map2(x=):colnames yes
| a | b | c |
|---+---+---|
| 2 | 3 | 4 |
| 5 | 6 | 7 |

#+call: map(table=table2[2:-1])

#+RESULTS: map(table=table2[2:-1])
| 2 | 3 | 4 |
| 5 | 6 | 7 |

#+call: map(table=table2[2:-1]) :colnames yes

#+RESULTS: map(table=table2[2:-1]):colnames yes
| a | b | c |
|---+---+---|
| 2 | 3 | 4 |
| 5 | 6 | 7 |







Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Alan Schmitt
ras...@gmx.us writes:

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

 Alan, how about a short how-to on Worg about Unison and Org-mode
 methods?

 Well, what would be there? If there is (and there may be) an external
 tool that knows how to merge org files (it can be a 3-way merge, if it
 makes things simpler), I could try to devise the magical incantation to
 use it.

 There's the GSOC project from last year:

  http://orgmode.org/cgit.cgi/org-merge-driver.git

 Whether it is complete or abandoned I don't know.  Here's the Worg
 page

   
 http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/git-merge-tool/index.html

This looks nice. Has anyone tried it?

If someone can show me how to launch ediff from the command line, I can
explain how to set up Unison for it (I found this old question
http://superuser.com/questions/81958/how-to-make-emacsclient-wait-when-using-the-eval-option
but I find the busy waiting very ugly; maybe there is a better
solution).

Alan



Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Nicolas Goaziou
Hello,

Jambunathan K kjambunat...@gmail.com writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:

 +(defconst org-export-dictionary
 
 

 Why?

Because it is not meant to be changed by the user nor let-bound. IOW,
it's a constant.


Regards,

-- 
Nicolas Goaziou



Re: [O] Use babel to import table data from OpenDocument spreadsheets?

2013-07-02 Thread Jambunathan K

M-x org-odt-convert RET

or

(org-odt-convert ..)


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

 Just wondering if anyone out there has some magic code snippets that
 will automatically bring in data from a LibreOffice spreadsheet during
 HTML export.

 I think I could save, by hand, the required worksheets out of the ods
 file into separate CSVs, and then write an emacs-lisp Babel block to
 import the table from file -- presumably this would run the lisp
 function at export time.

 But it would be so much slicker if something could go into the ods
 file directly and return the results in org table format. If somebody
 has already done something like this, it would save me quite a bit of
 time.

 If not, I would have to weigh my available time (not much), the time
 it would take to implement (maybe not extremely difficult, but not
 trivial either, especially if it involves digging through LibreOffice
 library documentation) and the weekly time I would save by just
 hitting C-e h h, instead of doing another manual process before C-e h
 h.

 (Or possibly an alternative would be to write a macro in LibreOffice
 to write the CSV files and run that from the commandline as part of
 the org export process.)

 Thanks -- this is just, no harm in asking. Otherwise I'll deal with it some 
 other way.

 hjh



[O] scrum with emacs org-mode

2013-07-02 Thread thkoch

Hi,

has anybody some success stories to share how to use org-mode in scrum 
projects? Googling for scrum and org-mode already showed some interesting 
things:


* https://github.com/ianxm/emacs-scrum
* http://www.agilesoc.com/2011/08/08/emacs-org-mode-kanban-pomodoro-oh-my
* http://odisworld.blogspot.ch/search/label/Scrum

However none of the above links are very helpful when it comes to managing 
a project backlog.


If you have some free software tools besides org-mode please tell us for 
comparison!


Best regards, Thomas Koch




Re: [O] Use babel to import table data from OpenDocument spreadsheets?

2013-07-02 Thread Jambunathan K
James Harkins jamshar...@gmail.com writes:

 At Tue, 02 Jul 2013 19:49:43 +0530,
 Jambunathan K wrote:
 M-x org-odt-convert RET
 
 or
 
 (org-odt-convert ..)

 Is this valid for .ods, or only .odt? The file is from LibreOffice Calc, not 
 Writer.

 I made a quick test and got only failed. From the Messages, I can
 see it's using a headless soffice, so maybe it needs some other
 command line parameters. That will have to wait for another
 day... busy with other things now.

 Debug (ox-odt): Searching for OpenDocument styles files...
 Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/...
 Debug (ox-odt): Using styles under /usr/share/emacs/etc/org/styles/
 Debug (ox-odt): Searching for OpenDocument schema files...
 Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/...
 Debug (ox-odt): Using schema files under /usr/share/emacs/etc/org/schema/
 Making completion list...
 Executing soffice --headless --convert-to csv --outdir
 /home/dlm/Documents/xinghai/12-13-spring/
 /home/dlm/Documents/xinghai/12-13-spring/gradesheet.ods

 Export to /home/dlm/Documents/xinghai/12-13-spring/gradesheet.csv failed

Works here for simple files.

M-: (org-odt-convert file.ods csv)

Executing libreoffice4.0 --headless --convert-to csv --outdir 
/home/kjambunathan/ /home/kjambunathan/file.ods
convert /home/kjambunathan/file.ods - /home/kjambunathan//file.csv using Text 
- txt - csv (StarCalc)

Exported to /home/kjambunathan/file.csv
/home/kjambunathan/file.csv

AFAIK, if you can save as CSV from LO UI, then it should work from the
command line.  

Start with a simple file and isolate the issue.

 hjh



Re: [O] HTML export and info: links

2013-07-02 Thread Sebastian Wiesner
2013/6/30 Bastien b...@gnu.org:
 Hi Sebastian,

 Sebastian Wiesner lunary...@gmail.com writes:

 how can I customize info: links in HTML output?

 Look at org-info.el in the source code.

 You can extend

   (org-add-link-type info 'org-info-open)

 into

   (org-add-link-type info 'org-info-open org-info-export)

 and write a new `org-info-export' that will take care of
 exporting info links correctly in the backends you decide.

 See `org-bbdb-export' or `org-docview-export' for examples
 of such functions -- if you write `org-info-export', we
 might be interested in integrating it into Org!

Hardly the answer I hoped to get.   I'll stick to Texinfo for now…



Re: [O] Date format when exporting to LaTeX?

2013-07-02 Thread Nicolas Goaziou
Hello,

Richard Hansen rhan...@bbn.com writes:

 Unfortunately this does not work quite right with org-mode 7.8.03, so
 I'll have to make sure everyone I collaborate with upgrades their
 org-mode.  :(

There are (hopefully few) incompatibilities between Org 7 and Org 8,
indeed. Be cautious about it.

   * org-export-allow-bind-keywords must be true.  Adding it as a
 file-local variable is not an acceptable solution in my
 circumstance.

 I didn't have to set this variable when I was using 7.8.03 --
 org-mode simply asked me (once) if it was OK to bind the
 variables.  I miss that behavior.

Unfortunately, re-implementing that behaviour is not trivial. The
internals are just too different.


Regards,

-- 
Nicolas Goaziou



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Brett Viren
Alan Schmitt alan.schm...@polytechnique.org writes:

 Well, what would be there? If there is (and there may be) an external
 tool that knows how to merge org files (it can be a 3-way merge, if it
 makes things simpler), I could try to devise the magical incantation to
 use it.

It is not org-specific, but meld [1] is a Free and capable GUI merge
tool.  It can be used directly or can be invoked by git to resolve merge
conflicts.


-Brett.

http://meldmerge.org/


pgpXrGc9cQ3V4.pgp
Description: PGP signature


Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread David Engster
Suvayu Ali writes:
 I have noticed that git *always* conflicts with TODO state changes.  It
 seems changes to a headline is not easy to resolve.

You mean you change state in a file and git fails to merge this on the
other side, although you didn't change the same line there? I've never
seen such a spurious merge conflict with my Org files. Could you give an
example? It might be that simply switching to another diff.algorithm and
maybe also increasing diff.context would get rid of this.

-David



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Suvayu Ali
On Tue, Jul 02, 2013 at 04:27:27PM +0200, Alan Schmitt wrote:
 
 If someone can show me how to launch ediff from the command line, I can
 explain how to set up Unison for it (I found this old question
 http://superuser.com/questions/81958/how-to-make-emacsclient-wait-when-using-the-eval-option
 but I find the busy waiting very ugly; maybe there is a better
 solution).

I presume the assumption is you want emacsclient to open the files in
whatever GUI frame you have already open.  Another alternative would be
to ask emacsclient to create a new frame (-c for GUI, -nw for text
terminal); in that case it does not return immediately.

Hope that helps,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Suvayu Ali
Hi David,

On Tue, Jul 02, 2013 at 05:59:36PM +0200, David Engster wrote:
 Suvayu Ali writes:
  I have noticed that git *always* conflicts with TODO state changes.  It
  seems changes to a headline is not easy to resolve.
 
 You mean you change state in a file and git fails to merge this on the
 other side, although you didn't change the same line there? I've never
 seen such a spurious merge conflict with my Org files. Could you give an
 example? It might be that simply switching to another diff.algorithm and
 maybe also increasing diff.context would get rid of this.

Yes, exactly that.  I have stopped using multiple machines for a year
now, so I do not have an example at the moment.  My history is pretty
linear these days :).  If I can find the time, I will try work up an
example, but that is a big if.

That said, I think you might be right.  Possibly it could be resolved by
just changing the algorithm, I don't know why I never tried that though.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread David Engster
Suvayu Ali writes:
 That said, I think you might be right.  Possibly it could be resolved by
 just changing the algorithm, I don't know why I never tried that though.

You might want to try setting diff.algorithm to 'patience' and maybe
also raise diff.context to something like 6 or so if that doesn't solve
your problem. It very much depends on how your Org files look.

-David



Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Rasmus

Hello,

 +(defconst org-export-dictionary
 
 

 Why?

 Because it is not meant to be changed by the user nor let-bound. IOW,
 it's a constant.

But perhaps it should not be.  Consider org-export-smart-quotes-alist.
In Danish, according to the 'official' guidance, all of the following
are appropriate

(*)   ,,.'', ``.'', `.', ., ..

Basically, only the french . is not appropriate.  A similar
situation exists in Norwegian, to the best of my knowledge.  Why
should I (submitting a patch) be able to actively force which of forms
in (*) should be used?

One remedy /in LaTeX/ would be to let quote-characters be selected by
csquote, but I don't really know if I'd want to go that way. . .

Alternatively, we can populate the various language variables and
provide easy means to alter them, a la:

  (org-alter-language da :left-latex `` :right-latex '' :table tabel).

–Rasmus

-- 
⠠⠵




Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Nicolas Goaziou
Hello,

Rasmus ras...@gmx.us writes:

 Should the ox-latex language-code to babel list also be included in an
 ox-int'l file?  The reason is that I found some bugs in this list
 and perhaps further language related bugs would be easier to detect if
 they were in the same file.

I don't think so. Bugs in happening in latex export only are expected to
be found in ox-latex.


Regards,

-- 
Nicolas Goaziou



Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 Jambunathan K kjambunat...@gmail.com writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:

 +(defconst org-export-dictionary
 
 

 Why?

 Because it is not meant to be changed by the user nor let-bound. IOW,
 it's a constant.

Lately, users ARE modifying it.



 Regards,



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Suvayu Ali
On Tue, Jul 02, 2013 at 06:11:14PM +0200, David Engster wrote:
 Suvayu Ali writes:
  That said, I think you might be right.  Possibly it could be resolved by
  just changing the algorithm, I don't know why I never tried that though.
 
 You might want to try setting diff.algorithm to 'patience' and maybe
 also raise diff.context to something like 6 or so if that doesn't solve
 your problem. It very much depends on how your Org files look.

Is diff.algorithm new?  I could not find it in the manpage on my laptop
(git version 1.8.1.4).  However I do see it on the online docs[1].  In
any case, I have set the variables.  Next time I merge Org files, I get
to test it!

Thanks a lot David,


Footnotes:

[1] http://git-scm.com/docs/git-diff

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [PATCH] Let =`make'= be an option to =`org-latex-pdf-process'=.

2013-07-02 Thread Nicolas Goaziou
Hello,

feng shu tuma...@gmail.com writes:

 From 63eba2e491a0c410b3841cbad2dd1a9f80416bca Mon Sep 17 00:00:00 2001
 From: Feng Shu tuma...@gmail.com
 Date: Tue, 2 Jul 2013 11:52:10 +0800
 Subject: [PATCH] Let =`make'= be an option to =`org-latex-pdf-process'=.

 * ox-latex.el (org-latex-pdf-process): let =`make'= be a
   preconfigured choice and change the wording of the docstring.

I don't mind applying it, but shouldn't it as simple to provide
a function that will call make instead?

It's impossible to provide every solution in the wild for that. Is this
one really necessary: it doesn't have complicated arguments.


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] (V3) ox: add Simplified Chinese translations for `org-export-dictionary'

2013-07-02 Thread Nicolas Goaziou
Hello,

feng shu tuma...@gmail.com writes:

 * lisp/ox.el: (org-export-dictionary): Add Simplified Chinese translations for
 `org-export-dictionary'

Applied. Thank you!


Regards,

-- 
Nicolas Goaziou



Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes:

 Even though it is a defconst, you can still change it. You are not
 forced to anything. But you're on your own.

 By the way, it is a defconst because of the keys, which shouldn't be
 altered, not the values.

It /may/ be converted to a defcustom.  Lots of people seem interested in
modifying it.

Btw, HTML provides q /q for generating quotes.  This is what the
Creole markup engine for Oddmuse is using.  Apparently, the quotes
that gets emitted can be controlled on per-language basis through some
CSS.





Re: [O] [PATCH] (update) Add :caption attribute to #+ATTR_LATEX property

2013-07-02 Thread Nicolas Goaziou
Hello,

feng shu tuma...@gmail.com writes:

 Thanks all the people! This is V5!

Applied. Thank you!


Regards,

-- 
Nicolas Goaziou



Re: [O] fill paragraph: math and latex environments

2013-07-02 Thread Nicolas Goaziou
Hello,

Paul Stansell paulstans...@gmail.com writes:

 Nicolas Goaziou n.goaziou at gmail.com writes:

 Making \[...\] an element would mean that \[...\] cannot exist anymore
 within a paragraph. I'm not sure it's worth it.
 
 Also, I think it's good, in this case, to have both an inlined and
 a non-inlined version for the same thing.

 In Lamport's book on Latex he explains that \[...\] is for display style
 maths, that is, for maths that is not inside a paragraph but presented on
 it's own line.  Inside a paragraph one should use $...$ or \(...\) as they
 are for inline equations (and Latex treats them the same).  For display
 style maths Latex uses

 \begin{displaymath}
   ...
 \end{displaymath}

 and, for less typing,

 \[
   ...
 \] 

 and both are treated the same, ie., both produce the exact same output in
 the processed latex document.

 This being the case, my wish would be to see org mode treat

 \[
   ...
 \] 

 the same as

 \begin{displaymath}
   ...
 \end{displaymath}

 and not fill past it's boundaries.

If we allow \[...\] constructs to be an element, they cannot be
recognized as such within paragraphs. So

  Some text \[1+1\] and some other text

will not be recognized anymore, even though any latex editing mode
supports it. Again, I think it's not worth loosing it.

Also, using \begin{...}...\end{...} environments is not really an issue
with editing facilities in Emacs (e.g., yasnippets).


Regards,

-- 
Nicolas Goaziou



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Juan G .
Xebar Saram zeltakc at gmail.com writes:

 Alan, a unison guide focused on org would be great as some of the guys
mentioned.

As an example, I use the following ~/.unison/Org.prf file to sync files
between Org folders on a Debian Linux laptop and an Android phone:

# Unison preferences
label = Org-mode
root = /home/shared/Org
root = /media/8A07-A343/Org
times = true
perms = 0o1702
prefer = newer
ignore = Name {.directory}

Of course the two Linux and Android roots are just an example.

The line perms = 0o1702 solved some permission problems with the card in
the Android phone.





Re: [O] [PATCH] Let =`make'= be an option to =`org-latex-pdf-process'=.

2013-07-02 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 feng shu tuma...@gmail.com writes:

 From 63eba2e491a0c410b3841cbad2dd1a9f80416bca Mon Sep 17 00:00:00 2001
 From: Feng Shu tuma...@gmail.com
 Date: Tue, 2 Jul 2013 11:52:10 +0800
 Subject: [PATCH] Let =`make'= be an option to =`org-latex-pdf-process'=.

 * ox-latex.el (org-latex-pdf-process): let =`make'= be a
   preconfigured choice and change the wording of the docstring.

 I don't mind applying it, but shouldn't it as simple to provide
 a function that will call make instead?

 It's impossible to provide every solution in the wild for that. Is this
 one really necessary: it doesn't have complicated arguments.

Can (other ...) be used here?  See (info (elisp) Composite Types)



 Regards,



Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Nicolas Goaziou
Jambunathan K kjambunat...@gmail.com writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:

 Even though it is a defconst, you can still change it. You are not
 forced to anything. But you're on your own.

 By the way, it is a defconst because of the keys, which shouldn't be
 altered, not the values.

 It /may/ be converted to a defcustom.  Lots of people seem interested in
 modifying it.

Of course. Patch welcome.


Regards,

-- 
Nicolas Goaziou



Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes:

 Of course. Patch welcome.

The conversation is taking a humorous turn.



Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Rasmus
Nicolas Goaziou n.goaz...@gmail.com writes:

 Even though it is a defconst, you can still change it. You are not
 forced to anything. But you're on your own.

I agree, but it being a defconst, it comes with the message

  This declares that neither programs nor users should ever change
   the value.

 By the way, it is a defconst because of the keys, which shouldn't be
 altered, not the values. 

If that's really a the concern then why not write a function to alter
values in a safe manner?

Alternatively, it could stay defconst, and there could be a
org-export-smart-quotes-alist-user, defaulting to nil but taking
precedence over its non-user counterpart.  If people specify a wrong
language code it'll just be ignored.

–Rasmus

-- 
When in doubt, do it!




Re: [O] [PATCH] Let =`make'= be an option to =`org-latex-pdf-process'=.

2013-07-02 Thread Jambunathan K

 AFAIU, `other' means whatever your answer is, always do the same,
 which is not what we want.

 If you want give whatever you want and we'll use it, it should be
 a `string' type. But can't `function', which is already implemented, do
 the same anyway?

Well the OP can change the default value - the Shell command sequence
- to make.  I see no need for a change.

So `other' is like const.  May be it's a `restricted-sexp'.

 Regards,



[O] possible org-insert-heading bug?

2013-07-02 Thread Erik Iverson
Hello,

I am using a current git pull (Org-mode version 8.0.3,
release_8.0.3-345-g239aa7) and noticed behavior that's easiest to show
with a small example. If you save and visit the following org file,

https://dl.dropboxusercontent.com/u/7514404/test.org

you will see the behavior described and documented (assuming it's
reproducible under your version of emacs and orgmode).

Briefly M-RET at the end of a *folded* headline that contains plain
list items will insert a new plain list item at the end of the
subtree, instead of a new top-level headline. I believe this conflicts
with the documentation for M-RET, which currently reads:

... If the command is used at the end of a folded subtree (i.e.,
behind the ellipses at the end of a headline), then a headline like
the current one will be inserted after the end of the subtree...

Best,
--Erik



Re: [O] Standalone hyperlinked images in HTML export

2013-07-02 Thread Nicolas Goaziou
Hello,

Kodi Arfer k...@arfer.net writes:

 On 2013 Jul 01 Mon 5:01:46 PM -0400, Nicolas Goaziou  n.goaz...@gmail.com 
 wrote:
 I tried it with captions, :html5-fancy, and paths to images as well as
 path to non-images. All looks good. You're awesome.

 I see your patch also affects math export somehow, but I haven't
 tested that.

Applied to master. Thank you for the feedback.


Regards,

-- 
Nicolas Goaziou



Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Simon Thum

Hi,

I use git-sync against my own server, and replicate mobileOrg to a 
webdav directory from there.


  https://github.com/simonthum/git-sync

git-sync is intended for people who are git-savy, though.

Cheers,

Simon

On 07/01/2013 02:06 PM, Xebar Saram wrote:

Hi all

I have been using dropbox since i started using orgmode a few weeks ago
(yeah im a neewb :)), which kinda works but i find it very annoying as
it keeps creating conflicted copies, isnt reliable on my Linux main
machine etc etc..

I was wondering what you guys do for syncing org files between PC's,
Os's, devices (android etc)..

Best

Itai





Re: [O] [RFC] Introduce ox-i18n.el

2013-07-02 Thread Jambunathan K
Rasmus ras...@gmx.us writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:

 Even though it is a defconst, you can still change it. You are not
 forced to anything. But you're on your own.

 I agree, but it being a defconst, it comes with the message

   This declares that neither programs nor users should ever change
the value.

 By the way, it is a defconst because of the keys, which shouldn't be
 altered, not the values. 

 If that's really a the concern then why not write a function to alter
 values in a safe manner?

 Alternatively, it could stay defconst, and there could be a
 org-export-smart-quotes-alist-user, defaulting to nil but taking
 precedence over its non-user counterpart.  If people specify a wrong
 language code it'll just be ignored.

Snippet below is a good starting point, for customizability you are
asking for.

(defcustom ox-sq-alist  nil
  
  :type '(alist :key-type string :value-type
(alist :key-type symbol
   :options (ODQ CDQ OSQ CSQ)
   :value-type (plist :options (:utf-8 :html :latex 
:texinfo)


 –Rasmus



Re: [O] possible org-insert-heading bug?

2013-07-02 Thread John Hendy
Hi Erik,


Glad to see you around :)

These all may be quite related. I haven't seen activity on those
threads suggesting whether a) the documentation is, in fact, right or
wrong or b) whether anyone has taken action to fix or adjust the
behavior of M-RET or C-RET based on the complaints/counter-intuitive
observations.

Let me know if those are similar to your issue. Perhaps Bastien can
comment on the state of these thread, now at least four in number...

- http://www.mail-archive.com/emacs-orgmode@gnu.org/msg70718.html
- http://osdir.com/ml/emacs-orgmode-gnu/2013-05/msg00846.html
- http://permalink.gmane.org/gmane.emacs.orgmode/72399

I've taken to using C-RET in the meantime, as it seems to do what I
often expect when reflexively pressing M-RET. Also, someone once
corrected me on the documentation that at the end of the line might
mean before the ellipsis, not after?


Hope that helps!
John


On Tue, Jul 2, 2013 at 1:53 PM, Erik Iverson erikriver...@gmail.com wrote:
 Hello,

 I am using a current git pull (Org-mode version 8.0.3,
 release_8.0.3-345-g239aa7) and noticed behavior that's easiest to show
 with a small example. If you save and visit the following org file,

 https://dl.dropboxusercontent.com/u/7514404/test.org

 you will see the behavior described and documented (assuming it's
 reproducible under your version of emacs and orgmode).

 Briefly M-RET at the end of a *folded* headline that contains plain
 list items will insert a new plain list item at the end of the
 subtree, instead of a new top-level headline. I believe this conflicts
 with the documentation for M-RET, which currently reads:

 ... If the command is used at the end of a folded subtree (i.e.,
 behind the ellipses at the end of a headline), then a headline like
 the current one will be inserted after the end of the subtree...

 Best,
 --Erik




[O] org-mode no longer picking up scheduled tasks when upgraded to 8.0.3

2013-07-02 Thread Paul Whipp
I use org-mode all the time and find it invaluable. I recently upgraded my
ubuntu environment to 13.04 and emacs 24.2.1 came with it. org-mode was
working fine within it out of the box except it failed with Symbol's
function definition is void: org-defvaralias when I restarted the machine
this morning.

Not finding much on google I decided to upgrade org-mode to the latest
release so I added
(require 'package)
(add-to-list 'package-archives '(org . http://orgmode.org/elpa/;) t)
(unless package-archive-contents;; Refresh the packages descriptions
  (package-refresh-contents))
(setq package-load-list '(all)) ;; List of packages to load
(unless (package-installed-p 'org)  ;; Make sure the Org package is
  (package-install 'org))   ;; installed, install it if not
(package-initialize);; Initialize  Install Package

to my init as per http://orgmode.org/elpa.html#. This gave me org-version
8.0.3

Now my agenda is completely blank with no tasks displaying at all (they
also fail to display in the other views).

A message org-agenda-skip: Wrong type argument: stringp, nil appears when
I try to recalculate the agenda view.

I know that something is now failing in one of my org files because if I
reset org-agenda-files to a simple test file it works. However, I have
literally dozens of org files, some of which are many thousands of lines
long because I use them for client documentation. They were working fine in
the previous version of org-mode.

Another, possibly related issue is that when emacs opens and the agenda is
calculated, the test file buffer is marked as changed when it is not
changed.

Is there some way I can easily narrow down the issue or perhaps restore the
robustness of the previous org-mode version?


Re: [O] [PATCH] Let =`make'= be an option to =`org-latex-pdf-process'=.

2013-07-02 Thread feng shu
Customize  `org-latex-pdf-process isn't very convenient.
Is it possible add a  feature like: #+LATEX_PDF_PROCESS:  latexmk
or add  #OPTIONS:  ;latex_pdf_process  latexmk

Feng


On Wed, Jul 3, 2013 at 12:54 AM, Nicolas Goaziou n.goaz...@gmail.comwrote:

 Hello,

 feng shu tuma...@gmail.com writes:

  From 63eba2e491a0c410b3841cbad2dd1a9f80416bca Mon Sep 17 00:00:00 2001
  From: Feng Shu tuma...@gmail.com
  Date: Tue, 2 Jul 2013 11:52:10 +0800
  Subject: [PATCH] Let =`make'= be an option to =`org-latex-pdf-process'=.
 
  * ox-latex.el (org-latex-pdf-process): let =`make'= be a
preconfigured choice and change the wording of the docstring.

 I don't mind applying it, but shouldn't it as simple to provide
 a function that will call make instead?

 It's impossible to provide every solution in the wild for that. Is this
 one really necessary: it doesn't have complicated arguments.


 Regards,

 --
 Nicolas Goaziou



Re: [O] [PATCH] Let =`make'= be an option to =`org-latex-pdf-process'=.

2013-07-02 Thread Suvayu Ali
On Wed, Jul 03, 2013 at 07:09:35AM +0800, feng shu wrote:
 Customize  `org-latex-pdf-process isn't very convenient.
 Is it possible add a  feature like: #+LATEX_PDF_PROCESS:  latexmk
 or add  #OPTIONS:  ;latex_pdf_process  latexmk

If you don't mind my chiming in, the standard way to customise Emacs
behaviour (across all modes, not just Org) is through
customize-variable.  Org cannot keep on introducing new keywords just
because of convenience.

In any case, this is also a security risk.  This starts an external
process.  Allowing something like this means one can run an arbitrary
command just by exporting a file.  I do not think that is wise at all.
Exactly for this reason we have org-confirm-babel-evaluate defaulting to
t.

-- 
Suvayu

Open source is the future. It sets us free.



[O] refile cache and auto-save files

2013-07-02 Thread Samuel Wales
It is probably common to refresh the refile cache at times when one is
not watching.  This has the effect of loading files that are refile
targets.  If there is auto-save data in one of those files, the
message will likely often go unnoticed.

I don't know the best solution.

Samuel

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

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

Denmark: free Karina Hansen NOW.



Re: [O] Use babel to import table data from OpenDocument spreadsheets?

2013-07-02 Thread James Harkins
At Tue, 02 Jul 2013 20:40:40 +0530,
Jambunathan K wrote:
 Works here for simple files.
 
 M-: (org-odt-convert file.ods csv)
 
 Executing libreoffice4.0 --headless --convert-to csv --outdir 
 /home/kjambunathan/ /home/kjambunathan/file.ods
 convert /home/kjambunathan/file.ods - /home/kjambunathan//file.csv using 
 Text - txt - csv (StarCalc)
 
 Exported to /home/kjambunathan/file.csv
 /home/kjambunathan/file.csv
 
 AFAIK, if you can save as CSV from LO UI, then it should work from the
 command line.

Famous last words: It should work :)

Okay, I've just tested with two very simple files at the command line. 
LibreOffice fails to write any output file at all. Apparently this is a common 
problem. Bing finds [1], but ask.libreoffice.org is down.

Here is the transcript for a simple Writer file containing only the word test:

$ soffice --headless --convert-to html --outdir /home/dlm/Documents/orgtests/ 
/home/dlm/Documents/orgtests/html-table-test-word.odt 

$ ls ht*
html-table.html   html-table.ods  html-table.org~
html-table.html~  html-table.org  html-table-test-word.odt

Anyway, I'm not convinced that org-odt-convert would meet my needs anyway. It 
will have to be a multi-worksheet file, and I'll have to extract just one or 
two of the worksheets. The macro might be the way to go.

hjh

[1] 
http://ask.libreoffice.org/en/question/2641/convert-to-command-line-parameter/



Re: [O] possible org-insert-heading bug?

2013-07-02 Thread Carsten Dominik
Hi,

yes, org-insert-heading is broken - nad I am trying to find time
to rewrite it.  My top Org priority.

- Carsten

On 3.7.2013, at 00:11, John Hendy jw.he...@gmail.com wrote:

 Hi Erik,
 
 
 Glad to see you around :)
 
 These all may be quite related. I haven't seen activity on those
 threads suggesting whether a) the documentation is, in fact, right or
 wrong or b) whether anyone has taken action to fix or adjust the
 behavior of M-RET or C-RET based on the complaints/counter-intuitive
 observations.
 
 Let me know if those are similar to your issue. Perhaps Bastien can
 comment on the state of these thread, now at least four in number...
 
 - http://www.mail-archive.com/emacs-orgmode@gnu.org/msg70718.html
 - http://osdir.com/ml/emacs-orgmode-gnu/2013-05/msg00846.html
 - http://permalink.gmane.org/gmane.emacs.orgmode/72399
 
 I've taken to using C-RET in the meantime, as it seems to do what I
 often expect when reflexively pressing M-RET. Also, someone once
 corrected me on the documentation that at the end of the line might
 mean before the ellipsis, not after?
 
 
 Hope that helps!
 John
 
 
 On Tue, Jul 2, 2013 at 1:53 PM, Erik Iverson erikriver...@gmail.com wrote:
 Hello,
 
 I am using a current git pull (Org-mode version 8.0.3,
 release_8.0.3-345-g239aa7) and noticed behavior that's easiest to show
 with a small example. If you save and visit the following org file,
 
 https://dl.dropboxusercontent.com/u/7514404/test.org
 
 you will see the behavior described and documented (assuming it's
 reproducible under your version of emacs and orgmode).
 
 Briefly M-RET at the end of a *folded* headline that contains plain
 list items will insert a new plain list item at the end of the
 subtree, instead of a new top-level headline. I believe this conflicts
 with the documentation for M-RET, which currently reads:
 
 ... If the command is used at the end of a folded subtree (i.e.,
 behind the ellipses at the end of a headline), then a headline like
 the current one will be inserted after the end of the subtree...
 
 Best,
 --Erik
 
 




Re: [O] Use babel to import table data from OpenDocument spreadsheets?

2013-07-02 Thread Jambunathan K
James Harkins jamshar...@gmail.com writes:

 Famous last words: It should work :)

Sure.  As magical as running and talking at the same time.