Re: [Orgmode] a small inconsistency in summary cookie updation

2010-01-08 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jan 7, 2010, at 7:45 PM, Manish wrote:


I noticed a small inconsistency.  If you start with following sample
org file and press C-c C-c in the first cookie, it doesn't get updated
correctly whereas the second one does.  The only difference is that
one has children TODO tasks and the other has a list of checkboxes.

Starting file:

--8<---cut here---start->8---
* Item 1 [/]
 1. [X] line 1
 2. [ ] line 2
* Item 2 [/]
*** TODO Sub-item 2.1
*** DONE Sub-item 2.2
--8<---cut here---end--->8---

Status after C-c C-c in the summary cookie.

--8<---cut here---start->8---
* Item 1 [0/0]
 1. [X] line 1
 2. [ ] line 2
* Item 2 [1/2]
*** TODO Sub-item 2.1
*** DONE Sub-item 2.2
--8<---cut here---end--->8---

Thanks
--
Manish


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


- Carsten





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


Re: [Orgmode] logbook + (re)schedule

2010-01-08 Thread Carsten Dominik


On Jan 7, 2010, at 3:19 PM, Fredrik wrote:


Thank you,

yes that is how do it now... just wondered if there was a command  
for it I had missed :)


No, nothing yet.

- Carsten



Regards,

Fredrik

On 7 jan 2010, at 14.48, Carsten Dominik wrote:



On Jan 7, 2010, at 2:10 PM, Fredrik wrote:

I use the schedule and logbook parts to keep track of contacts and  
remind me when I haven't had contact with someone for a while like  
this...


* CONTACT Someone Somewhere
SCHEDULED: <2010-01-28 Thu .+21d>
:LOGBOOK:
- State "CONTACTED"  from "CONTACT"[2010-01-06 Wed 19:58] \\
 Called and said hi
:END:

This works like a charm... but is there someway I can add an entry  
to the logbook and have the schedule rescheduled for a specific  
date? Say I actually talked to the person this weekend but didn't  
get to a computer until today can I then add a entry for Saturday?


Just jump to the entry and edit the time stamp!

- Carsten





- Carsten





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


Re: [Orgmode] viewing task notes in agenda

2010-01-08 Thread Carsten Dominik


On Jan 7, 2010, at 7:34 PM, Manish wrote:


is there a way to show the notes taken with `z' in agenda view (C-c
C-z in org file) in agenda log view?  I take small/quick notes about
the progress of a TODO with quick access to `z' key but the log mode
only shows the title of the TODO item in the log view.  The notes go
inside a LOGBOOK drawer and are not visible even when I activate
inactive time stamps with `[' key.  Is this be a viable feature
request?  Would others find it useful?  In case it's not, would it be
possible to just force open the LOGBOOK when follow-mode is `on' for
the inactive timestamped item?


Hi Manish,

I am not sure I understand.  When I press `[', a new entry shows
up in the agenda, with the text the headline of that entry.
If I go to that line and press SPACE, I see the note.

What exactly would you have happen?

- Carsten



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


Re: [Orgmode] Re: Error in FAQ

2010-01-08 Thread Carsten Dominik


On Jan 7, 2010, at 3:56 PM, Matt Lundin wrote:


Joe Snikeris  writes:


There is an error in the FAQ found here:
http://orgmode.org/worg/org-faq.php#visual-line-mode

The line:
(define-key org-mode-map "\C-a" 'move-end-of-line)))

should read:
(define-key org-mode-map "\C-e" 'move-end-of-line)))


I just fixed this. Thanks!


It is probably not on the web yet because our updating
process does not work currently.  We are working on it.

- Carsten



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


Re: [Orgmode] geolocation / geotagging in org-mode

2010-01-08 Thread Carsten Dominik

Hi Kurt,

that sounds like fun, but I have no idea how to access geolocation data.

This would be a great extension for Org-mode, both geotaggging of  
location

in the logbook, and export to KLM.

Is there anyone around here who understands how these things work and  
who would

be willing to help?

- Carsten

On Jan 7, 2010, at 6:09 PM, Kurt Schwehr wrote:


Hi all,

I have a couple questions about geolocation in org mode.  I am still  
in the first two weeks of learning org mode and shifting my workflow  
to it.


* Is there a standard way to specify a point, line, polygon in org  
mode?


We take a lot of notes about installation of science gear in the  
field and make observations.  Being able to tag where this was in a  
standard way would be great.  I just write WKT (Well-know text), but  
if there is already a standard for org mode, it would be good for me  
to stick with that.


* Is there an easy way to call a geolocation service from inside of  
org-mode to tag the location of an entry?


* And, Has there been any thought to exporting a time and location  
tagged KML of a document?  This would make reporting notes from  
research cruises on ships from org mode be really powerful.


It would be great to move beyond the hand crafted things that I do  
for this.  Imagine a field scientist with a laptop or MobileOrg  
taking notes.  One example of the kind of thing that I would like to  
produce:


http://vislab-ccom.unh.edu/~schwehr/resume/schwehr-resume.kml

Thanks,
-kurt
http://schwehr.org/blog




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


- Carsten





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


Re: [Orgmode] ascii-export vs. "<<" and ">>" patch

2010-01-08 Thread Carsten Dominik

Hi Bryan,

On Jan 7, 2010, at 6:30 PM, Bryan Fink wrote:


Hi.  I'm using org-mode to write some documentation about Erlang
modules.  Erlang's "binary" data type has a syntax like:

  <<"this is binary data">>

Org-mode's ascii-exporter in version 6.33f blindly strips all <<>>
pairs from the file, leaving the text as

  "this is binary data"

which, unfortunately, is still valid Erlang syntax, but has a  
different meaning.


First of all, you should have such code in code blocks like # 
+begin_src..., or, in running text, you need to protect it with  
something like =<<"this is binary data">>=.


Then things will work in HTML.

There is indeed a bug in ASCII export which does remove these without  
checking for protection - but I have just fixed that - so if you pull  
and protect, things should work.


HTH

- Carsten



So, to help me and others write Erlang documentation in org-mode, I
submit the patch attached to this email, which changes org-ascii.el
such that it checks the org-protected text property before stripping
<<>> characters, so examples marked as verbatim text should go
untouched.

-Bryan
<0001-do-not-strip-and-from-protected-sections-during- 
asci.patch>___

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


- Carsten





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


[Orgmode] Re: Orgmode + other modes for outlining and studying.

2010-01-08 Thread Sébastien Vauban
Hi Marcelo,

Marcelo de Moraes Serpa wrote:
> Orgmode files are great for studying, for example, code.
>
> Everytime I need to study some unknown code, I create a new org file, put a
> * Code headline, paste the code in there and start making notes below or in
> the code (as comments). It is extremelly fast and efficient to do something
> like that, things just flow.
>
> What I'd like to know is if there's a way to have, for example, orgmode +
> javascript-mode, so that I can get syntax-highlighting/coloring on the
> pasted javascript code. I've tried with javascript mode, but since it is a
> major mode, it just kills org and all its goodies, and I don't want that.
>
> Is there a way to have two major modes at the same time, such as org +
> js-mode?

Are you aware of Org-babel's SRC blocks?

#+BEGIN_SRC java
bla bla
#+END_SRC

And, to work on that source block, just hit C-c C-c when point is in the
block.

Best regards,
  Seb

-- 
Sébastien Vauban



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


Re: [Orgmode] [beamer] frame arguments must be in envargs, not extra

2010-01-08 Thread Eric S Fraga
At Thu, 7 Jan 2010 10:38:00 +0100,
Carsten Dominik wrote:
> On Jan 7, 2010, at 1:10 AM, Eric S Fraga wrote:
> > the documentation for beamer support,
> >
> > http://orgmode.org/worg/org-tutorials/org-beamer.php
> >
> > under the "Special properties" heading suggests that the BEAMER_extra
> > property can be used to specify options for the environment.
> >  For
> > frames, trying for instance "[shrink=30]", this doesn't work.
> 
> No, this is not what BEAMER_extra is for, this is the function
> BEAMER_envargs.  BEAMER_extra is just plain LaTeX that will be inserted.

Ah, okay.  That makes sense and BEAMER_envargs does indeed work.  Thanks!

> I don't this the document says differently, can you point out exactly
> where you got this from?

I guess it was me reading too much into what you say about the extra
property.  The problem is that it mentions frames so I thought it
could be used to modify frame behaviour.  However, anything placed in
BEAMER_extra doesn't actually end up right after the \begin{frame} but
instead is placed after the \frametitle directive.  I have no problem
with this but it is slightly inconsistent with the wording for
BEAMER_extra in that the extra text does not get placed immediately
after the environment start.

Thanks again,
eric


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


[Orgmode] Automatic hash keys on new lines

2010-01-08 Thread Thomas Bach
Hi,

using org- and fill-mode together on the following example:

#+BEGIN_QUOTE
ufnle
#+END_QUOTE

ule 

entering some word after the series of u’s the word gets a new line with
a hash key (#) in front.

How can I turn this of?
BTW: What is its use?

Regards,
Thomas.


"GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
 of 2009-09-27 on palmer, modified by Debian"

"Org-mode version 6.30c"


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


Re: [Orgmode] viewing task notes in agenda

2010-01-08 Thread Manish
On Fri, Jan 8, 2010 at 1:07 PM, Carsten Dominik wrote:
>
> On Jan 7, 2010, at 7:34 PM, Manish wrote:
>
>> is there a way to show the notes taken with `z' in agenda view (C-c
>> C-z in org file) in agenda log view?  I take small/quick notes about
>> the progress of a TODO with quick access to `z' key but the log mode
>> only shows the title of the TODO item in the log view.  The notes go
>> inside a LOGBOOK drawer and are not visible even when I activate
>> inactive time stamps with `[' key.  Is this be a viable feature
>> request?  Would others find it useful?  In case it's not, would it be
>> possible to just force open the LOGBOOK when follow-mode is `on' for
>> the inactive timestamped item?
>
> Hi Manish,
>
> I am not sure I understand.  When I press `[', a new entry shows
> up in the agenda, with the text the headline of that entry.
> If I go to that line and press SPACE, I see the note.
>
> What exactly would you have happen?

Currently when I enable inactive timestamps and press SPACE on the
entry in agenda, the LOGBOOK stays of the entry in other window stays
folded.  Repeated SPACE does cycle through various visibility states
but it never opens the LOGBOOK drawer.  I must be missing some
setting..

Ideally (may be as an option), I would love to see the first line of
the note itself instead of the entry headline (the context is anyways
available in the minibuffer, if needed.)  This will save from
switching attention between agenda and org file windows when reviewing
activities.

Regards
-- 
Manish


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


[Orgmode] incorrect checkbox statistics

2010-01-08 Thread Manish
Hello Carsten,

The inconsistency between TODO and list statistics works now.  Thanks!

Statistics cookie updates still have some quirks.  In "Heading 1", the
cookie shows whatever is the value in the cookie for "item 1"
irrespective of the number of items in the list or the cookie position
(even COOKIE_DATA recursive is ignored, e.g. Heading 3)  "Heading 4"
works perfectly only if the leading cookie for first item does not use
[/] or [%].  Hope these various combination are of some help.

--8<---cut here---start->8---
* Heading 1 [1/4]
  1. [1/4] item 1
 1. [X] item 1.1
 2. [ ] item 1.2
 3. [ ] item 1.3
 4. [ ] item 1.4
  2. [0/2] item 2
 1. [ ] item 2.1
 2. [ ] item 2.2
  3. [0/2] item 3
 1. [ ] item 3.1
 2. [ ] item 3.2

* Heading 2 [0/4]
  1. item 1 [0/4]
 1. [ ] item 1.1
 2. [ ] item 1.2
 3. [ ] item 1.3
 4. [ ] item 1.4
  2. [0/2] item 2
 1. [ ] item 2.1
 2. [ ] item 2.2
  3. [0/2] item 3
 1. [ ] item 3.1
 2. [ ] item 3.2

* Heading 3 [3/4]
  :PROPERTIES:
  :COOKIE_DATA: recursive
  :END:
  1. [3/4] item 1
 1. [ ] item 1.1
 2. [X] item 1.2
 3. [X] item 1.3
 4. [X] item 1.4
  2. [0/2] item 2
 1. [ ] item 2.1
 2. [ ] item 2.2
  3. [0/2] item 3
 1. [ ] item 3.1
 2. [ ] item 3.2

* Heading 4 [2/9]
  :PROPERTIES:
  :COOKIE_DATA: recursive
  :END:
  1. [-] item 1 [2/4]
 1. [X] item 1.1
 2. [X] item 1.2
 3. [-] item 1.3
 4. [ ] item 1.4
  2. [0/2] item 2
 1. [ ] item 2.1
 2. [ ] item 2.2
  3. [0/2] item 3
 1. [ ] item 3.1
 2. [ ] item 3.2


--8<---cut here---end--->8---

Regards
-- 
Manish


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


Re: [Orgmode] Exporting non utf8 org documents

2010-01-08 Thread Francesco Pizzolante
Hi Carsten,

> here is a possible solution:
>
> Please get the latest git version of org-mode.  Then put the following code
> into
> .emacs:
>
> (defun my-org-export-latex-fix-inputenc ()
>   "Set the codingsystem in inputenc to what the buffer is."
>   (let* ((cs buffer-file-coding-system)
>  (opt (latexenc-coding-system-to-inputenc cs)))
> (when opt
>   (goto-char (point-min))
>   (while (re-search-forward "usepackage\\[\\(.*?\\)\\]
> {inputenc}"
> nil t)
> (goto-char (match-beginning 1))
> (delete-region (match-beginning 1) (match-end 1))
> (insert opt))
>   (save-buffer
>
> (eval-after-load "org-latex"
>   '(add-hook 'org-export-latex-after-save-hook
>  'my-org-export-latex-fix-inputenc))
>
> Let me know how it goes.

Thanks for your solution.

I've tested with both latin1 and utf8 Org buffers and I get the correct
encoding passed to LaTeX in both cases.

Regarding the utf8 encoding, I had a remark in my first message, which was:

>> In addition, Org should use the `utf8x' option (instead of `utf8') which
>> enables to handle unbreakable spaces (useful in french).

Could you change that too?

Thanks a lot,
Francesco


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


Re: [Orgmode] Exporting non utf8 org documents

2010-01-08 Thread Carsten Dominik


On Jan 8, 2010, at 1:36 PM, Francesco Pizzolante wrote:


Hi Carsten,


here is a possible solution:

Please get the latest git version of org-mode.  Then put the  
following code

into
.emacs:

   (defun my-org-export-latex-fix-inputenc ()
 "Set the codingsystem in inputenc to what the buffer is."
 (let* ((cs buffer-file-coding-system)
(opt (latexenc-coding-system-to-inputenc cs)))
   (when opt
 (goto-char (point-min))
 (while (re-search-forward "usepackage\\[\\(.*?\\)\\]
{inputenc}"
   nil t)
   (goto-char (match-beginning 1))
   (delete-region (match-beginning 1) (match-end 1))
   (insert opt))
 (save-buffer

   (eval-after-load "org-latex"
 '(add-hook 'org-export-latex-after-save-hook
'my-org-export-latex-fix-inputenc))

Let me know how it goes.


Thanks for your solution.

I've tested with both latin1 and utf8 Org buffers and I get the  
correct

encoding passed to LaTeX in both cases.

Regarding the utf8 encoding, I had a remark in my first message,  
which was:


In addition, Org should use the `utf8x' option (instead of `utf8')  
which

enables to handle unbreakable spaces (useful in french).


Could you change that too?


no, because utf8x is not in all TeX distributions, so that is too  
risky.  I was considering to make it configurable, though.


- Carsten



Thanks a lot,
Francesco


- Carsten





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


Re: [Orgmode] Exporting non utf8 org documents

2010-01-08 Thread Carsten Dominik


On Jan 8, 2010, at 1:36 PM, Francesco Pizzolante wrote:


Hi Carsten,


here is a possible solution:

Please get the latest git version of org-mode.  Then put the  
following code

into
.emacs:

   (defun my-org-export-latex-fix-inputenc ()
 "Set the codingsystem in inputenc to what the buffer is."
 (let* ((cs buffer-file-coding-system)
(opt (latexenc-coding-system-to-inputenc cs)))
   (when opt
 (goto-char (point-min))
 (while (re-search-forward "usepackage\\[\\(.*?\\)\\]
{inputenc}"
   nil t)
   (goto-char (match-beginning 1))
   (delete-region (match-beginning 1) (match-end 1))
   (insert opt))
 (save-buffer

   (eval-after-load "org-latex"
 '(add-hook 'org-export-latex-after-save-hook
'my-org-export-latex-fix-inputenc))

Let me know how it goes.


Thanks for your solution.

I've tested with both latin1 and utf8 Org buffers and I get the  
correct

encoding passed to LaTeX in both cases.

Regarding the utf8 encoding, I had a remark in my first message,  
which was:


In addition, Org should use the `utf8x' option (instead of `utf8')  
which

enables to handle unbreakable spaces (useful in french).


Could you change that too?



In, fact, you can change it in the code I sent you:

Add

   (if (equal opt "utf8") (setq opt "utf8x"))


wight before

   (when opt


I am still thinking about if and how I can add this in a stable
way to the default code

- Carsten

- Carsten


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


Re: [Orgmode] Automatic hash keys on new lines

2010-01-08 Thread Carsten Dominik

Hi Thomas,

this is a FAQ:

Hi Thomas, this is a FAQ:

see

http://orgmode.org/worg/org-faq.php#auto-fill-and-unwanted-comments


HTH

- Carsten

On Jan 8, 2010, at 11:51 AM, Thomas Bach wrote:


Hi,

using org- and fill-mode together on the following example:

#+BEGIN_QUOTE
ufnle
#+END_QUOTE

ule 

entering some word after the series of u’s the word gets a new line  
with

a hash key (#) in front.

How can I turn this of?
BTW: What is its use?

Regards,
   Thomas.


"GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
of 2009-09-27 on palmer, modified by Debian"

"Org-mode version 6.30c"


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


- Carsten





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


Re: [Orgmode] symbol request ins org-html-entities

2010-01-08 Thread Carsten Dominik

OK, I added this.

Thanks.

- Carsten

On Jan 6, 2010, at 5:23 PM, Xin Shi wrote:


Hello Experts,

Sometimes, I found it would be handy to put "checkmarks" in tables.  
In TeX, it is \checkmark, while in HTML, its ✓

see page: http://www.mistywindow.com/reference/html-characters.htm)

It looks the const "org-html-entities" is defined in org-exp.el, can  
we include this ? In the long run, it might be usful if it can be  
extended by user.


Thanks!

Xin





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


- Carsten





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


Re: [Orgmode] [beamer] frame arguments must be in envargs, not extra

2010-01-08 Thread Carsten Dominik


On Jan 8, 2010, at 10:29 AM, Eric S Fraga wrote:


At Thu, 7 Jan 2010 10:38:00 +0100,
Carsten Dominik wrote:

On Jan 7, 2010, at 1:10 AM, Eric S Fraga wrote:

the documentation for beamer support,

http://orgmode.org/worg/org-tutorials/org-beamer.php

under the "Special properties" heading suggests that the  
BEAMER_extra

property can be used to specify options for the environment.
For
frames, trying for instance "[shrink=30]", this doesn't work.


No, this is not what BEAMER_extra is for, this is the function
BEAMER_envargs.  BEAMER_extra is just plain LaTeX that will be  
inserted.


Ah, okay.  That makes sense and BEAMER_envargs does indeed work.   
Thanks!



I don't this the document says differently, can you point out exactly
where you got this from?


I guess it was me reading too much into what you say about the extra
property.  The problem is that it mentions frames so I thought it
could be used to modify frame behaviour.  However, anything placed in
BEAMER_extra doesn't actually end up right after the \begin{frame} but
instead is placed after the \frametitle directive.  I have no problem
with this but it is slightly inconsistent with the wording for
BEAMER_extra in that the extra text does not get placed immediately
after the environment start.


Yes.

That document is a bit outdated, I think the manual formulates this a  
bit better already.


Actually, I am hoping very much that you and maybe a few other will turn
the Worg page into something much more useful, wit examples, tips and  
tricks,

and whatnot.

- Carsten



Thanks again,
eric


- Carsten





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


[Orgmode] Re: OrgmodeGeneric export: Missing (?) 'body-section-suffix'

2010-01-08 Thread Wes Hardaker
> On Thu, 07 Jan 2010 22:26:04 +0100, Christian Lasarczyk 
>  said:

CL> In my opinion the body-section-suffix [ here =")" ] is missing for
CL> all last section levels (hhh & jjj), so I expected an additional
CL> "))" at the end.

You're right that after the parsing is done it doesn't "pop back up" the
level tree for any close-out stuff.  Good catch.

Here's a patch to fix this (Carsten: can you apply it to your git tree?)

diff --git a/contrib/lisp/org-export-generic.el 
b/contrib/lisp/org-export-generic.el
index 90517c0..7b4a30d 100644
--- a/contrib/lisp/org-export-generic.el
+++ b/contrib/lisp/org-export-generic.el
@@ -949,6 +949,15 @@ underlined headlines.  The default is 3."
  (org-export-generic-wrap line bodylinewrap))
  (setq line line)))
(insert (format bodylineform line)
+
+;; if we're at a level > 0; insert the closing body level stuff
+(let ((counter 0))
+  (while (> (- level counter) 0)
+ (insert
+  (org-export-generic-format export-plist :body-section-suffix 0
+ (- level counter)))
+ (setq counter (1+ counter
+
 (org-export-generic-check-section "bottom")

 (org-export-generic-push-links (nreverse link-buffer))

-- 
Wes Hardaker 
My Pictures:  http://capturedonearth.com/
My Thoughts:  http://pontifications.hardakers.net/


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


Re: [Orgmode] Re: Orgmode + other modes for outlining and studying.

2010-01-08 Thread Thomas S. Dye

Hi Seb and Marcelo,

Currently, java isn't on the list of Org-babel supported languages, so  
I don't know if Seb's solution will work out of the box.  Org-babel  
has a facility for adding new language support.  A java addition would  
be great.  Seb, if you have this working could you share your approach?


I agree with Seb that Org-babel is useful in the situation that  
Marcelo describes.  I use it this way myself with python.  Comments  
are distinguished from code very cleanly.  In effect, you end up with  
a literate program.


All the best,
Tom

On Jan 7, 2010, at 10:49 PM, Sébastien Vauban wrote:


Hi Marcelo,

Marcelo de Moraes Serpa wrote:

Orgmode files are great for studying, for example, code.

Everytime I need to study some unknown code, I create a new org  
file, put a
* Code headline, paste the code in there and start making notes  
below or in
the code (as comments). It is extremelly fast and efficient to do  
something

like that, things just flow.

What I'd like to know is if there's a way to have, for example,  
orgmode +
javascript-mode, so that I can get syntax-highlighting/coloring on  
the
pasted javascript code. I've tried with javascript mode, but since  
it is a
major mode, it just kills org and all its goodies, and I don't want  
that.


Is there a way to have two major modes at the same time, such as  
org +

js-mode?


Are you aware of Org-babel's SRC blocks?

#+BEGIN_SRC java
bla bla
#+END_SRC

And, to work on that source block, just hit C-c C-c when point is in  
the

block.

Best regards,
 Seb

--
Sébastien Vauban



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




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


Re: [Orgmode] Re: OrgmodeGeneric export: Missing (?) 'body-section-suffix'

2010-01-08 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Jan 8, 2010, at 4:51 PM, Wes Hardaker wrote:

On Thu, 07 Jan 2010 22:26:04 +0100, Christian Lasarczyk > said:


CL> In my opinion the body-section-suffix [ here =")" ] is missing for
CL> all last section levels (hhh & jjj), so I expected an additional
CL> "))" at the end.

You're right that after the parsing is done it doesn't "pop back up"  
the

level tree for any close-out stuff.  Good catch.

Here's a patch to fix this (Carsten: can you apply it to your git  
tree?)


diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org- 
export-generic.el

index 90517c0..7b4a30d 100644
--- a/contrib/lisp/org-export-generic.el
+++ b/contrib/lisp/org-export-generic.el
@@ -949,6 +949,15 @@ underlined headlines.  The default is 3."
 (org-export-generic-wrap line bodylinewrap))
 (setq line line)))
   (insert (format bodylineform line)
+
+;; if we're at a level > 0; insert the closing body level stuff
+(let ((counter 0))
+  (while (> (- level counter) 0)
+ (insert
+  (org-export-generic-format export-plist :body-section-suffix 0
+ (- level counter)))
+ (setq counter (1+ counter
+
(org-export-generic-check-section "bottom")

(org-export-generic-push-links (nreverse link-buffer))

--
Wes Hardaker
My Pictures:  http://capturedonearth.com/
My Thoughts:  http://pontifications.hardakers.net/


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


- Carsten





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


Re: [Orgmode] Smart(er) word wrapping with org-mode and visual-line-mode

2010-01-08 Thread Carsten Dominik


On Jan 6, 2010, at 4:25 PM, Martin Pohlack wrote:


Hi Matthew,

Matthew Dempsky wrote:

While playing around with the different options for handling word
wrapping in org-mode, I decided to instead hack an extension that
improves visual-line-mode's word wrapping when used in conjunction
with org-mode.  In particular, the mrd-org-smartwrap minor mode
automatically sets the `wrap-prefix' property on all section  
headlines
and plain list entries so that visual-line-mode's native word  
wrapping

looks identical to what careful and continual usage of TAB and M-q
should produce, without any of the quirks of using auto-fill-mode or
refill-mode.

Just thought I'd share in case anyone else found it useful /  
interesting.


I just tried this out (only for headlines up to now) and it seems to
work great.




Are there any plans to integrate something like this into upstream?
Especially the wrapping of headlines would enable extensive tag usage.


I have been thinking about that, but not arrived at a conclusion.  One  
thing is the interaction with org-indent-mode.  That mode already does  
the wrapping for headlines correctly by adding `wrap-prefix', and it  
will look really good if you set the variable word-wrap to t.   
However, the showstoppers are the following:


1. I cannot bring myself to turn off truncate-lines, because it
   messes up tables and code examples badly, and these are major
   components of my work.  I have actually put in a feature
   request into Emacs for a property `truncate-line', to be
   able to control this line by line.  I got positive feedback,
   but I don't know when any of the developers finds time
   to implement it - I cannot do that myself.

2. Visual-line-mode is also a no go for me, I use keyboard
   macros a lot and need to be able to rely on the fact that
   [down] move the cursor into the next physical line.

So I am not sure how to handle this.  We could turn Matthews
code into a module that users can turn on if they wish.

- Carsten








Cheers,
Martin Pohlack


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


- Carsten





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


Re: [Orgmode] [beamer &/or latex export] problem with old style footnotes

2010-01-08 Thread Carsten Dominik

Hi Eric,

On Jan 7, 2010, at 12:47 AM, Eric S Fraga wrote:


Carsten,

In latex, I often use a simple \begin{itemize} with labelled items,  
as in


\begin{itemize}
\item [3] This will be labelled with 3 instead of a bullet
\item [$\checkmark$] This will have a checkmark in lieu of the bullet
\end{itemize}

In org-mode, with beamer mode, I can do this except for the cases
where the replacement text is just a number as org-mode seems to treat
this as a footnote.  I have fninline set in the startup as well as
org-footnote-define-inline set to t globally but the export still
treats these old style footnotes as footnotes.



Hmm, this is not an easy thing.  The syntax you are using is entirely
LaTeX specific, so it will fail in other export backends.
Therefore I am hesitating to put this in as a standard feature.

If you want to have this, you could do the following.  It installs
a function into the export process that will protect such item
bullets from further processing.  The regexp looks quite
complex - this is only because there are 5 different
types of bullets and we also must make sure that a level
1 headline will not be mistaken for a plain list item.
What this really does is finding square brackets at
the beginning of an item, and adding a text property to prevent
further processing.

Hope that does what you need.

- Carsten

---

(defun protect-item-bullets ()
  (goto-char (point-min))
  (while (re-search-forward
	  "\\([ \t]*\\([-+]\\|\\([0-9]+[.)]\\)\\)\\|[ \t]+\\*\\) +\\(\\[[^] 
[\n]+\\] \\)" nil t)
(put-text-property (match-beginning 4) (match-end 4) 'org- 
protected t)))


(add-hook 'org-export-preprocess-hook 'protect-item-bullets)


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


[Orgmode] Re: OrgmodeGeneric export: Missing (?) 'body-section-suffix'

2010-01-08 Thread Christian Lasarczyk
Dear Wes,

thank you fixing this issue so fast. I will test it, as so as patch is in 
the repository.

Best regards,
   Christian

Wes Hardaker wrote:

> Here's a patch to fix this (Carsten: can you apply it to your git tree?)
> 




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


Re: [Orgmode] [beamer &/or latex export] problem with old style footnotes

2010-01-08 Thread Eric S Fraga
At Fri, 8 Jan 2010 17:47:06 +0100,
Carsten Dominik wrote:
> 
> Hi Eric,
> 
> On Jan 7, 2010, at 12:47 AM, Eric S Fraga wrote:
> 
> > Carsten,
> >
> > In latex, I often use a simple \begin{itemize} with labelled items,
> > as in
> >
> > \begin{itemize}
> > \item [3] This will be labelled with 3 instead of a bullet
> > \item [$\checkmark$] This will have a checkmark in lieu of the bullet
> > \end{itemize}
> >
> > In org-mode, with beamer mode, I can do this except for the cases
> > where the replacement text is just a number as org-mode seems to treat
> > this as a footnote.  I have fninline set in the startup as well as
> > org-footnote-define-inline set to t globally but the export still
> > treats these old style footnotes as footnotes.
> 
> 
> Hmm, this is not an easy thing.  The syntax you are using is entirely
> LaTeX specific, so it will fail in other export backends.
> Therefore I am hesitating to put this in as a standard feature.

That makes sense... I have such a latex centric view at times (both
because of lecture preparations and writing academic papers) that I
forget about other export targets!  

> If you want to have this, you could do the following.  It installs

[...]

> Hope that does what you need.

Actually, just yesterday I found that simply adding a space to the
bracketed entry, such as "[ 2]", solves the problem for org-mode and
doesn't affect the latex at all.

Thanks,
eric


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


Re: [Orgmode] [beamer] frame arguments must be in envargs, not extra

2010-01-08 Thread Eric S Fraga
At Fri, 8 Jan 2010 16:31:38 +0100,
Carsten Dominik wrote:
> >> On Jan 7, 2010, at 1:10 AM, Eric S Fraga wrote:
> >>> the documentation for beamer support,
> >>>
> >>> http://orgmode.org/worg/org-tutorials/org-beamer.php

> Actually, I am hoping very much that you and maybe a few other will turn
> the Worg page into something much more useful, wit examples, tips and
> tricks,
> and whatnot.

Sure.  Once the hectic time of start of term (lectures start on
Monday) passes, I'll go through my recently prepared lecture notes and
will add any snippets and tips that could be useful to others.

eric


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


Re: [Orgmode] [beamer] frame arguments must be in envargs, not extra

2010-01-08 Thread Carsten Dominik


On Jan 8, 2010, at 8:29 PM, Eric S Fraga wrote:


At Fri, 8 Jan 2010 16:31:38 +0100,
Carsten Dominik wrote:

On Jan 7, 2010, at 1:10 AM, Eric S Fraga wrote:

the documentation for beamer support,

http://orgmode.org/worg/org-tutorials/org-beamer.php


Actually, I am hoping very much that you and maybe a few other will  
turn

the Worg page into something much more useful, wit examples, tips and
tricks,
and whatnot.


Sure.  Once the hectic time of start of term (lectures start on
Monday) passes, I'll go through my recently prepared lecture notes and
will add any snippets and tips that could be useful to others.

eric



That would be great.

- Carsten





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


[Orgmode] About the in-buffer setting of nologdone

2010-01-08 Thread Water Lin

I have enable variables org-log-done by following code:

(setq org-log-done 'time)
(setq org-log-done 'note)


But in some file I don't want to enable done time and done note, so I
use in-buffer setting to fix this. Here is the reference:
---
http://orgmode.org/manual/In_002dbuffer-settings.html
---

There are some explanation about "nologdone" variable. But I jsut can't
figure out how to use it as in-buffer setting.

How to use it? Any example?

Thanks

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: water...@ymail.com
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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