[Orgmode] org-export-section-number-format, doc typo and question

2010-07-11 Thread Robert Klein

Hi,

theres a type in org-exp.el: in the documentation to  
org-export-section-number-format, there's twice the counter type "a"; the  
second time it should be an "i", I think:


From org-exp.el:

1. A list of lists, each indicating a counter type and a separator.
   The counter type can be any of \"1\", \"A\", \"a\", \"I\", or \"a\".
   It causes causes numeric, alphabetic, or roman counters, respectively.


To my question, I can't seem to get this option to work I've got the
following line in the file header:


#+OPTIONS: section-number-format:(quote ((("I" ".")) . "."))


Despite this I get sections numbered 1, 2, 3 etc.

I'd be very grateful for a working example.

Thank you very much
Robert

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-export-section-number-format, doc typo and question

2010-07-11 Thread Bernt Hansen
"Robert Klein"  writes:

> theres a type in org-exp.el: in the documentation to
> org-export-section-number-format, there's twice the counter type "a";
> the  second time it should be an "i", I think:
>
> From org-exp.el:
>
> 1. A list of lists, each indicating a counter type and a separator.
>The counter type can be any of \"1\", \"A\", \"a\", \"I\", or \"a\".
>It causes causes numeric, alphabetic, or roman counters, respectively.
>
>
> To my question, I can't seem to get this option to work I've got the
> following line in the file header:
>
>
> #+OPTIONS: section-number-format:(quote ((("I" ".")) . "."))
>
>
> Despite this I get sections numbered 1, 2, 3 etc.
>
> I'd be very grateful for a working example.

Hi Robert,

I think you need to set the variable instead

(setq org-export-section-number-format '((("I" ".")) . "."))

or via the customize interface.

HTH,
Bernt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-export-section-number-format, doc typo and question

2010-07-11 Thread Bernt Hansen
Bernt Hansen  writes:

> "Robert Klein"  writes:
>
>> To my question, I can't seem to get this option to work I've got the
>> following line in the file header:
>>
>>
>> #+OPTIONS: section-number-format:(quote ((("I" ".")) . "."))
>>
>>
>> Despite this I get sections numbered 1, 2, 3 etc.
>>
>> I'd be very grateful for a working example.
>
> Hi Robert,
>
> I think you need to set the variable instead
>
> (setq org-export-section-number-format '((("I" ".")) . "."))
>
> or via the customize interface.


This also seems to work

#+BIND: org-export-section-number-format ((("I" ".")) . ".")

-Bernt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Patchwork: Patch 122 Accepted

2010-07-11 Thread Carsten Dominik
Patch 122 (http://patchwork.newartisans.com/patch/122/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3C1278483744-8255-2-git-send-email-dmaus%40ictsoc.de%3E

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Patchwork: Patch 125 Accepted

2010-07-11 Thread Carsten Dominik
Patch 125 (http://patchwork.newartisans.com/patch/125/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3C1278654150-28556-1-git-send-email-dmaus%40ictsoc.de%3E

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Indentation of src blocks with org-adapt-indentation

2010-07-11 Thread Julien Fantin
I've reverted back from using fake indetation provided by
org-indent-mode, to regular indentation, since the latest git pull
fixed some issues that makes it much more usable (so thanks for that
!).

However src blocks only behave properly if starting on column 0,
otherwise, editing it with C-' will include the headline level's
indentation added to the code's own indentation.

Wouldn't it make more sense, to have blocks stick to the regular
indentation level, while org-edit-special would strip the meaningless
spaces that result from the headline level  ?

Cheers

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] How to setup xdg for org-protocol ?

2010-07-11 Thread Julien Fantin
Thanks Sebastian and David,
I now have firefox working, I had to use that html file though, as firefox
wouldn't bring up the application selection dialog with the test links on
worg.
Will now look into getting xdg-mime to work for chromium ...


On Sat, Jul 10, 2010 at 9:10 PM, David Maus  wrote:

> Sebastian Rose wrote:
> >Julien Fantin  writes:
> >> I've been struggling this morning trying to get org-protocol setup on my
> >> linux box (via http://orgmode.org/worg/org-contrib/org-protocol.php)
> >>
> >> I can't get a web-browser to register org-protcol with emacsclient, as
> I'm
> >> not using a desktop environment (plain startx and openbox), I'm pretty
> sure
> >> this is an xdg config issue.
> >> However, despite reading through the specs I couldn't fathom the proper
> >> settings.
> >>
> >> In chromium, the external application comes up, and calls xdg-open
> >> org-protocol://subprotocol/... which ends up firing a new chromium frame
> >>
> >> In firefox, I've tried setting network.protocol-handler.app.org-protocol
> to
> >> an empty string or my emacsclient path, anyhow I get the following error
> >> message :
> >> "Firefox doesn't know how to open this address, because the protocol
> >> (org-protocol) isn't associated with any program" without showing any
> >> external application selection  dialog.
>
>
> >Hi Julien,
>
>
> >see
> >
> http://kb.mozillazine.org/Register_protocol#All_Firefox_versions_.28requires_certain_Gnome_libraries_to_be_installed.29
>
> Or, of course "Firefox 3.5 specific (works without installed Gnome
> libraries)".  Worked fine for me (dwm), just one thing that is IIRC
> not mentioned on Worg: You have to click on protocol link to set path
> to emacsclient.  E.g.
>
> cat >> /tmp/test.html
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Error: byte-code: Symbol's function definition is void: calendar-current-date (org 6.33x, cocoa emacs 23.2.1 OSX)

2010-07-11 Thread Marcelo de Moraes Serpa
Hey guys,

I'm going through a small quirck with org. Everytime I start emacs,
open my gtd.org file and try to schedule an item, it halts with the
following error:

byte-code: Symbol's function definition is void: calendar-current-date

I've found a way to fix it though -- just open the agenda (C-c a). A
bug perhaps?

I'm using org v.6.33x and emacs 23.2.1 on OSX (cocoa emacs compiled
from bzr source).

Thanks,

Marfcelo.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] apply #+TABLEFM lines during export?

2010-07-11 Thread Eric Schulte
Hi Austin,

Austin Frank  writes:

> Hi all--
>
> I have a (hopefully quick question) about formatting tabular output from
> ob-R.  Consider the following block:
>
> #+source:  anova-example
> #+BEGIN_SRC R :cache yes :exports results :colnames yes :results value
> library(ez)
> library(lme4)
>
> eza <- ezANOVA(dv = .(Reaction),
>sid = .(Subject),
>within = .(Days),
>data = sleepstudy)
>
> print(eza$ANOVA)
> #+END_SRC
>
> This produces the following output:
> #+results[7e7015e41d95ed8986fb9a211a8b5c6e121ae99d]: anova-example
> | Effect | DFn | DFd | SSn |  SSd |F 
> |p | p<.05 |  pes |
> |+-+-+-+--+--+--+---+--|
> | Days   |   9 | 153 | 166235.12250176 | 151101.038615303 | 18.7026979326383 
> | 8.99534541600196e-21 | * | 0.52384550792003 |
>
> That's more precision than I want in export, so I add a formula line to
> the results, hoping to change the formatting of the floats.  After
> hitting C-u C-u C-c C-c in the table, I get the following:
>
> #+results[7e7015e41d95ed8986fb9a211a8b5c6e121ae99d]: anova-example
> | Effect | DFn | DFd | SSn | SSd |   F |  p | p<.05 | 
>pes |
> |+-+-+-+-+-++---+|
> | Days   |   9 | 153 | 166235.1200 | 151101.0400 | 18.7027 | 0. | * | 
> 0.5238 |
> #+TBLFM: $4=$4;%.4f::$5=$5;%.4f::$6=$6;%.4f::$7=$7;%.4f::$9=$9;%.4f
>
> That's much better!  But, if I export this section to LaTeX, the formula
> line is not applied and I end up with the full precision in my table.
>
> \begin{center}
> \begin{tabular}{lrrlr}
>  Effect  &  DFn  &  DFd  &  SSn  &   SSd  &   
>   F  & p  &  p<.05  &   pes  \\
> \hline
>  Days&9  &  153  &  166235.12250176  &  151101.038615303  &  
> 18.7026979326383  &  8.99534541600196e-21  &  *  &  0.52384550792003  \\
> \end{tabular}
> \end{center}
>
> Is there a way to make sure that the table formula is applied to the
> results block during export?  Alternatively, is there another way to
> reduce the precision of the numbers produced during export?
>

Under the current setup, I don't know of a way to ensure that the
formula will be re-run.  This may be a good place for future
(post-feature-freeze) functionality.  There has also been discussion of
adding a header argument for "post-processing" code blocks which could
accept the output of the evaluated code block as input -- this might be
related.

As a work-around, I would suggest the following emacs-lisp code block.
Export of this code block will trigger the evaluation of the R code
block, and it will then trim the output of said block resulting in the
desired table precision.

--8<---cut here---start->8---
#+begin_src emacs-lisp :var tab=anova-example :colnames yes :cache yes
  (mapcar
   (lambda (row)
 (mapcar
  (lambda (cell) (if (numberp cell) (format "%.4f" cell) cell))
  row))
   tab)
#+end_src

#+results[16ac354f1e7a65594bb59e252ab221e6a4b10f80]:
| Effect |DFn |  DFd | SSn | SSd |   F |
p | p<.05 |pes |
|++--+-+-+-+--+---+|
| Days   | 9. | 153. | 166235.1225 | 151101.0386 | 18.7027 | 
8.99534541600196e-21 | * | 0.5238 |
--8<---cut here---end--->8---

Cheers -- Eric

>
> Thanks for any help!
> /au

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] key binding requests

2010-07-11 Thread Eric Schulte
Hi Jonathan,

Jonathan Arkell  writes:

>> I'm loving the level of polish and sophistication that have been
>> achieved with org-babel.  My entire PhD thesis is currently written in
>> org and org-babel, and it's the best authoring system I've ever used.
>
> Agreed!  Although I am coming from a completely different perspective
> (Developer using it for literate programming), org-babel is, in fact,
> as the kids say, the bomb.
>

That's great to hear :)

>
>> First, in terms of navigation, I would love to have keybindings under
>> the C-c C-v prefix that would navigate to the next and previous babel
>> blocks.  org-babel-goto-named-source-block[fn:1] is great, but a) not
>> all my blocks are named, and b) I don't always remember the name of
>> the block I'm looking for.
>
> One of the things you could do here is to search forward or backward
> for #+BEGIN_SRC.  You could even record a macro to make it.  That
> would at least hold you over till it was developed.
>
> I also agree about completion based on the name of the source block.
> That would be very handy.  If I may be so bold as to piggyback on
> Austins feature request, if the gathering of the candidates happened
> in a separate function from the interactive function that does the
> completion, then it could be used by packages like auto-complete.
>

Thanks for this suggestion, I followed it and my the names for
completion are returned by the functions `org-babel-src-block-names' and
`org-babel-result-names' for code blocks and results respectively.

Cheers -- Eric

>
>
> __
>
> Jonathan Arkell
> Tech Lead
> Inspired By Drum & Bass, Scheme, Kawaii
>
> p. 403.206.4377
>
> 402 -- 11th Ave SE
> Calgary, AB, Canada T2G 0Y4
>
> jonath...@criticalmass.com
> criticalmass.com
>
>
>
>
>
>
>
> On Jul 10, 2010, at 8:22 AM, Austin Frank wrote:
>
>> Hello!
>>
>> I'm loving the level of polish and sophistication that have been
>> achieved with org-babel.  My entire PhD thesis is currently written in
>> org and org-babel, and it's the best authoring system I've ever used.
>>
>> That said, I have a couple of features that I regularly find myself
>> missing.  I wonder whether other folks might also find them useful.
>>
>> First, in terms of navigation, I would love to have keybindings under
>> the C-c C-v prefix that would navigate to the next and previous babel
>> blocks.  org-babel-goto-named-source-block[fn:1] is great, but a) not all my
>> blocks are named, and b) I don't always remember the name of the block
>> I'm looking for.  On that note...
>>
>> Currently, org-babel-goto-named-source-block doesn't currently offer any
>> completion facilities in my setup.  Is there a way to hook it into the
>> rest of org's completion mechanisms so that I can hit tab to complete
>> the names of my source blocks?
>>
>> Finally, to go along with facilities to navigate from source block to
>> source block, I'd also make regular use of something like
>> org-execute-src-block-and-step, which would execute the current block
>> and then jump to the next (or previous) one.
>>
>> Thanks again for these excellent tools,
>> /au
>>
>> Footnotes:
>>
>> [fn:1] This is the only function that uses "source" instead of "src" in
>> its name.  Should this be changed for consistency?
>>
>>
>> --
>> Austin Frank
>> http://aufrank.net
>> GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
>> 
>
>
> The information contained in this message is confidential. It is intended to 
> be read only by the individual or entity named above or their designee. If 
> the reader of this message is not the intended recipient, you are hereby 
> notified that any distribution of this message, in any form, is strictly 
> prohibited. If you have received this message in error, please immediately 
> notify the sender and delete or destroy any copy of this message.
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] key binding requests

2010-07-11 Thread Eric Schulte
Hi Austin,

Austin Frank  writes:

> Hello!
>
> I'm loving the level of polish and sophistication that have been
> achieved with org-babel.  My entire PhD thesis is currently written in
> org and org-babel, and it's the best authoring system I've ever used.
>

Fantastic! happy to hear your finding it useful

>
> That said, I have a couple of features that I regularly find myself
> missing.  I wonder whether other folks might also find them useful.
>
> First, in terms of navigation, I would love to have keybindings under
> the C-c C-v prefix that would navigate to the next and previous babel
> blocks.  org-babel-goto-named-source-block[fn:1] is great, but a) not all my
> blocks are named, and b) I don't always remember the name of the block
> I'm looking for.  On that note...
>

Done, C-c C-v n and C-c C-v p now navigate to the next and previous code
blocks respectively.  C-c C-v p used to be used for viewing the expanded
body of a code block, this functionality is now behind C-c C-v v for
"view"

>
> Currently, org-babel-goto-named-source-block doesn't currently offer
> any completion facilities in my setup.  Is there a way to hook it into
> the rest of org's completion mechanisms so that I can hit tab to
> complete the names of my source blocks?
>

Done, C-c C-v g for "goto code block" now has completing read.  There is
also now C-c C-v r for "goto result" which also has completing reads

>
> Finally, to go along with facilities to navigate from source block to
> source block, I'd also make regular use of something like
> org-execute-src-block-and-step, which would execute the current block
> and then jump to the next (or previous) one.
>

There are already C-c C-v b and C-c C-v s for evaluating the current
buffer, or the current subtree respectively.  Also, with the new "goto
next code block" functionality it should be easy to implement the
behavior you describe in a short macro.

>
> Thanks again for these excellent tools,
> /au
>
> Footnotes:
>
> [fn:1] This is the only function that uses "source" instead of "src" in
> its name.  Should this be changed for consistency?

Thanks for pointing this out, I've made this change as well.

Thanks for all the great suggestions! -- Eric

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Error: byte-code: Symbol's function definition is void: calendar-current-date (org 6.33x, cocoa emacs 23.2.1 OSX)

2010-07-11 Thread Noorul Islam K M
Marcelo de Moraes Serpa  writes:

> Hey guys,
>
> I'm going through a small quirck with org. Everytime I start emacs,
> open my gtd.org file and try to schedule an item, it halts with the
> following error:
>
> byte-code: Symbol's function definition is void: calendar-current-date
>
> I've found a way to fix it though -- just open the agenda (C-c a). A
> bug perhaps?

For me C-h calendar-current-date shows the following

calendar-current-date is a compiled Lisp function in `calendar.el'.

I hope you have calendar.el under /path/to/emacs/src/lisp/calendar
folder.

Thanks and Regards
Noorul

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Error: byte-code: Symbol's function definition is void: calendar-current-date (org 6.33x, cocoa emacs 23.2.1 OSX)

2010-07-11 Thread David Maus
Marcelo de Moraes Serpa wrote:
>Hey guys,

>I'm going through a small quirck with org. Everytime I start emacs,
>open my gtd.org file and try to schedule an item, it halts with the
>following error:

>byte-code: Symbol's function definition is void: calendar-current-date

>I've found a way to fix it though -- just open the agenda (C-c a). A
>bug perhaps?

Yes.  The problem is, that the calendar library is not loaded at
runtime by org.el but by org-agenda.el.  This was fixed by

,
| commit 88149c2390ba4f6bac000d0ab7b4089f660a66fa
| Author: Carsten Dominik 
| Date:   Sun Apr 18 15:06:16 2010 +0200
|
| intermediate
`

A simple workaround would be to just put

(require 'calendar)

In your init file.

HTH,
  -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgp4ZFskxpM83.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Failed to create radio tables

2010-07-11 Thread Carsten Dominik


On Jul 11, 2010, at 8:17 AM, Nicolas Goaziou wrote:


Hello,


Nick Dokos writes:

Second, the name of the list ("to-buy") includes a dash, but the
regexp in org-list-send-list does not match it: it works better if
the dash is replaced by an underscore in the example, but maybe the
regexp should be made more general.


I've already corrected this and the problem of nested lists you're
talking about in my branch redefining lists.


Corrected it where?  In you branch where you are working on the list  
code?




The regexp was indeed too specific: it is now on par with the one used
in ORGTBL. I also redefined org-list-radio-list-templates as they
were inserting a table and not a list.


Can you make a patch for just this prblem and submit it?  I'd like
to fix this before the release.



About the binding, C-c C-c is not a good choice (do I want to send
list or toggle check-box?).


Yes, this is a bit of a problem here.  We could send the
list with C-c C-c anyway, of cause, would not hurt.
This would be parallel to tables where C-c C-c aligns the table
and sends it.

Thanks

- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] patch: add event reminders to iCalendar export

2010-07-11 Thread Carsten Dominik


On Jul 11, 2010, at 12:26 AM, Eric S Fraga wrote:


Carsten et al.,

Okay, I've tried following the instructions for submitting patches.
I've learned more git than I thought I needed the past few days... ;-)

Anyway, I've uploaded my changes to

git://github.com/ericsfraga/esf-org.git

under branch "icalalarm" assuming I've done things correctly.  Please
do let me know if I should have done anything differently.

The changes are to allow timed events exported with an alarm reminder
if the variable org-icalendar-alarm-time is non-zero (defaults to 0 so
that default behaviour remains as it was before).


Eric, this is great, thanks - I will look at the after the release.

- Carsten



Thanks,
eric
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Patchwork: Patch 128 Accepted

2010-07-11 Thread Carsten Dominik
Patch 128 (http://patchwork.newartisans.com/patch/128/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3C20100710130036.6612839C00A%40djcbsoftware.nl%3E

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Renumbering of footnotes, and list line spaces

2010-07-11 Thread Adam
Am using Org-mode version 6.21b

The Org Manual section 2.10, suggest that  s, r, S, n, d  commands are 
available if a prefix-argument is supplied to the Footnote action command  
C-c C-x f. 

When I enter   C-u  C-c  C-x  f a footnote command menu appears with 
only the following; [s]ort  |  convert to [n]umeric  |  [d]elete  

I wish to Sort or to Renumber the footnotes. Sort does not appear to sort 
the collection numerically, and renumber seems unavailable. 

For Plain Lists,  I wish to include a line space after each list entry. Is 
there a simple way to do this ? 


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode