Re: [Orgmode] Publishing Projects to Html

2009-07-06 Thread Bastien
Bastien bastiengue...@googlemail.com writes:

 Warning: Unable to include '/cgi-bin/omega.cgi?query=publishgroup=
 gmane.emacs.orgmode' - request execution failed in 
 /home/xapian/html/index.php
 on line 105

 This is a problem on Gmane, I wrote to the maintainer, thanks.

The problem is fixed, the search on gmane archives is now okay.

-- 
 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] indent list item and change list type automatically

2009-07-06 Thread Eric S Fraga
At Sun, 5 Jul 2009 18:26:48 -0400,
Raffi R wrote:
 
 Hello,
 
 Here is the current jot-mode (I think...the latest version is at my

Thanks!  I'll give this a try over the next few days (I have a big
meeting tomorrow where this could come in quite useful) and will get
back to you.

eric


___
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] Problem with recurring timestamps

2009-07-06 Thread Martin Pohlack
Hi all,

I have problems with the following recurring timestamp:
--
* TODO test3
  DEADLINE: 2009-07-07 Di 15:00 +1w -1h
--

When I mark the item as done, it loses the warning period (-1h) and the
recurrence markup (+1w).  Marking it as done again, will finally mark it
as done.

Org-version reports 6.21b.

Cheers,
Martin Pohlack


___
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: Problem with recurring timestamps

2009-07-06 Thread Tassilo Horn
Martin Pohlack m...@os.inf.tu-dresden.de writes:

Hi Martin,

 I have problems with the following recurring timestamp:
 --
 * TODO test3
   DEADLINE: 2009-07-07 Di 15:00 +1w -1h
 --

 When I mark the item as done, it loses the warning period (-1h) and
 the recurrence markup (+1w).  Marking it as done again, will finally
 mark it as done.

 Org-version reports 6.21b.

I can confirm that with 6.28trans.  When removing the warning period, it
works as expected.  Also, when removing the recurrence markup, changing
the item to DONE keeps the -1h intact.

Bye,
Tassilo



___
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: Problem with recurring timestamps

2009-07-06 Thread Martin Pohlack
Tassilo Horn wrote:
 Martin Pohlack m...@os.inf.tu-dresden.de writes:
 
 Hi Martin,
 
 I have problems with the following recurring timestamp:
 --
 * TODO test3
   DEADLINE: 2009-07-07 Di 15:00 +1w -1h
 --

 When I mark the item as done, it loses the warning period (-1h) and
 the recurrence markup (+1w).  Marking it as done again, will finally
 mark it as done.

 Org-version reports 6.21b.
 
 I can confirm that with 6.28trans.  When removing the warning period, it
 works as expected.  Also, when removing the recurrence markup, changing
 the item to DONE keeps the -1h intact.

The problem seems to be that [+-]xh is not yet supported.

Given that timestamps can have an hour and minute component, the h
syntax seems logical, right?

Cheers,
Martin Pohlack


___
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] empty-line-terminates-plain-lists and indentation

2009-07-06 Thread Carsten Dominik


On Jul 6, 2009, at 7:33 AM, Scott Jaderholm wrote:


Hi,

Is (setq org-empty-line-terminates-plain-lists t) supposed to change
indentation in emacs org buffers?


I guess it would be nice if it did, but this is not yet implemented.

- Carsten



Even with the above setting, the following snippet:

* Heading
Some text:
- a
- b

More text:
- a
- b

is automatically indented as follows:

* Heading
 Some text:
 - a
 - b

   More text:
   - a
   - b

Thanks,
Scott


___
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: Problem with recurring timestamps

2009-07-06 Thread Carsten Dominik


On Jul 6, 2009, at 12:19 PM, Martin Pohlack wrote:


Carsten Dominik wrote:

On Jul 6, 2009, at 11:53 AM, Martin Pohlack wrote:


Tassilo Horn wrote:

Martin Pohlack m...@os.inf.tu-dresden.de writes:

Hi Martin,


I have problems with the following recurring timestamp:
--
* TODO test3
DEADLINE: 2009-07-07 Di 15:00 +1w -1h
--

When I mark the item as done, it loses the warning period (-1h)  
and
the recurrence markup (+1w).  Marking it as done again, will  
finally

mark it as done.

Org-version reports 6.21b.

I can confirm that with 6.28trans.  When removing the warning
period, it
works as expected.  Also, when removing the recurrence markup,
changing
the item to DONE keeps the -1h intact.

The problem seems to be that [+-]xh is not yet supported.


yes, prewarning periods for deadlines have to de d, w, m, or y.
Hours and minutes are not supported.  How are you planing to use  
this?


I have a weekly recurring event which is due Friday 17:00, but I can
only start working on it shortly before, say 2 h.

I would like it not to appear in the agenda until 15:00 at Friday,  
or it
could appear at Friday's agenda, with an extended timestamp (15:00),  
so

I know it has to be done later.

I could also be handled like this item:

--
* TODO test4
 DEADLINE: 2009-07-06 Mo 14:00 SCHEDULED: 2009-07-06 Mo 13:00
--


This looks like a very good way to handle this use case.

The daily agenda is really about what is up today, and it
should tell you in the morning what stuff is waiting for you
instead of giving you nasty surprises at 3 in the afternoon.

You can add a repeater to both the deadline and the
scheduled item, they will both be kicked forward when
you mark the entry done.

HTH

- Carsten



In the agenda:

Monday  6 July 2009 W28
  8:00.. 
 10:00.. 
 12:00.. 
file.org:13:00.. Scheduled:  TODO test4
file.org:14:00.. Deadline:   TODO test4
 14:00.. 
 16:00.. 
 18:00.. 
 20:00.. 

Cheers,
Martin Pohlack




___
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] :link-up, :link-home

2009-07-06 Thread Carsten Dominik

Hi Kyle,

currently :link-up and :link-home only show up when you use
org-info.js Javascript to display the file.

I would even say this is a bug.  Any proposals on how these
links should be included in normal HTML output? Sebastian,
I am of course looking at you here :-)

- Carsten

On Jul 5, 2009, at 9:52 PM, Kyle Sexton wrote:

What is the proper format for those variables?  I've tried to set  
them several different ways:


http://www.sitename.com
index.html
http://www.sitename.com;
a href='index.html'/a

But nothing seems to change in my exported files.  I've also tried  
setting them through the org file's local customisations (#+LINK_UP,  
etc..)


The variable description that I found in emacs help says:

Documentation:
Where should the UP link of exported HTML pages lead?

Is there another help section I can use that would give me an  
example of proper formatting?


Thanks!

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




___
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: Problem with recurring timestamps

2009-07-06 Thread Martin Pohlack
Carsten Dominik wrote:
 On Jul 6, 2009, at 11:53 AM, Martin Pohlack wrote:
 
 Tassilo Horn wrote:
 Martin Pohlack m...@os.inf.tu-dresden.de writes:

 Hi Martin,

 I have problems with the following recurring timestamp:
 --
 * TODO test3
  DEADLINE: 2009-07-07 Di 15:00 +1w -1h
 --

 When I mark the item as done, it loses the warning period (-1h) and
 the recurrence markup (+1w).  Marking it as done again, will finally
 mark it as done.

 Org-version reports 6.21b.
 I can confirm that with 6.28trans.  When removing the warning  
 period, it
 works as expected.  Also, when removing the recurrence markup,  
 changing
 the item to DONE keeps the -1h intact.
 The problem seems to be that [+-]xh is not yet supported.
 
 yes, prewarning periods for deadlines have to de d, w, m, or y.
 Hours and minutes are not supported.  How are you planing to use this?

I have a weekly recurring event which is due Friday 17:00, but I can
only start working on it shortly before, say 2 h.

I would like it not to appear in the agenda until 15:00 at Friday, or it
could appear at Friday's agenda, with an extended timestamp (15:00), so
I know it has to be done later.

I could also be handled like this item:

--
* TODO test4
  DEADLINE: 2009-07-06 Mo 14:00 SCHEDULED: 2009-07-06 Mo 13:00
--

In the agenda:

Monday  6 July 2009 W28
   8:00.. 
  10:00.. 
  12:00.. 
 file.org:13:00.. Scheduled:  TODO test4
 file.org:14:00.. Deadline:   TODO test4
  14:00.. 
  16:00.. 
  18:00.. 
  20:00.. 

Cheers,
Martin Pohlack


___
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] Preventing line breaks in (HTML) published description lists

2009-07-06 Thread Sebastian Rose
Paul Michael Reilly pajato...@gmail.com writes:
 I added a plain list to my file:

 ...
   - term1 :: this means something
   - term2 :: this means something else
   - term3 :: and something different still
 ...

 fully expecting the term and the description rendered in HTML to be on the 
 same
 line as is shown in the Latex published Org Mode manual.  But the items were
 rendered as:

 ...
   term1
   this means something
   term2
   this means something else
   term3
   and something different still
 ...

 I suspect this might be an HTML artifact, nevertheless, how would I convince
 org-mode to arrange for the HTML rendering to attempt to keep the terms and
 descriptions on the same line?  An example or reference would be much
 appreciated.


Don't use a definition list at all:

   - *term1* this means something
   - *term2* this means something else
   - *term3* and something different still



   Sebastian


___
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 timestamp in headline

2009-07-06 Thread henry atting
Mmh, what option do I have to use if I want to display the timestamp in
a headline when exporting to html?

Regards
henry


___
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: export timestamp in headline

2009-07-06 Thread henry atting
On Mo, Jul 06 2009, henry atting wrote:

 Mmh, what option do I have to use if I want to display the timestamp in
 a headline when exporting to html?

Sorry, wrong question. What I really want to know is how to display the
timestamp in the *table of contents*. ;)


___
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: Using simple css in HTML export ‏

2009-07-06 Thread Sebastian Rose
Charles Howard terminalbeach...@googlemail.com writes:
 Line 46 was already in the table of contents.

 I'm using org-mode 6.06, emacs 22.1.1, Ubuntu 8.04.


That must be it. ^^--- that's quite an old version.

The #+STYLE: feature was first documented in revision
3c916eeb385a688d6d99819aad217a49ed82de58 and added in
rev. c4375970d7050497290bc070361f09235cff5e47

... two revisions after the 6.06 release

(not a 100% sure, but looks like...)



So, to add the style, you need to either set it in your
`org-publish-project-alist' (see
http://orgmode.org/manual/Simple-example.html#Simple-example) or use a
special  comment section for a per file setup (see
http://orgmode.org/worg/code/org-info-js/#sec-4.2.1)


HTH

Sebastian






___
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] :link-up, :link-home

2009-07-06 Thread Sebastian Rose
Kyle Sexton k...@mocker.org writes:

 What is the proper format for those variables?  I've tried to set them
 several different ways:

 http://www.sitename.com
 index.html
 http://www.sitename.com;
 a href='index.html'/a


#+INFOJS_OPT: up:index.html home:/index.html



  Sebastian


___
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] :link-up, :link-home

2009-07-06 Thread Sebastian Rose
Carsten Dominik carsten.domi...@gmail.com writes:
 Hi Kyle,

 currently :link-up and :link-home only show up when you use
 org-info.js Javascript to display the file.

 I would even say this is a bug.  Any proposals on how these
 links should be included in normal HTML output? Sebastian,
 I am of course looking at you here :-)


This is hard to tell. I'd place them somewhere above the title or to the
very right next to the title.

But then again, we'd need an option to exclude those links for people
that use a menu anyway.

Things like this make me think of the old idea we've been talking about
from time to time:

  Have a somewhat template based export (doesn't generic export work a
  little bit like that?) and just transform everything to HTML ( `' =
  `amp;', export blocks, resolve internal links...).



Simple solution (links above title in this case):

div style=text-align:right;font-size:70%;white-space:nowrap;
  a accesskey=h href=./link_up.html UP /a
  |
  a accesskey=H href=../link_home.html HOME /a
/div
h1 id=title THE TITLE /h1



What do the others think?



  Sebastian


___
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] :link-up, :link-home

2009-07-06 Thread Carsten Dominik


On Jul 6, 2009, at 1:58 PM, Sebastian Rose wrote:


Carsten Dominik carsten.domi...@gmail.com writes:

Hi Kyle,

currently :link-up and :link-home only show up when you use
org-info.js Javascript to display the file.

I would even say this is a bug.  Any proposals on how these
links should be included in normal HTML output? Sebastian,
I am of course looking at you here :-)



This is hard to tell. I'd place them somewhere above the title or to  
the

very right next to the title.

But then again, we'd need an option to exclude those links for people
that use a menu anyway.


We could only insert this part if the links are defined,
and org-info could swallow this part?

- Carsten



Things like this make me think of the old idea we've been talking  
about

from time to time:

 Have a somewhat template based export (doesn't generic export work a
 little bit like that?) and just transform everything to HTML ( `' =
 `amp;', export blocks, resolve internal links...).



Simple solution (links above title in this case):

div style=text-align:right;font-size:70%;white-space:nowrap;
 a accesskey=h href=./link_up.html UP /a
 |
 a accesskey=H href=../link_home.html HOME /a
/div
h1 id=title THE TITLE /h1



What do the others think?



 Sebastian




___
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: Problem with recurring timestamps

2009-07-06 Thread Martin Pohlack
Carsten Dominik wrote:
[...]
 I could also be handled like this item:

 --
 * TODO test4
  DEADLINE: 2009-07-06 Mo 14:00 SCHEDULED: 2009-07-06 Mo 13:00
 --
 
 This looks like a very good way to handle this use case.
 
 The daily agenda is really about what is up today, and it
 should tell you in the morning what stuff is waiting for you
 instead of giving you nasty surprises at 3 in the afternoon.
 
 You can add a repeater to both the deadline and the
 scheduled item, they will both be kicked forward when
 you mark the entry done.

Ahh, this solves my problem, thanks.  I didn't know they were completed
in one step.

Cheers,
Martin Pohlack


PS.: There is only this little symmetry itching thing left ;-).


___
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] Preventing line breaks in (HTML) published description lists

2009-07-06 Thread Paul Michael Reilly

On 07/06/2009 06:46 AM, Sebastian Rose wrote:

Paul Michael Reillypajato...@gmail.com  writes:
   

I added a plain list to my file:

...
   - term1 :: this means something
   - term2 :: this means something else
   - term3 :: and something different still
...

fully expecting the term and the description rendered in HTML to be on the same
line as is shown in the Latex published Org Mode manual.  But the items were
rendered as:

...
   term1
   this means something
   term2
   this means something else
   term3
   and something different still
...

I suspect this might be an HTML artifact, nevertheless, how would I convince
org-mode to arrange for the HTML rendering to attempt to keep the terms and
descriptions on the same line?  An example or reference would be much
appreciated.
 



Don't use a definition list at all:

- *term1* this means something
- *term2* this means something else
- *term3* and something different still



Sebastian
   
FWIW, this solution is better than using a CSS style based solution but 
it had the nit that the bullet (o) is present in the output (of course) 
where the description list had no bullet.


After playing around with this a bit I decided that your point, don't 
use a description list, is well taken.   I wound up using a simple table 
instead and got very satisfying results.


Thanks,

-pmr

___
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: export timestamp in headline

2009-07-06 Thread Carsten Dominik


On Jul 6, 2009, at 1:10 PM, henry atting wrote:


On Mo, Jul 06 2009, henry atting wrote:

Mmh, what option do I have to use if I want to display the  
timestamp in

a headline when exporting to html?


Sorry, wrong question. What I really want to know is how to display  
the

timestamp in the *table of contents*. ;)


Hmmm, lets try to guess what the variable name might be.

something starting with org-
something containing stamp
something containing toc


M-x apropos-variable RET org.*stamp.*toc.* RET

http://www.pdsys.org/blog_files/WallE-Tada.mp3

:-)

- 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: export timestamp in headline

2009-07-06 Thread henry atting
On Mo, Jul 06 2009, Carsten Dominik wrote:

 On Jul 6, 2009, at 1:10 PM, henry atting wrote:

 On Mo, Jul 06 2009, henry atting wrote:

 Mmh, what option do I have to use if I want to display the
 timestamp in
 a headline when exporting to html?

 Sorry, wrong question. What I really want to know is how to display
 the
 timestamp in the *table of contents*. ;)

 Hmmm, lets try to guess what the variable name might be.

 something starting with org-
 something containing stamp
 something containing toc


 M-x apropos-variable RET org.*stamp.*toc.* RET

 http://www.pdsys.org/blog_files/WallE-Tada.mp3

Great, a riddle. And I solved it right away. Must be in good form, so
I'll go to the  races as soon as possible.

Many thanks ;-)

henry


___
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: indent list item and change list type automatically

2009-07-06 Thread Carsten Dominik


On Jun 29, 2009, at 9:51 AM, Rainer Stengele wrote:


Hi all,

I wonder if my question was too complicated or too stupid?


Not at all.  It is only that the implementation should still
allow flexibility to change list types if you wish and not
immediately get this change reversed.

I have now implemented the following which does follow your request:

(setq org-list-demote-modify-bullet
  '((- . *) (* . -)))

This works for entering lists as you describe it.  It does not
work for modifying lists by demotion/promotion, so you mileage may
vary.  It allows you to enter an ordered list and not have it
messed up.

Comments are welcome.

- Carsten



Thanks for considering.

Rainer

Rainer Stengele schrieb:

Hi all,

using org-mode for quite some time now I always look at operations  
(key

sequences) I repeat a lot of times.

A lot of times I start a list with an item and immediately indent the
next item as subitem.

From

- item 1
- subitem 11

I go to

- item 1
 - subitem 11

via M-right. Then I always want to change the style of the subitem
list to *. I do this via S-right-right.

I wonder how others work. I would like to automatically have  
changed the

subitem list type to * as soon as I indent via Alt-right. Next
indentation should go back to -. etc.

Maybe we could introduce a variable that sets the order of standard  
list

item types, in my case: - * - * - * - * as in


- item 1
 * subitem 11
   - subitem 111
 * subitem 111
...

very special I know but I try to reduce the keypressings as much as
possible. Any other suggestions?


Rainer



___
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




___
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: export timestamp in headline

2009-07-06 Thread henry atting
On Mo, Jul 06 2009, henry atting wrote:

 On Mo, Jul 06 2009, Carsten Dominik wrote:

 On Jul 6, 2009, at 1:10 PM, henry atting wrote:

 On Mo, Jul 06 2009, henry atting wrote:

 Mmh, what option do I have to use if I want to display the
 timestamp in
 a headline when exporting to html?

 Sorry, wrong question. What I really want to know is how to display
 the
 timestamp in the *table of contents*. ;)

 Hmmm, lets try to guess what the variable name might be.

 something starting with org-
 something containing stamp
 something containing toc


 M-x apropos-variable RET org.*stamp.*toc.* RET

 http://www.pdsys.org/blog_files/WallE-Tada.mp3

 Great, a riddle. And I solved it right away. Must be in good form, so
 I'll go to the  races as soon as possible.

I am afraid this is going to be my wonderfull
don't-ask-clearly-but-bit-by-bit-post... 
In my feeling of elation of having solved the riddle I forgot to mention
that I am looking for a per-file solution, something that can be done
with #+OPTIONS: ...


___
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-store-link forgets external filename?

2009-07-06 Thread Carsten Dominik


On Jul 6, 2009, at 12:18 AM, Stefan Vollmar wrote:


Dear Carsten,

On 05.07.2009, at 23:27, Carsten Dominik wrote:


Hi Stefan,

the magic of id: links is just that they are globally unique, and  
that

they will find the right target even if you move the target entry
from one file to another.  Therefore, export to HTML should  
automatically insert the correct file name.  And this is just how  
it works for me.


thanks for the quick and detailed reply!

[...]

Try M-x org-id-update-id-location to fix ID confusion.


indeed everything now works just fine after calling org-id-update-id- 
location in all files. However, the question remains: what went  
wrong and is this a rare problem? Maybe some copy-paste-artefact?


This is clearly a possibility.



One other thing: I mentioned on the list a short while ago that we  
need a list of headings with their corresponding links in the HTML  
export to generate online help in QtAssistant format. I might even  
get one of my students to look into it - I assume one could hook  
into some HTML export functions. Could you give us a hint on where  
to look?


  (org-map-entries
   '(list level
  (org-no-properties (org-get-heading 'notags))
  (or (org-entry-get nil CUSTOM_ID)
  (org-entry-get nil ID)))
   LEVEL=3 'file)

will return a list of elements, each with level (1-3), heading, and
custom or U identifier that can be used in a link.

I that what you are looking for?

- Carsten

P.S.  Yes, the mapping API is *very* powerful, a pity that
not more people use it.



Many thanks in advance.
Warm regards,
Stefan




HTH

- Carsten



On Jul 5, 2009, at 3:09 PM, Stefan Vollmar wrote:


Hello,

I just noticed that there seems to be a problem with org-store- 
link (or in that context) with the current development version  
(6.28trans).


I want to insert a link to one section of one org-file into  
another org-file, so I change to the file with the section I want  
to link to and use org-store-link (that section already has an ID  
property; the heading's name is displayed in the minibuffer -  
fine). I return to the file where I want to insert the link and  
use org-insert-link which offers the id I had just stored.


(1) However, only the id is inserted and org seems to forget about  
the other file's name, literal hyperlinks yields:

[[id:2806BA39-087E-4E2E-89E6-6DFA332727D2][some heading]]
When exporting to HTML, the link is rendered to a local link  
(here: #2806BA39...) of the current file rather than ./my-other- 
org-file#2806BA39..., which is a problem, of course. Clicking on  
the link in org-mode will also not open the file.


(2) org-insert-link offers a list of ids which have been stored  
with the corresponding headings added on the right, using Arrow-Up  
and Arrow-Down will show the selected id in the minibuffer. As I  
want org to come up with unique ids for sections automatically (it  
does), I am usually not interested what ids it actually generates  
and I would suggest a different approach with org-insert-link:  
have a list of headings instead of a list of ids and show the  
selected link's heading, not its id, in the minibuffer, sorry if  
this has been discussed before. There may be cases where it is  
important to see a link's id in the selection so one could have an  
optional mode that adds the ids to the list.


Warm regards,
Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.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




--
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.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] org-beginning-of-line vs visual-line-mode

2009-07-06 Thread Rudi Schlatte

Greetings,

I run emacs cvs head and the org-mode that is bundled with it.  Visual- 
line-mode is turned on.


The display part of visual-line-mode (breaking long lines into  
paragraphs visually) works as expected, but C-a (org-beginning-of- 
line) jumps to the start of the paragraph (i.e. start of the  
physical line).  It would be nice if C-a jumped to the beginning of  
the screen line.


Cheers, and thanks for an excellent tool for writing!

Rudi



___
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: Using simple css in HTML export‏

2009-07-06 Thread Charles Howard
Thanks. I guess I'll have to upgrade.

Actually on looking through the org-6.06b dir I find no css files at all.

Thanks again. Charles

2009/7/6 Sebastian Rose sebastian_r...@gmx.de

 Charles Howard terminalbeach...@googlemail.com writes:
  Line 46 was already in the table of contents.
 
  I'm using org-mode 6.06, emacs 22.1.1, Ubuntu 8.04.


 That must be it. ^^--- that's quite an old version.

 The #+STYLE: feature was first documented in revision
 3c916eeb385a688d6d99819aad217a49ed82de58 and added in
 rev. c4375970d7050497290bc070361f09235cff5e47

 ... two revisions after the 6.06 release

 (not a 100% sure, but looks like...)



 So, to add the style, you need to either set it in your
 `org-publish-project-alist' (see
 http://orgmode.org/manual/Simple-example.html#Simple-example) or use a
 special  comment section for a per file setup (see
 http://orgmode.org/worg/code/org-info-js/#sec-4.2.1)


 HTH

    Sebastian






___
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] :link-up, :link-home

2009-07-06 Thread Kyle Sexton
On Mon, Jul 6, 2009 at 5:08 AM, Carsten Dominik
carsten.domi...@gmail.comwrote:

 Hi Kyle,

 currently :link-up and :link-home only show up when you use
 org-info.js Javascript to display the file.

 I would even say this is a bug.  Any proposals on how these
 links should be included in normal HTML output? Sebastian,
 I am of course looking at you here :-)

 - Carsten


Glad to know it's a potential bug and not me going crazy. :)  Perhaps as a
short term fix the variable documentation for things dependent on infojs
could have that as a note.

The way I would like to use the link-up and link-home feature is to have
those links point back to my main org index.html that is automatically
generated.  I can then have a list of all my notes and when someone clicks
in the note they aren't trapped in that note.  Very similar to how it's
accomplished in infojs with the 'showall' option.

I'm doing all this with a pre and post amble that load a long header and
footer, so I don't think infojs will work.  In fact, when trying to include
infojs with the heater and footer it looked like it was disabled.  I'm
trying to move my entire website to being generated from org-mode. :P

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


Re: [Orgmode] Re: export timestamp in headline

2009-07-06 Thread Carsten Dominik


On Jul 6, 2009, at 3:57 PM, henry atting wrote:


On Mo, Jul 06 2009, henry atting wrote:


On Mo, Jul 06 2009, Carsten Dominik wrote:


On Jul 6, 2009, at 1:10 PM, henry atting wrote:


On Mo, Jul 06 2009, henry atting wrote:


Mmh, what option do I have to use if I want to display the
timestamp in
a headline when exporting to html?


Sorry, wrong question. What I really want to know is how to display
the
timestamp in the *table of contents*. ;)


Hmmm, lets try to guess what the variable name might be.

something starting with org-
something containing stamp
something containing toc


M-x apropos-variable RET org.*stamp.*toc.* RET

http://www.pdsys.org/blog_files/WallE-Tada.mp3


Great, a riddle. And I solved it right away. Must be in good form, so
I'll go to the  races as soon as possible.


I am afraid this is going to be my wonderfull
don't-ask-clearly-but-bit-by-bit-post...
In my feeling of elation of having solved the riddle I forgot to  
mention

that I am looking for a per-file solution, something that can be done
with #+OPTIONS: ...


OK, there really has to be an end of what we add to the OPTIONS line  
with

abbreviations for all kinds of things.

Get the latest git version, and then use

#+BIND: org-export-remove-timestamps-from-toc t

This is a general mechanism that will work for any variable that should
be bound to a special value during export, and that is not already
covered by the #+OPTIONS or a similar line.

- 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




___
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: Exporting to a Beamer presentation

2009-07-06 Thread Sébastien Vauban
Hi Nick,

 BTW, any solution for exporting to a Beamer presentation? I'd be very
 very very interested by anything in that direction. That's the last piece
 of the whole puzzle, IMHO.

 I did a beamer presentation in org-mode last month (1 hour, about 20
 slides). Here is a simplified version (I'll talk about some problems at
 the end).

 o org-export-latex-classes is augmented with a beamer element as follows:

 ,
 | (add-to-list 'org-export-latex-classes
 |'(beamer
 |  
 \\documentclass[11pt]{beamer}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{hyperref}\n\\usepackage{verbatim}\n\\setbeameroption{show
  notes}\n\\usetheme{Goettingen}\n\\useoutertheme{infolines}
 |  (\\begin{frame}\\frametitle{%s}\\begin{itemize} 
 \\end{itemize}\\end{frame}
 |   \\begin{frame}\\frametitle{%s}\\begin{itemize} 
 \\end{itemize}\\end{frame})
 |  (\\item{%s} . \\item*{%s})
 |  (\\end{itemize}\\note{ })))
 `

BTW, you'd better use `C-c M-m' for quoting your code. It will allow an easy
copy past of it... Like this:

--8---cut here---start-8---
C-c M-m runs the command message-mark-inserted-region, which is an interactive
compiled Lisp function in `message.el'.

It is bound to C-c M-m, menu-bar Message Insert Region Marked.

(message-mark-inserted-region beg end optional verbatim)

Mark some region in the current article with enclosing tags.
See `message-mark-insert-begin' and `message-mark-insert-end'.
If verbatim, use slrn style verbatim marks (#v+ and #v-).
--8---cut here---end---8---


 Excellent idea... [But] having done the above `add-to-list' in Emacs (with
 `C-x C-e'), I got a different exported file than yours. But really
 different [...]

 There is no text, in fact...
 Don't understand why...

 I don't understand why either, but it may be some setting in my setup
 or your setup that leads to the different behavior.

Spotted it down...

I am skipping even levels and only use odd levels for the outline:

--8---cut here---start-8---
(setq org-odd-levels-only t)
--8---cut here---end---8---

But your example had even levels...

So, changing:

--8---cut here---start-8---
** Reason 1
--8---cut here---end---8---

to:

--8---cut here---start-8---
*** Reason 1
--8---cut here---end---8---

solves the main issue, and let me test better this fantastic export...

Thanks Nick,
  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] :link-up, :link-home

2009-07-06 Thread Sebastian Rose
Kyle Sexton k...@mocker.org writes:
 The way I would like to use the link-up and link-home feature is to have
 those links point back to my main org index.html that is automatically
 generated.  I can then have a list of all my notes and when someone clicks
 in the note they aren't trapped in that note.  Very similar to how it's
 accomplished in infojs with the 'showall' option.

 I'm doing all this with a pre and post amble that load a long header and
 footer, so I don't think infojs will work.  In fact, when trying to include
 infojs with the heater and footer it looked like it was disabled.


Yes, org-info.js depends on a certain structure and on the table of
contents.

Currently, the search for org-export contents is started, is

div id=content

... All exported standard stuff here ...

/div

But we could use something like

org_html_manager.set(B, #idOfTheElement);

to change it (`B' is the internal name of that container after the
call to `make').

I think it will work with some additional changes.



   Sebastian


___
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] Strange hiccups when running in server

2009-07-06 Thread Martin Pohlack
Hi all,

I often edit org-mode files in my emacs server.  After some time,
org-mode behaves strangely and can only be brought back to normal by
rebooting the emacs server.

The symptom is that tree folding does not work anymore.  Everything is
expanded (also when loading new org files) and hitting tab, C-tab
etc. on items results in no action but the message “FOLDED” in the
minibuffer.

I tried to debug this but didn't get too far.

I'm using the following wrapper for (debug …) in order to capture all
the leaf-nodes of the backtraces when single stepping with ‘d’:

--
(defun debug-with-leaf-trace (rest debugger-args)
  Wrapper for debug which generates a backtrace for each step
and captures the current leave node in the backtrace into a
continous trace in another buffer.
  (interactive)
  (with-output-to-temp-buffer _backtraces (backtrace))
  (save-excursion
(set-buffer _backtraces)
(setq err1 (goto-line 4))
(setq start (point))
(setq err2 (beginning-of-line 2))
(setq end (point))
(if (and (eq err1 0) (eq err2 nil))
; this does not really append sometimes but inserts somewhere
; in the middle ?
(append-to-buffer _backtraces2 start end)
  (debug-print XXX\n))
  (debug debugger-args)))
--

I traced org-cycle with above's debug wrapper active on the following
file:

--debug_tab.org---
* a
  b
--

By evaling this:

(debug-on-entry 'org-cycle)
(setq debugger 'debug-with-leaf-trace)

then

  M-x show-all

in the debug_tab.org buffer to trace the closing of a tree part.

I single stepped through the first part but the diverse hooks took
forever to step through, so I hit ‘c’ several times later on in the
trace.

After a first glance, the traces do not show a significant difference
in the first part.  I'm quiet sure, that debugging somehow interferes
with the later part.  Anyway, please find the traces attached.

I'm not sure if this is a sensible approach to debugging this
problem.  How would you go about this?

Cheers,
Martin Pohlack
  implement-debug-on-entry()
* (org-load-modules-maybe)
* (when (or force (not org-modules-loaded)) (mapc (lambda ... ...) org-modules) 
(setq org-modules-loaded t))
* #[(cond rest body) \302\303BE\207 [cond body if progn] 4 
2151788]((or force (not org-modules-loaded)) (mapc (lambda (ext) 
(condition-case nil ... ...)) org-modules) (setq org-modules-loaded t))
* #[(cond rest body) \302\303BE\207 [cond body if progn] 4 
2151788]((or force (not org-modules-loaded)) (mapc (lambda (ext) 
(condition-case nil ... ...)) org-modules) (setq org-modules-loaded t))
* (when (or force (not org-modules-loaded)) (mapc (lambda ... ...) org-modules) 
(setq org-modules-loaded t))
* org-load-modules-maybe()
* (unless (run-hook-with-args-until-success (quote org-tab-first-hook)) (let* 
(... ... ... ... ... ...) (if ... ...) (cond ... ... ... ... ... ... ... ... 
... ... ... ... ... ... ...)))
* #[(cond rest body) \302\303BBB\207 [cond body if nil] 4 
2151976]((run-hook-with-args-until-success (quote org-tab-first-hook)) (let* 
((limit-level ...) (nstars ...) (outline-regexp ...) (bob-special ...) 
(org-cycle-hook ...) (pos ...)) (if (or bob-special ...) (setq arg t)) (cond 
(... ... ...) (... ... ...) (... ...) (...) (... ...) (... ...) (... ...) (... 
...) (buffer-read-only ...) (...) (...) (...) (... ...) (... ...) (t ...
* #[(cond rest body) \302\303BBB\207 [cond body if nil] 4 
2151976]((run-hook-with-args-until-success (quote org-tab-first-hook)) (let* 
((limit-level ...) (nstars ...) (outline-regexp ...) (bob-special ...) 
(org-cycle-hook ...) (pos ...)) (if (or bob-special ...) (setq arg t)) (cond 
(... ... ...) (... ... ...) (... ...) (...) (... ...) (... ...) (... ...) (... 
...) (buffer-read-only ...) (...) (...) (...) (... ...) (... ...) (t ...
* (unless (run-hook-with-args-until-success (quote org-tab-first-hook)) (let* 
(... ... ... ... ... ...) (if ... ...) (cond ... ... ... ... ... ... ... ... 
... ... ... ... ... ... ...)))
* run-hooks(activate-menubar-hook)
* (normal-top-level)
* message(Back to top level.)
* message(Back to top level.)
* normal-top-level()
* run-hooks(activate-menubar-hook)
* (normal-top-level)
* message(Back to top level.)
* message(Back to top level.)
* normal-top-level()
* run-hooks(activate-menubar-hook)
* (normal-top-level)
* normal-top-level()
  implement-debug-on-entry()
* (org-load-modules-maybe)
* (when (or force (not org-modules-loaded)) (mapc (lambda ... ...) org-modules) 
(setq org-modules-loaded t))
* #[(cond rest body) \302\303BE\207 [cond body if progn] 4 
2151788]((or force (not org-modules-loaded)) (mapc (lambda (ext) 
(condition-case nil ... ...)) org-modules) (setq org-modules-loaded t))
* 

Re: [Orgmode] org-beginning-of-line vs visual-line-mode

2009-07-06 Thread Carsten Dominik


On Jul 6, 2009, at 12:06 PM, Rudi Schlatte wrote:


Greetings,

I run emacs cvs head and the org-mode that is bundled with it.   
Visual-line-mode is turned on.


The display part of visual-line-mode (breaking long lines into  
paragraphs visually) works as expected, but C-a (org-beginning-of- 
line) jumps to the start of the paragraph (i.e. start of the  
physical line).  It would be nice if C-a jumped to the beginning  
of the screen line.


Cheers, and thanks for an excellent tool for writing!


You can get back the emacs 23 way of doing things with

(add-hook 'org-mode-hook
  (lambda ()
(define-key org-mode-map \C-a 'move-beginning-of-line)
(define-key org-mode-map \C-a 'move-end-of-line)))

I personally don't like visual line mode at all, because much
of what I am doing is line-based stuff (source code, for example,
or headlines in Org), and I want these commands to got to
syntactic positions, not visual positions that depend on the
width of my window.

- 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


Re: [Orgmode] [PATCH] Allow functions for HTML export preamble and postamble

2009-07-06 Thread Carsten Dominik

Hi Andreas,

I like the patch and have applied it.

This is on the border of something where I need a copyright assignment.
Mind to send one to the FSF?

- Carsten

On Jul 3, 2009, at 11:06 PM, Andreas Rottmann wrote:


Hi!

Well, the subject says it all -- attached is a rough patch to allow  
more

flexibility with the HTML export; I use it like this:

   (defun rotty/homepage-preamble (opt-plist)
 (insert div id=\header\)
 (insert
  
   div id=\navbar\
   a class=\menu\ href=\/\Home/a
   | a class=\menu\ href=\/Writings.html\Writings/a
   | a class=\menu\ href=\/Software.html\Software/a
   | a class=\menu\ href=\/blog/\Blog/a
   /div
   )
 (insert (format
  h1 class=\title\a href=\/\rotty/a gt; %s/ 
h1\n

  (plist-get opt-plist :title)))
 (insert /div\n)
 (insert div id=\inner\\n))

Note that this is my first real patch to org-mode, so be gentle ;-).

From: Andreas Rottmann a.rottm...@gmx.at
Subject: [PATCH] Allow functions for {pre/post}amble


---
lisp/org-html.el |   13 +++--
1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/lisp/org-html.el b/lisp/org-html.el
index ee72065..be4ddfd 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -606,6 +606,7 @@ PUB-DIR is set, use this as the publishing  
directory.

   (file-name-sans-extension
(file-name-nondirectory buffer-file-name)))
  UNTITLED))
+ (custom-plist (org-combine-plists (list :title title) opt- 
plist))

 (html-table-tag (plist-get opt-plist :html-table-tag))
 (quote-re0   (concat ^[ \t]* org-quote-string \\))
	 (quote-re(concat ^\\(\\*+\\)\\([ \t]+ org-quote-string \\\ 
\)))

@@ -745,7 +746,7 @@ lang=\%s\ xml:lang=\%s\
 date author description keywords
 style))

-   (insert (or (plist-get opt-plist :preamble) ))
+(org-export-html-insert-plist-item opt-plist :preamble  
custom-plist)


(when (plist-get opt-plist :auto-preamble)
  (if title (insert (format org-export-html-title-format
@@ -1372,7 +1373,7 @@ lang=\%s\ xml:lang=\%s\

(if org-export-html-with-timestamp
(insert org-export-html-html-helper-timestamp))
-   (insert (or (plist-get opt-plist :postamble) ))
+(org-export-html-insert-plist-item opt-plist :postamble  
custom-plist)

(insert \n/div\n/body\n/html\n))

  (unless (plist-get opt-plist :buffer-will-be-killed)
@@ -1425,6 +1426,14 @@ lang=\%s\ xml:lang=\%s\
(kill-buffer (current-buffer)))
(current-buffer)

+(defun org-export-html-insert-plist-item (plist key rest args)
+  (let ((item (plist-get plist key)))
+(cond ((functionp item)
+   (apply item args))
+  (item
+   (insert item)
+
+
(defun org-export-html-format-href (s)
  Make sure the S is valid as a href reference in an XHTML document.
  (save-match-data
--
tg: (0795e42..) t/html-export-amble-funtions (depends on: master)

Regards, Rotty
___
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] questions about exporting to latex using beamer documentclass

2009-07-06 Thread Carsten Dominik


On Jul 5, 2009, at 6:40 PM, Nick Dokos wrote:


Spike Spiegel fsm...@gmail.com wrote:


...
Also, given a variable like org-export-latex-image-default-option, is
there any way to override it per file or per document class?
...


Well, yes and no (mostly no - but see below):

o You can of course customize this variable, but that's a global  
setting.


o You can use the :latex-image-options property to set the above  
variable,
 but that is used in org-publish-project-alist, not for exporting.  
From org-exp.el:


,
| (defconst org-export-plist-vars
|   '((:link-up   nil org-export-html-link-up)
|
| ...
|
| (:latex-image-options nil	  org-export-latex-image-default- 
option))

|   List of properties that represent export/publishing variables.
| Each element is a list of 3 items:
| 1. The property that is used internally, and also for org-publish- 
project-alist
| 2. The string that can be used in the OPTION lines to set this  
option,

|or nil if this option cannot be changed in this way
| 3. The customization variable that sets the default for this  
option.

| )
`

o You can modify the setting of the org-export-plist-vars (either by  
modifying your copy

 of org-exp.el or by some other method) to change the line

(:latex-image-options nil	  org-export-latex-image-default- 
option))


 to

(:latex-image-options latex-image-options	  org-export- 
latex-image-default-option))


 and then use

 #+OPTIONS: latex-image-options:width=1 cm

 in your org file.

 [BTW, if you are using git, small local variations from the  
canonical org-mode can be easily

  accommodated, by using a local branch and git rebase.]

o You can try to convince Carsten that this should be part of  
canonical org-mode.


You can now do (I think)

#+BIND: org-export-latex-image-default-option width=1cm

This will work for any variables that are not addressed by
#+OPTIONS and similar lines.  It will not work for anything
that is in `org-export-plist-vars', and that is confusing.
Any ideas on how these should interact?

- Carsten



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




___
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: export timestamp in headline

2009-07-06 Thread henry atting
On Mo, Jul 06 2009, Carsten Dominik wrote:

 On Jul 6, 2009, at 3:57 PM, henry atting wrote:

 On Mo, Jul 06 2009, henry atting wrote:

 On Mo, Jul 06 2009, Carsten Dominik wrote:

 On Jul 6, 2009, at 1:10 PM, henry atting wrote:

 On Mo, Jul 06 2009, henry atting wrote:

 Mmh, what option do I have to use if I want to display the
 timestamp in
 a headline when exporting to html?

 Sorry, wrong question. What I really want to know is how to display
 the
 timestamp in the *table of contents*. ;)

 Hmmm, lets try to guess what the variable name might be.

 something starting with org-
 something containing stamp
 something containing toc


 M-x apropos-variable RET org.*stamp.*toc.* RET

 http://www.pdsys.org/blog_files/WallE-Tada.mp3

 Great, a riddle. And I solved it right away. Must be in good form, so
 I'll go to the  races as soon as possible.

 I am afraid this is going to be my wonderfull
 don't-ask-clearly-but-bit-by-bit-post...
 In my feeling of elation of having solved the riddle I forgot to
 mention
 that I am looking for a per-file solution, something that can be done
 with #+OPTIONS: ...

 OK, there really has to be an end of what we add to the OPTIONS line
 with
 abbreviations for all kinds of things.

 Get the latest git version, and then use

 #+BIND: org-export-remove-timestamps-from-toc t

 This is a general mechanism that will work for any variable that should
 be bound to a special value during export, and that is not already
 covered by the #+OPTIONS or a similar line.

I don't adhere to #+OPTIONS; #+BIND is fine; thanks!

henry

-- 
http://literaturlatenight.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] Move org-clock info to left in mode-line?

2009-07-06 Thread Matthew Lundin
Hi everyone,

I've made some progress in understanding emacs this past year, but
customizing the mode-line eludes me.

When I clock into an item in org-mode, the clock information is always
at the extreme right of the mode line --- and thus unable to be seen
unless I make my emacs window full screen.

(Most of my buffers have a ton of minor modes, which are all listed in
the mode line and push everything else out of sight).

Interestingly, if I have other modes contributing to the mode line, the
org-mode-line-string is always placed at the end of the
global-mode-string:

,
| global-mode-string is a variable defined in `C source code'.
| Its value is 
| ((t jabber-activity-mode-string)
|   appt-mode-string display-time-string org-mode-line-string)
`

I would be most grateful for any tips on how I might move the org-clock
information farther to the left in the mode line.

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


[OT] message-mark-inserted-region (was Re: [Orgmode] Re: Exporting to a Beamer presentation)

2009-07-06 Thread Eric S Fraga
At Mon, 06 Jul 2009 17:40:48 +0200,
Sébastien Vauban wrote:
 It is bound to C-c M-m, menu-bar Message Insert Region Marked.
 
 (message-mark-inserted-region beg end optional verbatim)

I'm curious:  I don't have this function defined (using emacs
23.0.94.1).  Where do you get this from as it would be nice to have.

thanks,
eric


___
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: [OT] message-mark-inserted-region (was Re: [Orgmode] Re: Exporting to a Beamer presentation)

2009-07-06 Thread Nick Dokos
Eric S Fraga ucec...@ucl.ac.uk wrote:

 At Mon, 06 Jul 2009 17:40:48 +0200,
 S=C3=A9bastien Vauban wrote:
  It is bound to C-c M-m, menu-bar Message Insert Region Marked.
 =20
  (message-mark-inserted-region beg end optional verbatim)
 
 I'm curious:  I don't have this function defined (using emacs
 23.0.94.1).  Where do you get this from as it would be nice to have.
 

I had the same question: it's part of message.el, but it is bound to
C-c m (at least on GNU Emacs 23.1.50.1).

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] Re: Small fix for Gnus integration

2009-07-06 Thread Tassilo Horn
Andreas Rottmann a.rottm...@gmx.at writes:

Hi Andreas,

 Without the following patch, storing links to Gnus Article buffers
 fails on CVS Emacs, as they (at least in my setup -- IMAP) always
 contain a From  line, which can't be parsed as an RFC822 header.

Could you elaborate a bit, i.e. provide such an example mail?

 diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
 index 41b1be7..4cc5adb 100644
 --- a/lisp/org-gnus.el
 +++ b/lisp/org-gnus.el
 @@ -128,6 +128,8 @@ If `org-store-link' was called with a prefix arg the 
 meaning of
  (header (with-current-buffer gnus-article-buffer
(gnus-summary-toggle-header 1)
(goto-char (point-min))
 + (when (looking-at From )
 +   (next-line))
(mail-header-extract-no-properties)))
  (from (mail-header 'from header))
  (message-id (org-remove-angle-brackets

Looking at the patch, I get the impression, that it's a solution to a
problem you created on your own. ;-)

If the first line of a mail starts with From , I'd say it's broken.

,[ http://cr.yp.to/immhf/field.html ]
| The first line of a field begins with a name and a colon. The name is a
| string of one or more graphical ASCII characters other than colons,
| i.e., bytes between 33 and 126 inclusive other than 58.
`

The space has the ASCII code 32, so IMO it's not allowed as header field
name.

Bye,
Tassilo



___
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: Move org-clock info to left in mode-line?

2009-07-06 Thread Matthew Lundin
Nick Dokos nicholas.do...@hp.com writes:

 Matthew Lundin m...@imapmail.org wrote:

 I've made some progress in understanding emacs this past year, but
 customizing the mode-line eludes me.
 
 When I clock into an item in org-mode, the clock information is always
 at the extreme right of the mode line --- and thus unable to be seen
 unless I make my emacs window full screen.
 
 (Most of my buffers have a ton of minor modes, which are all listed in
 the mode line and push everything else out of sight).
 
 Interestingly, if I have other modes contributing to the mode line, the
 org-mode-line-string is always placed at the end of the
 global-mode-string:
 
 ,
 | global-mode-string is a variable defined in `C source code'.
 | Its value is 
 | ((t jabber-activity-mode-string)
 |   appt-mode-string display-time-string org-mode-line-string)
 `
 
 I would be most grateful for any tips on how I might move the org-clock
 information farther to the left in the mode line.
 

 I think the variable you want is ``mode-line-format''.

Thanks! I was able to move the global-mode-string farther up in
the default-mode-line-format variable. Now if only I could get the
org-mode-line-string as the first entry in the global-mode-string.

Upon further reflection, I decided I would prefer the following behavior:

 - When I clock into an item, a header line appears with the
   org-mode-line-string -- i.e., the clock information.

 - When I clock out of an item, the header line disappears (i.e.,
   header-line-format is set to nil). 

I'll see if I can cook something up using the org-clock hooks.

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


[Orgmode] Re: Move org-clock info to left in mode-line?

2009-07-06 Thread Matthew Lundin
 Matthew Lundin m...@imapmail.org wrote:

 Thanks! I was able to move the global-mode-string farther up in
 the default-mode-line-format variable. Now if only I could get the
 org-mode-line-string as the first entry in the global-mode-string.

 Upon further reflection, I decided I would prefer the following behavior:

  - When I clock into an item, a header line appears with the
org-mode-line-string -- i.e., the clock information.

  - When I clock out of an item, the header line disappears (i.e.,
header-line-format is set to nil). 

 I'll see if I can cook something up using the org-clock hooks.

Here's my rather crude solution:

--8---cut here---start-8---
(setq org-clock-in-hook 
  '(lambda ()
(setq default-header-line-format '((  org-mode-line-string  
)

(setq org-clock-out-hook 
  '(lambda ()
(setq default-header-line-format nil)))

(setq org-clock-cancel-hook 
  '(lambda ()
(setq default-header-line-format nil)))
--8---cut here---end---8---

Works so far. Obviously, if I had already set
default-header-line-format, this solution would be no good.

I'll keep my fingers crossed.

- 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


[Orgmode] Typo in org-clock.el

2009-07-06 Thread Matthew Lundin
Hi Carsten, 

I discovered a typo in org-clock.el that was preventing
org-clock-in-hook from working.

- Matt

---

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index d0a6ebf..79dcb49 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -582,7 +582,7 @@ the clocking selection, associated with the letter `d'.
(setq org-clock-mode-line-timer
  (run-with-timer 60 60 'org-clock-update-mode-line))
(message Clock starts at %s - %s ts msg-extra)
-   (run-hooks 'org-click-in-hook)))
+   (run-hooks 'org-clock-in-hook)))
 
 (defun org-clock-mark-default-task ()
   Mark current task as default task.


___
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: [OT] message-mark-inserted-region (was Re: [Orgmode] Re: Exporting to a Beamer presentation)

2009-07-06 Thread Eric S Fraga
At Mon, 06 Jul 2009 13:55:45 -0400,
Nick Dokos wrote:
 I had the same question: it's part of message.el, but it is bound to
 C-c m (at least on GNU Emacs 23.1.50.1).

Ah ha!  Found it (and it's bound to C-c M-m in my version).  Didn't
see it before because I was no longer loading message.el, having moved
to wanderlust which doesn't need it.

Thanks,
eric


___
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] Simple type

2009-07-06 Thread Phil Rooke
diff --git a/lisp/org-remember.el b/lisp/org-remember.el
index 149bd30..91bf482 100644
--- a/lisp/org-remember.el
+++ b/lisp/org-remember.el
@@ -349,7 +349,7 @@ RET at beg-of-buf - Append to file as level 2 headline
   (setq char0 (read-char-exclusive))
   (when (and (not (assoc char0 templates))
  (not (equal char0 ?\C-g)))
-(message No suche template \%c\ char0)
+(message No such template \%c\ char0)
 (ding) (sit-for 1)
 (setq char0 nil)))
 (when (equal char0 ?\C-g)


___
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] Typo in org-clock.el

2009-07-06 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jul 6, 2009, at 8:58 PM, Matthew Lundin wrote:


Hi Carsten,

I discovered a typo in org-clock.el that was preventing
org-clock-in-hook from working.

- Matt

---

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index d0a6ebf..79dcb49 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -582,7 +582,7 @@ the clocking selection, associated with the  
letter `d'.

(setq org-clock-mode-line-timer
  (run-with-timer 60 60 'org-clock-update-mode-line))
(message Clock starts at %s - %s ts msg-extra)
-   (run-hooks 'org-click-in-hook)))
+   (run-hooks 'org-clock-in-hook)))

(defun org-clock-mark-default-task ()
  Mark current task as default task.


___
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] Simple type

2009-07-06 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jul 6, 2009, at 9:28 PM, Phil Rooke wrote:


diff --git a/lisp/org-remember.el b/lisp/org-remember.el
index 149bd30..91bf482 100644
--- a/lisp/org-remember.el
+++ b/lisp/org-remember.el
@@ -349,7 +349,7 @@ RET at beg-of-buf - Append to file as level 2  
headline

   (setq char0 (read-char-exclusive))
   (when (and (not (assoc char0 templates))
  (not (equal char0 ?\C-g)))
-(message No suche template \%c\ char0)
+(message No such template \%c\ char0)
 (ding) (sit-for 1)
 (setq char0 nil)))
 (when (equal char0 ?\C-g)


___
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: LaTeX export bugs?

2009-07-06 Thread Sébastien Vauban
Hi all,

Carsten Dominik wrote:
 Sébastien Vauban wrote:
 Carsten Dominik wrote:
 Sébastien Vauban wrote:
 [This is not working...]

--8---cut here---start-8---
#+LaTeX: \begin{framed}
#+ATTR_LaTeX: align=lrrr
| Code  | \euro{} |  \% | \euro{} |
|---+-+-+-|
| GSM   | | |0.00 |
| Internet  |  168.45 | 100 |  168.45 |
| Matériel  |  295.99 | 100 |  295.99 |
| Publicité |  214.25 |  33 |   70.70 |
| Autres| | |0.00 |
|---+-+-+-|
| Total | | |  535.14 |
#+TBLFM: $4=$2*$3/100;%.2f::@7$4=vsum(@-...@-ii)
#+LaTeX: \end{framed}
--8---cut here---end---8---

 Am I misunderstanding section 12.7.2 or is this a feature?

 This does not work. What is happening here is that during LaTeX export,
 these begin/end lines are inserted into the buffer. Then the LaTeX exporter
 marks the entire content of this environment as something that should be
 exported literally to LaTeX, this is why you can write

 \begin{equation}
 a=b
 \end{equation}

 and it will all be exported literally to LaTeX.

 The fact that the table is transformed into a LaTeX table at all is actually
 a bug which I will fix.

I'm not sure I understand what's the impact of your last sentence. But, maybe,
I don't have too...

Related to this:

 Now, more important question, one of the few that's not answered from my
 previous post: how can I shade or frame a table? For me, inserting #+LaTeX
 tags is different from inserting #+BEGIN_LaTeX and #+END_LaTeX tags: the
 first one should have no impact on the rest of the text.

Rephrasing my question, asking it again in other words (showing you I did not
follow correctly): for me,

--8---cut here---start-8---
#+BEGIN_framed
XXX
#+END_framed
--8---cut here---end---8---

is equivalent to:

--8---cut here---start-8---
#+LaTeX: \begin{framed}
XXX
#+LaTeX: \end{framed}
--8---cut here---end---8---

If not, that's not what I understand from reading section 12.7.2 about the
quoting of LaTeX code?  Though, it seems (seemed) clear...


 So there is not really a standard way to do what you want.

 However, you could take a look as Chris Gray's contributes package
 org-special-blocks.el

http://orgmode.org/worg/org-contrib/org-special-blocks.php

 which was made just for this use case.

Excellent. Tested. Work perfectly, except for:


 - Even with version 6.28, the `#+TBLNAME' tag must be located in column 0
 (at least, for the highlighting features to work)

 Fixed, thanks.

Same problem with the Org-special-blocks constructs: they need to be declared
in column 0; otherwise, they're just ignored...

A detail, though: putting my table in a `framed' block makes the highlighting
of the keywords such as TBLNAME and TBLFM disappear...

Many thanks for all the help you all provide us with!

Best regards,
  Seb

PS- Hoping desperately Org-mode will win!

-- 
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: [OT] message-mark-inserted-region (was Re: Re: Exporting to a Beamer presentation)

2009-07-06 Thread Sébastien Vauban
Hi Nick and Eric,

Nick Dokos wrote:
 Eric S Fraga wrote:
 Se9bastien Vauban wrote:
 It is bound to C-c M-m, menu-bar Message Insert Region Marked.

 (message-mark-inserted-region beg end optional verbatim)

 I'm curious:  I don't have this function defined (using emacs
 23.0.94.1).  Where do you get this from as it would be nice to have.

 I had the same question: it's part of message.el, but it is bound to
 C-c m (at least on GNU Emacs 23.1.50.1).

You answered before I have the opportunity to do it...

But the answer already was in my article ;-)

 BTW, you'd better use `C-c M-m' for quoting your code. It will allow an
 easy copy past of it... Like this:

--8---cut here---start-8---
C-c M-m runs the command message-mark-inserted-region, which is an interactive
compiled Lisp function in `message.el'.
--8---cut here---end---8---
   ^^

Though, on my system:

--8---cut here---start-8---
GNU Emacs 23.0.94.1 (i486-pc-linux-gnu, GTK+ Version 2.16.1) of 2009-06-18 on 
samarium, modified by Debian
--8---cut here---end---8---

it is still `C-c M-m'...

--8---cut here---start-8---
It is bound to C-c M-m, menu-bar Message Insert Region Marked.

(message-mark-inserted-region beg end optional verbatim)
--8---cut here---end---8---

Happy Emacsing to you...

BTW, would you want a quite comprehensive `.emacs' as example, you could have
a look at http://www.mygooglest.com/fni. It's not really detailed nor
configured for Org-mode, but there is a lot to drink and to eat...

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] Re: [OT] message-mark-inserted-region (was Re: Re: Exporting to a Beamer presentation)

2009-07-06 Thread Eric S Fraga
At Mon, 06 Jul 2009 17:08:09 -0400,
Nick Dokos wrote:
 
 Sébastien Vauban wxhgmqzgw...@spammotel.com wrote:
 
  But the answer already was in my article=C2=A0;-)

it's the things in front of you that are easiest to miss...  :(
blush


___
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] Use variable filename for remember template?

2009-07-06 Thread Nathan Neff
Hello,

I am able to successfully read the contents of
/Users/nate/personal/booktemp.txt into a new remember-note.

(setq org-remember-templates
 '((Book ?b \n* %^{Book Title} %t :READING:
\n%[/Users/nate/personal/booktemp.txt]\n
  L:journal.org)
  ))

Now, I'd like to be able to specify an environment variable like $HOME
instead of /Users/nate.

I'm a lisp beginner, and have tried something like

(setq personal-home-dir (getenv HOME))

(setq org-remember-templates
 '((Book ?b (concat \n* %^{Book Title} %t :READING: \n%[
personal-home-dir /personal/booktemp.txt]\n)
  L:journal.org)
  ))

but I keep getting Wrong type argument char-or-string-p errors.

I'm guessing that the org-remember-templates function wants something
other than a string, but I don't know
where to go from here.

Any help is appreciated.

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


[Orgmode] Re: Use variable filename for remember template?

2009-07-06 Thread Matthew Lundin
Nathan Neff nathan.n...@gmail.com writes:

 Hello,

 I am able to successfully read the contents of
 /Users/nate/personal/booktemp.txt into a new remember-note.

 (setq org-remember-templates
  '((Book ?b \n* %^{Book Title} %t :READING:
 \n%[/Users/nate/personal/booktemp.txt]\n
   L:journal.org)
   ))

 Now, I'd like to be able to specify an environment variable like $HOME
 instead of /Users/nate.

 I'm a lisp beginner, and have tried something like

 (setq personal-home-dir (getenv HOME))

 (setq org-remember-templates
  '((Book ?b (concat \n* %^{Book Title} %t :READING: \n%[
 personal-home-dir /personal/booktemp.txt]\n)
   L:journal.org)
   ))

 but I keep getting Wrong type argument char-or-string-p errors.

How about the following?

--8---cut here---start-8---
 (setq org-remember-templates
  '((Book ?b \n* %^{Book Title} %t :READING:
 \n%[~/personal/booktemp.txt]\n
   L:journal.org)
   ))
--8---cut here---end---8---

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


[Orgmode] Re: export timestamp in headline

2009-07-06 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 On Jul 6, 2009, at 1:10 PM, henry atting wrote:

 Hmmm, lets try to guess what the variable name might be.

 something starting with org-
 something containing stamp
 something containing toc


 M-x apropos-variable RET org.*stamp.*toc.* RET

 http://www.pdsys.org/blog_files/WallE-Tada.mp3

 :-)

Hmm the docstring for this variable feels backwards to me.

org-export-remove-timestamps-from-toc

If this is a boolean I'd think that if it's true then you are removing
the timestamps (ie it's a directive to remove timestamps from the toc)

but the docstring seems to be the reverse.

If nil, remove timestamps from the table of contents entries.

Just my 2 cents :)

-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] Problem with Export-exclude-tags and tags:nil

2009-07-06 Thread Kristina M. Spurgin
Hi, 

I've already found and corrected the stupid typo, and that didn't fix this 
problem, so it's time to call for help. 

I just downloaded 6.28e last night. I am using GNU Emacs, 22.3.1 on Windows 
XP.

I'm trying to export an org file to LaTeX, and overall it is working ok. 
However, I cannot seem to get the options #+EXPORT_EXCLUDE_TAGS  and 
#+OPTIONS:...tags:nil to work. I've looked around some at org-export-general 
options, and I deleted the only old export setup file I had. I would think that 
options listed in the file would take precedence over those, though. 

Below are a truncated version of my org file and then the LaTeX output 
resulting from C-c C-e l. The section with the tag listed in export-exclude is 
in the output. The tag on that section is not in the output, however. My 
understanding of this setting was that it would prevent the tree from export, 
not just the keyword. The tags on other sections are also in the output, 
though I have tags:nil. 

#+OPTIONS is all on one line in my file.

For the exclude tags option, I tried: 
:noexportlatex: 
:noexportlatex
and what you see below.

I did do C-c C-c in each of the options lines after adding them. 

I also tried without blank line between top options and #LATEX OPTIONS (I also 
could not get export to ignore options marked with begin/end html block.)

Thanks for any help, and for org-mode in general. I voted. :-) 

--Kristina

-=-=-test.org-=-=-
#+TITLE: A test page
#+AUTHOR:Kristina M. Spurgin
#+EMAIL: krist...@infomuse.net
#+DATE:  2008-11-10 Mon
#+LANGUAGE:  en

# LATEX OPTIONS
#+OPTIONS:   H:4 num:t toc:4 \n:t @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:nil 
skip:nil d:nil tags:nil
#+EXPORT_EXCLUDE_TAGS: noexportlatex

* How to use this page   :noexportlatex:
Here you will find step by step instructions for constructing all the numbers 
we looked at in class. There are also others to demonstrate concepts we do not 
have time to look at in class.
* Concepts
** Standing room and approximating the whole :standing-room:approximating-
whole:
Consult the Introduction in v. 1 for more information on the ideas of 
standing room in a class number, approximating the whole of the universe 
of a class number, and when you can add on standard subdivisions. *Relevant 
sections are 7.16, 7.18, and 8.9.*



-=-=-LaTeX Output (preamble snipped)-=-=-

\begin{document}

\maketitle

\setcounter{tocdepth}{4}
\tableofcontents

\section{How to use this page}

Here you will find step by step instructions for constructing all the numbers 
we looked at in class. There are also others to demonstrate concepts we do not 
have time to look at in class.
\section{Concepts}

\subsection{Standing room and approximating the whole :standing-
room:approximating-whole:}

Consult the Introduction in v. 1 for more information on the ideas of 
``standing room'' in a class number, ``approximating the whole'' of the 
universe of a class number, and when you can add on standard subdivisions. 
\textbf{Relevant sections are 7.16, 7.18, and 8.9.}

\end{document}

-- 
Kristina M. Spurgin
PhD student - Teaching assistant 
School of Information  Library Science - UNC Chapel Hill 
CB#3360, 100 Manning Hall - Chapel Hill, NC 27599-3360
krist...@infomuse.net - kspur...@email.unc.edu
http://www.infomuse.net http://blog.infomuse.net aim: infomusings


___
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] Use variable filename for remember template?

2009-07-06 Thread Nick Dokos
Nathan Neff nathan.n...@gmail.com wrote:

 I am able to successfully read the contents of
 /Users/nate/personal/booktemp.txt into a new remember-note.
 
 (setq org-remember-templates
  '((Book ?b \n* %^{Book Title} %t :READING:
 \n%[/Users/nate/personal/booktemp.txt]\n
   L:journal.org)
   ))
 
 Now, I'd like to be able to specify an environment variable like $HOME
 instead of /Users/nate.
 
 I'm a lisp beginner, and have tried something like
 
 (setq personal-home-dir (getenv HOME))
 
 (setq org-remember-templates
  '((Book ?b (concat \n* %^{Book Title} %t :READING: \n%[
 personal-home-dir /personal/booktemp.txt]\n)
   L:journal.org)
   ))
 
 but I keep getting Wrong type argument char-or-string-p errors.
 
 I'm guessing that the org-remember-templates function wants something
 other than a string, but I don't know where to go from here.
 

No, it requires a string. The problem is that when you quote an expression
in lisp, you are saying do not evaluate the innards of this expression.
But here you *want*  some of the innards evaluated: in particular, the call
to concat *has* to be evaluated in order to give you the required string.

Note that org-remember-templates is supposed to be a list of lists. Each inner
list has to have the form

 (string char string [string] [string])

where the square brackets indicate optional elements. That's the name of the
template, the char you use to invoke it, the template itself, the destination
file, and the headline.

The trick is to construct such a list without using quote. The lisp function
to construct lists is called (drum roll...) ``list''. So you can construct
the list like this:

(list Book ?b 
  (concat \n* %^{Book Title} %t :READING: \n%[ personal-home-dir 
/personal/booktemp.txt]\n)
  L:journal.org)

When evaluated [1], the above expression gives you the following list:

 (Book ?b 
  \n* %^{Book Title} %t :READING: 
\n%[/home/nate/personal/booktemp.txt]\n
  L:journal.org)


That will serve fine as the inner list, but now we have to set 
org-remember-templates
to be a list with the inner list as its only element (unless of course you have 
more
than one template):

(setq org-remember-templates
  (list
(list Book ?b 
  (concat \n* %^{Book Title} %t :READING: \n%[ 
personal-home-dir /personal/booktemp.txt]\n)
  L:journal.org)))

will do that.

This method will work in general, but it is overkill for the simpler situation
where all of the elements of the inner list(s) are constants, i.e. when you
evaluate them, they give you back what you started with (e.g. numbers, strings,
chars evaluate to themselves). In this situation, you can form the list like 
this:

  (Book ?b ... ...)

except that when lisp sees such a form, it assumes it's a function call
with arguments, e.g. (+ 2 3) is a call to the function + with args 2 and 3.
It is in order to inhibit *this* evaluation that quoting is used - it makes
the quoted expression self-evaluating:

  '(Book ?b ... ...)

Look at the difference:

(+ 2 3) -- 5
'(+ 2 3) -- (+ 2 3)

If you have more questions (and you *should*! Even in the highly
unlikely situation that the above is crystal clear, it only scratches
the surface of a deep subject), try an introductory book on lisp,
perhaps The Little Lisper by Dan Friedman (the current edition is
called The Little Schemer, co-authored with Matthias Felleisen, and it
discusses the Scheme dialect of Lisp, but the basic ideas are the
same). Emacs also comes with an Emacs Lisp Intro (which I have not
read) - you might look at that instead (or in addition): do C-h i m
Emacs Lisp Intro RET.

HTH,
Nick


[1] Try it: put the cursor at the end of 

(setq personal-home-dir (getenv HOME))

i.e. after the closing parenthesis, and press C-x C-e - the result is
displayed in the minibuffer (echo area). Of course, the main object here
is not the result of the expression, but the side effect: setq binds the
variable personal-home-dir to the value of (getenv HOME). But now that
personal-home-dir is defined, you can put the cursor at the end of the
list expression , press C-x C-e and you'll see the result of that
evaluation.


___
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] Problem with Export-exclude-tags and tags:nil

2009-07-06 Thread Carsten Dominik

Hi Kristina,

this does work correctly for me, using your test file as it is.

So I would think that you are not using 6.28e but some older version.

What do you get with

   M-x org-version RET

?


If it is not 6.28e, check out


http://orgmode.org/worg/org-faq.php#loaded-old-org


HTH

- Carsten

On Jul 7, 2009, at 4:37 AM, Kristina M. Spurgin wrote:


Hi,

I've already found and corrected the stupid typo, and that didn't  
fix this

problem, so it's time to call for help.

I just downloaded 6.28e last night. I am using GNU Emacs, 22.3.1 on  
Windows

XP.

I'm trying to export an org file to LaTeX, and overall it is working  
ok.

However, I cannot seem to get the options #+EXPORT_EXCLUDE_TAGS  and
#+OPTIONS:...tags:nil to work. I've looked around some at org-export- 
general
options, and I deleted the only old export setup file I had. I would  
think that

options listed in the file would take precedence over those, though.

Below are a truncated version of my org file and then the LaTeX output
resulting from C-c C-e l. The section with the tag listed in export- 
exclude is
in the output. The tag on that section is not in the output,  
however. My
understanding of this setting was that it would prevent the tree  
from export,
not just the keyword. The tags on other sections are also in the  
output,

though I have tags:nil.

#+OPTIONS is all on one line in my file.

For the exclude tags option, I tried:
:noexportlatex:
:noexportlatex
and what you see below.

I did do C-c C-c in each of the options lines after adding them.

I also tried without blank line between top options and #LATEX  
OPTIONS (I also
could not get export to ignore options marked with begin/end html  
block.)


Thanks for any help, and for org-mode in general. I voted. :-)

--Kristina

-=-=-test.org-=-=-
#+TITLE: A test page
#+AUTHOR:Kristina M. Spurgin
#+EMAIL: krist...@infomuse.net
#+DATE:  2008-11-10 Mon
#+LANGUAGE:  en

# LATEX OPTIONS
#+OPTIONS:   H:4 num:t toc:4 \n:t @:t ::t |:t ^:t -:t f:t *:t TeX:t  
LaTeX:nil

skip:nil d:nil tags:nil
#+EXPORT_EXCLUDE_TAGS: noexportlatex

* How to use this page   :noexportlatex:
Here you will find step by step instructions for constructing all  
the numbers
we looked at in class. There are also others to demonstrate concepts  
we do not

have time to look at in class.
* Concepts
** Standing room and approximating the whole :standing- 
room:approximating-

whole:
Consult the Introduction in v. 1 for more information on the ideas of
standing room in a class number, approximating the whole of the  
universe
of a class number, and when you can add on standard subdivisions.  
*Relevant

sections are 7.16, 7.18, and 8.9.*



-=-=-LaTeX Output (preamble snipped)-=-=-

\begin{document}

\maketitle

\setcounter{tocdepth}{4}
\tableofcontents

\section{How to use this page}

Here you will find step by step instructions for constructing all  
the numbers
we looked at in class. There are also others to demonstrate concepts  
we do not

have time to look at in class.
\section{Concepts}

\subsection{Standing room and approximating the whole :standing-
room:approximating-whole:}

Consult the Introduction in v. 1 for more information on the ideas of
``standing room'' in a class number, ``approximating the whole'' of  
the
universe of a class number, and when you can add on standard  
subdivisions.

\textbf{Relevant sections are 7.16, 7.18, and 8.9.}

\end{document}

--
Kristina M. Spurgin
PhD student - Teaching assistant
School of Information  Library Science - UNC Chapel Hill
CB#3360, 100 Manning Hall - Chapel Hill, NC 27599-3360
krist...@infomuse.net - kspur...@email.unc.edu
http://www.infomuse.net http://blog.infomuse.net aim: infomusings


___
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: export timestamp in headline

2009-07-06 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jul 7, 2009, at 3:54 AM, Bernt Hansen wrote:


Carsten Dominik carsten.domi...@gmail.com writes:


On Jul 6, 2009, at 1:10 PM, henry atting wrote:

Hmmm, lets try to guess what the variable name might be.

something starting with org-
something containing stamp
something containing toc


M-x apropos-variable RET org.*stamp.*toc.* RET

http://www.pdsys.org/blog_files/WallE-Tada.mp3

:-)


Hmm the docstring for this variable feels backwards to me.

org-export-remove-timestamps-from-toc

If this is a boolean I'd think that if it's true then you are removing
the timestamps (ie it's a directive to remove timestamps from the toc)

but the docstring seems to be the reverse.

If nil, remove timestamps from the table of contents entries.

Just my 2 cents :)

-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