Re: [O] [WORG] How to ediff folded Org files?

2013-04-09 Thread Christian Egli
Michael Brand michael.ch.br...@gmail.com writes:

 But instead of the above I use this for ediff generally, it persists
 in Org mode:

 #+BEGIN_SRC emacs-lisp
   (add-hook 'ediff-prepare-buffer-hook 'f-ediff-prepare-buffer-hook-setup)
   (defun f-ediff-prepare-buffer-hook-setup ()
 ;; specific modes
 (cond ((eq major-mode 'org-mode)
(f-org-vis-mod-maximum))
   ;; room for more modes
   )
 ;; all modes
 (setq truncate-lines nil))
   (defun f-org-vis-mod-maximum ()
 Visibility: Show the most possible.
 (cond
  ((eq major-mode 'org-mode)
   (visible-mode 1)  ; default 0
   (setq truncate-lines nil)  ; no `org-startup-truncated' in hook
   (setq org-hide-leading-stars t))  ; default nil
  (t
   (message ERR: not in Org mode)
   (ding
  #+END_SRC

I condensed this to the following since I don't use truncate-lines and
org-hide-leading-stars

;; ediff for org-mode files
(add-hook 'ediff-prepare-buffer-hook 
  (lambda () 
(cond ((eq major-mode 'org-mode)
   (visible-mode 1)

But now the problem now is that the visible-mode persists even when I
quit ediff. I tried to find a hook which lets me undo the visible-mode
but I couldn't find an obvious one. There is ediff-quit-hook but this is
done in the ediff-control-buffer.

Maybe after all it might be better to use ediff-select-hook and
ediff-unselect-hook.

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




Re: [O] phone links...

2013-04-09 Thread Michael Strey
Robert,

On Mo, Apr 08, 2013 at 09:44:12 -0500, Robert Goldman wrote:
 Michael Strey wrote:
  Currently org-phone.el as well as my org-dial.el are incompatible with
  org-contacts.  The only idea behind my proposal was to make the contributors
  of both packages aware of each other.
 
 Can you explain what makes org-phone incompatible with org-contacts?
 Maybe my naming of some function?

The problem is on the side of org-contacts.  Org-contacts does not
support links in its properties.  Thus, currently the only solution to
use the advantages of org-contacts and org-phone is to give the
information twice, like in the following example.

#+BEGIN_SRC org
* Strey, Michael
:PROPERTIES:
:EMAIL:mst...@strey.biz f...@bar.com
:PHONE:+493514129535 +491263213
:END:

[[mailto:mst...@strey.biz]]
[[mailto:f...@bar.com]]
[[phone:+49 (0)351 41295-35]]
[[phone:+49 126 3213]]
#+END_SRC

This shortcoming effects not only the phone links but email links as
well.

Regards
-- 
Michael Strey 
www.strey.biz



Re: [O] [BUG] org-clock-in menu scrolls off the top of the window

2013-04-09 Thread Sebastien Vauban
Hi Bernt Hansen,

Bernt Hansen wrote:
 Sebastien Vauban writes:
 Bernt Hansen wrote:
 Another change I've noticed in master is the display of the clocking
 task menu when doing

 C-u M-x org-clock-in

 I've reduced my clocking menu items a bit due to screen size changes and
 not being able to see the items that scroll off the top of the screen
 (normally the most recent items are the ones I'm looking for but on
 small screens the menu scrolls up and I can't see the recent items).

 My current setting is (setq org-clock-history-length 23)

 My menu for clock-in tasks currently runs 1-9,A-N and starts with the
 Current Clocking Task on line 1.  I have a widescreen monitor in
 windows and the bottom half of the menu is blank when the screen splits
 horizontally to display the clock in menu -- it seems to be centered
 near the last item in the list but this scrolls the default and
 interrupted clocking task entries off the top of the screen.

 There is no way to scroll this menu that I am aware of.

 The buffer *Clock Task Select* has

 ,
 | Default Task
 | [d] OrganizeOrganization
 | The task interrupted by starting the last one
 | [i] OrganizeOrganization
 | Current Clocking Task
 | [c] SomeProject TODO SomeTask
 | Recent Tasks
 | [1] SomeProject TODO SomeTask
 | [2] OrganizeOrganization
 | [3] refile  TODO foo
 | ...
 | [N] refile  SomeOtherRefileTask
 `

 but it scrolls with C-u M-x org-clock-in so it looks like this

 ,
 | Current Clocking Task
 | [c] SomeProject TODO SomeTask
 | Recent Tasks
 | [1] SomeProject TODO SomeTask
 | [2] OrganizeOrganization
 | [3] refile  TODO foo
 | ...
 | [N] refile  SomeOtherRefileTask
 | ... lots of blank lines
 `

 As your data is not that true, I can't tell from what you show, but another
 thing that I've seen (in my config) is that many tasks are duplicated, hence
 the list is much longer that needed.

 Do you see that as well in your case?

 For example, it seems to me that (in the second screen) item 1 is redundant
 with item c. In the first screen, items d, i and 2 seem redundant, while 
 items
 c and 1 seem also redundant.

 The data has been modified but the duplication isn't new. The only tasks I
 renamed were 'SomeTask' and 'SomeOtherRefileTask'. I used capture to create
 foo as a temporary task (which I subsequently deleted). The actual task list
 came from projects at my work.

 Duplicated tasks in my displayed menu are really duplicated and as far as I
 know that behaviour hasn't changed.

 If there is a default, and current task (all the same) then [d], [c], and
 [1] will all be identical. The default task is only displayed when a default
 clocking task is identified (which is always for me). [c] may not be that
 useful to display since we can just quit and leave the clock alone.

 Personally I like the duplication in the history list (it's a true view of
 what was clocked in recently)

Personally, I would find it clearer to see every task at most once, be it as
default, interrupted or in the list. So, the interrupted task wouldn't be
duplicated in the list. But I can understand that this is a question of taste.

Something which is not a question of taste, IMHO, is that items are sometimes
duplicated within the 1..N list: I have, for example,

--8---cut here---start-8---
Recent Tasks
[1] Read emails
[2] Organize work
[3] Organize work
[4] Prepare meeting
--8---cut here---end---8---

Items 2 and 3 are the same one -- I don't have Organize work duplicated
within my agenda files. I don't understand why it's duped in there. Ever
observed this as well?

 The main thing I'm reporting is all the whitespace now at the bottom of the
 screen since the list is artificially scrolled up. I used to be able to
 determine exactly what fit in the list so I set my history length
 appropriately.

I know that item duplication is a side-question, but it does consume real
screen estate...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [NEW] navi-mode for org files

2013-04-09 Thread Thorsten Jolitz
Charles Berry ccbe...@ucsd.edu writes:

 (6. Want more?
 - check the 'navi-menu' for more commands
 - type 'h' to see the (customizable) user-defined keyword-searches and
 their keybindings

 'h' in the *Navi:myfile.org* buffer returns an error.

 underline-line-with is not found. I could not find it by rgrep'ing or 
 Googling.

 Commenting it out of navi-show-help results in display of the keybindings.

Yes, thanks a lot for the observation. I installed the
`basic-edit-toolkit.el'
(http://www.emacswiki.org/emacs/basic-edit-toolkit.el) long ago and
forget about it.

,---
| underline-line-with is an interactive Lisp function in
| `basic-edit-toolkit.el'.
| 
| (underline-line-with CHAR)
`---

I added 'navi-underline-line-with' to navi-mode.el and pushed the new
version to github, let me if there are still problems.

-- 
cheers,
Thorsten




Re: [O] Emacs org-mode mailing list filter by category / tag?

2013-04-09 Thread Buddy Butterfly

Hi Bastien,

thanks for the info. This is indeed a good proposal.
I will switch to the newsgroup for reading.

Thanks a lot and best regards,
Matt


Am 08.04.2013 21:21, schrieb Bastien:
 Hi Matt,

 Buddy Butterfly buddy.butter...@web.de writes:

 obviously this is a very active forum.
 But due to the activity I am getting too much
 emails. I would like to filter by tag/category
 when registering. I think this is definitely
 needed to reduce the amount of mails before (!)
 it arrives.
 We already encourage some soft labelling but we cannot 
 enforce anything here.

 Is this possible right now? If so, how?
 If not, could this list be enhanced to provide it?
 I don't think the list can be enhanced.

 One solution for people who don't want to receive tons
 of emails is to follow the list through gmane.org: you
 just need a news reader (Gnus comes to mind) and to
 subscribe to the gmane.emacs.orgmode newsgroup.

 HTH,





Re: [O] [NEW] navi-mode for org files

2013-04-09 Thread Thorsten Jolitz
Charles Berry ccbe...@ucsd.edu writes:

 Thorsten Jolitz tjolitz at gmail.com writes:

 
 Charles Berry ccberry at ucsd.edu writes:
 
  `
  
   I cannot seem to get this to work. If I try to execute
  
   ;; # #+begin_src emacs-lisp
   ;; #  (require 'outshine)
   ;; #  (add-hook ‘outline-minor-mode-hook ‘outshine-hook-function)
   ;; # #+end_src
  
   the add-hook returns 
  
   Debugger entered--Lisp error: (void-variable ‘outline-minor-mode-hook)
  
  

 SOLVED!

 The clue was: 

 ,
 | (add-hook HOOK FUNCTION optional APPEND LOCAL)
 | 
 | Add to the value of HOOK the function FUNCTION.
 |
 |[...]
 | 
 | HOOK should be a symbol, and FUNCTION may be any valid function.  If
 | HOOK is void, it is first set to nil.  If HOOK's value is a single
 | function, it is changed to a list of functions.
 `

 So how can this not work?

 Well, with point on the character just before outline-minor...,

 C-u C-x = 

 tells me that I was *not* looking at an apostrophe!!!

 ,
 |  position: 2519 of 66947 (4%), column: 17
 | character: ‘ (displayed as ‘) (codepoint 8216, #o20030,
 |[snip] 
 | Character code properties: customize what to show
 |   name: LEFT SINGLE QUOTATION MARK
 |   old-name: SINGLE TURNED COMMA QUOTATION MARK
 |   general-category: Pi (Punctuation, Initial quote)
 |   decomposition: (8216) ('‘')
 `

 So, add-hook was trying to reference a variable called

  ‘outline-minor-mode-hook

 If I replace the left single quotation marks in that line with 
 apostrophes, outline-minor-mode seems to work.

 :-)

 Maybe a similar edit of the source would protect others like me who 
 copy and paste what they see rather than typing it in longhand.

Thanks for finding this strange bug! I don't even have LEFT SINGLE
QUOTATION MARK on my keyboard and wasn't aware of its existance, so this
must be a bug caused by 'copypaste' or so. No idea where this comes
from. 

Actually, for me it wasn't even a bug since it only appereared in the
comment-sections (and thus in the README files) of the libraries, not in
the code (in my dot emacs)  itself. 

I fixed that and pushed new versions on Github. Sorry for the hassle. 

-- 
cheers,
Thorsten




[O] converting people to Emacs and org-mode

2013-04-09 Thread 42 147

Hello mailing list,

This might be considered off-topic.

The question is the title: have you been able to convert many people to
Emacs / org-mode? Are converts all programmers, or those versed in
programming? -- Or have you converted non-programmers, e.g., anyone who
edits text for a living?

It's impossible for me to have a conversation these days without
referring to org-mode. Since I use it for practically everything,
there's no way to avoid raising the topic. However, I do find it
difficult to convert people. I send them video captures showing off the
features, give real-time demonstrations, etc., and offer to work them
through the installation and lead them up the steep Emacs learning curve
-- but thus far, I've only gotten a couple people to adopt it. And that
after relentless advocacy.

Anyway, apologies if this seems to clutter the already highly active
mailing list. But I do think questions of proselytization (because we
/are/ talking religion here) is important.

42




Re: [O] minor bug in babel with silent output and remote R session

2013-04-09 Thread Thomas Alexander Gerds

Hi Bastien

I think that I can describe the problem a bit better now. It is not
related to the silent option but occurs whenever :results value.

Emacs freezes due to the following line in
org-babel-comint-eval-invisibly-and-wait-for-file 

(while (not (file-exists-p file)) (sit-for (or period 0.25)))

it seems that R cannot transfer the file and hence this is an endless
loop.

it may be possible to fix this using tramp, e.g. by setting the
default-directory in the buffer which runs the remote-session, or by
adding a more thorough check of whether the R-session is remote.

to this end let me note that there are at least two ways to start a
remote R session in emacs:

1) M-x shell
2) M-x ssh via ssh.el (not part of emacs)

Cheers 
Thomas


Bastien b...@gnu.org writes:

 Hi Thomas,

 Thomas Alexander Gerds t...@biostat.ku.dk writes:

 Using the silent option together with a remote R session block
 (started via ssh.el and ess-remote), like this:
 #+BEGIN_SRC R :results silent :exports results :session *ssh gauss*
 :cache yes a=1 1 #+END_SRC
 produces:
 ,
 |[1] 1 Warning message:
 | In file.rename(tfile, transfer.file) : cannot rename file
 | /tmp/RtmpQwlyCf/file7c9b78867f6c' to
 | /tmp/babel-4977UIT/R-4977ucf', reason 'No such file or directory'
 | 
 `
 and emacs freezes. No big deal because C-g gets me out of it, but
 slightly annoying.
 with `:results output' instead of `:results: silent' everything
 works fine.

 Please let us know if the documentation* needs some clarification
 here, or if this is a bug -- maybe someone will have time to look at
 it.

 Thanks,

 * Better to check against the latest documentation from our master
 branch, of course.
--
Thomas A. Gerds -- Assoc. Prof. Department of Biostatistics
University of Copenhagen, Øster Farimagsgade 5, 1014 Copenhagen, Denmark
Office: CSS-15.2.07 (Gamle Kommunehospital)
tel: 35327914 (sec: 35327901) 



Re: [O] [babel] Bugs for Emacs Lisp code blocks

2013-04-09 Thread Sebastien Vauban
Hi Eric,

Eric Schulte wrote:
 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
 Eric Schulte wrote:
 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
 Eric Schulte wrote:
 Emacs Lisp is an exception in terms of colname processing, it has
 default header arguments set to pass column names through to the code
 block, where the processing may be done trivially in Emacs Lisp.

 OK, but I don't understand the precedence of header arguments. I thought
 that a header argument given on the code block preempted all the other
 values (system-wide default for all languages, language defaults,
 file-wide arguments, and subtree arguments).

 Why isn't this true here as well?

 That is what is happening here, although combinations of :hlines and
 :colnames can be tricky. Especially weird, is that if you want to *unset*
 a header argument which is set at a higher level, you need to set it to
 '(), as in :colnames '().

 Much clearer, but not yet crystal-clear for me...

 Let me explain. AFAICT, there were 5 possibles values of the :colnames
 header argument:

 - no header argument :: (default for all languages but Emacs Lisp)
 - :colnames no :: (default for Emacs Lisp code blocks)
 - :colnames yes :: Tells Org Babel that your first row contains column
   names.
 - :colnames LIST :: Specifies to use LIST as column names.
 - :colnames nil :: Same as :colnames yes.

 Right?

 Almost, values 1 (none) and 5 (nil) are the same.

I don't share your view about this last statement.

** Input table

#+name: unset-colnames-example-input
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |

** Having no =:colnames= header argument (case 1)

Same results for R and sh code blocks (first good news ;-)) -- I'm avoiding,
on purpose, testing with Emacs Lisp...

#+begin_src R :var data=unset-colnames-example-input
  data
#+end_src

#+results:
| 1 | 2 |
| 3 | 4 |

#+begin_src sh :var data=unset-colnames-example-input
  echo $data
#+end_src

#+results:
| 1 | 2 |
| 3 | 4 |

** Using =:colnames nil= header argument (case 5)

Once again, R and sh blocks do produce the same results...

#+begin_src R :var data=unset-colnames-example-input :colnames nil
  data
#+end_src

#+results:
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |

#+begin_src sh :var data=unset-colnames-example-input :colnames nil
  echo $data
#+end_src

#+results:
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |

... but they are _not_ equivalent to the no header argument (case 1).

** Using =:colnames yes= header argument (case 3)

On the contrary, case 5 is equivalent to the case 3: same results as
:colnames yes.

#+begin_src R :var data=unset-colnames-example-input :colnames yes
  data
#+end_src

#+results:
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |

#+begin_src sh :var data=unset-colnames-example-input :colnames yes
  echo $data
#+end_src

#+results:
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |

 Now, indeed, your trick with :colnames '() (or even :colnames
 ()...) does work well for Emacs-Lisp...

 Though, I thought that () was equivalent to nil, but it seems not
 to be the case, then. Is it because of some sort of type coercion,
 that would convert nil as a string or something along such lines?

 See Emacs Lisp evaluation of variables in (info (org)var).

Not sure to find what you want me to read in that page...

 We could add nil as a special exception, but that might be surprising to
 some people.

As far as the Lisp interpreter is concerned, () and nil are the same, right?
Then, why do you talk of adding a special exception?  Maybe, I don't
understand your point because I'm missing the context info you wanted me to
read just above?

 Extra question: when do we have to use such a trick?  When the value can be a
 list of things?  If yes, why are you talking of :hlines -- there is no list
 argument there?

 Whenever you want to unset a header argument, which has a value set at
 some higher level.

 ** unset the colnames header argument
 #+name: unset-colnames-example-input
 | a | b |
 |---+---|
 | 1 | 2 |
 | 3 | 4 |

 Unlike most code blocks, Emacs Lisp has colnames set to yes in its
 default header arguments. [...]
 If we wanted to unset this value, we could do the following.

 #+begin_src emacs-lisp :var data=unset-colnames-example-input :colnames ()
   data
 #+end_src

 #+RESULTS:
 | 1 | 2 |
 | 3 | 4 |

This is clear -- thanks! -- but it does not unset the header argument as long
as case 1 and 5 are not the same in the above given example (for R and sh
blocks).

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] export parameters in ORG file

2013-04-09 Thread Rainer Stengele
Am 08.04.2013 15:07, schrieb Suvayu Ali:
 On Mon, Apr 08, 2013 at 02:24:52PM +0200, Nicolas Goaziou wrote:
 Hello,

 Rainer Stengele rainer.steng...@online.de writes:

 please help me understand. I do not see # in the exporter menu and it 
 does not do anything.
 Org-mode version 8.0-pre (release_8.0-pre-326-g1af215

 You may have forgotten to reload Org. # Insert template entry should
 definitely be in the dispatcher in this version.
 
 I can confirm it is there.
 
Hi,

I had to do a make clean before make autoloads. Now it is there!
Excellent! Thanks a lot!

Rainer



Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Suvayu Ali
On Tue, Apr 09, 2013 at 04:10:07AM -0400, 42 147 wrote:
 Anyway, apologies if this seems to clutter the already highly active
 mailing list. But I do think questions of proselytization (because we
 /are/ talking religion here) is important.

I would say Org-mode users form the moderate demography among the
followers of the church of Emacs ;).

Personally I think, any attempts at conversion is futile.  Just like
real religion, choosing an editor is an immensely personal decision if
editing text (in whatever form, source code, or prose) is a major part
of your day.  You should stop at mentioning and bragging about Org-mode;
leave the decision to try or switch to the other person.

Just my 2¢ :)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Eric Abrahamsen
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 On Tue, Apr 09, 2013 at 04:10:07AM -0400, 42 147 wrote:
 Anyway, apologies if this seems to clutter the already highly active
 mailing list. But I do think questions of proselytization (because we
 /are/ talking religion here) is important.

 I would say Org-mode users form the moderate demography among the
 followers of the church of Emacs ;).

 Personally I think, any attempts at conversion is futile.  Just like
 real religion, choosing an editor is an immensely personal decision if
 editing text (in whatever form, source code, or prose) is a major part
 of your day.  You should stop at mentioning and bragging about Org-mode;
 leave the decision to try or switch to the other person.

Not when they're your employees!

Only half joking,

Eric




Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Thorsten Jolitz
42 147 aeus...@gmail.com writes:

 This might be considered off-topic.

Maybe not? I know of a fantastic Lisp dialect and
web/database programming-environment out there 

,
| PicoLisp
| http://picolisp.com/5000/!wiki?home
`

that suffers exactly from the rather low conversion rate of people to
it, which is kind of hard to explain given its quality. 

But maybe Paul Graham is right in
http://www.paulgraham.com/popular.html, at least with regards to
programming languages:

,-
| A friend of mine once told an eminent operating systems expert that he
| wanted to design a really good programming language. The expert told him
| that it would be a waste of time, that programming languages don't
| become popular or unpopular based on their merits, and so no matter how
| good his language was, no one would use it. At least, that was what had
| happened to the language he had designed.
`-

And just like I try to spell the word about amazing PicoLisp with this
email, I wrote an Org-mode article in the student magazine of my former
German distance university with the title

,--
| Self-organization with Org-mode for distance students
`--

(in German)

Its in 

,---
| SprachRohr-Ausgabe 04/2012 FernUni Hagen
`---

and the cover can be seen here: 
http://www.fernstudis.de/node/1203

unfortunately only the cover, since download is restricted to
immatriculated students, but I reached some 50-60k readers with this
article and recieved very positive feedback, I cite from an anonymous
fellow distance student:

,
| [...] ich gehöre normalerweise nicht zu den Leserbriefschreibern, aber hier
| muss ich einfach mal ein ganz großes Lob loswerden: Vielen Dank für den
| Artikel über Emacs Org-Mode - der erste Artikel [...] der mich wirklich
| weiterbringt und ganz sehr zum Weiterforschen anregt. Org-Mode scheint
| genau das Werkzeug zu sein, nach dem ich lange gesucht habe.
`

(in English more or less: normally I don't write reader comments, but
Org-mode seems exactly the tool I was looking for and I feel very
motivated to learn more about it after reading your article)

So maybe there are ways to reach more people with less effort than in
one-to-one conversion talks? Although, even with 50k readers, I will of
course never know if I really achieved a single conversion. 

-- 
cheers,
Thorsten




Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Carsten Dominik

On 9 apr. 2013, at 10:10, 42 147 aeus...@gmail.com wrote:

 
 Hello mailing list,
 
 This might be considered off-topic.
 
 The question is the title: have you been able to convert many people to
 Emacs / org-mode? Are converts all programmers, or those versed in
 programming? -- Or have you converted non-programmers, e.g., anyone who
 edits text for a living?


I have found that even without me trying to convert people, a lot of
people are picking up Org-mode, if they are using Emacs already.  I think
that in my working environment, pretty much everyone who is using Emacs
at least occasionally has heard about Org, and most of them are using it
at least for something.  Not the full suit of features, mind you, but
brain storming or document drafting, certainly.

Trying to convert people who are outside the reach of Emacs is
pretty futile, unless they are programmer types who easily take
up new tools.

I have heard a number of success stories of people who try to be
writers and who find that sticking ideas and snippets into a
re-arrabgable outline works *much* better for them than any other
system they have tried.

A few examples:

http://awarewriter.wordpress.com/2012/03/04/org-mode-for-writing-structure-focus/
http://awarewriter.wordpress.com/2012/02/27/monday-musings-org-mode-for-writing-ii/
http://emacslife.wordpress.com/2011/07/07/org-mode-and-novel-writing/
http://scienceblogs.com/gregladen/2011/07/22/emacs-for-writers-org-mode/

- Carsten

 
 It's impossible for me to have a conversation these days without
 referring to org-mode. Since I use it for practically everything,
 there's no way to avoid raising the topic. However, I do find it
 difficult to convert people. I send them video captures showing off the
 features, give real-time demonstrations, etc., and offer to work them
 through the installation and lead them up the steep Emacs learning curve
 -- but thus far, I've only gotten a couple people to adopt it. And that
 after relentless advocacy.
 
 Anyway, apologies if this seems to clutter the already highly active
 mailing list. But I do think questions of proselytization (because we
 /are/ talking religion here) is important.
 
 42
 
 




Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Carsten Dominik

On 9 apr. 2013, at 10:46, Thorsten Jolitz tjol...@gmail.com wrote:

 42 147 aeus...@gmail.com writes:
 
 This might be considered off-topic.
 
 Maybe not? I know of a fantastic Lisp dialect and
 web/database programming-environment out there 
 
 ,
 | PicoLisp
 | http://picolisp.com/5000/!wiki?home
 `
 
 that suffers exactly from the rather low conversion rate of people to
 it, which is kind of hard to explain given its quality. 
 
 But maybe Paul Graham is right in
 http://www.paulgraham.com/popular.html, at least with regards to
 programming languages:
 
 ,-
 | A friend of mine once told an eminent operating systems expert that he
 | wanted to design a really good programming language. The expert told him
 | that it would be a waste of time, that programming languages don't
 | become popular or unpopular based on their merits, and so no matter how
 | good his language was, no one would use it. At least, that was what had
 | happened to the language he had designed.
 `-
 
 And just like I try to spell the word about amazing PicoLisp with this
 email, I wrote an Org-mode article in the student magazine of my former
 German distance university with the title
 
 ,--
 | Self-organization with Org-mode for distance students
 `--


I would be interested to read this article.  Can you make it available?

- Carsten

 
 (in German)
 
 Its in 
 
 ,---
 | SprachRohr-Ausgabe 04/2012 FernUni Hagen
 `---
 
 and the cover can be seen here: 
 http://www.fernstudis.de/node/1203
 
 unfortunately only the cover, since download is restricted to
 immatriculated students, but I reached some 50-60k readers with this
 article and recieved very positive feedback, I cite from an anonymous
 fellow distance student:
 
 ,
 | [...] ich gehöre normalerweise nicht zu den Leserbriefschreibern, aber hier
 | muss ich einfach mal ein ganz großes Lob loswerden: Vielen Dank für den
 | Artikel über Emacs Org-Mode - der erste Artikel [...] der mich wirklich
 | weiterbringt und ganz sehr zum Weiterforschen anregt. Org-Mode scheint
 | genau das Werkzeug zu sein, nach dem ich lange gesucht habe.
 `
 
 (in English more or less: normally I don't write reader comments, but
 Org-mode seems exactly the tool I was looking for and I feel very
 motivated to learn more about it after reading your article)
 
 So maybe there are ways to reach more people with less effort than in
 one-to-one conversion talks? Although, even with 50k readers, I will of
 course never know if I really achieved a single conversion. 
 
 -- 
 cheers,
 Thorsten
 
 




[O] clocking in sub-second accuracy

2013-04-09 Thread Rainer M. Krug
Hi

I want to use the org-mode format for logging the progress of a
simulation, which works ncely at the moment. I get the following output:

* [2013-04-09 10:19:22] *BEGIN* - begin initfunc
** [2013-04-09 10:19:22] *BEGIN* - Random Initialisation
- [2013-04-09 10:19:22] Sys.time()  : 1365495562.47626
- [2013-04-09 10:19:22] JOB_ID  : 0
- [2013-04-09 10:19:22] SGE_TASK_ID : 0
- [2013-04-09 10:19:22] random seed : 1365495562
** [2013-04-09 11:03:39] *END* - Random Initialisation
CLOCK: [2013-04-09 10:19:22--[2013-04-09 11:03:39]
.
.
.

Now I can calculate the time needed per clocked item.

My question: can I get resolution of less then a second? Which format do
I have to use for the time?

Thanks,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


pgptbHb8Cnq6H.pgp
Description: PGP signature


[O] New exporter and latex table export with floats in engineering notation

2013-04-09 Thread Dieter Wilhelm, H.
Hi (),

with 8.0pre I'm currently getting strange results when exporting to
latex a table with the following notations

| -7.8E-2 | \(-7.8e-2\)|

what shall I do? The only thing I manage in this situation is

| -7.8 10^-2 |

but this is unhandy especially when importing floats...
--

Best wishes

H. Dieter Wilhelm

Darmstadt
Germany



Re: [O] Emacs org-mode mailing list filter by category / tag?

2013-04-09 Thread Buddy Butterfly
Hi,

how to configure the group to subscribe to in gnus
directly (.emacs file)? When configuring news.gmane.org as server
gnus hangs for long time and server closes connection.
I guess it times out requesting all groups.

Cheers,
Matt


Am 08.04.2013 21:21, schrieb Bastien:
 Hi Matt,

 Buddy Butterfly buddy.butter...@web.de writes:

 obviously this is a very active forum.
 But due to the activity I am getting too much
 emails. I would like to filter by tag/category
 when registering. I think this is definitely
 needed to reduce the amount of mails before (!)
 it arrives.
 We already encourage some soft labelling but we cannot 
 enforce anything here.

 Is this possible right now? If so, how?
 If not, could this list be enhanced to provide it?
 I don't think the list can be enhanced.

 One solution for people who don't want to receive tons
 of emails is to follow the list through gmane.org: you
 just need a news reader (Gnus comes to mind) and to
 subscribe to the gmane.emacs.orgmode newsgroup.

 HTH,





Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Bastien
Hi John,

interesting topic.

My take on this is that *individual* attempts can be deceptive
(for reasons that Suvayu raised), but *collective* attempts are
always somehow successful.

By individual attempts I mean face-to-face demos and preaching,
which can help some Emacs users discover how they could use Emacs
more effectively for notes and TODO lists, but will surely fail at
convincing non-Emacs users.

(Oh, btw, the above is not entirely true: I recently participated
to a Vim-dedicated informal group, where I picked up many useful Vim
tricks, and I was surprised to see that many Vimers just love Org's
tables --- to the point that they have tricks to display Org tables
in Vim buffers...)

By collective attempts, I mean contributions to the vast pool of
Org tutorials/demos/screencasts.  This is how we ensure potential
users will get an impression that this is easy to do with Org,
which is the main feeling you need to have to test it.

Think of it as low floor, high ceilings: power users push for
higher ceilings, while neebies push for low floors.  We can deal
with high ceilings by interacting on the list, but we are better
at lowering floors by contributing with tutorials, blog entries,
etc.

Just try to write something simple, it may convert more people 
you know that oral preaching near the coffee machine :)

My 2 cents of course,

-- 
 Bastien



Re: [O] New exporter and latex table export with floats in engineering notation

2013-04-09 Thread Bastien
Hi Dieter,

Dieter Wilhelm, H. die...@duenenhof-wilhelm.de writes:

 with 8.0pre I'm currently getting strange results when exporting to
 latex a table with the following notations

 | -7.8E-2 | \(-7.8e-2\)|

Please let us know what is the result, otherwise we cannot see what
is strange.  Thanks!

PS: http://orgmode.org/org.html#Feedback

-- 
 Bastien



Re: [O] clocking in sub-second accuracy

2013-04-09 Thread Bastien
Hi Rainer,

rai...@krugs.de (Rainer M. Krug) writes:

 My question: can I get resolution of less then a second?

Not for clocks, sorry!

-- 
 Bastien



Re: [O] Some %elements in org-html-postamble-format became too generous

2013-04-09 Thread Bastien
Hi Dieter,

Dieter Wilhelm die...@duenenhof-wilhelm.de writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:
 Then what about this patch?

 Could someone please point me to the docu for applying patches within
 Emails.  I think Bastien has written about keyboard shortcuts for doing
 this but I can't find his Email...

1. Save the patch (your.patch)
2. go to your org-mode directory
3. git apply your.patch

HTH,

-- 
 Bastien



Re: [O] phone links...

2013-04-09 Thread Feng Shu
Michael Strey mst...@strey.biz writes:

 Robert,

 On Do, Apr 04, 2013 at 09:38:48 -0500, Robert P. Goldman wrote:

 [...]

 I will be happy to include this into contrib (and do the relevant
 assignment) at any time when people think that it is sufficiently ready
 to go.  I have been testing it in contrib/ in a testing branch in my git
 repo.


 Moreover the definition of the phone link would allow to extend the
 current functionality of MobileOrg by a phone call function.

It  will be  a great feature and  mobileorg is a good way of managing
phone numbers 



 Regards

-- 



Re: [O] Emacs org-mode mailing list filter by category / tag?

2013-04-09 Thread Bastien
Hi Buddy,

Buddy Butterfly buddy.butter...@web.de writes:

 how to configure the group to subscribe to in gnus
 directly (.emacs file)? When configuring news.gmane.org as server
 gnus hangs for long time and server closes connection.
 I guess it times out requesting all groups.

Please take this discussion to the Gnus mailing list:
  http://www.gnus.org/resources.html

You cannot both complain that there are too many messages
on this list and add new off-topic ones ;)

Thanks!

-- 
 Bastien



Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Russell Adams
My experience has been that after watching me manage a project in Org
for a few weeks, I have customers beg me to help them install it on
their PC. I've had quite a few converts through working together and
by example.

My $0.02.

Thanks.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3



[O] need a org-contacts feature

2013-04-09 Thread Feng Shu

org-contacts is very useful, but it can't be work well with CJK users
for CJK input method, I need a feature like this:

1. If I search  string 你好 ,the result will be: 你好

2. if  I  have a dict function in which there is  '(nihao 你好) or '(nh 
你好)

3. the feature I expect is like:  when I search nihao or nh ,the result 
will be 你好


Thanks





-- 



Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Moritz Ulrich
I'm interested in the article too. Maybe you can arrange something
with the editors if even the creator of org-mode is interested in the
article?


On Tue, Apr 9, 2013 at 10:51 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:

 On 9 apr. 2013, at 10:46, Thorsten Jolitz tjol...@gmail.com wrote:

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

 This might be considered off-topic.

 Maybe not? I know of a fantastic Lisp dialect and
 web/database programming-environment out there

 ,
 | PicoLisp
 | http://picolisp.com/5000/!wiki?home
 `

 that suffers exactly from the rather low conversion rate of people to
 it, which is kind of hard to explain given its quality.

 But maybe Paul Graham is right in
 http://www.paulgraham.com/popular.html, at least with regards to
 programming languages:

 ,-
 | A friend of mine once told an eminent operating systems expert that he
 | wanted to design a really good programming language. The expert told him
 | that it would be a waste of time, that programming languages don't
 | become popular or unpopular based on their merits, and so no matter how
 | good his language was, no one would use it. At least, that was what had
 | happened to the language he had designed.
 `-

 And just like I try to spell the word about amazing PicoLisp with this
 email, I wrote an Org-mode article in the student magazine of my former
 German distance university with the title

 ,--
 | Self-organization with Org-mode for distance students
 `--


 I would be interested to read this article.  Can you make it available?

 - Carsten


 (in German)

 Its in

 ,---
 | SprachRohr-Ausgabe 04/2012 FernUni Hagen
 `---

 and the cover can be seen here:
 http://www.fernstudis.de/node/1203

 unfortunately only the cover, since download is restricted to
 immatriculated students, but I reached some 50-60k readers with this
 article and recieved very positive feedback, I cite from an anonymous
 fellow distance student:

 ,
 | [...] ich gehöre normalerweise nicht zu den Leserbriefschreibern, aber hier
 | muss ich einfach mal ein ganz großes Lob loswerden: Vielen Dank für den
 | Artikel über Emacs Org-Mode - der erste Artikel [...] der mich wirklich
 | weiterbringt und ganz sehr zum Weiterforschen anregt. Org-Mode scheint
 | genau das Werkzeug zu sein, nach dem ich lange gesucht habe.
 `

 (in English more or less: normally I don't write reader comments, but
 Org-mode seems exactly the tool I was looking for and I feel very
 motivated to learn more about it after reading your article)

 So maybe there are ways to reach more people with less effort than in
 one-to-one conversion talks? Although, even with 50k readers, I will of
 course never know if I really achieved a single conversion.

 --
 cheers,
 Thorsten







Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Thorsten Jolitz
Moritz Ulrich mor...@tarn-vedra.de writes:

 I'm interested in the article too. Maybe you can arrange something
 with the editors if even the creator of org-mode is interested in the
 article?

I already sent the pdf version of the magazine in a PM to the creator of
Org-mode so he can decide if its worth the pain convert it from plain
text to Org-mode and put it on Worg. 

Its not really special and closely oriented at the structure of the new
orgmode website. Its more the big audience I could reach that made the
whole thing interesting. 

PS 
I already asked the editors - legally it would be possible to republish
on Worg. I'll ask them again if its allowed to cut the fully formated
article from the magazine-pdf and upload this 4 page pdf on Worg. 

-- 
cheers,
Thorsten




Re: [O] clocking in sub-second accuracy

2013-04-09 Thread Rainer M. Krug
Bastien b...@gnu.org writes:

 Hi Rainer,

 rai...@krugs.de (Rainer M. Krug) writes:

 My question: can I get resolution of less then a second?

 Not for clocks, sorry!
#secure method=pgpmime mode=sign

Pitty. But is there an option to set clocktables to show seconds? If I
create a clock table, it only shows the minutes.

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug



Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Stefan Vollmar
Dear Bastien,

On 07.04.2013, at 23:23, Bastien wrote:

 [...] I pushed a fix which preserves the spirit of the previous option,
 but with more variables to check against.  I know this is not the
 most user-friendly we can do here, but at least it is consistent
 with what the code allows.


Thanks for the fix! 

But I think the lisp example is faulty in two respects: it needs to include the 
closing /tr and the default case without class name.

The example given in the documentation:

(setq org-html-table-row-tags
  (cons '(cond (top-row-p tr class=\tr-top\)
   (bottom-row-p tr class=\tr-bottom\


should probably be:

(setq org-html-table-row-tags
  (cons '(cond (top-row-p tr class=\tr-top\)
   (bottom-row-p tr class=\tr-bottom\)
   (t tr))
/tr))

This is already very useful. However, in addition to rowgroup-number, top-row-p 
and bottom-row-p it would be really helpful to have a row counter variable. Is 
this difficult to implement (I honestly tried but did not see an obvious way)?

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: voll...@nf.mpg.de   http://www.nf.mpg.de










smime.p7s
Description: S/MIME cryptographic signature


Re: [O] Emacs org-mode mailing list filter by category / tag?

2013-04-09 Thread Buddy Butterfly
Hi Bastian,

true ;-)
I just wanted to know the best method.

Thanks,
Matt



Am 09.04.2013 11:52, schrieb Bastien:
 Hi Buddy,

 Buddy Butterfly buddy.butter...@web.de writes:

 how to configure the group to subscribe to in gnus
 directly (.emacs file)? When configuring news.gmane.org as server
 gnus hangs for long time and server closes connection.
 I guess it times out requesting all groups.
 Please take this discussion to the Gnus mailing list:
   http://www.gnus.org/resources.html

 You cannot both complain that there are too many messages
 on this list and add new off-topic ones ;)

 Thanks!





Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Torsten Wagner
Hi,
If I show org-mode to someone and if he/she points out the ugly graphic I
stop at that point.
If the reaction is more like Hey how did you do that? I might have a
potential candidate.
Thus, for me it comes down to two groups the once who need a
graphical pleasant system which hides away all technical details and the
once who like to be in control of what they are doing.

A spin-off question to this thread would be, how to make joints between
these two groups?

Best,
Torsten


On 9 April 2013 12:30, Thorsten Jolitz tjol...@gmail.com wrote:

 Moritz Ulrich mor...@tarn-vedra.de writes:

  I'm interested in the article too. Maybe you can arrange something
  with the editors if even the creator of org-mode is interested in the
  article?

 I already sent the pdf version of the magazine in a PM to the creator of
 Org-mode so he can decide if its worth the pain convert it from plain
 text to Org-mode and put it on Worg.

 Its not really special and closely oriented at the structure of the new
 orgmode website. Its more the big audience I could reach that made the
 whole thing interesting.

 PS
 I already asked the editors - legally it would be possible to republish
 on Worg. I'll ask them again if its allowed to cut the fully formated
 article from the magazine-pdf and upload this 4 page pdf on Worg.

 --
 cheers,
 Thorsten





Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Bastien
Hi Thorsten,

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

 I already asked the editors - legally it would be possible to republish
 on Worg. I'll ask them again if its allowed to cut the fully formated
 article from the magazine-pdf and upload this 4 page pdf on Worg. 

Better to add it somewhere else and create a link to it from Worg,
because anything in Worg needs to be GFDL.

-- 
 Bastien



Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Bastien
Hi Stefan,

Stefan Vollmar voll...@nf.mpg.de writes:

 should probably be:

 (setq org-html-table-row-tags
   (cons '(cond (top-row-p tr class=\tr-top\)
(bottom-row-p tr class=\tr-bottom\)
(t tr))
 /tr))

Of course, you're right, I fixed this.

 This is already very useful. However, in addition to
 rowgroup-number, top-row-p and bottom-row-p it would be really
 helpful to have a row counter variable. Is this difficult to
 implement (I honestly tried but did not see an obvious way)?

I think it is non-trivial -- as least non-trivial enough so that I
can't do it at the moment, sorry.

-- 
 Bastien



Re: [O] clocking in sub-second accuracy

2013-04-09 Thread Bastien
rai...@krugs.de (Rainer M. Krug) writes:

 But is there an option to set clocktables to show seconds?

Nope, sorry.

-- 
 Bastien



[O] new exporter and plain text table export alignment

2013-04-09 Thread maxco . tr
Hi all

I use org tables to estimate construction projects.  I frequently use
simple math within a table cell to help me remember what I was
thinking when I entered the data.

It seems that the new exporter does not align plain text exports in
some of these situations.  I only use plain text and html exports;
html is working perfectly.

example tables and the results I see.

* table I - good
| | ||   |
|-+-++---|
| apples  |   3 |  8 |  24.0 |
| oranges | 1.2+2.8 |  9 |  36.0 |
| plums   |   5 | 10 |  50.0 |
|-+-++---|
| | || 110.0 |
#+TBLFM: $4=$2*$3;%.1f::@5$4=vsum(@-I..@-II);%.1f

table I - good
===
 
  -
   apples 3   8   24.0 
   oranges  1.2+2.8   9   36.0 
   plums  5  10   50.0 
  -
 110.0 

* table II
| | ||   |
|-+-++---|
| apples  |   3 |  8 |  24.0 |
| oranges | 1.1+1.2+1.7 |  9 |  36.0 |
| plums   |   5 | 10 |  50.0 |
|-+-++---|
| | || 110.0 |
#+TBLFM: $4=$2*$3;%.1f::@5$4=vsum(@-I..@-II);%.1f

table II

 
  -
   apples 3  8   24.0 
   oranges  1.1+1.2+1.7   9   36.0 
   plums  5 10   50.0 
  -
 110.0 

* table III
||  | |  |
|+--+-+--|
| apples |3 |   8 | 24.0 |
| are|4 |   9 | 36.0 |
| good   | 1.87995654654654 |  10 | 18.8 |
|+--+-+--|
||  | | 78.8 |
#+TBLFM: $4=$2*$3;%.1f::@5$4=vsum(@-I..@-II);%.1f

table III
=

  
   apples  3  8  24.0 
   are 4  9  36.0 
   good1.87995654654654  10  18.8 
  
 78.8 

thanks
Tracy Helms



Re: [O] Listing clock time in 'timeline' order

2013-04-09 Thread Bastien
Hi Giorgos,

Giorgos Keramidas keram...@ceid.upatras.gr writes:

 Do you think such a feature is possible org-mode?  

It is not possible at the moment.

There is the option `org-clock-clocktable-formatter' that allows you
to define your own function for formatting clocktables, so in theory
you could scratch from there.

 Does it already exist in some form?  If not, I'm definitely willing
 to help implementing it.

I would first try to extend org-collector.el (from the contrib/
director) by allowing collections to be made from the :LOGBOOK: drawer
(instead of the :PROPERTIES: drawer).  Once you have this, it should
be quite straightforward to put all the clocks in a table as you
suggest.  But definitely have a look at org-collector.el, it's worth
inspecting.

HTH,

-- 
 Bastien



Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Stefan Vollmar
Dear Bastien,

On 09.04.2013, at 13:46, Bastien wrote:

 (setq org-html-table-row-tags
  (cons '(cond (top-row-p tr class=\tr-top\)
   (bottom-row-p tr class=\tr-bottom\)
   (t tr))
/tr))
 
 Of course, you're right, I fixed this.

great, thanks!

 This is already very useful. However, in addition to
 rowgroup-number, top-row-p and bottom-row-p it would be really
 helpful to have a row counter variable. Is this difficult to
 implement (I honestly tried but did not see an obvious way)?
 
 I think it is non-trivial -- as least non-trivial enough so that I
 can't do it at the moment, sorry.


not a problem - non-trivial was my assessment, too, as this kind of counter 
probably needs to be part of some infrastructure several levels above 
org-html-table-row. But it would be desirable in the long run, for 
semi-cosmetic stuff like alternating row colours in tables, but potentially 
also for more concise error messages or more complex formatting options.

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: voll...@nf.mpg.de   http://www.nf.mpg.de










smime.p7s
Description: S/MIME cryptographic signature


[O] [PATCH] Normalize the construction of outline-container DIV ID

2013-04-09 Thread Francesco Pizzolante
Hi,

I found that, when exporting to HTML, outline-container IDs are not always
built the same way:

- if the headline has an Org ID it is build using that ID:
  outline-container-ID;

- if the headline does not have an Org ID, then the outline-container DIV will
  use the headline number instead (outline-container-X) while the ID of the
  inner headline is sec-X.

I propose a patch to always build the outline-container DIV ID the same way by
using the inner headline ID (when exporting to HTML).

Regards,
 Francesco

From 0e84e6ce8b808f15b0b84cc575b6d9eeb9e374b4 Mon Sep 17 00:00:00 2001
From: Francesco Pizzolante f...@missioncriticalit.com
Date: Tue, 9 Apr 2013 13:38:19 +0200
Subject: [PATCH] Normalize the construction of outline-container DIV ID

* ox-html.el (org-html-headline): Normalize the construction of
  outline-container DIVs by always using the inner headline ID.

TINYCHANGE
---
 lisp/ox-html.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 39b0ec9..fe7b822 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2194,7 +2194,7 @@ holding contextual information.
  div)
(format outline-container-%s
(or (org-element-property :CUSTOM_ID headline)
-   section-number))
+   (concat sec- section-number)))
(concat (format outline-%d level1) (and extra-class  )
extra-class)
(format \nh%d id=\%s\%s%s/h%d\n
--
1.7.9



Re: [O] phone links...

2013-04-09 Thread Robert Goldman
Michael Strey wrote:
 Robert,
 
 On Mo, Apr 08, 2013 at 09:44:12 -0500, Robert Goldman wrote:
 Michael Strey wrote:
 Currently org-phone.el as well as my org-dial.el are incompatible with
 org-contacts.  The only idea behind my proposal was to make the contributors
 of both packages aware of each other.
 Can you explain what makes org-phone incompatible with org-contacts?
 Maybe my naming of some function?
 
 The problem is on the side of org-contacts.  Org-contacts does not
 support links in its properties.  Thus, currently the only solution to
 use the advantages of org-contacts and org-phone is to give the
 information twice, like in the following example.
 
 #+BEGIN_SRC org
 * Strey, Michael
 :PROPERTIES:
 :EMAIL:mst...@strey.biz f...@bar.com
 :PHONE:+493514129535 +491263213
 :END:
 
 [[mailto:mst...@strey.biz]]
 [[mailto:f...@bar.com]]
 [[phone:+49 (0)351 41295-35]]
 [[phone:+49 126 3213]]
 #+END_SRC
 
 This shortcoming effects not only the phone links but email links as
 well.
 
 Regards

I think in that case it might be best to have a function in org-contacts
that knows that PHONE contains phone numbers, and that can parse them
out, and shoot them off to org-phone.

Vague thought: Make C-c C-c aware of PHONE properties so that it can
perform this magic.

Again, I am not an org-contacts user, so this may be a stupid question,
but how does org-contacts know when it has a contact?  I am looking at
the sample record you present above, and it looks just like an org-mode
header to me.  There is no marker, as far as I can tell, that would tell
org-mode that it is a contact record, instead of some other arbitrary
thing.  This seems odd to me.  Why isn't it something like

#+BEGIN_SRC org
* CONTACT Strey, Michael
:PROPERTIES:
:EMAIL:mst...@strey.biz f...@bar.com
:PHONE:+493514129535 +491263213
:END:
#+END_SRC

by analogy to the way TODO flags a task?

At any rate, any function that could parse a :PHONE: property could
easily (funcall org-phone-function phone-number).

Cheers,
r






Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Eric Abrahamsen
Russell Adams rlad...@adamsinfoserv.com writes:

 My experience has been that after watching me manage a project in Org
 for a few weeks, I have customers beg me to help them install it on
 their PC. I've had quite a few converts through working together and
 by example.

Perhaps the web incarnations of org could help here too. Say the manager
of a small group project were able to create a web-version of an agenda,
and project members could filter that by clicking on javascript-enabled
versions of tags corresponding to their TODOs, and even click the TODOs
to change state, that could be a nice introduction to project management
in Org. It might require too much org functionality to be re-written in
javascript though? Dunno.

E




Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Michael Brand
On Tue, Apr 9, 2013 at 5:31 AM, Nick Dokos ndo...@gmail.com wrote:
 You can turn on formula debugging with C-c { and then you'd
 see that in Pancho's case, the list is () i.e. a list containing the
 empty string - a list of length 1. That might qualify as a bug (or not)

This issue is part of some old bugs that I discovered end of 2012. It
seems like my patch from then
http://orgmode.org/w/org-mode.git?p=org-mode.git;a=commitdiff;h=764315
resolved it only partially and I missed the case of a range with only
empty fields, although I tested and approved it in my ERTs... The
attached patch corrects.

It is worth a small compatibility change: For a range with only empty
fields it is now possible and necessary to choose different behaviors
of vmean by adding the format specifiers E and/or N.

Michael
From 758414846936936f4e985fdb4de82eb7c95f163f Mon Sep 17 00:00:00 2001
From: Michael Brand michael.ch.br...@gmail.com
Date: Tue, 9 Apr 2013 14:35:21 +0200
Subject: [PATCH] org-table.el: Fix range len bugs for empty ranges

(org-table-make-reference): A range with only empty fields should lead
to length 0.
* testing/lisp/test-org-table.el: Adapt expected for several
ert-deftest.

The range len bugs may lead to wrong calculations for range references
with empty fields when the range len is relevant.  Affects typically
Calc vmean on simple range and without format specifier EN.  Also
Lisp with e. g. `length' on simple range or with L.

It is worth a small compatibility change: For a range with only empty
fields it is now possible and necessary to choose different behaviors
of vmean by adding the format specifiers E and/or N.

This is a follow-up of commit
764315b3fce26de59189b957a8049e299209043a.
---
 lisp/org-table.el  |  7 +++--
 testing/lisp/test-org-table.el | 60 ++
 2 files changed, 42 insertions(+), 25 deletions(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index bdf4ad8..7122c87 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -2929,7 +2929,10 @@ list, 'literal is for the format specifier L.
   (if lispp
  (if (eq lispp 'literal)
  elements
-   (prin1-to-string (if numbers (string-to-number elements) elements)))
+   (if (and (eq elements ) (not keep-empty))
+   
+ (prin1-to-string
+  (if numbers (string-to-number elements) elements
(if (string-match \\S- elements)
(progn
  (when numbers (setq elements (number-to-string
@@ -2942,7 +2945,7 @@ list, 'literal is for the format specifier L.
(delq nil
  (mapcar (lambda (x) (if (string-match \\S- x) x nil))
  elements
-(setq elements (or elements '()))
+(setq elements (or elements '()))  ; if delq returns nil then we need '()
 (if lispp
(mapconcat
 (lambda (x)
diff --git a/testing/lisp/test-org-table.el b/testing/lisp/test-org-table.el
index 01adf52..2dd5f38 100644
--- a/testing/lisp/test-org-table.el
+++ b/testing/lisp/test-org-table.el
@@ -339,7 +339,7 @@ reference (with row).  No format specifier.
 | 0 | 1 | 0 | #ERROR | #ERROR | #ERROR | 2 | 2 |
 | z | 1 | z | #ERROR | #ERROR | #ERROR | 2 | 2 |
 |   | 1 |   | #ERROR | #ERROR | #ERROR | 1 | 1 |
-|   |   |   | #ERROR | #ERROR | #ERROR | 1 | 1 |
+|   |   |   | #ERROR | 0  | 0  | 0 | 0 |
 
  1 lisp)
 (org-test-table-target-expect
@@ -348,7 +348,7 @@ reference (with row).  No format specifier.
 | 0 | 1 | 0 | 1 | 1 | 1 | 2 | 2 |
 | z | 1 | z | z + 1 | z + 1 | z + 1 | 2 | 2 |
 |   | 1 | 0 | 1 | 1 | 1 | 1 | 1 |
-|   |   | 0 | 0 | 0 | 0 | 1 | 1 |
+|   |   | 0 | 0 | 0 | 0 | 0 | 0 |
 
  1 calc)
 (org-test-table-target-expect
@@ -381,7 +381,7 @@ reference (with row).  Format specifier N.
 | 0 | 1 | 0 | 1 | 1 | 1 | 2 | 2 |
 | z | 1 | 0 | 1 | 1 | 1 | 2 | 2 |
 |   | 1 | 0 | 1 | 1 | 1 | 1 | 1 |
-|   |   | 0 | 0 | 0 | 0 | 1 | 1 |
+|   |   | 0 | 0 | 0 | 0 | 0 | 0 |
 
  1 lisp calc)
 (org-test-table-target-expect
@@ -455,20 +455,34 @@ reference (with row).  Format specifier N.
   ;; Empty fields in simple and complex range reference: Suppress them
   ;; ($5 and $6) or keep them and use 0 ($7 and $8)
 
-  (org-test-table-target-expect
-   \n|   |   | 5 | 7 | replace | replace | replace | replace |\n
-   \n|   |   | 5 | 7 | 6 | 6 | 3 | 3 |\n
-   1
-   ;; Calc formula
-   (concat #+TBLFM: 
-  $5 = vmean($1..$4) :: $6 = vmean(@0$1..@0$4) :: 
-  $7 = vmean($1..$4); EN :: $8 = vmean(@0$1..@0$4); EN)
-   ;; Lisp formula
-   (concat #+TBLFM: 
-  $5 = '(/ (+   $1..$4  ) (length '(  $1..$4  )));  N :: 
-  $6 = '(/ (+ @0$1..@0$4) (length '(@0$1..@0$4)));  N :: 
-  $7 = '(/ (+   $1..$4  ) (length '(  $1..$4  ))); EN :: 
-  $8 = '(/ (+ @0$1..@0$4) (length '(@0$1..@0$4))); EN))
+  (let ((calc (concat
+  #+TBLFM: 
+  $5 = 

Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Michael Brand
Hi Gunnar

On Tue, Apr 9, 2013 at 1:57 AM, Gunnar Wolf gw...@gwolf.org wrote:

 #+tblfm: @2$8..@5$8='(length 
 '($3..$7))::@6$2=vmean($3..$7);%.2f::@6$3..@6$7='(length 
 '(@2..@5))::@6$8=vmean(@2..@5);%.2f

I would use

#+TBLFM: $8 = vlen($3..$7) :: @$2 = vmean($3..$7); E %.2f ::
@$3..@$7 = vlen(@II..@III) :: @$8 = vmean(@2..@5); E %.2f

or

#+TBLFM: $8 = vlen($3..$7) :: @$2 = vmean($3..$7) +.0; E f-2 ::
@$3..@$7 = vlen(@II..@III) :: @$8 = vmean(@2..@5) +.0; E f-2

For +.0 and f-2 see
http://orgmode.org/worg/org-faq.html#table-float-fraction

Michael



Re: [O] New exporter and dates in tables

2013-04-09 Thread Carsten Dominik

On 8 apr. 2013, at 21:49, Nicolas Goaziou n.goaz...@gmail.com wrote:

 Hello,
 
 Carsten Dominik carsten.domi...@gmail.com writes:
 
 On 8 apr. 2013, at 13:27, Bernt Hansen be...@norang.ca wrote:
 
 Nicolas Goaziou n.goaz...@gmail.com writes:
 
 Bernt Hansen be...@norang.ca writes:
 
 I have subtrees with inactive timestamps in the text indicating when
 something occurred.  I normally don't want to export these.  But I think
 any table data that includes inactive timestamps should be an exception
 to this ... otherwise you get output tables with blank cells where the
 meaningful timestamp data would be.
 
 I understand.
 
 So what exactly should be this exception? Should export ignore :nil
 option in a whole table, or only when a table cell contains a single
 timestamp? IOW, how would it behaves in the following table:
 
 | [2013-04-04 Thu] | Lunch at [2013-04-04 Thu] ] |
 
 when `org-export-with-timestamps' is either nil or `active'?
 
 I think keeping it simple is best.  If there is an inactive timestamp in
 a table then it should be exported (I consider everything in a table as
 data).
 
 
 I think this is the right way to look at this.
 
 I still find it surprising that :nil will remove the timestamp in:
 
  Lunch at [2013-04-04 Thu]
 
 but not in
 
  | Lunch at [2013-04-04 Thu] |
 
 I suppose I'll eventually get it.

Yes, I agree that it is hard to nail the exact reasons. The
reasoning for me goes like this:

Some people throw in time stamps often while they work, just
as a little label, indicating that they were working on this
at a specific date, or that the entry was created on a specific
date.  Many people I know have a hook that throws in such a
time stamp in each new entry created.  This creates a lot of
clutter when you print it, which is why you can turn off
export of timestamps.

That option was not meant for a contextual line like your
first example.  If you use the time stamps in this way, you
probably will not turn off timestamp export at all, you
will just leave it on.  If you mix both ways of using
time stamps - well, too bad.

Tabular data is different because you certainly wanted
that data in the table, so removing it will be confusing.

 Anyway, there's still another thing to ponder. Since everything in
 a table is data, what happens with tex:nil (LaTeX snippets)? Should
 this option also be ignored within a table? If not, how can we explain
 the difference with :nil?

Tex macros are different.  This is an internal way of
inserting special characters, and that syntax may get into
your way in some specific projects.  Just like the fact
that _ creates a subscript.  If you have to write text
with lots of _ but you never mean a subscript, this can
be really annoying.  So you can turn off subscripts as you
can turn off interpretation of tex macros, as a convenience
if the syntax gets in your way.  Then it should be turned
off anywhere, table or not.

Regards

- Carsten


 
 
 Regards,
 
 -- 
 Nicolas Goaziou




Re: [O] new exporter and plain text table export alignment

2013-04-09 Thread Nicolas Goaziou
Hello,

maxco...@gmail.com writes:

 I use org tables to estimate construction projects.  I frequently use
 simple math within a table cell to help me remember what I was
 thinking when I entered the data.

 It seems that the new exporter does not align plain text exports in
 some of these situations.  I only use plain text and html exports;
 html is working perfectly.

 example tables and the results I see.

Thank you for the detailed report. Unfortunately (or fortunately),
I cannot reproduce it with Org-mode version 8.0-pre
(release_8.0-pre-333-g728c69).

What version do you use?


Regards,

-- 
Nicolas Goaziou



Re: [O] [BUG?] [ox-latex] tables and inline-math doesn't seem to work

2013-04-09 Thread Nicolas Goaziou
Hello,

Rasmus ras...@gmx.us writes:

 A bug seems to have emerged wrt inline-math and org tables.

Indeed. Thank you for reporting it. It should be fixed.

 I guess it might be from when we dropped the '' around :attributes,
 but I haven't tested this.

Good guess.


Regards,

-- 
Nicolas Goaziou



Re: [O] new exporter and plain text table export alignment

2013-04-09 Thread Maxco . tr

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

 Thank you for the detailed report. Unfortunately (or fortunately),
 I cannot reproduce it with Org-mode version 8.0-pre
 (release_8.0-pre-333-g728c69).

 What version do you use?


 Regards,

the same, (release_8.0-pre-333-g728c69)

I was afraid of that.  Thanks for your help, I'll investigate my setup.



Re: [O] Listing clock time in 'timeline' order

2013-04-09 Thread Giorgos Keramidas
On 2013-04-09 13:56, Bastien b...@gnu.org wrote:
 Hi Giorgos,

 Giorgos Keramidas keram...@ceid.upatras.gr writes:

  Do you think such a feature is possible org-mode?

 It is not possible at the moment.

 There is the option `org-clock-clocktable-formatter' that allows you
 to define your own function for formatting clocktables, so in theory
 you could scratch from there.

That's a very good pointer. Thanks!

In the meantime I found that org-agenda includes a 'log-mode', which
reports an _almost_ perfect timesheet for what I wanted to do, e.g.:

Monday  8 April 2013 W15
  AGENDA: 10:45-10:59 Clocked:   (0:14) DONE Building FreeBSD world at 
~kobe~ :laptop:personal:bsd:
  AGENDA: 10:45-12:15 Clocked:   (1:30) DONE Reading foo doc :work:doc:
  AGENDA: 11:01-14:04 Clocked:   (3:03) DONE Building FreeBSD world at 
~kobe~ :laptop:personal:bsd:
  AGENDA: 12:40-14:11 Clocked:   (1:31) DONE Chapter 10 -- Chapter title 
:reading:
  AGENDA: 14:04-14:10 Clocked:   (0:06) DONE Installing new FreeBSD world 
at ~kobe~ :laptop:personal:bsd:
  AGENDA: 17:20-18:17 Clocked:   (0:57) DONE Chapter 10 -- Chapter title
:reading:
  AGENDA: 18:17-19:05 Clocked:   (0:48) DONE Chapter 11 -- Chapter title
:reading:
  AGENDA: 19:05-20:21 Clocked:   (1:16) DONE Chapter 12 -- Chapter title
:reading:
  AGENDA: 20:30-21:00 Clocked:   (0:30) DONE Chapter 13 -- Chapter title
:reading:
  AGENDA: 21:15-21:33 Clocked:   (0:18) DONE Chapter 13 -- Chapter title
:reading:
  AGENDA: 21:50-22:49 Clocked:   (0:59) DONE Chapter 14 -- Chapter title
:reading:

I think I can definitely adapt this, or use a custom version of
`org-clock-clocktable-formatter' to make it _perfect_.

The time-ordered output of the agenda, visible with `C-c a a l' is
already so close to what I wanted that the changes should be pretty
minimal.

Cheers,
Giorgos



Re: [O] Listing clock time in 'timeline' order

2013-04-09 Thread Bastien
Giorgos Keramidas keram...@ceid.upatras.gr writes:

 The time-ordered output of the agenda, visible with `C-c a a l' is
 already so close to what I wanted that the changes should be pretty
 minimal.

Indeed!  I should have mentioned that first.

-- 
 Bastien



[O] org babel problems with (org-babel-read *R*)

2013-04-09 Thread Thomas Alexander Gerds

after upgrading to the latest bleeding edge version I have problems
executing org-babel R blocks where the session is named *R*. the error
is this:

ELISP (org-babel-read *R*)
*** Eval error ***  Symbol's value as variable is void: *R*

did I miss any conventions or is this a bug?

cheers
thomas


--
Thomas A. Gerds -- Assoc. Prof. Department of Biostatistics
University of Copenhagen, Øster Farimagsgade 5, 1014 Copenhagen, Denmark
Office: CSS-15.2.07 (Gamle Kommunehospital)
tel: 35327914 (sec: 35327901) 



Re: [O] phone links...

2013-04-09 Thread Michael Strey
On Tue, Apr 09, 2013 at 07:19:35AM -0500, Robert Goldman wrote:

[...]

 Again, I am not an org-contacts user, so this may be a stupid question,
 but how does org-contacts know when it has a contact?  I am looking at
 the sample record you present above, and it looks just like an org-mode
 header to me.

The original idea behind org-contacts was to treat every heading
containing the property :EMAIL: as contact.  This has been extended to a
set of customisable properties that define a heading as contact.  By
default :EMAIL:, :PHONE:, :ADDRESS:, or :BIRTHDAY: make a contact from
any normal heading.

Best regards
-- 
Michael Strey 
www.strey.biz



Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Gunnar Wolf
42 147 dijo [Tue, Apr 09, 2013 at 04:10:07AM -0400]:
 
 Hello mailing list,
 
 This might be considered off-topic.
 
 The question is the title: have you been able to convert many people to
 Emacs / org-mode? Are converts all programmers, or those versed in
 programming? -- Or have you converted non-programmers, e.g., anyone who
 edits text for a living?
 (...)

I won't talk about the people I have (not yet) converted, but about
the person who converted me: I am a long-time Emacs user (got
initiated back in 1983, being 6 or 7 years old, at the university
where my father worked, works, and where I now work as well). We spent
many Friday nights at the terminal room, he was working on some
proceedings book compilation and I was getting exposed to computers
when few had chance. So, yes, I got started on TeX and Emacs at quite
an early age. And they deformed my mind forever, it seems.

One of the factors that led me to switch to a Linux environment in the
mid-90s was that both tools I cherished (but hadn't touched in almost
ten years) were readily available. And while I did nothing with TeX
for many years (using LyX for the occasional writeup), Emacs became
very early part of my sysadmin tools, and later, my programming buddy.

Still more years passed. Between 2009 and 2011, I edited a book for
the university — «Construcción colaborativa del conocimiento»,
studying the free software / free culture movements. The process was
most interesting, but quite painful - We did the inter-author
collaboration using a Web framework, and it was up to me to convert
the final version to LaTeX and typeset it adequately. In the end, we
got quite a good result¹, which you can download if you find
interesting (written in Spanish).

Talking about the woes in the conversion, an anthropologist (and a
very good friend of mine) suggested me to take a look at org-mode. I
had previously just heard about it and dismissed it because I can
perfectly do without yet-another-todo-list-manager (which is what I
thought Org was). But after he showed me the ease with which he writes
his articles and was halfway through his doctoral thesis, intermixing
LaTeX bits, exporting to PDF and HTML, easily producing the Beamer
slides I took so much pride in having mastered... I got converted
right away.

That was just six months ago. I now write all of my articles and
presentations in Org, and am halfway through (yet another) book.

¹ http://seminario.edusol.info/



Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Gunnar Wolf
Nick Dokos dijo [Mon, Apr 08, 2013 at 11:31:14PM -0400]:
 You can turn on formula debugging with C-c { and then you'd
 see that in Pancho's case, the list is () i.e. a list containing the
 empty string - a list of length 1. That might qualify as a bug (or not) but
  
 you can easily work around it, using (delq  list) which deletes empty
 strings from the list.

Ok - I was not sure on how to use/interpret the debugging facility,
but it will surely help me

 Try this:
 
 #+CAPTION: Attendances for April
 |-+---+---+---+---+---++---|
 | Account | Name  | 1 | 3 | 5 | 8 | 10 | Total |
 |-+---+---+---+---+---++---|
 |1234 | Cárdenas, Lázaro  | X |   | X | X || 3 |
 |5678 | Madero, Francisco | X | X | X | X || 4 |
 |1544 | Villa, Pancho |   |   |   |   || 0 |
 |0113 | Zapata, Emiliano  |   | X | X |   || 2 |
 |-+---+---+---+---+---++---|
 #+tblfm: @II+1$..@III-1$='(length (delq  '($..$)))

Interesting, my org-mode version behaves differently, and still gives
'1' for the empty row with your version:

Substitution history of formula
(...)
@r$c- '(length (delq  '(0)))
$1-   '(length (delq  '(0)))
Result: 1

I tried substituting the empty quotes in the 'delq' with 0, '(),
'(0)... but always got the same result: 1.

 I kept just one formula for clarity. I also tried to avoid absolute
 row and column numbers (the $3 seemed better than $ though
 so I kept it)
 : @II is the second separator, $ is the last column
 and $ is the penultimate column.

Right, I want to better understand relative addressing, as each month
has a different number of columns (and some have different number of
rows), and I'd prefer having the same formulas everywhere. How would
you suggest me to address from the third and until the next-to-last
column?



Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Nicolas Goaziou
Hello,

Bastien b...@gnu.org writes:

 This is already very useful. However, in addition to
 rowgroup-number, top-row-p and bottom-row-p it would be really
 helpful to have a row counter variable. Is this difficult to
 implement (I honestly tried but did not see an obvious way)?

 I think it is non-trivial -- as least non-trivial enough so that I
 can't do it at the moment, sorry.

Indeed. I had forgotten to implement such a tool in ox.el. I added
`org-export-table-row-number'.

Could you patch `org-html-table-row' accordingly?

Thanks.


Regards,

-- 
Nicolas Goaziou



[O] Is there a limit to number of entries in org-feed.el?

2013-04-09 Thread Aditya Mandayam
I tried using org-feed:

http://orgmode.org/worg/org-contrib/org-feed.html

and it returns 70 entries when I try to update. Is there a limit to
the amount it can pull? Or is it me?



[O] Sync orgmode with toodledo

2013-04-09 Thread Rainer M. Krug
Hi

I remember that there was a discussion about synchronizing toodledo with
org, and I found the following
https://github.com/christopherjwhite/org-toodledo .

I just wanted to confirm if there is a build-in possibility (which I
have overlooked) which can be used to sync org with toodledo.

Also: any experiences with this approach above?

Thanks,

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


pgp6IufgMc_lr.pgp
Description: PGP signature


Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Nick Dokos
On Tue, Apr 9, 2013 at 10:55 AM, Gunnar Wolf gw...@gwolf.org wrote:

  Try this:
 
  #+CAPTION: Attendances for April
  |-+---+---+---+---+---++---|
  | Account | Name  | 1 | 3 | 5 | 8 | 10 | Total |
  |-+---+---+---+---+---++---|
  |1234 | Cárdenas, Lázaro  | X |   | X | X || 3 |
  |5678 | Madero, Francisco | X | X | X | X || 4 |
  |1544 | Villa, Pancho |   |   |   |   || 0 |
  |0113 | Zapata, Emiliano  |   | X | X |   || 2 |
  |-+---+---+---+---+---++---|
  #+tblfm: @II+1$..@III-1$='(length (delq  '($..$)))

 Interesting, my org-mode version behaves differently, and still gives
 '1' for the empty row with your version:

 Substitution history of formula
 (...)
 @r$c- '(length (delq  '(0)))
 $1-   '(length (delq  '(0)))
 Result: 1


Check the formula again: you seem to have captured the 0 from the last
column, instead of stopping at the penultimate column. The range should
be $3..$ or $..$  - also, you should have posted the whole
substitution history so we could see the range, instead of me guessing. The
motto should be More information is better than less, but of course that
should be tempered by common sense :-)

HTH,
Nick


[O] Google calendar sync - what is recommended?

2013-04-09 Thread Rainer M. Krug
Hi

As you might guess from my recent mails, I am moving away from
thunderbird to org-mode. After having my emails covered and fighting
with the addressbook (using goobokk as described here
http://notmuchmail.org/emacstips/#index15h2 but would like to move to
ASynK https://karra-asynk.appspot.com/ if I can get it to work and to
understand bbdb...) and hoping that I can also get toodledo synced, I
want to sync my google calendar with org. Now there was quite siome
discussion recently which I did not follow to closely. Which approach is
the recommended / most stable approach in syncing google calendar with
org?

Thanks,

Rainer

PS: org-unrelated gnus questions:

1) how can I insert these [1] footnotes in message-mode?
2) how can I quote or enclose a block with these brackets in acsii code?

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


pgp7A9uOTxSS6.pgp
Description: PGP signature


Re: [O] new exporter and plain text table export alignment

2013-04-09 Thread Maxco . tr

maxco...@gmail.com writes:

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

 Thank you for the detailed report. Unfortunately (or fortunately),
 I cannot reproduce it with Org-mode version 8.0-pre
 (release_8.0-pre-333-g728c69).

 What version do you use?


 Regards,

 the same, (release_8.0-pre-333-g728c69)

 I was afraid of that.  Thanks for your help, I'll investigate my setup.

I had '(org-startup-indented t)
removing that and plain text table exports are back to normal.
thanks again for the help.



Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Gunnar Wolf
Michael Brand dijo [Tue, Apr 09, 2013 at 02:40:06PM +0200]:
 On Tue, Apr 9, 2013 at 5:31 AM, Nick Dokos ndo...@gmail.com wrote:
  You can turn on formula debugging with C-c { and then you'd
  see that in Pancho's case, the list is () i.e. a list containing the
  empty string - a list of length 1. That might qualify as a bug (or not)
 
 This issue is part of some old bugs that I discovered end of 2012. It
 seems like my patch from then
 http://orgmode.org/w/org-mode.git?p=org-mode.git;a=commitdiff;h=764315
 resolved it only partially and I missed the case of a range with only
 empty fields, although I tested and approved it in my ERTs... The
 attached patch corrects.
 
 It is worth a small compatibility change: For a range with only empty
 fields it is now possible and necessary to choose different behaviors
 of vmean by adding the format specifiers E and/or N.

Yes - it seems it is this bug you mention. I prefer not to patch my
.el if possible, as being me a non-hard-core, non-bleeding-edge
Org-mode user, I prefer following what comes in my Debian package ;-)



Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Bastien
Hi Nicolas,

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

 Indeed. I had forgotten to implement such a tool in ox.el. I added
 `org-export-table-row-number'.

 Could you patch `org-html-table-row' accordingly?

Done, thanks!

-- 
 Bastien



Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Christopher Allan Webber
Eric Abrahamsen writes:

 Russell Adams rlad...@adamsinfoserv.com writes:

 My experience has been that after watching me manage a project in Org
 for a few weeks, I have customers beg me to help them install it on
 their PC. I've had quite a few converts through working together and
 by example.

 Perhaps the web incarnations of org could help here too. Say the manager
 of a small group project were able to create a web-version of an agenda,
 and project members could filter that by clicking on javascript-enabled
 versions of tags corresponding to their TODOs, and even click the TODOs
 to change state, that could be a nice introduction to project management
 in Org. It might require too much org functionality to be re-written in
 javascript though? Dunno.

 E

I think a web application that allowed for
orgmode-as-a-group-todo-management-system thing would be huge.  It would
require a lot of thinking of how to approach it in a way that would be
nice and make sense.  I'm not really sure what it would look like.  But
hook that up to git and you'd have a really interesting bug tracking
system.

There was that relevant GSoC project, but I'd be interested in this
happening in python or similar.  Now that we have the standard for
orgmode as a file format...



Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Gunnar Wolf
(Quoting in full to preserve mail readability without resorting to too
much context)

   #+CAPTION: Attendances for April
   |-+---+---+---+---+---++---|
   | Account | Name  | 1 | 3 | 5 | 8 | 10 | Total |
   |-+---+---+---+---+---++---|
   |1234 | Cárdenas, Lázaro  | X |   | X | X || 3 |
   |5678 | Madero, Francisco | X | X | X | X || 4 |
   |1544 | Villa, Pancho |   |   |   |   || 0 |
   |0113 | Zapata, Emiliano  |   | X | X |   || 2 |
   |-+---+---+---+---+---++---|
   #+tblfm: @II+1$..@III-1$='(length (delq  '($..$)))
 
  Interesting, my org-mode version behaves differently, and still gives
  '1' for the empty row with your version:
 
  Substitution history of formula
  (...)
  @r$c- '(length (delq  '(0)))
  $1-   '(length (delq  '(0)))
  Result: 1
 
 Check the formula again: you seem to have captured the 0 from the last
 column, instead of stopping at the penultimate column. The range should
 be $3..$ or $..$  - also, you should have posted the whole
 substitution history so we could see the range, instead of me guessing. The
 motto should be More information is better than less, but of course that
 should be tempered by common sense :-)

Trying with:

#+tblfm: @II+1$..@III-1$='(length(delq  '($3..$)))

The full substitution history is:

Substitution history of formula
Orig:   '(length(delq  '($3..$7)))
$xyz-  '(length(delq  '($3..$7)))
@r$c-  '(length(delq  '(0)))
$1-'(length(delq  '(0)))
Result: 1
Format: NONE
Final:  1

Changing the $3 for $ yields the exact same result. I cannot see
any 0 - As far as I can understand, the evaluation of an empty
vector for (length ...) gives this 0 ?



Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Michael Brand
On Tue, Apr 9, 2013 at 5:10 PM, Nick Dokos ndo...@gmail.com wrote:
 @r$c- '(length (delq  '(0)))
 $1-   '(length (delq  '(0)))
 Result: 1


 Check the formula again: you seem to have captured the 0 from the last
 column, instead of stopping at the penultimate column. The range should
 be $3..$ or $..$  - also, you should have posted the whole
 substitution history so we could see the range, instead of me guessing. The
 motto should be More information is better than less, but of course that
 should be tempered by common sense :-)

Gunnar is following the Debian package, '(0) was the result for a
range with all fields empty before my first patch end of 2012. See the
second and the last two hunks of
http://orgmode.org/w/org-mode.git?p=org-mode.git;a=commitdiff;h=764315
which change the range list from '(0) to '(). My previously
attached patch will finally change this case to the required '(), see
also its hunks at the beginning and the end.

Trying to adapt your workaround with delq to '(0) lets me give up,
also after reading the docstring of delq. Hope you or so can help.

Michael



Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Michael Brand
 Trying to adapt your workaround with delq to '(0) lets me give up,
 also after reading the docstring of delq. Hope you or so can help.

How could I miss the here not so obvious difference between eq and equal:
(delete 0 [...]) works of course.

Michael



[O] quickly toggling properties

2013-04-09 Thread Matt Price
Hi everyone,

I just updated to the latest git to try out the ox-deck exporter --
wow it's great, thank you Rick!

The exporter makes use of two properties to control the display of
slide fragments -- STEP and HTML_CONTAINER_CLASS.  I think I'm going
to be using these a lot, so I'm wondering what the quickest way is to
toggle a property. It's easy enough to define a quick key I guess, by
adding this line to org-structure-templates-alist:

(s :Properties\n:STEP: t\n:END:\n)

But I would like to bind a function to a siple keystroke, whic hI can
use to toggle the STEP or HTM_CONTAINER_CASS properties without
thinking too hard.  Any suggestions?  Thanks!

matt



Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Nick Dokos
Ah, OK - I guess Gunnar will not be able to avoid an upgrade to something
more recent.

And yes, the eq/equal subtleties strike once again:

(eq  )
t
(eq 0 0)
nil
(equal 0 0)
t






Re: [O] [bug] org-agenda-goto-date in month view fails

2013-04-09 Thread Eric S Fraga
Bastien b...@gnu.org writes:

 Hi Eric,

 Eric S Fraga e.fr...@ucl.ac.uk writes:

 when jumping to a new data using 'j' (org-agenda-goto-date), an error
 occurs if the current view is month:

 Fixed, thanks.

Works perfectly.  Thanks!

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_8.0-pre-271-ga5d654




Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Gunnar Wolf
Nick Dokos dijo [Tue, Apr 09, 2013 at 12:03:33PM -0400]:
 Ah, OK - I guess Gunnar will not be able to avoid an upgrade to something
 more recent.
 
 And yes, the eq/equal subtleties strike once again:
 
 (eq  )
 t
 (eq 0 0)
 nil
 (equal 0 0)
 t

Yay - Thanks to you all :-) Yes, it finally works fine for me with
(delete 0 [...])

Of course, at some point I will upgrade. We shall see if the world
breaks and hell ensues. But right now, I'm happy and satisfied. And
I'll study a bit more into the relative addressing you posted, as it
surely looks better suited.



Re: [O] Google calendar sync - what is recommended?

2013-04-09 Thread Eric S Fraga
Rainer M. Krug rai...@krugs.de writes:

[...]

 discussion recently which I did not follow to closely. Which approach is
 the recommended / most stable approach in syncing google calendar with
 org?

We are in a state of flux.  For quite a while, I used a two way
upload/download approach based on icalendar export from org to Google
and an awk script to convert Google calendar information into org.  See

http://orgmode.org/worg/org-tutorials/org-google-sync.html

This is not a synchronisation approach.

However, more recently, I moved to org-caldav for syncing.  There is a
link to this package from that web page as well (at the end).  This
works really nicely.

The problem is that Google has decided to no longer allow caldav access
to their Calendar system from sometime later this year, requiring people
to access the data in the calendar via the REST API.

I have moved back to the two way upload/download procedure mentioned
above.

 PS: org-unrelated gnus questions:

 1) how can I insert these [1] footnotes in message-mode?

Use footnote-mode

http://www.emacswiki.org/emacs/FootnoteMode

 2) how can I quote or enclose a block with these brackets in acsii code?

I do not understand this question.  Sorry.

HTH,
eric

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_8.0-pre-271-ga5d654




Re: [O] org babel problems with (org-babel-read *R*)

2013-04-09 Thread Charles Berry
Thomas Alexander Gerds tag at biostat.ku.dk writes:

 
 
 after upgrading to the latest bleeding edge version I have problems
 executing org-babel R blocks where the session is named *R*. the error
 is this:
 
 ELISP (org-babel-read *R*)
 *** Eval error ***  Symbol's value as variable is void: *R*
 
 did I miss any conventions or is this a bug?
 

This commit

http://orgmode.org/cgit.cgi/org-mode.git/commit
/?id=bde2348c9ecc87972d21a46a91d73ad3916650b8

broke all my :session *R* headers.

But :session *R* works.

C-h f org-babel-read should mention *XYZ* is treated as lisp.

Maybe (org-babel-read \*R*\) works for you.

Or I suppose you could hack this with (setq *R* *R*)

HTH,




[O] ctrl-enter and alt-enter behaviour in current org

2013-04-09 Thread Matt Price
Hi again,

after updating to the current git version yesterday, I'm noticing a
change in keybindings.  Previously, if I wasi n a ist inside a
headline:

* Heading
- list item
- list item 2

Alt-Enter would create a new list item, while
Ctrl-Enter would create a new headline.

Now, I'm finding that both keys are creating new ist items.  Is this
the intended behaviour? Can I customize it somehow/somewhere?  I'd
like to go back to the old bindings, they seemed more flexible.

Thanks a lot!

Matt



[O] reveal.js?

2013-04-09 Thread Matt Price
...  and one more thing:  Now that deck.js export seems to work
PERFECTLY(!), I find myself wishing for a reveal.js presentation
exporter.  Has anyone started one already?  Thanks!!

Matt



Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Sebastien Vauban
Hi Christopher,

Christopher Allan Webber wrote:
 Eric Abrahamsen writes:
 Russell Adams rlad...@adamsinfoserv.com writes:

 My experience has been that after watching me manage a project in Org
 for a few weeks, I have customers beg me to help them install it on
 their PC. I've had quite a few converts through working together and
 by example.

 Perhaps the web incarnations of org could help here too. Say the manager
 of a small group project were able to create a web-version of an agenda,
 and project members could filter that by clicking on javascript-enabled
 versions of tags corresponding to their TODOs, and even click the TODOs
 to change state, that could be a nice introduction to project management
 in Org. It might require too much org functionality to be re-written in
 javascript though? Dunno.

 I think a web application that allowed for
 orgmode-as-a-group-todo-management-system thing would be huge.  It would
 require a lot of thinking of how to approach it in a way that would be
 nice and make sense.  I'm not really sure what it would look like.  But
 hook that up to git and you'd have a really interesting bug tracking
 system.

I guess it should be in the spirit of configurable organizers like the
TiddlyWiki based GTD systems (see http://www.tiddlywiki.com/):

- MPTW (MonkeyPirateTiddlyWiki) :: http://mptw.tiddlyspot.com/
- mGSD :: http://mgsd.tiddlyspot.com/demo3.html and
  http://thinkcreatesolve.biz/mGSDEnhancements.html
- D-cubed
- tbGTD :: http://tbgtd.tiddlyspot.com/

That is the killer brother application for Org, for sure.

 There was that relevant GSoC project, but I'd be interested in this
 happening in python or similar.  Now that we have the standard for
 orgmode as a file format...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] org babel problems with (org-babel-read *R*)

2013-04-09 Thread Eric Schulte
Charles Berry ccbe...@ucsd.edu writes:

 Thomas Alexander Gerds tag at biostat.ku.dk writes:

 
 
 after upgrading to the latest bleeding edge version I have problems
 executing org-babel R blocks where the session is named *R*. the error
 is this:
 
 ELISP (org-babel-read *R*)
 *** Eval error ***  Symbol's value as variable is void: *R*
 
 did I miss any conventions or is this a bug?
 

 This commit

 http://orgmode.org/cgit.cgi/org-mode.git/commit
 /?id=bde2348c9ecc87972d21a46a91d73ad3916650b8

 broke all my :session *R* headers.

 But :session *R* works.

 C-h f org-babel-read should mention *XYZ* is treated as lisp.

 Maybe (org-babel-read \*R*\) works for you.

 Or I suppose you could hack this with (setq *R* *R*)

 HTH,



I just pushed up a fix.  Sorry for the bug.

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



Re: [O] quickly toggling properties

2013-04-09 Thread Bastien
Hi Matt,

Matt Price mopto...@gmail.com writes:

 I think I'm going to be using these a lot, so I'm wondering what the
 quickest way is to toggle a property.

I'd define

#+PROPERTY: STEP_ALL x1 x2 x3 

and use S-right/left to cycle through x1, x2 and x3.

HTH,

-- 
 Bastien



Re: [O] Google calendar sync - what is recommended?

2013-04-09 Thread Sebastien Vauban
Hi Rainer,

Rainer M. Krug wrote:
 PS: org-unrelated gnus questions:

 1) how can I insert these [1] footnotes in message-mode?

See org-footnote.

 2) how can I quote or enclose a block with these brackets in acsii code?

--8---cut here---start-8---
In Gnus, C-c M-m (that is, the command message-mark-inserted-region).
--8---cut here---end---8---

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [RFC] Org syntax (draft)

2013-04-09 Thread Bastien
Hi all,

Bastien b...@altern.org writes:

 the manual would enjoy a subsection in Hacking on how to create
 a new exporter, either from scratch or as a derived exporter.
 (Such a subsection can be short enough, thanks to derived backend.)

FWIW, I started a rudimentary one.  

This is Adding export back-ends in the current manual from master.

-- 
 Bastien



Re: [O] TAB cycling doesn't work from end of line

2013-04-09 Thread Bastien
Hi James,

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

 ** Example header...
 ^1   ^2  ^3 ^4

 If the point is at locations 1, 2 or 3, TAB will reveal the next level
 of children. (The ^ locations will make sense if you format the e-mail
 using a monospace font. A proportional font will just look
 nonsensical.)

 ** Example header
 *** Child node

 If it's at location 4, TAB cycling does nothing.

Because with ^1 ^2 ^3 the point is on a headline, while with ^4 it is
not on a headline, it is after the folded part of the buffer (and you
usually don't know exactly where it is.)

HTH,

-- 
 Bastien



Re: [O] Bugs x2: fast tag selection broken, column view broken?

2013-04-09 Thread Bastien
Hi Toby,

Toby Cubitt ts...@cantab.net writes:

 This one's weird. It seems to be caused by an interaction between
 flyspell and org. I can reproduce it with the following minimal recipe
 (using the column-view.org file from my previous post, though enabling
 column view mode in any org file should reproduce the problem):

 1. Create a .emacs with the following contents:

(add-to-list ~/path/to/org-mode/lisp/)
(require 'flyspell)
(require 'org)

 2. emacs --daemon

 3. emacsclient -c column-view.org 

 4. C-c C-x C-c

 Reversing the order in which flyspell and org are loaded fixes the
 problem.

Mhh... FWIW, I installed aspell-fr and run flyspell by requiring it
before Org and I could not reproduce this error.

-- 
 Bastien



Re: [O] Tables for attendance lists - A problem understanding TBLFM?

2013-04-09 Thread Bastien
Hi Michael,

Michael Brand michael.ch.br...@gmail.com writes:

 This issue is part of some old bugs that I discovered end of 2012. It
 seems like my patch from then
 http://orgmode.org/w/org-mode.git?p=org-mode.git;a=commitdiff;h=764315
 resolved it only partially and I missed the case of a range with only
 empty fields, although I tested and approved it in my ERTs... The
 attached patch corrects.

Applied, thanks.

 It is worth a small compatibility change: For a range with only empty
 fields it is now possible and necessary to choose different behaviors
 of vmean by adding the format specifiers E and/or N.

I'll add this in the release notes.  Maybe you could add a footnote in
the manual for this?

Thanks,

-- 
 Bastien



Re: [O] TAB cycling doesn't work from end of line

2013-04-09 Thread Dieter Wilhelm, H.
2013/4/9 Bastien b...@gnu.org:
 Hi James,

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

 ** Example header...
 ^1   ^2  ^3 ^4

 If the point is at locations 1, 2 or 3, TAB will reveal the next level
 of children. (The ^ locations will make sense if you format the e-mail
 using a monospace font. A proportional font will just look
 nonsensical.)

 ** Example header
 *** Child node

 If it's at location 4, TAB cycling does nothing.

 Because with ^1 ^2 ^3 the point is on a headline, while with ^4 it is
 not on a headline, it is after the folded part of the buffer (and you
 usually don't know exactly where it is.)

May I rephrase it:  For this little gain there is too much pain (i.e.
too hard to implement)?
Thanks for the explanation, I can live without it. 8-)
--
  Dieter



Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Achim Gratz
Nicolas Goaziou writes:
 Indeed. I had forgotten to implement such a tool in ox.el. I added
 `org-export-table-row-number'.

Sorry, but using this has quadratic complexity with the number of
rows...


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

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




[O] [BUG?] org-clone-subtree-with-time-shift

2013-04-09 Thread David Rogers
Hi everyone

I like to use org-clone-subtree-with-time-shift (C-c C-x c) fairly
frequently in some of my Org-mode files. Lately, it seems to have
changed its function so that it creates only an exact clone, and doesn't
prompt me for the time shift. Can other people reproduce this on a
fairly recent git pull, or do I need to explore my .emacs to find out
what I've done wrong?

Expected behaviour: Invoke command, get prompted for number of clones to
produce, respond, get prompted for time shift, respond, result appears.

Current behaviour here: Invoke command, get prompted for number of
clones to produce, respond, result appears.

-- 
Thanks
David



Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Stefan Vollmar
Dear Nicolas,
dear Bastien,

On 09.04.2013, at 16:56, Nicolas Goaziou wrote:

 [...] Indeed. I had forgotten to implement such a tool in ox.el. I added
 `org-export-table-row-number'.
 
 Could you patch `org-html-table-row' accordingly?


I suggest to replace the current lisp example in the documentation of 
org-html-table-row with (or similar):

(setq org-html-table-row-tags
  (cons '(cond (top-row-p tr class=\tr-top\)
   (bottom-row-p tr class=\tr-bottom\)
   (t  
(if (= (mod row-number 2) 1)
tr class=\tr-odd\
  tr class=\tr-even\)))
/tr))

It now generates HTML code the way the old exporter used to work for 
alternating row colours/styles.

Thank you!

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: voll...@nf.mpg.de   http://www.nf.mpg.de










smime.p7s
Description: S/MIME cryptographic signature


Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Bastien
Stefan Vollmar voll...@nf.mpg.de writes:

 I suggest to replace the current lisp example in the documentation of 
 org-html-table-row with (or similar):

 (setq org-html-table-row-tags
 (cons '(cond (top-row-p tr class=\tr-top\)
(bottom-row-p tr class=\tr-bottom\)
(t  
 (if (= (mod row-number 2) 1)
 tr class=\tr-odd\
   tr class=\tr-even\)))
   /tr))

Done, thanks!

-- 
 Bastien



Re: [O] [BUG] org-clock-in menu scrolls off the top of the window

2013-04-09 Thread Bastien
Hi Bernt,

Bernt Hansen be...@norang.ca writes:

 Another change I've noticed in master is the display of the clocking
 task menu when doing

 C-u M-x org-clock-in

Thanks, this is now fixed.

Also, I added clocked-out time for each task.

Let me know if you think it's useful or too much
visual stress.

-- 
 Bastien



Re: [O] [BUG?] org-clone-subtree-with-time-shift

2013-04-09 Thread Bastien
Hi David,

David Rogers davidandrewrog...@gmail.com writes:

 I like to use org-clone-subtree-with-time-shift (C-c C-x c) fairly
 frequently in some of my Org-mode files. Lately, it seems to have
 changed its function so that it creates only an exact clone, and doesn't
 prompt me for the time shift. Can other people reproduce this on a
 fairly recent git pull, or do I need to explore my .emacs to find out
 what I've done wrong?

The default is to not ask for a time-shift by default, only when
(1) called with a prefix argument and (2) there is a time cookie.

C-u C-c C-x c should do.

Let me know if the docstring is not clear or if you find this not 
user-friendly -- remember in many cases, we may want to clone tasks
that have no time specs.

Thanks,

-- 
 Bastien



Re: [O] [BUG?] org-clone-subtree-with-time-shift

2013-04-09 Thread David Rogers
Bastien b...@gnu.org writes:

 Hi David,

 David Rogers davidandrewrog...@gmail.com writes:

 I like to use org-clone-subtree-with-time-shift (C-c C-x c) fairly
 frequently in some of my Org-mode files. Lately, it seems to have
 changed its function so that it creates only an exact clone, and doesn't
 prompt me for the time shift. Can other people reproduce this on a
 fairly recent git pull, or do I need to explore my .emacs to find out
 what I've done wrong?

 The default is to not ask for a time-shift by default, only when
 (1) called with a prefix argument and (2) there is a time cookie.

 C-u C-c C-x c should do.

 Let me know if the docstring is not clear or if you find this not 
 user-friendly -- remember in many cases, we may want to clone tasks
 that have no time specs.

Is this something where the default has been changed recently? I'm fine
with using a prefix, and it's not unfriendly; just this wasn't the way
it worked before for me, so I assumed something was wrong.

-- 
Thanks
David



Re: [O] Agenda in MobileOrg for Android

2013-04-09 Thread David Rogers
Jorge A. Alfaro Murillo jorge.a.alf...@gmail.com writes:

 I think entries of the form
 %%(org-class 2013 1 7 2013 4 27 2) 12:00pm-01:15pm TITLE
 show up on MobileOrg.

 I have org-mobile-agendas set up to 'default and they do for me.

Thank you! I'll try this.

 Also the synchronization with Google Calendar is quite good in Android, you
 can let then Google Calendar handles the remainders in your phone.

Yes, that's what I do. It was just getting them to show in MobileOrg that
was the problem. I'll change my org-class entries to match your format
and see if it works.

-- 
Thanks
David



Re: [O] Google calendar sync - what is recommended?

2013-04-09 Thread Rasmus
Eric S Fraga e.fr...@ucl.ac.uk writes:

 We are in a state of flux.  For quite a while, I used a two way
 upload/download approach based on icalendar export from org to Google
 and an awk script to convert Google calendar information into org.  See

 http://orgmode.org/worg/org-tutorials/org-google-sync.html

 This is not a synchronisation approach.

 However, more recently, I moved to org-caldav for syncing.  There is a
 link to this package from that web page as well (at the end).  This
 works really nicely.

 The problem is that Google has decided to no longer allow caldav access
 to their Calendar system from sometime later this year, requiring people
 to access the data in the calendar via the REST API.

I'm not sure Google is the solution. . . 

Since we discussed this last I have found a couple of nice calDAV
possibilities:

  - Red Hat Open Shift FreeShifter: it can be used for e.g. OwnCloud
or some other CalDav calendar (it can install OwnCloud itself).
I use it for Tiny Tiny Rss and OwnCloud.
  https://www.openshift.com/quickstarts/all?order=createdsort=desc

  - owndrive.com also offers free OwnCloud hosting. 
  https://owndrive.com/

If I have time at some point I'll experiment with it, but so far I
have still be unable to make org-caldav work. . . 

–Rasmus

-- 
Vote for proprietary math!




Re: [O] Agenda in MobileOrg for Android

2013-04-09 Thread Matthew Jones
Hey guys, I'm one of the maintainers of MobileOrg for Android.  We've
worked really hard to try to implement as many of the features of org-mode
as we can and make it comfortable to use for the majority of people.  A
couple of points:

- Originally we were just storing the org files and parsing those on demand
instead of using a database.   This proved extremely cumbersome when we
wanted to add more features, and it really did not scale well when people
had very large org files.  We made a decision a while ago to switch to a
database almost exclusively for this reason, but there were a lot of other
smaller reasons that also made it worthwhile.

- The reason we do syncing the way that we do is to fit into org-mode's
org-mobile-* concept.  Keeping multiple sets of plain text files in sync
with emacs in the loop is no simple task.  The org-mobile-* functions were
already defined and well used when I started writing the Android port of
MobileOrg.  It may be suboptimal but currently it is the best and easiest
(from the development side) way to keep a remote device and an instance of
emacs in sync.  I'm actually not even sure if the org-mobile-* routines are
even maintained anymore.  The synchronization problem is not as easy as
just overwriting the files, however.

- If you have issues and you don't tell us then we have no way of helping
you and the problem might not go away.  We try to stay on top of
showstopping issues for our users (we have an email address and a bug
tracker linked to in the app store) unfortunately some folks just leave a 1
star review and uninstall and never contact us.


On Mon, Apr 8, 2013 at 5:28 AM, Marcin Borkowski mb...@wmi.amu.edu.plwrote:

 Dnia 2013-04-08, o godz. 06:52:02
 James Harkins jamshar...@gmail.com napisał(a):

  As it happens, one of the lead developers of mobileorg started a
  thread on the MobileOrg-Android mailing list asking for issues that
  need to be addressed, and features that are needed, before it's ready
  for 1.0.

 Well, I didn't know about the existence if that list;).

  I'm using MobileOrg and enjoying it in general. I find it terribly
  useful and not especially cumbersome. The initial setup was a bit of a
  trek for me, because I don't have access to dropbox where I live
  (mainland China). Ultimately, because of unreliable connections to
  Ubuntu One, I ended up running my own WebDAV server locally and
  syncing at home over the WLAN.
 
  Otherwise, the only thing I had to adapt in my org/emacs usage was to
  schedule appointments (C-c C-s) instead of using timestamps for them
  (C-c .). I'm actually not crazy about that -- I'd rather use
  timestamps -- but it does work. (Come to think of it, I should propose
  that as one of the 1.0 issues... or check if it's changed since the
  last time I tried.) Items with scheduled or deadline timestamps appear
  in the Android calendar, and there is a preference in MobileOrg to
  attach reminders automatically. (One remaining point here -- another
  1.0 issue -- is that creating a new node in MobileOrg with a schedule
  or deadline doesn't show up in the phone calendar until after
  syncing. I'll bring that up on the M/O mailing list.)
 
  I find that creating new nodes and minor editing of existing ones is
  not at all inconvenient. I don't see a big issue for the workflows
  that Marcin subsequently identified as being critical for this kind of
  app. They're already there.
 
  hjh

 As I wrote in my other email, I'll give it a try - but I'm very much
 tempted to try to write my own implementation, for the sake of learning.

 Best,

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




Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Loyall, David
 Subject: Re: [O] converting people to Emacs and org-mode
[snip]
 Perhaps the web incarnations of org could help here too.
 
I plan to bring attention to Emacs by publishing a wiki on our intranet.

ikiwiki[1] is a simple perl based wiki compiler.  You maintain a tree of text 
documents in VCS, compile them into a network of linked HTML documents on 
demand (or on commit via a hook) and publish them on any http server (or 
whatever).

Ikiwiki has an exporter framework that invokes different tools to export (or 
compile) different file formats.  For example, it is trivial to configure it to 
render foo.lisp and bar.c as foo.lisp.html and bar.c.html, which contain pretty 
renderings of the code.

There is an org-mode plugin[2] for ikiwiki that I am experimenting with.  It 
invokes an Emacs session to call the org exporter.

Like most wikis, ikiwiki also allows users to create and edit content via http. 
 (Being perl, ikiwiki uses (modern) CGI.)  The interface is a simple HTML text 
area.

I intend to allow users to alter .org files via ikiwiki's web interface and 
have ikiwiki run them through the org exporter after each save (which is also a 
VCS commit).

When users start to feel limited by the textbox, I'll suggest that they use 
Emacs and grant them direct file access to the VCS that stores all the .org 
files. (git in my case.)

Wish me luck. :)

Incidentally, I'd find an org-mode vs. Microsoft OneNote feature comparison 
matrix useful.  Anybody got that?

Cheers,
--Dave

[1] http://ikiwiki.info/
[2] https://github.com/chrismgray/ikiwiki-org-plugin





Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread Chris Gray
Please let me know if you have any problems with the ikiwiki plugin or any
feature requests.  I haven't been too active with it lately, but I'm still
around. :)

Cheers,
Chris


On Tue, Apr 9, 2013 at 11:33 AM, Loyall, David david.loy...@nebraska.govwrote:

  Subject: Re: [O] converting people to Emacs and org-mode
 [snip]
  Perhaps the web incarnations of org could help here too.

 I plan to bring attention to Emacs by publishing a wiki on our intranet.

 ikiwiki[1] is a simple perl based wiki compiler.  You maintain a tree of
 text documents in VCS, compile them into a network of linked HTML documents
 on demand (or on commit via a hook) and publish them on any http server (or
 whatever).

 Ikiwiki has an exporter framework that invokes different tools to export
 (or compile) different file formats.  For example, it is trivial to
 configure it to render foo.lisp and bar.c as foo.lisp.html and bar.c.html,
 which contain pretty renderings of the code.

 There is an org-mode plugin[2] for ikiwiki that I am experimenting with.
  It invokes an Emacs session to call the org exporter.

 Like most wikis, ikiwiki also allows users to create and edit content via
 http.  (Being perl, ikiwiki uses (modern) CGI.)  The interface is a simple
 HTML text area.

 I intend to allow users to alter .org files via ikiwiki's web interface
 and have ikiwiki run them through the org exporter after each save (which
 is also a VCS commit).

 When users start to feel limited by the textbox, I'll suggest that they
 use Emacs and grant them direct file access to the VCS that stores all the
 .org files. (git in my case.)

 Wish me luck. :)

 Incidentally, I'd find an org-mode vs. Microsoft OneNote feature
 comparison matrix useful.  Anybody got that?

 Cheers,
 --Dave

 [1] http://ikiwiki.info/
 [2] https://github.com/chrismgray/ikiwiki-org-plugin






Re: [O] Agenda in MobileOrg for Android

2013-04-09 Thread Gareth Smith
Marcin Borkowski mb...@wmi.amu.edu.pl writes:
 Well, it would be true, if syncing worked...  But (at least for me) it
 didn't - more often than not it crashed with a mysterious error message
 and I lost my captures.  I will try to reinstall MobileOrg and try to
 reproduce it and report, too.

Until recently, I was using an old version of MobileOrg which often
crashed on sync with some sort of dropbox error. When I got the latest
version from https://github.com/matburt/mobileorg-android/wiki (I don't
currently have marketplace access[1]) that issue went away.

For me, MobileOrg is now much more useful than it was, though I still
have plenty of config experiments to do before I'm happy. In particular,
I haven't yet figured out how to get any kind of calendar view of my
data without signing up to google calendar[1]...

G

[1] I have nothing particularly against google services, I'm just
currently experimenting to see if it's possible to live happily without
them.



Re: [O] Agenda in MobileOrg for Android

2013-04-09 Thread Jorge A. Alfaro Murillo
I think entries of the form
%%(org-class 2013 1 7 2013 4 27 2) 12:00pm-01:15pm TITLE
show up on MobileOrg.

I have org-mobile-agendas set up to 'default and they do for me.

Also the synchronization with Google Calendar is quite good in Android, you
can let then Google Calendar handles the remainders in your phone.

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

 Dnia 2013-04-07, o godz. 14:16:54
 David Rogers davidandrewrog...@gmail.com napisał(a):

 I have felt the same way. Is the reason it's not already done (and the
 pitfall for you if you take on a project like this) that re-write
 major chunks of Emacs is a pretty big job?

 ...
 Remember that the purpose of something like such an app (as opposed to
 Org-mode proper) would not be *editing* of text, but (primarily)
 *entering* texts (and short ones, for that matter), entering
 timestamps (which is quite convenient with any pointing device,
 including touchscreens) and things like changing todo states and
 clocking in and out - and that's basically it.  In other words, a very
 small subset of Org-mode is needed here (at least for me).

 I see what you mean. That makes more sense than what I said, and I like
 your idea.

 The part that I want most from Org-mode on Android is being able to
 automatically get audible reminders for all my appointments, whether
 through a transfer into the phone's own calendar or some other way. The
 current MobileOrg doesn't quite do the job, since it doesn't yet parse
 things like this:

 %%(org-class 2013 03 01 2013 06 22 5 52 1 12 13)

 ... In fact, last time I checked, it didn't even parse date stamps that
 weren't in the headline...

 ... so my whole Org file has to be specially formatted, and some of
 Org-mode's extremely useful features avoided, if I am going to satisfy
 MobileOrg's requirements.

 Being able to edit is nice, but that doesn't take advantage of what I
 really have the phone with me for - I see my phone as mainly a reminder
 machine, not mainly an editing machine, and would love to see MobileOrg
 (or some new project) gain the ability to parse every possible agenda
 feature used in Org files, so that I can actually receive reminders for
 all the items in my Org-mode agenda. If it came with a better way of
 simple editing, that would be even better.

 --
 David


Re: [O] [PATCH] Normalize the construction of outline-container DIV ID

2013-04-09 Thread Bastien


Hi Francesco,

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

 I propose a patch to always build the outline-container DIV ID the same way by
 using the inner headline ID (when exporting to HTML).

Applied, thanks.

-- 
 Bastien




Re: [O] [babel] Bugs for Emacs Lisp code blocks

2013-04-09 Thread Sebastien Vauban
Hi Eric,

Eric Schulte wrote:
 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
 Eric Schulte wrote:
 Emacs Lisp is an exception in terms of colname processing, it has default
 header arguments set to pass column names through to the code block, where
 the processing may be done trivially in Emacs Lisp.

 OK, but I don't understand the precedence of header arguments. I thought
 that a header argument given on the code block preempted all the other
 values (system-wide default for all languages, language defaults, file-wide
 arguments, and subtree arguments).

 Why isn't this true here as well?

 That is what is happening here, although combinations of :hlines and
 :colnames can be tricky. Especially weird, is that if you want to *unset* a
 header argument which is set at a higher level, you need to set it to '(),
 as in :colnames '().

#+name: unset-colnames-example-input
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |

** Having no =:colnames= header argument (case 1)

I understand that the following example does have =:colnames= set to =yes=: it 
is
neither unset nor changed on the code block specification.

#+begin_src emacs-lisp :var data=unset-colnames-example-input
  data
#+end_src

#+results:
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |

Hence, this result is what is expected.

** Using =:colnames no= header argument (case 2)

#+begin_src emacs-lisp :var data=unset-colnames-example-input :colnames no
  data
#+end_src

#+results:
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |

Here, I still don't understand why I do see the table header line: I did
change the default =:colnames yes= specification to =:colnames no= on the code
block. I did override the default value. Why is the =no= argument not
respected?

** Using =:colnames yes= header argument (case 3)

#+begin_src emacs-lisp :var data=unset-colnames-example-input :colnames yes
  data
#+end_src

#+results:
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |

Here, the =:colnames yes= specification is simply redundant to what's specified
for the emacs-lisp language. In all cases, the results is what is should be.

** Using =:colnames nil= header argument (case 5)

#+begin_src emacs-lisp :var data=unset-colnames-example-input :colnames nil
  data
#+end_src

#+results:
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |

As written in my previous post, =:colnames nil= is equivalent to =:colnames yes=
in Emacs Lisp, R and sh code blocks -- at least.

(Still) not clear to me -- sorry to be stubborn.

** Using =:colnames ()= header argument (case 6)

As you told me, to unset the =:colnames yes= header argument, we must use:

#+begin_src emacs-lisp :var data=unset-colnames-example-input :colnames ()
  data
#+end_src

#+results:
| 1 | 2 |
| 3 | 4 |

That does work.

** Using =:colnames ()= header argument (case 7)

So does the quoted empty list version...

#+begin_src emacs-lisp :var data=unset-colnames-example-input :colnames '()
  data
#+end_src

#+results:
| 1 | 2 |
| 3 | 4 |

What is still unclear to me as well, is why =()= and =nil= aren't the same from
Babel's point of view?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Agenda in MobileOrg for Android

2013-04-09 Thread Marcin Borkowski
Dnia 2013-04-09, o godz. 14:24:24
Matthew Jones bsdmatb...@gmail.com napisał(a):

 Hey guys, I'm one of the maintainers of MobileOrg for Android.  We've
 worked really hard to try to implement as many of the features of
 org-mode as we can and make it comfortable to use for the majority of
 people.  A couple of points:

Hi, thanks for this answer!

 - Originally we were just storing the org files and parsing those on
 demand instead of using a database.   This proved extremely
 cumbersome when we wanted to add more features, and it really did not
 scale well when people had very large org files.  We made a decision
 a while ago to switch to a database almost exclusively for this
 reason, but there were a lot of other smaller reasons that also made
 it worthwhile.

I see.  OTOH, one argument *against* a database (as opposed to parsing
text files) might be exactly preserving the formatting etc. of files (of
course, with all the syncing stuff this is not important anyway).

 - The reason we do syncing the way that we do is to fit into
 org-mode's org-mobile-* concept.  Keeping multiple sets of plain text
 files in sync with emacs in the loop is no simple task.  The
 org-mobile-* functions were already defined and well used when I
 started writing the Android port of MobileOrg.  It may be suboptimal
 but currently it is the best and easiest (from the development side)
 way to keep a remote device and an instance of emacs in sync.  I'm
 actually not even sure if the org-mobile-* routines are even
 maintained anymore.  The synchronization problem is not as easy as
 just overwriting the files, however.

That's interesting.  I would be very glad to learn what might the
pitfalls of just overwriting files be; it may be the case that just
overwriting would work well with *my personal* use pattern of
Org-mode, and that would be why I don't understand MobileOrg's approach.

And I guess that the decision was in fact made by the devs of MobileOrg
for iOS (which I guess predates the Android app).

 - If you have issues and you don't tell us then we have no way of
 helping you and the problem might not go away.  We try to stay on top
 of showstopping issues for our users (we have an email address and a
 bug tracker linked to in the app store) unfortunately some folks just
 leave a 1 star review and uninstall and never contact us.

I know, I know, I'm sorry.

But:

* Yes, I did uninstall, but I've reinstalled MobileOrg again after
  reading this thread.  I'll try to set it up again.  I installed from
  the Google Play; is it better to use the github repo?  It says
  0.9.7 in the release notes on the wiki, Google Play says it's
  0.9.8, and maybe it would be better to use master or even 0.9.10
  (looking at the branches on github)?  Where do I find the info about
  installing the bleeding edge version from github on my phone (I'm
  quite new to Android, as I mentioned.)

* I did not leave a one-star review; I guess I'm too lazy for that, but
  also it would be a bit unfair without further investigation of my
  problems.

* I am very busy these days, but I'll try hard to start using MobileOrg
  and (if the problems I had persist), I'll try to report them on
  MobileOrg's mailing list.  In fact, my problems were twofold:
  firstly, syncing didn't Just Work™ (sometimes I got errors on
  MobileOrg, sometimes in Emacs), and some of the UI choices *did*
  suck.  As soon as I find some time, I'll try to describe exactly what
  I mean by this, so that either it could get improved or I could get
  convinced that it's my usage that sucks (which is obviously possible,
  especially given my lack of experience).

Best,

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



Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Nicolas Goaziou
Hello,

Achim Gratz strom...@nexgo.de writes:

 Nicolas Goaziou writes:
 Indeed. I had forgotten to implement such a tool in ox.el. I added
 `org-export-table-row-number'.

 Sorry, but using this has quadratic complexity with the number of
 rows...

That's true. But that doesn't matter unless you plan to export thousand
row tables. Anyway, patches welcome.


Regards,

-- 
Nicolas Goaziou



  1   2   >