[Orgmode] limit agenda to particular tag?

2009-07-28 Thread John SJ Anderson

  Is there a way to display an agenda (like 'C-a a' does) but have it
  limited to items that have a particular tag? (E.g., so I can see only
  '@WORK' items when at work.) 

thanks,
john.
-- 
But Calvin is no kind and loving god! He's one of the old gods! He demands
sacrifice!  -- Calvin


___
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: org-style folding for a .emacs

2009-07-28 Thread Sébastien Vauban
Hi Eric,

Eric Schulte wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:
 I'm a heavy user of literate programming for rapports I write for clients
 (in fact, for me, first, but I give them to our clients as well).

 Up to a couple of months ago, I was doing literate programming via LaTeX
 and nuweb, from Windows as my nuweb binary was just available for that
 platform. So, writing a `.w' file from which I extract a `.tex' one and the
 source code.

 Then, the last time I did it, I switched to doing such reports under
 Ubuntu, with the noweb package. That is a `.nw' file which is compiled to
 a `.tex', and which is as well outputting all my code.

I'll describe my editing process in a separate thread (that will be called
Literate Programming with Org).


 This is nice, and works well. But, now, I am trying as hard as possible to
 avoid writing LaTeX directly and let Org do the work for me. So, if I can
 use Org to create my `.tex' file and the source code from it as well (did I
 understand correctly?), then that will be wonderful.

 Do you have examples or a tiny tutorial about this?

 There are two small examples which should be helpful.  First grab a copy
 of the org-babel code [1].  Then load org-babel [2].

 To demonstrate extraction of code, open test-tangle.org file in the
 base of the org-babel directory and run `org-babel-tangle'.  This should
 create a couple of source-code files in the same directory.

OK.


 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:

--8---cut here---start-8---
executing Ruby source code block
apply: Searching for program: no such file or directory, irb
--8---cut here---end---8---


 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.

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: limit agenda to particular tag?

2009-07-28 Thread Memnon Anon
John SJ Anderson geneh...@genehack.org writes:

   Is there a way to display an agenda (like 'C-a a' does) but have it
   limited to items that have a particular tag? (E.g., so I can see only
   '@WORK' items when at work.) 

Either use your agenda and use / to limit the view to what you want.
Or create a custom agenda command: I have something like this:

(setq org-agenda-custom-commands
  '((f Agenda without Items tagged xyz 
 ((agenda ))
 ((org-agenda-show-log nil)
  (org-agenda-ndays 1)
  (org-agenda-log-mode-items '(state))
  (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp 
:XYZ:
;; other commands here
(d Agenda only Items tagged xyz 
 ((agenda ))
 ((org-agenda-show-log nil)
  (org-agenda-ndays 1)
  (org-agenda-log-mode-items '(state))
  (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp 
:XYZ:
;; other commands here
(w todo WAITING)
(g todo STARTED)
))

hth
memnon




___
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] Results of the SourceForge Community Award

2009-07-28 Thread Raffi R
 Nick Dokos nicholas.do...@hp.com writes:


 Mmhh...  maybe the Windows user-base is bigger than the Emacs user-base?

Well, it seems clear that org-mode needs virtualization functionality
so that everyone running PortableApps will already be using orgmode
anyways.


___
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] Literate Programming with Org mode

2009-07-28 Thread Sébastien Vauban
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:

--8---cut here---start-8---
Enterprise.sql=
sql-init
SELECT abcID, etpID, etpAssurATPolNum
FROM enterprise JOIN record
ON (etpAbcID_fk = abcID)
WHERE etpAbcID_fk
sql-cond
@ %def 
--8---cut here---end---8---

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:

--8---cut here---start-8---
Lessons.sql=
sql-init
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
sql-cond
@ %def 
--8---cut here---end---8---

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):

--8---cut here---start-8---
noweb org-lit-prog.nw
--8---cut here---end---8---

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

-- 
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


Re: [Orgmode] Literate Programming with Org mode

2009-07-28 Thread Marcelo de Moraes Serpa
Hmm, this seems interesting and something I'm looking for, but I'm not
entirely sure what you mean by literate programming (I haven't
googled yet either, I'm about to do it once I answer this message).
Anyway, I have a project I'm working on right now that requires me to
set up a publishing environment, in the sense that I might have
source files (maybe in XML or whatever format makes sense) and be able
to convert them to LaTeX (for pdf), html or whatever format I could
think of, using XSLT, something like the pragmatic programmers
publishing toolchain. Not sure if literate programming has anything to
do with that :)

2009/7/28 Sébastien Vauban wxhgmqzgw...@spammotel.com:
 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:

 --8---cut here---start-8---
 Enterprise.sql=
 sql-init
 SELECT abcID, etpID, etpAssurATPolNum
 FROM enterprise JOIN record
    ON (etpAbcID_fk = abcID)
 WHERE etpAbcID_fk
 sql-cond
 @ %def
 --8---cut here---end---8---

 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:

 --8---cut here---start-8---
 Lessons.sql=
 sql-init
 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
 sql-cond
 @ %def
 --8---cut here---end---8---

 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):

 --8---cut here---start-8---
 noweb org-lit-prog.nw
 --8---cut here---end---8---

 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

 --
 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



___
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: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread Bastien
Bastien b...@gnu.org writes:

 User spamfilteracco...@gmail.com writes:

 I added the timer, because I didn't know in which order the hooks
 are run. If org-mode hook runs first and then saveplace's hook
 which restores point then the above code has no effect.

 saveplace adds the hook at the end of the hooks list, by calling
 add-hook like this:

   (add-hook 'find-file-hook 'save-place-find-file-hook t)
^

 The `t' means put this hook at the end.

 So your org-mode hook will be safely called *before* saveplace's.

Sorry, I mixed up the logic here -- the following hook is okay:

--8---cut here---start-8---
(add-hook 'org-mode-hook
  (lambda ()
(when (outline-invisible-p)
  (save-excursion
(outline-previous-visible-heading 1)
(org-show-subtree
  t)  ;; this makes sure this hook is run last
--8---cut here---end---8---

If you load this *after* loading the saveplace hook then it should 
be okay.  Thanks to Nick Dokos for shaking my brain on this :)

-- 
 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] Re: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread User
Bastien bastienguerry at googlemail.com writes:
 
 If you load this *after* loading the saveplace hook then it should 
 be okay.  Thanks to Nick Dokos for shaking my brain on this :)
 

Well, wasn't my original solution with the null timer much nicer?
You didn't have to worry about making sure you put org-mode hook
last and that it loads after saveplace hook.

Now the user has to pay attention to where he sets
up the org-mode hook, instead of simply pasting the code
anywhere in .emacs. :-o I tend to favor solutions which avoid
such potential problems. :)




___
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


Nick Dokos: Re: [Orgmode] Re: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread Nick Dokos
[forgot to copy the list - again...]

--- Forwarded Message

Date:Tue, 28 Jul 2009 14:54:38 -0400
From:Nick Dokos nicholas.do...@hp.com
To:  User spamfilteracco...@gmail.com
cc:  nicholas.do...@hp.com
Subject: Re: [Orgmode] Re: Showing hidden subtree automatically if point is hid
  den when the buffer is opened 

User spamfilteracco...@gmail.com wrote:

 Bastien bastienguerry at googlemail.com writes:
  
  If you load this *after* loading the saveplace hook then it should 
  be okay.  Thanks to Nick Dokos for shaking my brain on this :)
  
 
 Well, wasn't my original solution with the null timer much nicer?

No.

 You didn't have to worry about making sure you put org-mode hook
 last and that it loads after saveplace hook.

Yes, you can be a little lazy in setting it up and then pay the
performance price for ever after.

 
 Now the user has to pay attention to where he sets
 up the org-mode hook, instead of simply pasting the code
 anywhere in .emacs. :-o I tend to favor solutions which avoid
 such potential problems. :)
 

If they don't cost anything, yes. But I'm not sure I want an idle
timer running all the time just to detect the (rare) occasions
when I want to fold a tree.

Thanks,
Nick




--- End of Forwarded Message



___
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: limit agenda to particular tag?

2009-07-28 Thread Matthew Lundin
John SJ Anderson geneh...@genehack.org writes:

   Is there a way to display an agenda (like 'C-a a' does) but have it
   limited to items that have a particular tag? (E.g., so I can see only
   '@WORK' items when at work.) 

The following FAQs explain how to do this:

http://orgmode.org/worg/org-faq.php#limit-agenda-with-tag-filtering
http://orgmode.org/worg/org-faq.php#limit-agenda-with-category-match

- Matt



___
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: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread Nick Dokos
PT (emacs user) spamfilteracco...@gmail.com wrote:

 On Tue, Jul 28, 2009 at 8:54 PM, Nick Dokosnicholas.do...@hp.com wrote:
 
  If they don't cost anything, yes. But I'm not sure I want an idle
  timer running all the time just to detect the (rare) occasions
  when I want to fold a tree.
 
 You misunderstand how it works. The idle timer doesn't run all the time.
 It's started when the org buffer is opened, it does its thing and then
 it stops running and it is disposed .
 
 It's a one-shot timer. Doesn't cost anything.
 

Oh, right: I didn't notice the REPEAT arg in the doc.

I still think that getting the configuration right in the first place
is better, but I guess you have reduced it to an aesthetic choice.

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: Automatic indentation of org tree

2009-07-28 Thread User
Bastien bastienguerry at googlemail.com writes:
 
 I tested your code but there are several problems: it is not usable on
 big files, 

The size of the file shouldn't matter, since only lines in the
current window are indented. Probably, some trivial bug remained
in it which my tests didn't cover.

 and even on small files the auto-indentation is confusing.
 For example, stars get indented while there should not.  

It's a matter of taste. I didn't find it confusing. But it's
trivial to change it to avoid indenting header lines.

 I guess this is still work-in-progress -- hope you'll find ways
 to fix the problems above!

It's a proof-of-concept package, but I think the underlining
concept is solid. If someone motivated spends a little time on it
then I'm sure the problems can be ironed out quickly.





___
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] suggestion for a fix to org-clock-in

2009-07-28 Thread Nicolas Goaziou
Hello,

For some time zone reason, my time-stamps look like this [2009-07-28
mar.]. Notice the dot after the name of the day.

This prevents the regexp inside org-clock-in to recognize it as a valid
clock format as thus to resume any started clock.

I suggest the following simple patch.

From 0f149d1e515d017fed78fc5038127970843f9e81 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou nico...@misty.(none)
Date: Tue, 28 Jul 2009 20:55:06 +0200
Subject: [PATCH] Teach org-clock-in about other date formats

Depending on your time zone, the timestamps can have somewhat differents formats (ex.: [2009-07-28 mar. 21:00]).
This kind of format is now recognized as a valid clock time when it comes to resuming it.
---
 lisp/org-clock.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 7fa15e0..48a0741 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -558,7 +558,7 @@ the clocking selection, associated with the letter `d'.
 		   (looking-at
 		(concat ^[ \t]*  org-clock-string
 			 \\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}
-			 +\\sw+ +[012][0-9]:[0-5][0-9]\\)\\][ \t]*$)))
+			 +\\sw+\.? +[012][0-9]:[0-5][0-9]\\)\\][ \t]*$)))
 	  (message Matched %s (match-string 1))
 	  (setq ts (concat [ (match-string 1) ]))
 	  (goto-char (match-end 1))
-- 
1.6.0.4


Comments are welcome.

-- 
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] Re: Literate Programming with Org mode

2009-07-28 Thread Sébastien Vauban
Hi Marcelo,

Marcelo de Moraes Serpa wrote:
 Sébastien Vauban wrote:
 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.

 [...]

 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 `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.

 [...]

 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.

Euh... Euh... Euh... I meant: I am _NOT_ *the* expert in literate programming.
Just a user of the approach... Sorry for misbehaving ;-)


 Just an amateur being seduced by some of its features.

 Hmm, this seems interesting and something I'm looking for, but I'm not
 entirely sure what you mean by literate programming (I haven't
 googled yet either, I'm about to do it once I answer this message).

If I would have to summarize what it is in a sentence, it would be this: LP
(not logic programming) is about *putting the code in the documentation* -- at
the opposite of the current mainstream approach where one puts the
documentation inside the code (where there is documentation!).

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...


 Anyway, I have a project I'm working on right now that requires me to
 set up a publishing environment, in the sense that I might have
 source files (maybe in XML or whatever format makes sense) and be able
 to convert them to LaTeX (for pdf), html or whatever format I could
 think of, using XSLT, something like the pragmatic programmers
 publishing toolchain. Not sure if literate programming has anything to
 do with that :)

As far as I can understand, yes, as you're talking of inserting source code
(of whatever language) in your big documentation of the project. That's the
philosophy, yes, *iff* you produce the code out of that documentation. The
code is becoming an output of the documentation. Not the opposite.

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] How I use org: writeup

2009-07-28 Thread Raffi R
I've written a 1K-word intro on how I use org (for outlining and
planning). Is there somewhere on Worg things like that go? The
testimonies page is quite short; only a paragraph long or so for
each testimony.

Thank you very much,
- Raffi.


___
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-28 Thread sam kleinman
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
http://www.stat.umn.edu/~charlie/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


[Orgmode] Include mechanism for web publishing

2009-07-28 Thread Israel Herraiz
Hi all,

I use org-mode for web publishing. My web contains four pages that
share a common (HTML) header, with some links to the different
sections of the web and other stuff.

At some point, I decided to include a common raw HTML in every
page. This raw HTML is Javascript stuff for visits counting using
Google Analytics.

That file is included in every page right after the title, using
#+INCLUDE header/header.org.

Everything was working fine when I had just links, but now that I have
included the #+BEGIN_HTML stuff, it is escaped when exporting
everything to HTML, and instead of my raw HTML in the output files I
get a line starting by ,#+BEGIN... (properly written and escaped in
HTML; notice the initial comma).

I though of #+INCLUDE as a sort of C's #include, i.e. it just copies
the text of the included file in the line where #+INCLUDE is. However
this seems not to be the case.

I have found in the list a discussion about how to insert source code
in HTML outputs, without inserting the initial commas, which confirms
that included org files are escaped when exporting to HTML:

  http://thread.gmane.org/gmane.emacs.orgmode/15707

I have also found this approach to include files approach, that I have
tried without success: nothing is shown in the HTML output (see second
message in the thread):

  http://thread.gmane.org/gmane.emacs.orgmode/4127

Is there any way to do a plain (no escape) import of org files?

Cheers,
Israel


___
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] Include mechanism for web publishing

2009-07-28 Thread Michael Zeller
Israel Herraiz i...@herraiz.org writes:

 Hi all,

 I use org-mode for web publishing. My web contains four pages that
 share a common (HTML) header, with some links to the different
 sections of the web and other stuff.

 At some point, I decided to include a common raw HTML in every
 page. This raw HTML is Javascript stuff for visits counting using
 Google Analytics.

 That file is included in every page right after the title, using
 #+INCLUDE header/header.org.

 Everything was working fine when I had just links, but now that I have
 included the #+BEGIN_HTML stuff, it is escaped when exporting
 everything to HTML, and instead of my raw HTML in the output files I
 get a line starting by ,#+BEGIN... (properly written and escaped in
 HTML; notice the initial comma).

I had the exact same issue last night, and oddly enough, it used to work
in 6.21b, which is what comes with CVS emacs!

Anyways, here is what I changed so that you can do an #+INCLUDE
header/header.org org to include as raw Org. Personally, I'd like the
default to be Org, but I see why it was changed. 

diff --git a/doc/org.texi b/doc/org.texi
index e28b185..43cd2ab 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -8262,13 +8262,15 @@ include your @file{.emacs} file, you could use:
 @end example
 @noindent
 The optional second and third parameter are the markup (@samp{quote},
-...@samp{example}, or @samp{src}), and, if the markup is @samp{src}, the
-language for formatting the contents.  The markup is optional, if it is not
-given, the text will be assumed to be in Org mode format and will be
-processed normally.  The include line will also allow additional keyword
-parameters @code{:prefix1} and @code{:prefix} to specify prefixes for the
-first line and for each following line, as well as any options accepted by
-the selected markup.  For example, to include a file as an item, use
+...@samp{example}, @samp{org}, or @samp{src}), and, if the markup is 
@samp{src},
+the language for formatting the contents. If the markup is @samp{org}, the
+text will be assumed to be in Org mode format and will be processed
+normally. The markup is optional, if it is not given, the text will be
+included as is and any Org markup will be escaped.  The include line will
+also allow additional keyword parameters @code{:prefix1} and @code{:prefix}
+to specify prefixes for the first line and for each following line, as well
+as any options accepted by the selected markup.  For example, to include a
+file as an item, use
 
 @example
 #+INCLUDE: ~/snippets/xx :prefix1+  :prefix  
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 280b1f4..83f9b74 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2085,13 +2085,14 @@ TYPE must be a string, any of:
  (not (file-readable-p file)))
  (insert (format CANNOT INCLUDE FILE %s file))
(when markup
- (if (equal (downcase markup) src)
- (setq start (format #+begin_src %s %s\n
- (or lang fundamental)
- (or switches ))
- end #+end_src)
- (setq start (format #+begin_%s %s\n markup switches)
- end  (format #+end_%s markup
- (cond ((equal (downcase markup) src)
- (setq start (format #+begin_src %s %s\n
- (or lang fundamental)
- (or switches ))
- end #+end_src))
- ((equal (downcase markup) org) nil)
- (t (setq start (format #+begin_%s %s\n markup switches)
- end  (format #+end_%s markup)
(insert (or start ))
(insert (org-get-file-contents (expand-file-name file) prefix prefix1 
markup))
(or (bolp) (newline))

I hope that helps!
~Michael Zeller


___
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] Include mechanism for web publishing

2009-07-28 Thread Michael Zeller
Opps, for some reason the important portion didn't copy. You'll have to
forgive me, I'm still learning gnus.

Michael Zeller michael.dylan.zel...@gmail.com writes:

 diff --git a/doc/org.texi b/doc/org.texi
 index e28b185..43cd2ab 100644
 --- a/doc/org.texi
 +++ b/doc/org.texi
 @@ -8262,13 +8262,15 @@ include your @file{.emacs} file, you could use:
  @end example
  @noindent
  The optional second and third parameter are the markup (@samp{quote},
 -...@samp{example}, or @samp{src}), and, if the markup is @samp{src}, the
 -language for formatting the contents.  The markup is optional, if it is not
 -given, the text will be assumed to be in Org mode format and will be
 -processed normally.  The include line will also allow additional keyword
 -parameters @code{:prefix1} and @code{:prefix} to specify prefixes for the
 -first line and for each following line, as well as any options accepted by
 -the selected markup.  For example, to include a file as an item, use
 +...@samp{example}, @samp{org}, or @samp{src}), and, if the markup is 
 @samp{src},
 +the language for formatting the contents. If the markup is @samp{org}, the
 +text will be assumed to be in Org mode format and will be processed
 +normally. The markup is optional, if it is not given, the text will be
 +included as is and any Org markup will be escaped.  The include line will
 +also allow additional keyword parameters @code{:prefix1} and @code{:prefix}
 +to specify prefixes for the first line and for each following line, as well
 +as any options accepted by the selected markup.  For example, to include a
 +file as an item, use
  
  @example
  #+INCLUDE: ~/snippets/xx :prefix1+  :prefix  
 diff --git a/lisp/org-exp.el b/lisp/org-exp.el
 index 280b1f4..83f9b74 100644
 --- a/lisp/org-exp.el
 +++ b/lisp/org-exp.el
 @@ -2085,13 +2085,14 @@ TYPE must be a string, any of:
   (not (file-readable-p file)))
   (insert (format CANNOT INCLUDE FILE %s file))
 (when markup
 - (if (equal (downcase markup) src)
 - (setq start (format #+begin_src %s %s\n
 - (or lang fundamental)
 - (or switches ))
 - end #+end_src)
 - (setq start (format #+begin_%s %s\n markup switches)
 - end  (format #+end_%s markup
 - (cond ((equal (downcase markup) src)
 - (setq start (format #+begin_src %s %s\n
 - (or lang fundamental)
 - (or switches ))
 - end #+end_src))
 - ((equal (downcase markup) org) nil)
 - (t (setq start (format #+begin_%s %s\n markup switches)
 - end  (format #+end_%s markup)
+ (cond ((equal (downcase markup) src)
+ (setq start (format #+begin_src %s %s\n
+ (or lang fundamental)
+ (or switches ))
+   end #+end_src))
+((equal (downcase markup) org) nil)
+(t (setq start (format #+begin_%s %s\n markup switches)
+ end  (format #+end_%s markup)
 (insert (or start ))
 (insert (org-get-file-contents (expand-file-name file) prefix prefix1 
 markup))
 (or (bolp) (newline))

 I hope that helps!
 ~Michael Zeller


___
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: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread Bastien
User spamfilteracco...@gmail.com writes:

 Bastien bastienguerry at googlemail.com writes:
 
 If you load this *after* loading the saveplace hook then it should 
 be okay.  Thanks to Nick Dokos for shaking my brain on this :)

 Well, wasn't my original solution with the null timer much nicer?
 You didn't have to worry about making sure you put org-mode hook
 last and that it loads after saveplace hook.

Yes, but it's not straightforward to understand.  

To me, running a task when Emacs is idle for 0 seconds is very similar
to run immediately - that's why I didn't understand why you'd put this
first.

Why not checking if this run-with-idle-timer trick is necessary?  My
understanding is that org-mode hooks will be called *after* saveplace
restores the point.

(I just want to avoid unnecessary tricks for people who use Worg as a
place to learn things.)

 I tend to favor solutions which avoid such potential problems. :)

If it ain't broken, don't fix it ;)

-- 
 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


Re: [Orgmode] Re: Automatic indentation of org tree

2009-07-28 Thread Bastien
User spamfilteracco...@gmail.com writes:

 Bastien bastienguerry at googlemail.com writes:
 
 I tested your code but there are several problems: it is not usable on
 big files, 

 The size of the file shouldn't matter, since only lines in the
 current window are indented. Probably, some trivial bug remained
 in it which my tests didn't cover.

Okay.

 and even on small files the auto-indentation is confusing.
 For example, stars get indented while there should not.  

 It's a matter of taste. I didn't find it confusing. But it's
 trivial to change it to avoid indenting header lines.

Confusing was a polite version of buggy :)  

 I guess this is still work-in-progress -- hope you'll find ways
 to fix the problems above!

 It's a proof-of-concept package, but I think the underlining
 concept is solid. If someone motivated spends a little time on it
 then I'm sure the problems can be ironed out quickly.

As you already guessed, I try to make *you* spend a little more time on
it :)  Because I think the idea is nice and the code can be useful.

-- 
 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


Re: [Orgmode] How I use org: writeup

2009-07-28 Thread Bastien
Raffi R raf...@gmail.com writes:

 I've written a 1K-word intro on how I use org (for outlining and
 planning). Is there somewhere on Worg things like that go? 

I think a page with your name in the users/ directory would do it.  

If it's more of a tutorial, maybe org-tutorials/ can be the right 
place instead.  

If it covers some GTD methodoly aspects, you can create a link in
org-gtd-etc.org.

 The testimonies page is quite short; only a paragraph long or so for
 each testimony.

Yes - it's more a page for short testimonies.  Users' full use cases
would rather go to users/you.org.

Thanks for contributing!

-- 
 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


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

2009-07-28 Thread Bastien
Nicolas Goaziou n.goaz...@neuf.fr 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.

 This prevents the regexp inside org-clock-in to recognize it as a valid
 clock format as thus to resume any started clock.

 I suggest the following simple patch.

Applied, thanks!

-- 
 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] Re: How to track time spent on a project

2009-07-28 Thread Geralt
Hi Bernt,

thanks, that helped me a lot! :-)






Geralt.


___
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] Calendar export questions (ical html)

2009-07-28 Thread Michel Blanc
Bastien a écrit :
 Hi Michel,
 
 A todo like this
 
 * TODO Do this
   2009-07-28 mar
 
 will be exported both as a VTODO and as a VEVENT.
 
 Note that this is not the case for DEADLINE and SCHEDULED, maybe the
 code need to be more consistent about this.

Well, TODOs exported as VTODOS seems fine to me. And using TODOs in Org
for project management is really very helpful, but it seems that
calendar application out there consider TODOs as laundry lists and never
display them in views.
May be it could be nice to ask Org mode to force exporting VTODOs as
VEVENTs (just like it does for non-TODO DEADLINEd events) to circumvent
those applications limitations ? Don't know if it could be useful to
others though, and this could be done easily with an external script too.

 Also, the HTML exports for my agenda contains nothing but TODO's,
 without any date (see example here
 ...
 I suspect I'm off the mark in some way here...
 
 There are several types of agenda views: the tags and tags-todo types
 don't display the dates, but the agenda type does.

Oh well, I probably didn't read the manual deeply enough, sorry about that.

 Finally, is there a way to customize the agenda name (i.e. X-WR-CALNAME
 in the ICS file) ? 
 Again, sorry to disappoint but the answer is no -- at least not to my
 knowledge. 

Ok. Thanks Bastien for your answers et bonne continuation.

M
-- 
Michel Blanc - Systèmes/Réseaux Erasme
Twitter : l3u
http://reseau.erasme.org
FA67 4EDA D648 9E50 BFA4 3F29 FDF5 4971 24B3 5C22


___
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] Calendar export questions (ical html)

2009-07-28 Thread Richard Riley
Bastien bastiengue...@googlemail.com writes:

 Hi Michel,

 Michel Blanc mbl...@erasme.org writes:

 First, I discovered that all the calendar applications I tried do not
 show TODO entries (Google Agenda, PHP-iCalndar, Thunderbird, ...)
 *inside* the day/week/... view, but in sidebars or so (when the do).
 However, I am required to publish my agenda on GoogleAgenda (using Add
 by URL). Is there any way to export TODO entries as VEVENT instead of
 VTODO in ical exports, so they get showed in external apps ?

 A todo like this

 * TODO Do this
   2009-07-28 mar

 will be exported both as a VTODO and as a VEVENT.

 Note that this is not the case for DEADLINE and SCHEDULED, maybe the
 code need to be more consistent about this.

 Also, the HTML exports for my agenda contains nothing but TODO's,
 without any date (see example here
 http://leucos.lstilde.org/workcal.html). There are many
 SCHEDULED/DEADLINE enabled entries, but nothing is shown besides
 hierarchy. I suspect I'm off the mark in some way here...

 There are several types of agenda views: the tags and tags-todo types
 don't display the dates, but the agenda type does.

 Usually, when I need to display the dates in a tags-todo type view, I
 just switch on the column view.  But for now there is no way to store
 the dates in the HTML output of the tags-todo agenda view, the way to 
 go is to define an agenda-type view.

 Finally, is there a way to customize the agenda name (i.e. X-WR-CALNAME
 in the ICS file) ? I export 2 different ics files (the classic
 personal/work duo) and I would like to set relevant names for them.

 Again, sorry to disappoint but the answer is no -- at least not to my
 knowledge. 

 HTH,

FYI and still half asleep here, I think you can do the name. here is my
ical cust section:


  org-combined-agenda-icalendar-file ~/webs/richardriley/sync/org.ics
  org-icalendar-include-todo t
  org-icalendar-combined-name (quote Richard Riley ORG)
  org-icalendar-use-scheduled '(todo-due  event-if-todo event-if-not-todo)
  org-icalendar-use-deadline '(todo-due event-if-todo event-if-not-todo)
  org-icalendar-timezone Europe/Berlin
  org-icalendar-include-bbdb-anniversaries t
;  org-icalendar-timezone nil
  org-icalendar-store-UID t


hth


___
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-mode + flyspell = too much (programming code is screened)

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

I've sent this message to Emacs group one month ago. Never got any reply.
Maybe I'll have more chance here...

I'd want to have flyspell reporting me spelling mistakes in Org-mode.

I did update my `.emacs' this way:

--8---cut here---start-8---
;; turn on `flyspell' when changing a buffer which was unmodified
(defvar my-flyspell-major-mode-list
  '(html-mode
latex-mode
message-mode
muse-mode
nxml-mode
org-mode  ; FIXME If uncommented, flyspell gets crazy!?
text-mode))

(add-hook 'first-change-hook
  (lambda ()
(when (and (memq major-mode my-flyspell-major-mode-list)
   (not flyspell-mode))
  (my-turn-on-flyspell-french

(defun my-turn-on-flyspell-french ()
  Unconditionally turn on flyspell-mode (in French) and call
`flyspell-buffer'.
  (interactive)
  (flyspell-mode 1)
  (ispell-change-dictionary francais)
  (flyspell-buffer))
--8---cut here---end---8---

When doing so, Org-mode buffers get spelled, but my `.emacs' as well. I mean,
not only the comments and the strings, but also the code itself... Don't
understand at all this impact...

Commenting the `org-mode' line returns me with the correct spelling
(prog-aware, I should say) of my Emacs configuration file, but -- then -- my
Org-mode buffers aren't still not spelled anymore...

FYI, I am using:

/usr/share/emacs/site-lisp/dictionaries-common/flyspell.el

from a fresh Ubuntu 9.04 installation, that is version:

   FSF emacs CVS20090116(r1.141) + Debian `dictionaries-common' changes (like
xemacs compatibility)

BTW, I don't understand that neither in that version, neither in:

http://www-sop.inria.fr/members/Manuel.Serrano/flyspell/flyspell-1.7o.el

the variable `flyspell-prog-mode-hook' is referenced but does not exist.

Is this anything here someone can help about?

Many thanks in advance...

Best regards,
  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


Re: [Orgmode] Calendar export questions (ical html)

2009-07-28 Thread Michel Blanc
Richard Riley a écrit :

 FYI and still half asleep here, I think you can do the name. here is my
 ical cust section:
 
 
   org-combined-agenda-icalendar-file ~/webs/richardriley/sync/org.ics
   org-icalendar-include-todo t
   org-icalendar-combined-name (quote Richard Riley ORG)
   org-icalendar-use-scheduled '(todo-due  event-if-todo event-if-not-todo)
   org-icalendar-use-deadline '(todo-due event-if-todo event-if-not-todo)
   org-icalendar-timezone Europe/Berlin
   org-icalendar-include-bbdb-anniversaries t
 ;  org-icalendar-timezone nil
   org-icalendar-store-UID t

Hey Richard,

Woohoo it seems that this solves everything !
I had to fiddle a bit (again, my Elisp abilities are more than lame) to
make it work for my 2 agendas. Here is my .emacs section if it can help
anyone :

8===8===8===
(setq org-agenda-custom-commands
  '((h Home-related tasks
 ((tags @home)
  (tags-todo @home))
 ((org-agenda-ndays 300)
  (org-icalendar-include-todo t)
  (org-icalendar-combined-name Perso)
  (org-icalendar-use-scheduled '(todo-due  event-if-todo
event-if-not-todo))
  (org-icalendar-use-deadline '(todo-due event-if-todo
event-if-not-todo)))
 (~/org/homecal.ics ~/org/homecal.html))
(w Work-related tasks
 ((tags @work)
  (tags-todo @work))
 ((org-agenda-ndays 300)
  (org-icalendar-include-todo t)
  (org-icalendar-combined-name Work)
  (org-icalendar-use-scheduled '(todo-due  event-if-todo
event-if-not-todo))
  (org-icalendar-use-deadline '(todo-due event-if-todo
event-if-not-todo)))
 (~/org/workcal.ics ~/org/workcal.html
8===8===8===

Now TODOs dates are exported (DEADLINEs and SCHEDULED) and I realize how
late I am in my work playing too much with Org mode :)

I'll drop HTML export now that ICS works perfectly. Too bad GoogleAgenda
refresh is so random...

Thanks a lot Richard for the tips,

M
-- 
Michel Blanc


___
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] Calendar export questions (ical html)

2009-07-28 Thread Bastien
Richard Riley rileyrg...@googlemail.com writes:

 FYI and still half asleep here, I think you can do the name. here is my
 ical cust section:


   org-combined-agenda-icalendar-file ~/webs/richardriley/sync/org.ics
   org-icalendar-include-todo t
   org-icalendar-combined-name (quote Richard Riley ORG)
   org-icalendar-use-scheduled '(todo-due  event-if-todo event-if-not-todo)
   org-icalendar-use-deadline '(todo-due event-if-todo event-if-not-todo)
   org-icalendar-timezone Europe/Berlin
   org-icalendar-include-bbdb-anniversaries t
 ;  org-icalendar-timezone nil
   org-icalendar-store-UID t

Very useful - thanks for this!

-- 
 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


Re: [Orgmode] Calendar export questions (ical html)

2009-07-28 Thread Bastien
Michel Blanc mbl...@erasme.org writes:

 8===8===8===
 (setq org-agenda-custom-commands
   '((h Home-related tasks
  ((tags @home)
   (tags-todo @home))
  ((org-agenda-ndays 300)
   (org-icalendar-include-todo t)
   (org-icalendar-combined-name Perso)
   (org-icalendar-use-scheduled '(todo-due event-if-todo \ 
  event-if-not-todo))
   (org-icalendar-use-deadline '(todo-due event-if-todo \
  event-if-not-todo)))

Btw, unless you use different global values for the variables
`org-icalendar-use-deadline' and sisters, maybe you can simply
add them to your Org configuration?

-- 
 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


Re: [Orgmode] Org-mode + flyspell = too much (programming code is screened)

2009-07-28 Thread Richard Riley
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hello,

 I've sent this message to Emacs group one month ago. Never got any reply.
 Maybe I'll have more chance here...

 I'd want to have flyspell reporting me spelling mistakes in Org-mode.

 I did update my `.emacs' this way:



 ;; turn on `flyspell' when changing a buffer which was unmodified
 (defvar my-flyspell-major-mode-list
   '(html-mode
 latex-mode
 message-mode
 muse-mode
 nxml-mode
 org-mode  ; FIXME If uncommented, flyspell gets crazy!?
 text-mode))

 (add-hook 'first-change-hook
   (lambda ()
 (when (and (memq major-mode my-flyspell-major-mode-list)
(not flyspell-mode))
   (my-turn-on-flyspell-french

 (defun my-turn-on-flyspell-french ()
   Unconditionally turn on flyspell-mode (in French) and call
 `flyspell-buffer'.
   (interactive)
   (flyspell-mode 1)
   (ispell-change-dictionary francais)
   (flyspell-buffer))



 When doing so, Org-mode buffers get spelled, but my `.emacs' as well. I mean,
 not only the comments and the strings, but also the code itself... Don't
 understand at all this impact...

 Commenting the `org-mode' line returns me with the correct spelling
 (prog-aware, I should say) of my Emacs configuration file, but -- then -- my
 Org-mode buffers aren't still not spelled anymore...

 FYI, I am using:

 /usr/share/emacs/site-lisp/dictionaries-common/flyspell.el

 from a fresh Ubuntu 9.04 installation, that is version:

FSF emacs CVS20090116(r1.141) + Debian `dictionaries-common' changes (like
 xemacs compatibility)

 BTW, I don't understand that neither in that version, neither in:

 http://www-sop.inria.fr/members/Manuel.Serrano/flyspell/flyspell-1.7o.el

 the variable `flyspell-prog-mode-hook' is referenced but does not exist.

 Is this anything here someone can help about?

 Many thanks in advance...

 Best regards,
   Seb

I can only tell you it works fine for with Debian (Ubuntu's Dad ..) with
the following set up:

,
| (setq 
|  ispell-use-framepop-p t
|  ispell-dictionary british
|  ispell-local-dictionary british
|  ispell-silently-savep t
|  ispell-parser 'tex
|  flyspell-sort-corrections nil
|  )
| 
| (setq-default ispell-program-name aspell)
| 
| (add-hook 'text-mode-hook (lambda()(interactive)(flyspell-mode t)))
| 
| (define-key flyspell-mode-map (kbd C-+) 
'flyspell-check-previous-highlighted-word)
| (define-key flyspell-mode-map (kbd C-#) 
'flyspell-auto-correct-previous-word)
| (define-key flyspell-mode-map (kbd S-f2) 'ispell-word)
| (define-key flyspell-mode-map (kbd f2) 'flyspell-auto-correct-word)
`

and then

,
| (add-hook 'org-mode-hook
|   (lambda ()
| ;; yasnippet
| (make-variable-buffer-local 'yas/trigger-key)
| (setq yas/trigger-key [tab])
| (define-key yas/keymap [tab] 'yas/next-field-group)
| ;; flyspell mode to spell check everywhere
| (flyspell-mode 1)))
`



regards

r.
 


___
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] Org-mode + flyspell = too much (programming code is screened)

2009-07-28 Thread Sebastian Rose
Hi Sébastien,


this is, what I do to activate flyspell, and it doesn't cause any
problems here:


   (add-hook 'text-mode-hook 'turn-on-flyspell)
   (add-hook 'org-mode-hook 'turn-on-flyspell)
   (add-hook 'message-mode-hook 'turn-on-flyspell)


Keeps it simple...


  Sebastian


Sébastien Vauban wxhgmqzgw...@spammotel.com writes:
 Hello,

 I've sent this message to Emacs group one month ago. Never got any reply.
 Maybe I'll have more chance here...

 I'd want to have flyspell reporting me spelling mistakes in Org-mode.

 I did update my `.emacs' this way:


 ;; turn on `flyspell' when changing a buffer which was unmodified
 (defvar my-flyspell-major-mode-list
   '(html-mode
 latex-mode
 message-mode
 muse-mode
 nxml-mode
 org-mode  ; FIXME If uncommented, flyspell gets crazy!?
 text-mode))

 (add-hook 'first-change-hook
   (lambda ()
 (when (and (memq major-mode my-flyspell-major-mode-list)
(not flyspell-mode))
   (my-turn-on-flyspell-french

 (defun my-turn-on-flyspell-french ()
   Unconditionally turn on flyspell-mode (in French) and call
 `flyspell-buffer'.
   (interactive)
   (flyspell-mode 1)
   (ispell-change-dictionary francais)
   (flyspell-buffer))

 When doing so, Org-mode buffers get spelled, but my `.emacs' as well. I mean,
 not only the comments and the strings, but also the code itself... Don't
 understand at all this impact...

 Commenting the `org-mode' line returns me with the correct spelling
 (prog-aware, I should say) of my Emacs configuration file, but -- then -- my
 Org-mode buffers aren't still not spelled anymore...

 FYI, I am using:

 /usr/share/emacs/site-lisp/dictionaries-common/flyspell.el

 from a fresh Ubuntu 9.04 installation, that is version:

FSF emacs CVS20090116(r1.141) + Debian `dictionaries-common' changes (like
 xemacs compatibility)

 BTW, I don't understand that neither in that version, neither in:

 http://www-sop.inria.fr/members/Manuel.Serrano/flyspell/flyspell-1.7o.el

 the variable `flyspell-prog-mode-hook' is referenced but does not exist.

 Is this anything here someone can help about?

 Many thanks in advance...

 Best regards,
   Seb

-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.r...@emma-stil.de, sebastian_r...@gmx.de
Http:  www.emma-stil.de


___
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] Export plots made with org-plot

2009-07-28 Thread Daniel Clemente

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


Re: [Orgmode] Calendar export questions (ical html)

2009-07-28 Thread Michel Blanc
Bastien a écrit :
 Michel Blanc mbl...@erasme.org writes:
 
   (org-icalendar-use-scheduled '(todo-due event-if-todo \ 
  event-if-not-todo))
   (org-icalendar-use-deadline '(todo-due event-if-todo \
  event-if-not-todo)))
 
 Btw, unless you use different global values for the variables
 `org-icalendar-use-deadline' and sisters, maybe you can simply
 add them to your Org configuration?
 

Indeed. I started this way because I didn't know how org-agenda-ndays
would impact things and I ended up stuffin everything there. But when I
get to stable situation I'll do some factorizing.

Thanks,

M
-- 
Michel Blanc - Systèmes/Réseaux Erasme
Erasme/CG69/Saint Clément les Places/FR69930
T +33-474706840 mbl...@erasme.org
http://reseau.erasme.org
FA67 4EDA D648 9E50 BFA4 3F29 FDF5 4971 24B3 5C22


___
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] Faces in agenda view

2009-07-28 Thread Paul Mead
Hi

I was just looking through options in org-customize because I'd like to
change the colours used in the agenda view - currently items nearing a
deadline show as red, and items actually on their deadline are pink.

I'd like my upcoming deadline items to be in less alarmist colours
(perhaps use the pink) and only those on or past deadline in red
(similar to scheduled tasks which go red after the scheduled date).

Problem is, I got a bit confused by the various options which define
warning states for example.

Can anyone give me a quick and easy way of changing this without
breaking something else?

Thanks
Paul



___
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] Faces in agenda view

2009-07-28 Thread Bastien
Paul Mead paul.d.m...@gmail.com writes:

 Can anyone give me a quick and easy way of changing this without
 breaking something else?

Go to the face you want to change and hit M-x customize-face RET

-- 
 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


Re: [Orgmode] Re: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread Bastien
User spamfilteracco...@gmail.com writes:

 I added the timer, because I didn't know in which order the hooks
 are run. If org-mode hook runs first and then saveplace's hook
 which restores point then the above code has no effect.

saveplace adds the hook at the end of the hooks list, by calling
add-hook like this:

  (add-hook 'find-file-hook 'save-place-find-file-hook t)
   ^

The `t' means put this hook at the end.

So your org-mode hook will be safely called *before* saveplace's.

-- 
 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


Re: [Orgmode] Re: Automatic indentation of org tree

2009-07-28 Thread Bastien
User spamfilteracco...@gmail.com writes:

 It is a possible solution to the clean view problem mentioned in
 the org manuual:

   Indentation of text below headlines

   You may indent text below each headline to make the left
   boundary line up with the headline, like

 *** 3rd level
 more text, now indented


   A good way to get this indentation is by hand, and Org supports
   this with paragraph filling, line wrapping, and structure
   editing99 preserving or adapting the indentation as
   appropriate. A different approach would be to have a way to
   automatically indent lines according to outline structure by
   adding overlays or text properties. But I have not yet found a
   robust and efficient way to do this in large files.

 http://orgmode.org/manual/#Clean-view


 The solution I posted implements that different approach, so you
 don't have to do the indentation by hand.

Okay, I see.

I tested your code but there are several problems: it is not usable on
big files, and even on small files the auto-indentation is confusing.
For example, stars get indented while there should not.  

I guess this is still work-in-progress -- hope you'll find ways to fix
the problems above!

-- 
 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