Re: [Orgmode] Wow

2009-07-31 Thread Bastien
Thanks Carsten for the nice words and welcome back!

I will be off starting from monday till August, 17th.
Expect to meet me back on this list soon enough, as it
was really a pleasure to have all these discussions.

As a temporary "bye bye" gift, here is a link I just 
stumbled upon, starring our Unicorn...

http://wildammo.com/2009/07/27/unusual-paintings-of-obama-naked-with-unicorns/

Peace to all, see you soon!

-- 
 Bastien


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


[Orgmode] Wow

2009-07-31 Thread Carsten Dominik

Hi

Back from my vacation, I am totally blown away by what has
been going on here.  Seems to me that, if anything, development
has been *faster* while I was gone. Many thanks to Bastien who
made this possible!

I will go through the stack and see if I can answer a few
open questions.

- Carsten


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


[Orgmode] Re: How do you use org for other formats

2009-07-31 Thread Bernt Hansen
zwz  writes:

> Bernt Hansen  writes:
>
>> zwz  writes:
>>
>> The following test file works fine for me as far as I can tell
>>
>> ,[ x.org ]



>> | #+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t



>>
>> [*1*]  http://www.norang.ca/tmp/x.html
>> [*2*]  http://www.norang.ca/tmp/x.pdf
>
> Wow, so many options I have not used before ...
>
> I copied the text, but the exported HTML and PDF looks the same as the
> formula in ORG. Then I found it was because in my .emacs, there is
>
> (setq org-export-with-sub-superscripts nil)
>
> After I comment this, it works.
>
> But in this way, I have to pay special attention to sub- and super-
> scripts.

The #+OPTIONS: line with ^:t or ^:nil controls whether _ and ^ create
subscripts and superscripts.  I set this per org file to control that
option for export.

-Bernt


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


[Orgmode] Re: How do you use org for other formats

2009-07-31 Thread zwz
Bernt Hansen  writes:

> zwz  writes:
>
>> I recently found the problem when I want to export the org file to
>> html and pdf. I guess there will be some people (who are also not so
>> familiar with the powerful org-mode) bothered by the same issue, that
>> is, html and pdf requires different org format sometimes.
>>  - I use $ y = x_1^2 + x_2^2 $ in org, it works for pdf, but not for html
>>  - "_" in text will introduce mess in pdf, not in html
>>
>> I definitely want to keep only one org which I can export to other
>> formats correctly. I do not know if it is already implemented in
>> org-mode.
>>
>> I just wondered if it is possible to introduce a abstract level (or
>> notations) so that org can translate it according to the target
>> format, just like how org treat the headlines (*).
>
> The following test file works fine for me as far as I can tell
>
> ,[ x.org ]
> | #+TITLE: x.org
> | #+AUTHOR:Bernt Hansen
> | #+EMAIL: be...@norang.ca
> | #+DATE:  2009-07-30 Thu
> | #+DESCRIPTION: 
> | #+KEYWORDS: 
> | #+LANGUAGE:  en
> | #+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
> | #+OPTIONS:   TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
> | #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0
> path:http://orgmode.org/org-info.js
> | #+EXPORT_SELECT_TAGS: export
> | #+EXPORT_EXCLUDE_TAGS: noexport
> | #+LINK_UP:   
> | #+LINK_HOME: 
> | 
> | * Test
> | 
> |   Some math formulae:
> | 
> |   y = x_1^2 + x_2^2
> | 
> |   y^2 = 2x^2 + 1
> | 
> |   z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r)
> `
>
> This renders HTML (C-c C-e b) [*1*] and PDF (C-c C-e d) [*2*] that look
> fine to me
>
> -Bernt
>
> [*1*]  http://www.norang.ca/tmp/x.html
> [*2*]  http://www.norang.ca/tmp/x.pdf

Wow, so many options I have not used before ...

I copied the text, but the exported HTML and PDF looks the same as the
formula in ORG. Then I found it was because in my .emacs, there is

(setq org-export-with-sub-superscripts nil)

After I comment this, it works.

But in this way, I have to pay special attention to sub- and super-
scripts.

>
>
>
> ___
> Emacs-orgmode mailing list
> Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Emacs/Org-mode question

2009-07-31 Thread Markus Heller

Brian van den Broek wrote:

Markus Heller said unto the world at 31/07/09 05:39 PM:

Hello all,

this might be a typical beginner question ...

I often use the sequence

C-.  C-- :

to create this:

- <2009-07-31 Fri>:

where the date is today's date.

I'm sure there's a way to create a command for this, but I have no 
idea how.  I'd like to bind this sequence to something like C-c t or 
similar.


How do I do this?

Thanks and Cheers
Markus


Hi Markus,

I have the following in my .emacs:

(defun date ()
  (interactive "*")
(insert (format-time-string "%Y-%m-%d %T" (current-time
(global-set-key [f11] 'date)

This will at least get you started. See the documentation for 
format-time-string to season as suits.


Best,

Brian vdB


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



Thanks Brian,

this got me started.  The code in my .emacs looks like this for me now:

(defun org-date ()
  (interactive "*")
(insert (format-time-string "- <%Y-%m-%d %a>: ")))
(global-set-key (kbd "C-c d") 'org-date)


Cheerio
M



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


Re: [Orgmode] Emacs/Org-mode question

2009-07-31 Thread Brian van den Broek

Markus Heller said unto the world at 31/07/09 05:39 PM:

Hello all,

this might be a typical beginner question ...

I often use the sequence

C-.  C-- :

to create this:

- <2009-07-31 Fri>:

where the date is today's date.

I'm sure there's a way to create a command for this, but I have no idea 
how.  I'd like to bind this sequence to something like C-c t or similar.


How do I do this?

Thanks and Cheers
Markus


Hi Markus,

I have the following in my .emacs:

(defun date ()
  (interactive "*")
(insert (format-time-string "%Y-%m-%d %T" (current-time
(global-set-key [f11] 'date)

This will at least get you started. See the documentation for 
format-time-string to season as suits.


Best,

Brian vdB


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


[Orgmode] Emacs/Org-mode question

2009-07-31 Thread Markus Heller

Hello all,

this might be a typical beginner question ...

I often use the sequence

C-.  C-- :

to create this:

- <2009-07-31 Fri>:

where the date is today's date.

I'm sure there's a way to create a command for this, but I have no idea 
how.  I'd like to bind this sequence to something like C-c t or similar.


How do I do this?

Thanks and Cheers
Markus



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


Re: [Orgmode] Re: Literate Programming with Org mode

2009-07-31 Thread sam kleinman
On Fri, Jul 31, 2009 at 11:01:36AM -0600, Eric Schulte wrote:

> I think the difference between these two is that in LP the "product" is
> the executable piece of software, where as in RR the "product" is the
> document itself.

This is true, and I think the explanation suffers somewhat as a result
of this. But I don't think the demarcation you present is as
significant as it seems from your explanation. Perhaps we can think of
the example I provided as being one of "reproducible research by means
of literate programming." 

The Sweave stuff, particularly in cases like the one I describe (and
arguably, when "done right") I think works to transform the "product"
of research from a static document to an "executable document," of
sorts. The analysis (the research?) happens, (at least theoretically)
in real time, and the document is just a snapshot/representation of
this: another output of the program. 

Indeed the programming of the generation of a document, no matter how
complex, is not the "sexiest" expression of the programmer's art, but
I think it still counts. And to be fair, Sweave/LP approaches to
research reporting, doesn't include reproducible data collection
techniques/documentation which is a big part of RR, at least in my
mind. 

I'm interested in you project (a lot, actually) but I must admit that
I'm not much of a numbers guy any more, as if I ever was one. :)

Cheers,
sam

-- 
tycho(ish) @
ga...@tychoish.com
http://www.tychoish.com/
http://www.criticalfutures.com/
"don't get it right, get it written" -- james thurber


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


Re: [Orgmode] Re: Literate Programming with Org mode

2009-07-31 Thread Eric Schulte
Hi Sam,

Not to be overly picky, but I think the scenario you described (while
very engaging) is an instance of Reproducible Research [1].  My
understanding of Reproducible Research and Literate Programming and
their relation is as follows...

- Literate Programming :: A style of programming in which the source
 code is a work of literature (i.e. is intended for human
 consumption) and is structured in such a way that a machine
 readable version can be automatically extracted from the primary
 document.
- Reporducable Research :: A style of publishing information in which
 the raw data and analysis are embedded in the published document
 such that the analysis can be re-run and analyzed by any reader.

I think the difference between these two is that in LP the "product" is
the executable piece of software, where as in RR the "product" is the
document itself.

Cheers -- Eric

PS: The initial goal of the org-babel suite was to implement Sweave type
functionality as part of org-mode.

sam kleinman  writes:

> On Tue, Jul 28, 2009 at 10:41:50PM +0200, Sébastien Vauban wrote:
>
>> I've heard that Knuth told about it in those words: it's when we will be able
>> to read the code of a software in our bed, reading a book made of 90% of
>> documentation and 10% of code. If someone can find this phrase somewhere...
>
> Here's a literate programing example: 
>
> I talked with a statistician, programer and human rights violation
> researcher, who wrote (with his team) reports of statistical studies
> of data regarding possible genocide incidents. He wrote the LaTeX
> documents which, within the text of the document, all values and
> analysis' were called in and generated when LaTeX ran, so that as data
> was collected, and the report was recompiled the analysis was
> completed with the most up-to-date version of the data, and that the
> production of the text was isolated from the collection of data, and
> from the analysis of those figures. 
>
> The stack itself, was comprised of Sweave
>  R for stats processing,
> make, and a little bit of python for glue. I think. 
>
> As an example. I'm not an expert either on this stuff. 
>
> Cheers,
> sam
> --
> tycho(ish) @
> ga...@tychoish.com
> http://www.tychoish.com/
> http://www.criticalfutures.com/
> "don't get it right, get it written" -- james thurber
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Footnotes: 
[1]  http://www.reproducibleresearch.org/



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


Re: [Orgmode] Export plots made with org-plot

2009-07-31 Thread Eric Schulte
Hi Dan,

org-plot does not have support for automatic generation of plots on
export.  Currently to include plots in an exported document you must
manually plot the data to a file using the 'file' argument in your plot
string, then include the generated file into your org-mode document as
you would any other image.

Cheers -- Eric


side note: If you are feeling bold, I have recently added gnuplot as a
supported language to org-babel [1].  With org-babel it is possible to
setup a plot which will be automatically generated and included in an
org-mode document upon export to html.  Here is an example of a plot
using the new org-babel syntax [2].  To preview the graph before export
press C-c C-c with the point on the block.

Daniel Clemente  writes:

> Hi,
>   org-plot shows a plot from a table's data, via: M-x org-plot/gnuplot RET. 
> For instance:
>
> #+PLOT: type:3d with:pm3d
> | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
> | 0 | 2 | 2 | 2 | 2 | 2 | 0 |
> | 0 | 2 | 3 | 3 | 3 | 2 | 0 |
> | 0 | 2 | 3 | 4 | 3 | 2 | 0 |
> | 0 | 2 | 3 | 3 | 3 | 2 | 0 |
> | 0 | 2 | 2 | 2 | 2 | 2 | 0 |
> | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
>
>
>   However there must probably be a way to export the whole .org document to 
> HTML (via C-c C-e b) including plots (exported as .png images in the same 
> directory).
>   Now only the table is exported. org-plot's documentation [1] doesn't refer 
> to plot exporting; am I missing something?
>
> -- Daniel
>
> [1]: http://orgmode.org/worg/org-tutorials/org-plot.php
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Footnotes: 
[1]  http://github.com/eschulte/org-babel/tree/master

[2]  

#+TBLNAME: gnuplot-data
| independent var | first dependent var | second dependent var |
|-+-+--|
| 0.1 |   0.425 |0.375 |
| 0.2 |  0.3125 |   0.3375 |
| 0.3 |  0.2493 |   0.2838 |
| 0.4 |   0.275 |  0.28125 |
| 0.5 |0.26 | 0.27 |
| 0.6 |  0.2588 |   0.2493 |
| 0.7 |  0.24642845 |   0.23928553 |
| 0.8 | 0.23125 |   0.2375 |
| 0.9 |  0.2323 |0.232 |
|   1 |  0.2225 | 0.22 |
| 1.1 |  0.20909075 |   0.22272708 |
| 1.2 |  0.1998 |   0.21458333 |
| 1.3 |  0.19615368 |   0.21730748 |

#+srcname: gnuplot-example
#+begin_src gnuplot :var data=gnuplot-data :exports results
set title "Gnuplot Example"
plot data using 1:2 with lines
#+end_src



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


Re: [Orgmode] Literate Programming with Org mode

2009-07-31 Thread Eric Schulte
Hi Sébastien,

Thanks for the description.  This is very interesting and I think
warrants a re-working of the tangle functionality in org-babel.

Given your description below I think I may try to add the Nuweb
link/reference syntax "<>" to org-babel.  As
source-code blocks are already named in the current org-babel setup this
wouldn't be a very significant change.  Once this is added it shouldn't
be difficult to expand these links/references on export.

Under this new setup the example file you described would be analogous
to the this org-mode file.

Does this sound like it would accomplish most of what you are after?

I will reply to this message if/when I get this implemented.

Cheers -- Eric

Sébastien Vauban  writes:

> Hi Eric and all,
>
> Here some promised description of how I'm using Literate Programming with
> LaTeX (up to now -- soon directly from Org mode?).
>
> I write an "enhanced LaTeX" file ([1], having the `.nw' -- for Nuweb --
> extension). It is enhanced as I can put blocks of code in there (SQL blocks,
> for example), and give them a name for further referencing.
>
> Then, at some point in the file, I say how I want the code files to look like,
> by assembling the blocks in a certain order, with some glue.
>
> For example:
>
> <>=
> <>
> SELECT abcID, etpID, etpAssurATPolNum
> FROM enterprise JOIN record
> ON (etpAbcID_fk = abcID)
> WHERE etpAbcID_fk
> <>
> @ %def 
>
> The above file is made up of two defined blocks (`sql-init' and `sql-cond')
> plus some glue in between.
>
> The good thing is I can reuse the same blocks in other context, completely
> avoiding copy/paste of code:
>
> <>=
> <>
> SELECT abcID, lesAlternNbrSem, lesNbrSem,
>CONVERT(varchar(10), lesDateDeb, @dateFmtStyleOut) AS lesDateDeb,
>CONVERT(varchar(10), lesDateFin, @dateFmtStyleOut) AS lesDateFin
> FROM lessons JOIN record
> ON (lesAbcID_fk = abcID)
> WHERE lesAbcID_fk
> <>
> @ %def 
>
> OK. So, my `org-lit-prog.nw' file is ready, and committed under Subversion
> (this is the only one I'm committing as it contains both the documentation of
> the code, and the source code itself).
>
> Then, I just type (in a terminal):
>
> noweb org-lit-prog.nw
>
> to extract both:
>
> o   the LaTeX file [2] to be compiled into a PDF [3],
> o   the different source code files (Enterprise.sql [4], Lessons.sql [5],
> [6] and [7])
>
> Just that easy to keep code and doc in sync, and get a very nice-to-read
> documentation of the code.
>
> Sometimes, I play an extra trick is made in the noweb file: I put blocks of
> static code (for which I don't especially need any noweb feature) after the
> end of the LaTeX document. That way, it gets outputted by noweb as a source
> file during the Tangle process, and included in my LaTeX document via the
> listings package.
>
> Why that trick?  I could directly put the code in the body of the document!
> Yes, but I want the code to be highlighted via listings. Otherwise, it's just
> black and white display of the code...
>
> For easy access, I've put all the above files on a my Web space:
>
> [1] http://www.mygooglest.com/sva/org-lit-prog.nw
> [2] http://www.mygooglest.com/sva/org-lit-prog.tex
> [3] http://www.mygooglest.com/sva/org-lit-prog.pdf
> [4] http://www.mygooglest.com/sva/Enterprise.sql
> [5] http://www.mygooglest.com/sva/Lessons.sql
> [6] http://www.mygooglest.com/sva/Payment.sql
> [7] http://www.mygooglest.com/sva/prsNumNat.awk
>
> From what I understand, what we both wanna reach is writing all of the `.nw'
> file as an Org file directly, and let Org-babel extracts the source code files
> and the documentation out of it.
>
> What should be good in the future, when it will be ready for prime time, is
> that this becomes complete part of the export process: no tangle operation
> needed.
>
> Is the above description worth for you?  Do you understand how I work when
> documenting code?  Pay attention: I'm *the* expert in literate programming.
> Just an amateur being seduced by some of its features.
>
> Best regards,
>   Seb


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


Re: [Orgmode] Re: org-style folding for a .emacs

2009-07-31 Thread Eric Schulte
Sébastien Vauban  writes:

> Hi Eric,
>
> "Eric Schulte" wrote:
>> Sébastien Vauban  writes:

[...]

>> To demonstrate creation of documents, open the "test-export.org" file in
>> the base of the org-babel directory, and export it as you would any
>> other org-mode file.  The "exports" header argument controls how
>> source-code blocks are exported, with the following options
>>
>> - none :: no part of the source-code block is exported in the document
>> - results :: only the output of the evaluated block is exported
>> - code :: the code itself is exported
>> - both :: both the code and results are exported
>
> I have this error showing up:
>
> executing Ruby source code block
> apply: Searching for program: no such file or directory, irb
>

Hi Sébastien,

The problem here is that org-babel panics when trying to evaluate ruby
code blocks because you don't have the required ruby executables
available on your system.  Probably the best way to deal with this is to
remove ruby from the list of languages supported by babel by adding the
following in your initialization file [1].  Eventually we will need to
find a better way of allowing users to selectively add languages to
org-babel.

> >
>>> PS- Excellent you're looking at this, because I thought I was the latest
>>> "literate programmer" on earth. All the mailing lists about that are
>>> dying.
>>
>> While I find the notion of literate programming very appealing, I have
>> no practical experience with it.  The literate programming functionality
>> in org-babel was inspired by talking with Eric Neilsen and by the sense
>> that literate programming fit with org-babel's focus on code blocks.
>>
>> As you are actually familiar with literate programming and tools like
>> noweb, I would be very interested to hear your thoughts on the current
>> and potential future literate programming implementations in org-babel.
>
> For sure. I'll be more than happy to describe what I do. In case we all can
> come to something (much) better than the current way I do things.
>

Wonderful.  Thanks for sharing your experience.

Thanks -- Eric

>
> Seb

Footnotes: 
[1]  

--8<---cut here---start->8---
(setq org-babel-interpreters (delete "ruby" org-babel-interpreters))
--8<---cut here---end--->8---


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


Re: [Orgmode] Re: How to ignore horizontal lines in tables and references

2009-07-31 Thread Nick Dokos
Benjamin Andresen  wrote:

> Hey,
> 
> Benjamin Andresen  writes:
> 
> > | Attempt | Start  | End| Success | 
> > Wait in Min |
> > |-+++-+-|
> > |   1 | <2009-07-31 Fri 04:43> | <2009-07-31 Fri 04:44> | No  | 
> >   1 |
> > |   2 | <2009-07-31 Fri 04:45> | <2009-07-31 Fri 04:46> | No  | 
> >   1 |
> > |   3 | <2009-07-31 Fri 04:48> | <2009-07-31 Fri 04:49> | No  | 
> >   1 |
> > |-+++-+-|
> > | Results ||| 0%  | 
> >   1 |
> > #+TBLFM: $5='(ba/org-time-diff-min $2 $3)::@5$4='(ba/find "Yes" 
> > '(@2$...@4$4))::@5$5=vmean(@2$...@4$5);%.1f
> 
> Of course a few minutes after sending the mail, I'm stumbling upon
> one(?) answer:
> Changing "@2$...@4$5" to "@2$...@-i$5" works. I'm not entirely sure I
> completely understand the reason behind this, but it works for now.
> 

Yes, that't correct: check section 3.5.1 of the manual. It would be nice
to expand this section to contain both a more systematic description of
the (fairly arcane) syntax (perhaps an itemized list would be easier to
scan), as well as more examples - perhaps a cookbook collection. Someone
have copious spare time on their hands? :-)

Thanks,
Nick


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


[Orgmode] Re: How to ignore horizontal lines in tables and references

2009-07-31 Thread Benjamin Andresen
Hey,

Benjamin Andresen  writes:

> | Attempt | Start  | End| Success | Wait 
> in Min |
> |-+++-+-|
> |   1 | <2009-07-31 Fri 04:43> | <2009-07-31 Fri 04:44> | No  |   
> 1 |
> |   2 | <2009-07-31 Fri 04:45> | <2009-07-31 Fri 04:46> | No  |   
> 1 |
> |   3 | <2009-07-31 Fri 04:48> | <2009-07-31 Fri 04:49> | No  |   
> 1 |
> |-+++-+-|
> | Results ||| 0%  |   
> 1 |
> #+TBLFM: $5='(ba/org-time-diff-min $2 $3)::@5$4='(ba/find "Yes" 
> '(@2$...@4$4))::@5$5=vmean(@2$...@4$5);%.1f

Of course a few minutes after sending the mail, I'm stumbling upon
one(?) answer:
Changing "@2$...@4$5" to "@2$...@-i$5" works. I'm not entirely sure I
completely understand the reason behind this, but it works for now.

br,
benny


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


Re: [Orgmode] Narrow tSparse Trees layout

2009-07-31 Thread Nick Dokos
Cian OConnor  wrote:

> 
> Oh sorry, I was using the wrong terminology. I don't mean sparse trees
> at all, I meant narrow trees.
> 
> It would be nice if there was an option so that narrowed trees are
> displayed without their normal indentation. So for example if narrow a
> subtree at level 4, then it is displayed as a normal tree at level 1
> rather than as a tree starting at level 4 as currently happens. 
> Its just that when drafting papers I tend to have lots and lots of
> indentation in early drafts, and while narrowing trees is a godsend, the
> unnecessary (for my purposes) indentation is slightly annoying.
> 

I presume you have org-hide-leading-stars set to t. If so, what looks
like indentation, is really hidden leading stars (see section 14.5 of
the manual). I am no expert but I would think that implementing what
you want would be difficult. If it really bothers you, perhaps you can
promote the tree to level 1 while you are working on it and then demote
it before widening again - I think this cure is worse than the disease,
but to each his own.

HTH,
Nick


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


[Orgmode] org-hide-emphasis-markers problem

2009-07-31 Thread Nicolas Goaziou
Hello,

When set to t, org-hide-emphasis-markers doesn't seem to behave well
with R in agenda mode, or C-c C-x C-r elsewhere, that is with dynamic
blocks.

The error is the following :

  org-do-emphasis-faces: Wrong type argument: integer-or-marker-p, nil

I think it also acts strangely with column-mode, something about the
fonts, but I can't be more precise.

-- 
Nicolas Goaziou



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


[Orgmode] How to ignore horizontal lines in tables and references

2009-07-31 Thread Benjamin Andresen
Hello everyone,

I'm having a bit of a problem with tables and references. I try to use
tables + spreadsheet capabilities for data entry while testing certain
things, and one table design that works conceptually for me is the
following:

| Attempt | Start  | End| Success | Wait in 
Min |
|-+++-+-|
|   1 | <2009-07-31 Fri 04:43> | <2009-07-31 Fri 04:44> | No  | 
  1 |
|   2 | <2009-07-31 Fri 04:45> | <2009-07-31 Fri 04:46> | No  | 
  1 |
|   3 | <2009-07-31 Fri 04:48> | <2009-07-31 Fri 04:49> | No  | 
  1 |
|-+++-+-|
| Results ||| 0%  | 
  1 |
#+TBLFM: $5='(ba/org-time-diff-min $2 $3)::@5$4='(ba/find 
"Yes"|'(@2$...@4$4))::@5$5=vmean(@2$...@4$5);%.1f

The problem I'm having is when my cursor is at @4$1 and I'm pressing RET.
It creates a new row where I can enter new data, as expected.

It will increment the
   @5$5 part to @6$5

Now the problem is when I try to automate the formulas a bit.

If I would instead of
  @5$5=vmean(@2$...@4$5);%.1f
use
  @5$5=vmean(@2$...@-1$5);%.1f
the following message will come up during evaluation:
  Row descriptor -1 used in line  crosses hline

Does anyone have any idea how I can make this work? The problem goes
away when I delete the horizontal line. If my table design is wrong or
there is a better way to do what I'm open to changing it.

Thanks in advance,
benny


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


Re: [Orgmode] Narrow tSparse Trees layout

2009-07-31 Thread Cian OConnor

Oh sorry, I was using the wrong terminology. I don't mean sparse trees
at all, I meant narrow trees.

It would be nice if there was an option so that narrowed trees are
displayed without their normal indentation. So for example if narrow a
subtree at level 4, then it is displayed as a normal tree at level 1
rather than as a tree starting at level 4 as currently happens. 
Its just that when drafting papers I tend to have lots and lots of
indentation in early drafts, and while narrowing trees is a godsend, the
unnecessary (for my purposes) indentation is slightly annoying.

Cian

Bastien  writes:

> Cian OConnor  writes:
>
>> Now if I go to level 3 and create a sparse tree I get this:
>> * level 3
>>   * level 4
>>
>> Which is fine and usable, but it would be nice to have the option to
>> have the following instead:
>>
>> * level 3
>>   * level 4
>
> Why would you want to have this?  
>
> I find this a bit confusing...


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


Re: [Orgmode] Re: Org-mode and GPG (EasyPG)

2009-07-31 Thread Kyle Sexton
At Fri, 24 Jul 2009 10:42:16 +0100,
Eric S Fraga  wrote:
> 
> At Fri, 24 Jul 2009 11:05:36 +0200,
> Maurice wrote:
> > 
> > Hello org-moders,
> > 
> > Maybe  : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503480
> 
> Brilliant!!  Many thanks.  Problem solved.
> 
>  
> (now why didn't I think of checking Debian's bug reports???  sigh) 
> 
> 
> Thanks again,
> eric
> 
> 

Does this mean you were able to get the agenda view working with
EasyPG as well?   That would be an awesome feature IMHO, pulling tasks
from all my notes, even the encrypted ones.

--
Kyle Sexton


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


[Orgmode] Re: suggestion for a fix to org-clock-in

2009-07-31 Thread Sébastien Vauban
Hello,

> Bastien wrote:
>> Nicolas Goaziou  writes:
>>
>>> For some time zone reason, my time-stamps look like this [2009-07-28
>>> mar.]. Notice the dot after the name of the day.
>>
>> It's because Emacs recently changed the format for abbreviated days.
>> If you could track when this change appeared, that'd be nice.
>
> Isn't it simply the way it always has been for French abbreviations of
> weekdays?

I confirm you, having tested it, that the point is there when under EmacsW32
and French regional settings for Windows.

Seb

-- 
Sébastien Vauban



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


[Orgmode] Re: Toggle 'closed' in org-agenda-log-mode-items

2009-07-31 Thread Nathan Neff
On Thu, Jul 30, 2009 at 5:51 PM, Bernt Hansen wrote:
> Nathan Neff  writes:
>
>> I know that I can set this variable or define a custom agenda view
>> if I only want to see clocked items in the agenda:
>>
>> (setq org-agenda-log-mode-items (quote (clock)))
>>
>> But, I like the way that the 'l' and 'R' keys work in the agenda,
>> where they show/hide
>> the log and the clock report.
>>
>> Is there a way to define something similar for the showing/hiding of
>> Closed log items in the agenda?
>>
>> I'm not very good at lisp, so something like this pseudo-code:
>>
>> (defun org-toggle-agenda-show-closed-logs ()
>> ;; pseudo code --
>> if org-agenda-log-mode-items contains 'closed' then
>>     remove 'closed' from org-agenda-log-mode-items
>> else
>>    add 'closed' to org-agenda-log-mode-items
>> (refresh the agenda view)
>> )
>>
>> (define-key org-mode-map (kbd "") 'org-toggle-agenda-show-closed-logs)
>
> l in the agenda shows clock times only with your setup.
>
> C-u l shows task state changes too.  Is that what you are looking for or
> do you only want the closed states?
>

I would like to be able to press some key and toggle between these two things:

1)  Show Clocked tasks only

2)  Show Clocked tasks and Closed items

Thanks for any ideas,

--Nate


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


Re: [Orgmode] Getting a nice and synchronized calendar

2009-07-31 Thread Christopher DeMarco
On Fri Jul 31 10:48:52 2009 +0800, Bastien wrote:

> > So everything would be fantastic, how to synchronize the other
> > way around??  Is there a way to import an ics? 
> 
> Not for now, no.  But it is a good project to work on :)

Yeah, whoever picks this up: please implement it as part of a generic
extension to org-publish, which talks WebDAV directly to a remote
host.  Then publishing to a remote host can happen in one swell foop,
and the .ics can be pushed up to a CalDAV server.

Or just solve world hunger or something...


-- 
Christopher DeMarco 
IT Director
MAYA Group
+1-412-708-9660



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


[Orgmode] Re: Vertical split in Emacs 23

2009-07-31 Thread Ryan C. Thompson
I believe the function you're looking for is split-window-sensibly. Try 
M-x describe-function split-window-sensibly. It describes all the 
relevant variables that control its behavior.


If you wish to affect the behavior of only a specific case of splitting 
windows (for example, the org-todo function) you can use advice to 
temporarily modify one or more of these variables for the duration of 
the function call. For example, the following (untested!) code should 
guarantee a vertical split for org-todo:


(defadvice org-todo (around tweak-splitting-behavior activate)
  "Tweak the sensible window splitting behavior for org-todo."
  (let ((split-height-threshold 0))
ad-do-it))



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


[Orgmode] Re: LaTeX export bug

2009-07-31 Thread Dan Griswold
Bastien  writes:

> I can also reproduce this, I will fix it by sunday.

Excellent! Thank you!

Dan

-- 
 ___
/\  \
\_| Dan Griswold|
  | dgris...@rochester.rr.com   |
  |   __|_
   \_//


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


[Orgmode] Sibling subtrees are closed when items moved up and down in list

2009-07-31 Thread User
I noticed when moving items up and down that subtrees of items on
the same level are closed during the moving. From a user point of
view it's a bit disorientating when I have a tree structure
opened in a certain folded state and I move it up or down then
sibling strees are suddenly closed changing the landscape view of
the tree and forcing the user readjust his visual comprehension
of the tree.

Is it intentional or is it a side effect of the current
implementation?

I think it would be better if tree folding status were preserved
after moving if possible, so the current visual layout of
the tree is affected as little as possible.




___
Emacs-orgmode mailing list
Remember: 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 publish to html only the visible part?

2009-07-31 Thread Bastien
CrazyVibes  writes:

> Exporting allows only the visible part to be exported to HTML, I
> wonder if there is an option in publishing that only publish the
> visible part for all files in a project?

Not yet.

-- 
 Bastien


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