Re: [O] PATCH: org-mac-link.el: Don't fail on machines without Growl installed

2014-10-06 Thread Alan Schmitt
Hello,

Unless I'm mistaken, I did not receive a reply to this question: can
I apply this patch?

I understand that Bastien is quite busy at the moment, so I'm wondering
if I should bug somebody else ;)

Best,

Alan

On 2014-09-25 08:17, Alan Schmitt alan.schm...@polytechnique.org writes:

 On 2014-09-24 20:59, Steve Purcell st...@sanityinc.com writes:

 On 24 Sep 2014, at 20:13, Alan Schmitt alan.schm...@polytechnique.org 
 wrote:

 tell application System Events
 set growlHelpers to the name of every process whose creator type 
 contains GRRR
 if (count of growlHelpers)  0 then
 set growlHelperApp to item 1 of growlHelpers
 else
 set growlHelperApp to 
 end if
 end tell
 
 I get an empty string as returned value. Is is the same for you?


 Yes, that part works fine on its own even on my machine. But when the
 code passed to AppleScript includes 'tell application
 “GrowlHelperApp”’, then the code will not execute unless the app is
 present — there’s a precompilation step where, presumably, AppleScript
 determines that the target application supports the listed commands.

 I see. I agree this should be removed.

 Org maintainers: can I apply this patch?

 Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] PATCH: org-mac-link.el: Don't fail on machines without Growl installed

2014-10-06 Thread Nicolas Goaziou
Hello,

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

 Unless I'm mistaken, I did not receive a reply to this question: can
 I apply this patch?

 I understand that Bastien is quite busy at the moment, so I'm wondering
 if I should bug somebody else ;)

Please go ahead (applying the patch, not bugging somebody!).


Regards,

-- 
Nicolas Goaziou



[O] LaTeX exporter

2014-10-06 Thread Fabrice Popineau
Hi,

The org-latex-classes variable handles a couple of parameters like
DEFAULT-PACKAGES, PACKAGES and EXTRA.

I thing that this variable could also benefit from an EXTRA_OPTIONS
parameter.
This could allow to have a default set of options for the curent class, but
to locally
add a couple of options you may not always want.

What do you think ?

Fabrice


Re: [O] agenda time grid -- default time slot lines

2014-10-06 Thread Sebastien Vauban
hymie! wrote:
 My Agenda for a-week-from-next-Tuesday looks like this:

 Tuesday14 October 2014
8:00.. 
   10:00.. 
   12:00.. 
   tasks:  14:00-15:00 IT-Security meeting
   14:00.. 
   16:00.. 

 Assuming that I cannot suppress the 14:00 line in this case ...
 shouldn't the task line be **below** the 14:00 line?  I can force
 it by changing the meeting time from 14:00 to 14:01, but it seems like
 this is the wrong way to list them.  The meeting is not between 12:00
 and 14:00.  It's between 14:00 and 16:00.

False assumption!  ;-)

Use `remove-match':

--8---cut here---start-8---
  (setq org-agenda-time-grid '((daily remove-match)
   
   (0800 1000 1200 1400 1600 1800 2000)))
--8---cut here---end---8---

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] agenda time grid -- default time slot lines

2014-10-06 Thread Mike McLean
Attached is a patch that updates the Docstring of org-agenda-time-grid to
match the actual options.


On Mon, Oct 6, 2014 at 4:58 AM, Sebastien Vauban sva-n...@mygooglest.com
wrote:

 hymie! wrote:
  My Agenda for a-week-from-next-Tuesday looks like this:
 
  Tuesday14 October 2014
 8:00.. 
10:00.. 
12:00.. 
tasks:  14:00-15:00 IT-Security meeting
14:00.. 
16:00.. 
 
  Assuming that I cannot suppress the 14:00 line in this case ...
  shouldn't the task line be **below** the 14:00 line?  I can force
  it by changing the meeting time from 14:00 to 14:01, but it seems like
  this is the wrong way to list them.  The meeting is not between 12:00
  and 14:00.  It's between 14:00 and 16:00.

 False assumption!  ;-)

 Use `remove-match':

 --8---cut here---start-8---
   (setq org-agenda-time-grid '((daily remove-match)

(0800 1000 1200 1400 1600 1800 2000)))
 --8---cut here---end---8---

 Best regards,
   Seb

 --
 Sebastien Vauban





0001-org-agenda.el-Update-docstring.patch
Description: Binary data


Re: [O] agenda time grid -- default time slot lines

2014-10-06 Thread Sebastien Vauban
Mike McLean wrote:
 Attached is a patch that updates the Docstring of org-agenda-time-grid to
 match the actual options.

 From 60112793e7d459b43cf59f96e77301488b7412d7 Mon Sep 17 00:00:00 2001
 From: Mike McLean mike.mcl...@pobox.com
 Date: Mon, 6 Oct 2014 05:54:09 -0400
 Subject: [PATCH] org-agenda.el: Update docstring.

 * org-agenda.el (org-agenda-time-grid): Change docstring.
 ---
  lisp/org-agenda.el | 1 +
  1 file changed, 1 insertion(+)

 diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
 index 7a17160..157ed93 100644
 --- a/lisp/org-agenda.el
 +++ b/lisp/org-agenda.el
 @@ -1470,6 +1470,7 @@ symbols specifying conditions when the grid should be 
 displayed:
   weeklyif the agenda shows an entire week
   today show grid on current date, independent of daily/weekly display
   require-timed show grid only if at least one item has a time specification
 + remove-match  skip grid times already present in an entry
  
  The second item is a string which will be placed behind the grid time.

Good job. This can be pushed -- but I don't have push access...

Best regards,
  Seb

-- 
Sebastien Vauban



[O] archive subtree with complete structure

2014-10-06 Thread Julien Cubizolles
Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:
archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200

Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:

archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200
--text follows this line--
Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:

archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200
--text follows this line--
Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:

archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200
--text follows this line--
Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:

archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200
--text follows this line--
Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:

archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200
--text follows this line--
Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:

archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200
--text follows this line--
Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:

archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200
--text follows this line--
Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:

archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200
--text follows this line--
Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:

archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200
--text follows this line--
Can org-archive-subtree be made to archive the whole parent structure
along with the subtree selected ?

I'm using an the same org file every year and I'd like to archive some
of its contents at the end of the year. Something like:


Master file:

archive subtree with complete structure
From: Julien Cubizolles j.cubizol...@free.fr
Gcc: nnfolder+archive:sent-news-2014-10, informatique
Date: Mon, 06 Oct 2014 07:31:05 +0200
--text follows this line--
Can org-archive-subtree be made to archive the whole 

[O] [PATCH] read.table in variable transfer caused sometimes function not found error - small change

2014-10-06 Thread Rainer M Krug
Hi

The variable transfer of tables from org to R caused sometimes 'could
not find function read.table' errors (e.g. when the file was tangled
into a ./data directory which was loaded by the function
devtools::load_all(./)). This can easily be fixed by adding the package
name to the call in R, i.e. replacing =read.table()= with
=utils::read.table()= which is done in this patch.

In R the calls read.table and utils::read.table are interchangeable (the
second one is actually preferred) so no negative effects can be
expected.

Cheers,

Rainer

From 7e43b724d9fd2557aef7440bb75de0e026a29c88 Mon Sep 17 00:00:00 2001
From: Rainer M. Krug r.m.k...@gmail.com
Date: Mon, 6 Oct 2014 13:48:49 +0200
Subject: [PATCH] ob-R.el: Add package name to read.table call

* lisp/ob-R.el:
(ob-R-transfer-variable-table-with-header): Add package name to call
of R function read.table (now utils::read.table).  This clarifies the
call as well as avoids 'could not find function' error in R under
certain conditions.
---
 lisp/ob-R.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/ob-R.el b/lisp/ob-R.el
index ea33031..dd0b0b9 100644
--- a/lisp/ob-R.el
+++ b/lisp/ob-R.el
@@ -101,7 +101,7 @@ this variable.)
  con - textConnection(
%S
  )
- res - read.table(
+ res - utils::read.table(
con,
header= %s,
row.names = %s,
@@ -119,7 +119,7 @@ This function is used when the table contains a header.)
  con - textConnection(
%S
  )
- res - read.table(
+ res - utils::read.table(
con,
header= %s,
row.names = %s,
-- 
2.1.2



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


pgpRe_6szagaQ.pgp
Description: PGP signature


[O] org-mac-link discovered!

2014-10-06 Thread Rainer M Krug
I just discovered  org-mac-link [1] and I must say *I love it*.

Just had to share this.

Cheers,

Rainer


Footnotes: 
[1]  [[http://orgmode.org/worg/org-contrib/org-mac-link.html]]

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


pgp13NG4KQphq.pgp
Description: PGP signature


[O] how to replace 'org-drawers'

2014-10-06 Thread Alan Schmitt
Hello,

I'm trying to use org-wc, but it fails because org-drawers no longer
exists. Is there a suggestion to change
https://github.com/dato/org-wc/blob/master/org-wc.el#L55 such that it
works with current org?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] how to replace 'org-drawers'

2014-10-06 Thread Thorsten Jolitz
Alan Schmitt alan.schm...@polytechnique.org writes:

 Hello,

 I'm trying to use org-wc, but it fails because org-drawers no longer
 exists. 

Not???

I still find this

,
| 510:;;; Greater elements
| 544: Center Block
| 594: Drawer
`

in my org-element.el. I guess you mean something else?

PS

#+BEGIN_SRC emacs-lisp
 (call-interactively 'org-version)
#+END_SRC

#+results:
: Org-mode version 8.3beta (release_8.3beta-408-g39f5f0 @ 
/usr/share/emacs/24.3/lisp/org/lisp/)

-- 
cheers,
Thorsten




Re: [O] Formal description of Org files

2014-10-06 Thread Samuel Loury
Hi,
Gustav Wikström gustav.e...@gmail.com writes:

 Just curious: what is it you wish to do in a mobile environment.  I have
 everything I need with MobileOrg and running full emacs + org on an
 OpenPandora.  Obviously, your needs may be different than mine.

 (email composed on train offline on my OpenPandora in Emacs with gnus ;-)

 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.3beta-372-gdd70cf

 My wish is to be able to do mostly everything related to
 task-tracking, scheduling, working with references and so on. General
 GTD stuff. OpenPandora sounds neat, except it's not quite the standard
 tool available out there ;-) And a general idea of Emacs in your
 pocket is nice, except it's not really possible without a different UI
 than the keyboard. So; what way forward with GTD in Emacs Org-mode
 then, while still having the wish of it to be more accessible?

 Thus the idea of a more formal (and parsable) grammar in a
 standardized format. My hope is that it will make Org-mode more
 general than it already is. As I said already; Org-mode to me is more
 than Emacs. To think BIG, Org-mode grammar could be a standard for PIM
 or GTD related software. To think a bit less big, it might help
 developers create software with non-Emacs tools. By using the formal
 grammar to work with Org-mode source documents in more accessible
 ways. Maybe with UI's available through mobile phones or tablets (and
 without the use of special schedules of read/write in Emacs to keep
 the mobile system synced; MobileOrg).
This sounds like a good idea. And since there are a lot of parsers in
other languages recognizing a subset of org mode syntax, other people
like this idea too.

I think a difficulty with that solution is that it won't capture the
heavy customization the user can make on org-mode using hooks or
customizing variables.

Having a real emacs in the pocket would provide org-mode along with the
customization. Nevertheless, as you stated, emacs is not really user
friendly when you don't have a keyboard at hand.

For that reason, I think that as well as embedding emacs into the phone,
we could provide a UI communicating with it using an IPC mechanism.

This way, we would have the solution with more to gain (a functional
org-mode as well as the customization) and less to write (only the
needed UI code). I already tried using epc to perform a two way
communication between a python shell and emacs. I talked about this in
another thread¹.

What do you think of this approach?

¹ http://mid.gmane.org/87iokv4659@gmail.com
-- 
Konubinix
GPG Key: 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A


pgppBCRIOoCxe.pgp
Description: PGP signature


Re: [O] how to replace 'org-drawers'

2014-10-06 Thread Rasmus
Hi,

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

 I'm trying to use org-wc, but it fails because org-drawers no longer
 exists. Is there a suggestion to change
 https://github.com/dato/org-wc/blob/master/org-wc.el#L55 such that it
 works with current org?

A pragmatic approach is to approximate the org-wc word count by
exporting to LaTeX and then use texcount (sometimes called
texcount.pl) or plain text and use wc.  The former understands math
environments.

—Rasmus

-- 
With monopolies the cake is a lie!




Re: [O] how to replace 'org-drawers'

2014-10-06 Thread Jonathan Leech-Pepin
Hello Alan

On 6 October 2014 08:23, Alan Schmitt alan.schm...@polytechnique.org
wrote:

 Hello,

 I'm trying to use org-wc, but it fails because org-drawers no longer
 exists. Is there a suggestion to change
 https://github.com/dato/org-wc/blob/master/org-wc.el#L55 such that it
 works with current org?


A quick search for variables reveals `org-drawer-regexp` [ ^[
]*:\\(\\(?:\\w\\|[-_]\\)+\\):[ ]*$ ]

It matches both the name of the drawer and `:END:`.

So the function could be adapted to use `org-drawer-regexp` instead
(untested but should match to the next :END:):

((looking-at org-drawer-regexp)
 (while (or (eobp)
(not (looking-at :END:)))
   (re-search-forward org-drawer-regexp nil t)))

Regards,
Jonathan


 Thanks,

 Alan

 --
 OpenPGP Key ID : 040D0A3B4ED2E5C7



Re: [O] how to replace 'org-drawers'

2014-10-06 Thread Alan Schmitt
On 2014-10-06 14:56, Thorsten Jolitz tjol...@gmail.com writes:

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

 Hello,

 I'm trying to use org-wc, but it fails because org-drawers no longer
 exists. 

 Not???

 I still find this

 ,
 | 510:;;; Greater elements
 | 544: Center Block
 | 594: Drawer
 `

 in my org-element.el. I guess you mean something else?

I mean that the variable does not exist (I also tested this with an org
file):

ELISP org-drawers
*** Eval error ***  Symbol's value as variable is void: org-drawers
ELISP  (call-interactively 'org-version)
Org-mode version 8.3beta (release_8.3beta-412-g4412fe @ 
/Users/schmitta/.emacs.d/org/emacs/site-lisp/org/)

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] how to replace 'org-drawers'

2014-10-06 Thread Alan Schmitt
On 2014-10-06 17:00, Rasmus ras...@gmx.us writes:

 Hi,

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

 I'm trying to use org-wc, but it fails because org-drawers no longer
 exists. Is there a suggestion to change
 https://github.com/dato/org-wc/blob/master/org-wc.el#L55 such that it
 works with current org?

 A pragmatic approach is to approximate the org-wc word count by
 exporting to LaTeX and then use texcount (sometimes called
 texcount.pl) or plain text and use wc.  The former understands math
 environments.

Thank you, but the ulterior motive is this:
https://bitbucket.org/gvol/nanowrimo.el

I'm going to try to fix it using Jonathan's suggestion.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] how to replace 'org-drawers'

2014-10-06 Thread Alan Schmitt
Hello Jonathan,

On 2014-10-06 11:13, Jonathan Leech-Pepin jonathan.leechpe...@gmail.com 
writes:

 Hello Alan

 On 6 October 2014 08:23, Alan Schmitt alan.schm...@polytechnique.org
 wrote:

 Hello,
 
 I'm trying to use org-wc, but it fails because org-drawers no
 longer
 exists. Is there a suggestion to change
 https://github.com/dato/org-wc/blob/master/org-wc.el#L55 such that
 it
 works with current org?
 

 A quick search for variables reveals `org-drawer-regexp` [ ^[ ]*:\\
 (\\(?:\\w\\|[-_]\\)+\\):[ ]*$ ]

 It matches both the name of the drawer and `:END:`.

 So the function could be adapted to use `org-drawer-regexp` instead
 (untested but should match to the next :END:):

 ((looking-at org-drawer-regexp)
 (while (or (eobp)
 (not (looking-at :END:)))
 (re-search-forward org-drawer-regexp nil t)))

This was a most helpful suggestion. Looking at the commit that got rid
of org-drawers, I saw there is a `org-in-drawer-p' function that works
great. The code is now simply

 ((org-in-drawer-p)
  (forward-line))

Thanks again,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] real-time image rendering

2014-10-06 Thread Doyley, Marvin M.
I agree controlling the refresh rate make your approach better.
Thanks,
M
 Why better?  For which reason?

 Why not this:

 --8---cut here---start-8---
 (add-hook 'org-babel-after-execute-hook
 (lambda ()
 (org-display-inline-images nil t)))
 ; more efficient with refresh == t
--8---cut here---end---8---

?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] LaTeX exporter

2014-10-06 Thread Nicolas Goaziou
Hello,

Fabrice Popineau fabrice.popin...@gmail.com writes:

 The org-latex-classes variable handles a couple of parameters like
 DEFAULT-PACKAGES, PACKAGES and EXTRA.

 I thing that this variable could also benefit from an EXTRA_OPTIONS
 parameter.
 This could allow to have a default set of options for the curent class, but
 to locally
 add a couple of options you may not always want.

 What do you think ?

The OPTIONS keyword hasn't much to do with latex classes. It is handled
at a very different level (i.e., ox.el). IMO, it would be confusing to
mix them.

I think you want a couple of dedicated SETUPFILE keywords.


Regards,

-- 
Nicolas Goaziou



Re: [O] LaTeX exporter

2014-10-06 Thread Fabrice Popineau
Hi,

Maybe I wasn't clear enough.
I was thinking about an option specific of the latex exporter to expand the
document class options :

\documentclass[default_option_1, default_option_2, EXTRA_OPTIONS]{myclass}

default_option_i being taken from the org-latex-classes entry for the
current class.

Actually, LATEX_CLASS_OPTIONS overrides the whole set of options, so maybe
my suggestion is superfluous.

Regards,

2014-10-06 21:38 GMT+02:00 Nicolas Goaziou m...@nicolasgoaziou.fr:

 Hello,

 Fabrice Popineau fabrice.popin...@gmail.com writes:

  The org-latex-classes variable handles a couple of parameters like
  DEFAULT-PACKAGES, PACKAGES and EXTRA.
 
  I thing that this variable could also benefit from an EXTRA_OPTIONS
  parameter.
  This could allow to have a default set of options for the curent class,
 but
  to locally
  add a couple of options you may not always want.
 
  What do you think ?

 The OPTIONS keyword hasn't much to do with latex classes. It is handled
 at a very different level (i.e., ox.el). IMO, it would be confusing to
 mix them.

 I think you want a couple of dedicated SETUPFILE keywords.


 Regards,

 --
 Nicolas Goaziou



Re: [O] Babel evaluation of Calc block not working, bug in Calc?

2014-10-06 Thread Andrea Rossetti
Hi Dieter,

die...@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:
 PS: Are you using Calc regularly?

Compact answer: no :(

Detailed answer: I do like Calc and Org+Babel+Calc,
but my daily job doesn't involve any maths.

The Org functions I use most frequently are:
- org-clock-in, org-clock-out, agenda view
- org-columns
- simple exports of TODOs or clocktable in HTML
  or PDF format

Kindest regards,

  Andrea



Re: [O] LaTeX exporter

2014-10-06 Thread Rasmus
Fabrice Popineau fabrice.popin...@gmail.com writes:

 Maybe I wasn't clear enough.
 I was thinking about an option specific of the latex exporter to expand the
 document class options :

 \documentclass[default_option_1, default_option_2, EXTRA_OPTIONS]{myclass}

 default_option_i being taken from the org-latex-classes entry for the
 current class.

The correct way is probably a derived class.  But probably it's too
much hassle.

 Actually, LATEX_CLASS_OPTIONS overrides the whole set of options, so maybe
 my suggestion is superfluous.

You could get this behavior using `org-export-before-parsing-hook':
  Look for document LaTeX class then you know default options.
  Replace MY_EXTRA_DOCUMENT_CLASS_OPTIONS with LATEX_CLASS_OPTIONS
  with  defaults and the buffer options as the value.

Or maybe with org-export-before-parsing-hook and
org-export-filter-options-functions.
  Save MY_EXTRA_DOCUMENT_CLASS_OPTIONS as a local variable and extend
  LATEX_CLASS_OPTIONS as needed.

Probably the former is easier.

Hope it helps,
Rasmus

-- 
When in doubt, do it!




Re: [O] Clocktable language customization not working as expected

2014-10-06 Thread Andrea Rossetti
Axel Kielhorn org-m...@axelkielhorn.de writes:

 Clocktable language: not working

 #+BEGIN: clocktable :maxlevel 2 :scope file :lang fr
 #+CAPTION:  [2014-10-04 Sat 09:09]
 | ||  |
 |-++--|
 | *nil*   | *0:31* |  |
 |-++--|
 | Gesamtarbeitszeit   |   0:31 |  |
 | \emsp Projekt 12301 || 0:03 |
 | \emsp Projekt 12302 || 0:28 |
 #+END:


Not an exhaustive answer, but hope it helps: it works
for me if I change :lang fr into :lang fr. Same for you?
Kindest regards, Andrea



Re: [O] Clocktable language customization not working as expected

2014-10-06 Thread Axel Kielhorn

Am 06.10.2014 um 23:15 schrieb Andrea Rossetti andrea.rosse...@gmail.com:

 Axel Kielhorn org-m...@axelkielhorn.de writes:
 
 Clocktable language: not working
 
 #+BEGIN: clocktable :maxlevel 2 :scope file :lang fr
 #+CAPTION:  [2014-10-04 Sat 09:09]
 | ||  |
 |-++--|
 | *nil*   | *0:31* |  |
 |-++--|
 | Gesamtarbeitszeit   |   0:31 |  |
 | \emsp Projekt 12301 || 0:03 |
 | \emsp Projekt 12302 || 0:28 |
 #+END:
 
 
 Not an exhaustive answer, but hope it helps: it works
 for me if I change :lang fr into :lang fr. Same for you?

Yes, this works, thanks for the suggestion.

It still does not work for:
#+LANGUAGE: fr

and i discovered some untranslated english words in the caption when generating 
a clock table for a week/month/quater,

But getting:

#+BEGIN: clocktable :maxlevel 2 :scope file :lang de
#+CAPTION: Erstellt am [2014-10-07 Tue 06:32]
| Tätigkeit   | Zeit   |  |

is already an improvement.

Axel


[O] babel language for conf-mode?

2014-10-06 Thread Eric Abrahamsen
I'm doing a blog post on various computer configuration stuff, including
lengthy excerpts from configuration files. It would be kind of nice to
export the HTML so that the :htmlize-source option also recognized these
chunks, and highlighted them correctly. So instead of wrapping the
excerpts in

#+BEGIN_EXAMPLE

I could wrap them in

#+BEGIN_SOURCE conf-unix

And get highlighting a la conf-unix-mode.

It's not quite a babel language, since evaluation wouldn't do
anything, but is there a way to just get the highlighting?

Thanks!
Eric