Re: [Orgmode] centering text in html

2010-10-12 Thread Christian Moe

Hi again, Vinh,

More to the point, why don't you just use

#+BEGIN_CENTER
{ [[file:index.org][Home]] | [[file:files.org][Announcements and Files]] }
#+END_CENTER

See info:org:Paragraphs.

Cheers,
CM


On 10/11/10 7:02 PM, Christian Moe wrote:

Hi,

Of the two non-working examples, one is due to what I think is
slightly buggy behavior by Org where =#+HTML:= lines are followed
immediately by a line of text. The other should work fine.

* With == and inline CSS

#+HTML: 
{ [[file:index.org][Home]] | [[file:files.org][Announcements and
Files]] }
#+HTML: 

doesn't work because it results in

#+begin_src html


{ Home | Announcements
and Files }



#+end_src

A new =...= is added at the line breaks. A == element isn't
supposed to contain another == element, so it won't work.

I think this is undesirable, perhaps a bug; only text blocks delimited
by blank lines should be considered paragraphs and exported as ==.

* With == and class

#+HTML: 
{ [[file:index.org][Home]] | [[file:files.org][Announcements and
Files]] }
#+HTML: 

This should work, supposing you write CSS for it, e.g. by adding this
to your header:

: #+STYLE: .centeralign {text-align: center}

There is no =centeralign= class in the default stylesheet, so you
can't expect it to work out of the box.





On 10/11/10 5:21 PM, Vinh Nguyen wrote:

On Mon, Oct 11, 2010 at 12:41 AM, Carsten Dominik
 wrote:

You give us *very* little to chew on.


Sorry about this. I meant to elicit on what folks do when they want
to center text I general. I should've known better to put down what
I've tried. I just got it working but will also put down what I tried
to let others know what did not work.


How about:

- what have you tried?


#+HTML:
{ [[file:index.org][Home]] | [[file:files.org][Announcements and
Files]] }
#+HTML:

and

#+HTML:
{ [[file:index.org][Home]] | [[file:files.org][Announcements and
Files]] }
#+HTML:



- an example HTML code that would do the right thing



THIS WORKED:
#+HTML:
{ [[file:index.org][Home]] | [[file:files.org][Announcements and
Files]] }
#+HTML:



etc etc etc. If you want people to help you solve a problem,
please do your part by giving them *as much as possible* information.

- Carsten


-- Vinh

___
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







--

Christian Moe
E-mail:  m...@christianmoe.com
Website: http://christianmoe.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


Re: [Orgmode] puzzling plain list and tree folding behaviour

2010-10-12 Thread Brian van den Broek

Hi all,

I forgot one detail. Apologies.

Brian van den Broek said unto the world at 10-10-12 01:59 AM:

 Montréal-Python 16
<2010-10-18 Mon 18:00-21:30>

Montréal-Python 16 will take place in room PK-1620 of UQAM on





- 19h20 Main presentations
- 20h30 Discussions and refreshments at Benelux

Our main presenter is going to be Simon Law and he is going to talk
about Startup Mistakes in Cloud Deployment.





3) If I hit TAB on any of the - lines of the plain list save the last, I
get the mini-buffer message `EMPTY ENTRY'. If I hit TAB on the last line
(`- 20h30...') the paragraph `Our main presenter...' gets folded under
that line.


The behaviour noted at (3) occurs even when I alter the item in question 
so that the `Our main...' line commences several characters to the left 
of the bullet `-'. (My first post had proper indentation in the snippet 
from my org file.)


Thanks and best,

Brian vdB

___
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] full production use of org-mode: time to say thanks again!

2010-10-12 Thread Carsten Dominik


On Oct 11, 2010, at 9:33 PM, Jeff Horn wrote:


Christian and Nick,

I suppose the advantage of inline tasks is that they appear even when
the document is folded?


The main advantage is that you can note a task without forcing changes  
to the document structure.


- Carsten


So far I've been moving/refiling todos into a
top-level Tasks header in each document to get this sort of behavior.
But this sounds like less overhead, so it is a plus in that regard.

Jeff

On Sat, Oct 9, 2010 at 3:03 PM, Christian Moe  
 wrote:

I see. Thanks.

Christian

On 10/9/10 7:15 PM, Nick Dokos wrote:


Christian Moe  wrote:


What's an inline todo?

Just curious,
Christian



See the commentary in lisp/org-inlinetask.el.

Nick

___
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




--

Christian Moe
E-mail:  m...@christianmoe.com
Website: http://christianmoe.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





--
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.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


- 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] How to trigger costumed agenda after startup?

2010-10-12 Thread Puneeth
Chao,

On Tue, Oct 12, 2010 at 11:16 AM, Chao LU  wrote:
> Dear list,
>
> The first thing for me to do after starting Emacs is just going to some
> costumed agenda command, how to trigger these agendas by .emacs?
>
Add the following to your .emacs

   (org-agenda nil "R")

where R is the key for that particular agenda view.

HTH,
Puneeth

ps: I really don't know what the first argument does (yet)

___
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: export

2010-10-12 Thread Jörg Hagmann



  regarding "export to latex":

When exporting to latex ("C-e", "l") a new frame opens (it didn't
before).  There must be a customization option for avoiding that, but
I can't find it.

Emacs 23.2.1, recent pull.

I am not able to reproduce this on

Org-mode version 7.01trans (release_7.01h.661.g6803)
GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
  of 2010-01-30 on noorul
Well, it only happens on my mac, not on Linux. I thought I inadvertently 
must have changed something.
PS: The new frame contains the .org file I'm exporting from, not the 
exported (.tex) file.


Thanks, Jörg

___
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] full production use of org-mode: time to say thanks again!

2010-10-12 Thread Eric S Fraga
On Mon, 11 Oct 2010 15:33:37 -0400, Jeff Horn  wrote:
> 
> Christian and Nick,
> 
> I suppose the advantage of inline tasks is that they appear even when
> the document is folded? So far I've been moving/refiling todos into a
> top-level Tasks header in each document to get this sort of behavior.
> But this sounds like less overhead, so it is a plus in that regard.

The main advantage for me is simply one of not having to interrupt my
flow of writing.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: UPDATE schedule/deadline and ido-mode conflict

2010-10-12 Thread Antoine Levitt
14/05/10 13:33, Carsten Dominik
> On May 14, 2010, at 10:27 AM, David Lee wrote:
>
>> On 05/13/2010 11:04 AM, David Lee wrote:
>>> On 05/13/2010 10:26 AM, Nick Dokos wrote:
 David Lee wrote:

> On 05/12/2010 11:46 PM, Nick Dokos wrote:
>> David Lee wrote:
>>
>>
>>> After insert schedule and deadline by C-c C-s, C-c C-d, I switch
>>> buffer by ido-mode command ido-switch-buffer.
>>>
>>> Emacs will give out a message:
>>> Error in post-command-hook: (void-variable org-ans1)
>>>
>>> And ido-switch-buffer doesn't work.
>>>
>>> My environment: Emacs 23.1, Org-mode 6.36.
>>>
>>
>> Please post a backtrace. To find out how to get a backtrace, read
>> section 1.4, "Feedback", of the Org manual.
>>
>
> I turn on "Enter Debugger On error" all the time, and follow the
> instruction in Org Info.
> But I cannot get the backtrace, seems its not an *error* (didn't
> fire
> up elisp debugger), but just a message?
>
> The conflict make me give up schedule/deadline.
>
> So, any other suggestion on get the backtrace?
>

 Nope - no ideas/suggestions: seems to me it should have triggered.

 What's the value of post-command-hook just before you get the error?
 Note that that's a buffer-local variable, so you'll have to
 evaluate it
 (using `C-h v post-command-hook') in the correct buffer.

 Nick


>>>
>>> Hi, Nick, the error is not consistent, and I cannot always capture
>>> it.
>>> Is it related to the variable org-ans1?
>>>
>>> From my local buffer (I am *not* very sure whether the value is
>>> before
>>> the error, since sometimes C-h v affect the error conditions and make
>>> ido-switch-buffer work, I will try to investigate the error when I
>>> can
>>> reproduce it):
>>>
>>> ;;;
>>> post-command-hook is a variable defined in `C source code'.
>>> Its value is
>>> (linum-update-current t flyspell-post-command-hook)
>>>
>>> Local in buffer emacs.org; global value is
>>> (global-font-lock-mode-check-buffers
>>> global-auto-composition-mode-check-buffers
>>> global-linum-mode-check-buffers cua--post-command-handler)
>>>
>>>
>>> - David
>>
>> I tried DEADLINE today. The steps are:
>> 1. C-c C-d to add DEADLINE, choose date from calendar.
>
> How exactly do you choose it?  Keyboard,mouse? List the exact key/
> envents, please
>
> - Carsten
>

Hi,

I get the same bug when selecting a date by mouse. It seems that
org-read-date-display is added to post-command-hook and never
deleted. The code responsible for this seems to be:

(unwind-protect
(progn
  (use-local-map map)
  (add-hook 'post-command-hook 'org-read-date-display)
  (setq org-ans0 (read-string prompt default-input
  'org-read-date-history nil))
  ;; org-ans0: from prompt
  ;; org-ans1: from mouse click
  ;; org-ans2: from calendar motion
  (setq ans (concat org-ans0 " " (or org-ans1 org-ans2
  (remove-hook 'post-command-hook 'org-read-date-display)

After the bug happens, every command causes the error (void-variable
org-ans1). post-command-hook looks like:

post-command-hook is a variable defined in `C source code'.
Its value is nil
Local in buffer *followup to Carsten Dominik on gmane.emacs.orgmode*;
global value is

(global-font-lock-mode-check-buffers
global-highlight-parentheses-mode-check-buffers
autopair-global-mode-check-buffers org-read-date-display)

(it is locally set to nil by emacs after an error is triggered, see the
help page of post-command-hook)


>>
>> 2. Try ido-switch-buffer, didn't work and Emacs show
>> Error in post-command-hook: (void-variable org-ans1)
>>
>> 3. C-h v post-command-hook, Emacs show
>> post-command-hook\ \ \  is void as a variable.
>>
>> 4. Try ido-switch-buffer, it worked.
>>
>> So, I use *C-h v post-command-hook* to solve the problem :)
>>
>> Emacs 23.1 on Ubuntu9.04, Org-mode 6.36.
>>
>>
>>
>> ___
>> 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


___
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] Worg buglet

2010-10-12 Thread Eric S Fraga
On Tue, 12 Oct 2010 08:55:00 +0530, Puneeth  wrote:
> 
> On Tue, Oct 12, 2010 at 6:39 AM, Robert Goldman  wrote:
> > The link to the sample presentation, from
> >
> > http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.php
> >
> > to
> >
> > http://orgmode.org/worg/org-tutorials/org-beamer/presentation.org
> >
> > is broken.
> 
> Fixed.

Actually, it's not!  It is now broken...  I fixed this on 2 October
but there may be a problem with the publishing process if the
resulting published files are wrong?

To explain, the footnote was previously fixed to point to the actual
"org" file, not the "php" created by the publishing mechanism on Worg.
The file, presentation.org, is meant to be an example document that
can be downloaded, not a document for viewing on the web.

Can you please revert your change?

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


[Orgmode] Re: export

2010-10-12 Thread Noorul Islam K M
Jörg Hagmann  writes:

>  regarding "export to latex":
>
> When exporting to latex ("C-e", "l") a new frame opens (it didn't
> before).  There must be a customization option for avoiding that, but
> I can't find it.
>
> Emacs 23.2.1, recent pull.
>

I am not able to reproduce this on 

Org-mode version 7.01trans (release_7.01h.661.g6803)
GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
 of 2010-01-30 on noorul

Thanks and Regards
Noorul

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


Re: [Orgmode] Worg buglet

2010-10-12 Thread Puneeth
On Tue, Oct 12, 2010 at 1:45 PM, Eric S Fraga  wrote:
>
> Actually, it's not!  It is now broken...  I fixed this on 2 October
> but there may be a problem with the publishing process if the
> resulting published files are wrong?
>
> To explain, the footnote was previously fixed to point to the actual
> "org" file, not the "php" created by the publishing mechanism on Worg.
> The file, presentation.org, is meant to be an example document that
> can be downloaded, not a document for viewing on the web.
>
> Can you please revert your change?

Apologies.

Reverted my change.

-- Puneeth

___
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] Worg buglet

2010-10-12 Thread Eric S Fraga
On Tue, 12 Oct 2010 14:49:26 +0530, Puneeth  wrote:
> 
> On Tue, Oct 12, 2010 at 1:45 PM, Eric S Fraga  wrote:
> >
> > Actually, it's not!  It is now broken...  I fixed this on 2 October
> > but there may be a problem with the publishing process if the
> > resulting published files are wrong?
> >
> > To explain, the footnote was previously fixed to point to the actual
> > "org" file, not the "php" created by the publishing mechanism on Worg.
> > The file, presentation.org, is meant to be an example document that
> > can be downloaded, not a document for viewing on the web.
> >
> > Can you please revert your change?
> 
> Apologies.
> 
> Reverted my change.
> 
> -- Puneeth

Thanks.  Once the latest version of the tutorial is published, I'll
check to see what is happening to the footnote.  I know there have
been some problems with publishing links to org files in the past...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] optimal usage Q : how would you do this?

2010-10-12 Thread Richard Riley

I'd like to see how others manipulate org.

Lets say I have a load of contracts to follow up on.

heres the raw data

,
| Contracts to follow up on
| 
|  Basics
|   Vattenfall
|   Water
|   HanseGas
|  Insurances
|   Zürich
|   BGN
|   IHK (not really insurance though)
|  Suppliers
|   Unterbichler
|   COlle
|   Ökokill
|   Tobacoland
|   Strelow
`

How would you organise that in org?

And how would you do it with regard to the keyboard and levelling.

Is there a short cut to generate the lot as a multilevel single todo item with
a list of sub components which must each be done? Can they be list items
or better they each be individual org items? 

I ask because sometimes I wonder if I am doing things far from optimally
and would love to see how others would change the raw data above into an
all singing all dancing all tracking org unit(s) of work,

regards

r.


___
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] optimal usage Q : how would you do this?

2010-10-12 Thread Giovanni Ridolfi
Richard Riley  writes:

Hi, Richard

>
> Lets say I have a load of contracts to follow up on.
> heres the raw data
> ,
> | Contracts to follow up on
> | 
> |  Basics
> |   Vattenfall
> |   Water
> |   HanseGas
> |  Insurances
> |   Zürich
> |   BGN
> |   IHK (not really insurance though)
> |  Suppliers
> |   Unterbichler
> |   COlle
> |   Ökokill
> |   Tobacoland
> |   Strelow
> `
>
> How would you organise that in org?
I'd transform plain test in headline with `C-c *'
(`org-toggle-heading') [1]

and would work with the power of TODO items: Agenda, sparse tree...

> And how would you do it with regard to the keyboard and levelling.
Depends on your file.
 
Basics  ( nth---level)
 Water  ( nth+1-level)

>
> Is there a short cut to generate the lot as a multilevel single todo item with
> a list of sub components which must each be done? 
Statistics [/] [%] works also for TODOs

[1] Manual: Structure editing

cheers,
Giovanni

___
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: [babel] [BUG] incorrect indentation when tangling with org-src-preserve-indentation

2010-10-12 Thread Dan Davison
Antti Kaihola  writes:

> Here's another stab at fixing the problem. This one enhances the
> existing trimming algorithm by preserving any leading whitespace on
> the first non-blank line of a block. This probably breaks tangling of
> other languages than Python, but someone more familiar with the babel
> codebase will be able to come up with a saner solution.

Hi Antti,

Thanks for the report and patches. I've just pushed a modification of
your patch, along the lines of

-   "\n" (org-babel-trim body) "\n"))
+   "\n" (org-babel-trim body (if org-src-preserve-indentation "[\f\n\r\v]")) 
"\n"))

Thus spaces and tabs should no longer be trimmed when
`org-src-preserve-indentation' is non-nil. Hopefully this fixes things.

Dan

>
>
> diff --git a/lisp/ob-python.el b/lisp/ob-python.el
> index c172756..39665c2 100644
> --- a/lisp/ob-python.el
> +++ b/lisp/ob-python.el
> @@ -58,3 +58,3 @@
>  (nth 1 (or processed-params (org-babel-process-params params))) "\n")
> -   "\n" (org-babel-trim body) "\n"))
> +   "\n" (org-babel-indent-safe-trim body) "\n"))
>
> diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
> index 3a0426a..e619e90 100644
> --- a/lisp/ob-tangle.el
> +++ b/lisp/ob-tangle.el
> @@ -368,3 +368,3 @@ form
>(insert (format "%s\n" (replace-regexp-in-string
> -   "^," "" (org-babel-trim body
> +   "^," "" (org-babel-indent-safe-trim body
>(when link-p
> diff --git a/lisp/ob.el b/lisp/ob.el
> index b05100c..9d750e7 100644
> --- a/lisp/ob.el
> +++ b/lisp/ob.el
> @@ -1723,2 +1723,9 @@ overwritten by specifying a regexp as a second 
> argument."
>
> +(defun org-babel-indent-safe-trim (string)
> +  "Strip leading and trailing spaces and carriage returns from STRING.
> +Like `org-babel-chomp' only it runs on both the front and back
> +of the string. Preserves leading tabs and spaces on first non-blank line."
> +  (string-match "\\`\\(?:[ \f\t\n\r\v]*\n\\)?\\(\\(?:\n?.*?\\)*?\\)[
> \f\t\n\r\v]*\\'" string)
> +  (match-string 1 string))
> +
>  (defun org-babel-trim (string &optional regexp)
>
> ___
> 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] how to reverse a region of outline items

2010-10-12 Thread brian powell
* A macro would definitely do this--a "keyboard macro" solution is simple:

To create a keyboard macro do something like this:
Cx ( etc. Cx ) ;  Mx name-last-keyboard-macroetc.

To me, Cx (.Cx )...--creating a "keyboard macro" seems to be the most
useful thing one can use Editor MACroS/Emacs for!

;-)

** The solution is simple because of the features of OrgMode--the function
of folding tree-nodes, makes it more simple than you might think:

*** Have the macro do something like this:
1. Fold everything up to just the major headings.
2. Go to just below "* A" and put a string like "jjj"--and/or Mx
set-mark--on its own line
3. Go down one row and do Ck.
4. MS<  ==  EscapeShiftLessThanSign  ---i.e. have macro repeatedly go to the
top.
5. Cy
6. Cs jjj
7. Repeat 3->7.

(Make 2 macros: The first does steps 1 and 2 and then does Cu 1
macro-that-you-make-that-does-Ck-on-next-line-and-go-to-the-top ---i.e.
steps 3-6.
This way you have 1 macro call the other macro 1 times or until you run
out of lines/major sections whichever happens first.)

You can make a macro that does the above--or just the second part and do:
 Cu 1 Mx blah-new-macro-that-reverses-the-section-headings
--then it would process a 10k major-headings-long-document or halt and "ring
the bell" when you run out of major headings to process--DownArrow will hit
the EndOfFile.  Then you have a reusable macro that does what you want--with
all the subtrees/subsections just where they started--untouched.

I agree with Nicolas below, and his solution is generally what one might
seek; but, a "keyboard macro" here allows you to do what you described
without sorting or alphabetizing, etc.---the last major heading becomes the
first and the first major heading becomes the last, regardless of the
contents.  Once keyboard macros are named and placed in .emacs, they are
reusable.

Good luck.



On Sat, Oct 9, 2010 at 1:14 PM, Nicolas Goaziou  wrote:

> Hello,
>
> C-c ^ A will sort the list alphabetically, in reversed order.
>
> If you do not really have A, B, etc. you can, well, add "marks"
> (numbers) to items with the help of `org-apply-on-list', sort the list
> numerically (in reversed order, with C-c ^ N), then remove the marks.
>
> Here is an example sexp to mark list:
>
> (org-apply-on-list
>  '(lambda (c)
>(org-get-bullet)
>(goto-char (match-end 0))
>(insert (format " %s" c))
>(1+ c))
>  0)
>
> Regards,
>
> -- Nicolas
>
> ___
> 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


[Orgmode] Re: Need help publishing subdirectories

2010-10-12 Thread Jeff Horn
The relevant portion of my configuration is below.

(setq org-publish-project-alist nil)
(setq org-publish-project-alist
  '(("ftr-static"
 :base-directory "~/org/ftr"
 :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
 :publishing-directory "~/Sites/FTR/"
 :recursive t
 :publishing-function (org-publish-attachment)
 :table-of-contents nil
 :todo-keywords nil
 :section-numbers nil
 :recursive t
 )
("ftr-jeff"
 :base-directory "~/org/ftr/jeff"
 :base-extension "org"
 :publishing-directory "~/Sites/FTR/jeff"
 :recursive t
 :publishing-function (org-publish-org-to-html org-publish-org-to-org)
 :htmlized-source
 :table-of-contents nil
 :todo-keywords nil
 :section-numbers nil
 :recursive t
 )
("ftr"
 :components ( "ftr-static"
   "ftr-jeff"
  )
 )))

The table of contents and section number options are being ignored
(possibly others). Any ideas?

Jeff

On Tue, Oct 12, 2010 at 1:29 AM, Jeff Horn  wrote:
> I've managed to push the extra source files out with the org-static
> configuration found at worg.[1]
>
> But now, for some reason, I've lost all my options (no TOC, no section
> numbers, custom stylesheet, etc). Anyone care to look at my config
> off-list and offer advice?
>
> I'm beginning to think it's something silly like an unescaped
> quotation mark, but I've looked at every simple solution I can think
> of.
>
> Jeff
>
>
>    [1] http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php
>
> On Mon, Oct 11, 2010 at 11:59 PM, Jeff Horn  wrote:
>> I'm trying to set up an org project to publish my personal website. I
>> like to use friendly urls, like the one below.
>>
>> http://www.example.tld/jeff/teaching/2010/fall/econ101/index.html
>>
>> My publishing set up is a bit of a mess, with a project handling the
>> root, the "jeff" subdirectory, and one handling the "teaching"
>> sub-sub-directory. I have ":recursive t" set on the teaching
>> directory, since I don't want to define a new project for every course
>> I teach. So far, publishing works as intended, except that the
>> ".../econ101/img/" subdirectory contents aren't copied to the
>> publishing directory. Switching on ":base-extension "any"" doesn't fix
>> this (in fact, it prevents the project from being published at all).
>> The relevant portion of my project:
>>
>> ("teaching"
>>         :base-directory "~/org/ftr/jeff/teaching/"
>>         :publishing-directory "~/Sites/FTR/jeff/teaching"
>>         :publishing-function (org-publish-org-to-html
>> org-publish-org-to-org org-publish-org-to-pdf org-publish-attachment)
>>         :recursive t
>>         :style-include-default nil
>>         ;; :base-extension "any"
>>         )
>>
>> In the ".../econ101/syllabus.org" file, an inline image calls
>> [[./img/example.jpg]]. The "img" directory exists in my source
>> directory. The directory is copied to my publishing directory, but not
>> the files within the directory. I noticed also that emacs tried to
>> open an "example.jpg" buffer, which I thought was weird.
>>
>> Thanks for taking the time to read and respond.
>>
>> Best regards,
>> Jeff
>>
>>
>>
>> --
>> Jeffrey Horn
>> Graduate Lecturer and PhD Student in Economics
>> George Mason University
>>
>> (704) 271-4797
>> jh...@gmu.edu
>> jrhorn...@gmail.com
>>
>
>
>
> --
> Jeffrey Horn
> Graduate Lecturer and PhD Student in Economics
> George Mason University
>
> (704) 271-4797
> jh...@gmu.edu
> jrhorn...@gmail.com
>



-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.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


Re: [Orgmode] centering text in html

2010-10-12 Thread Vinh Nguyen
On Tue, Oct 12, 2010 at 12:41 AM, Christian Moe  wrote:
> Hi again, Vinh,
>
> More to the point, why don't you just use
>
> #+BEGIN_CENTER
> { [[file:index.org][Home]] | [[file:files.org][Announcements and Files]] }
> #+END_CENTER
>
> See info:org:Paragraphs.
>
> Cheers,
> CM

Thanks Christian!  I was not aware of this.  I actually was expecting
this but when I googled I did not end up with anything useful.
However, a quick text search for "center" on the monolithic manual
did.

On a similar note, I searched for "right" on the manual but did not
see anything for right aligned.  Just to confirm, there isn't a
#BEGIN_RIGHT feature right?

Thanks.
Vinh

___
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: Need help publishing subdirectories

2010-10-12 Thread Nick Dokos
Jeff Horn  wrote:

> The relevant portion of my configuration is below.
> 
> (setq org-publish-project-alist nil)
> (setq org-publish-project-alist
>   '(("ftr-static"
>  :base-directory "~/org/ftr"
>  :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
>  :publishing-directory "~/Sites/FTR/"
>  :recursive t
>  :publishing-function (org-publish-attachment)
>  :table-of-contents nil
>  :todo-keywords nil
>  :section-numbers nil
>  :recursive t
>  )
> ("ftr-jeff"
>  :base-directory "~/org/ftr/jeff"
>  :base-extension "org"
>  :publishing-directory "~/Sites/FTR/jeff"
>  :recursive t
>  :publishing-function (org-publish-org-to-html org-publish-org-to-org)
>  :htmlized-source
>  :table-of-contents nil
>  :todo-keywords nil
>  :section-numbers nil
>  :recursive t
>  )
> ("ftr"
>  :components ( "ftr-static"
>"ftr-jeff"
>   )
>  )))
> 
> The table of contents and section number options are being ignored
> (possibly others). Any ideas?

Isn't that what *should* happen if the :table-of-contents and :section-numbers
options are set to nil?

Nick

> 
> Jeff
> 
> On Tue, Oct 12, 2010 at 1:29 AM, Jeff Horn  wrote:
> > I've managed to push the extra source files out with the org-static
> > configuration found at worg.[1]
> >
> > But now, for some reason, I've lost all my options (no TOC, no section
> > numbers, custom stylesheet, etc). Anyone care to look at my config
> > off-list and offer advice?
> >
> > I'm beginning to think it's something silly like an unescaped
> > quotation mark, but I've looked at every simple solution I can think
> > of.
> >
> > Jeff
> >
> >
> >    [1] http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php
> >
> > On Mon, Oct 11, 2010 at 11:59 PM, Jeff Horn  wrote:
> >> I'm trying to set up an org project to publish my personal website. I
> >> like to use friendly urls, like the one below.
> >>
> >> http://www.example.tld/jeff/teaching/2010/fall/econ101/index.html
> >>
> >> My publishing set up is a bit of a mess, with a project handling the
> >> root, the "jeff" subdirectory, and one handling the "teaching"
> >> sub-sub-directory. I have ":recursive t" set on the teaching
> >> directory, since I don't want to define a new project for every course
> >> I teach. So far, publishing works as intended, except that the
> >> ".../econ101/img/" subdirectory contents aren't copied to the
> >> publishing directory. Switching on ":base-extension "any"" doesn't fix
> >> this (in fact, it prevents the project from being published at all).
> >> The relevant portion of my project:
> >>
> >> ("teaching"
> >>         :base-directory "~/org/ftr/jeff/teaching/"
> >>         :publishing-directory "~/Sites/FTR/jeff/teaching"
> >>         :publishing-function (org-publish-org-to-html
> >> org-publish-org-to-org org-publish-org-to-pdf org-publish-attachment)
> >>         :recursive t
> >>         :style-include-default nil
> >>         ;; :base-extension "any"
> >>         )
> >>
> >> In the ".../econ101/syllabus.org" file, an inline image calls
> >> [[./img/example.jpg]]. The "img" directory exists in my source
> >> directory. The directory is copied to my publishing directory, but not
> >> the files within the directory. I noticed also that emacs tried to
> >> open an "example.jpg" buffer, which I thought was weird.
> >>
> >> Thanks for taking the time to read and respond.
> >>
> >> Best regards,
> >> Jeff
> >>
> >>
> >>
> >> --
> >> Jeffrey Horn
> >> Graduate Lecturer and PhD Student in Economics
> >> George Mason University
> >>
> >> (704) 271-4797
> >> jh...@gmu.edu
> >> jrhorn...@gmail.com
> >>
> >
> >
> >
> > --
> > Jeffrey Horn
> > Graduate Lecturer and PhD Student in Economics
> > George Mason University
> >
> > (704) 271-4797
> > jh...@gmu.edu
> > jrhorn...@gmail.com
> >
> 
> 
> 
> -- 
> Jeffrey Horn
> Graduate Lecturer and PhD Student in Economics
> George Mason University
> 
> (704) 271-4797
> jh...@gmu.edu
> jrhorn...@gmail.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
> 

___
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] cache issue when publishing website with include file

2010-10-12 Thread Vinh Nguyen
Dear list,

I currently use
#+INCLUDE: "nav.org"

on top of multiple org files (say f1.org, f2.org, ...) to include a
navigation "bar" for my website.  Suppose I update nav.org.  If I
publish the website with "C-c C-e P", then the f1.org, f2.org, ...
files do not get updated/exported since the files were not changed (or
maybe only one of them gets changed since I changed the .org file).

I'm wondering how others are handling this in their work flow?  Delete
the cache directory?  Edit all .org files so they get updated at the
publishing command?

Thanks.
-- Vinh

___
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] bug: use-region-p

2010-10-12 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Oct 12, 2010, at 3:02 AM, Samuel Wales wrote:


In a git version of today, org-edit-special in a code block cannot
find the variable use-region-p.

This variable is not in Emacs 22.

Thanks.

Samuel

--  
Q: How many CDC "scientists" does it take to change a lightbulb?

A: "You only think it's dark." [CDC has denied a deadly serious
disease for 25 years]
==
Retrovirus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE  
DONATE

===
I would like to see the original Lo et al. 2010 NIH/FDA XMRV paper.

___
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


[Orgmode] [PATCH] Fix broken internal links on export

2010-10-12 Thread Jambunathan K

Summary: Fix broken internal links on export

Test case.

(setq org-link-search-must-match-exact-headline t)

# file temp.org

* Heading 1
  Some content.

* Heading 2
  There is a link to [[Heading 1]] here.

Export this to html and note that [[Heading 1]] is wrongly
translated. Apply the patch. See that the internal link is correctly
exported.

 
-There is a link to Heading 1 here.
+There is a link to Heading 1 here.
 
 

Note: 
Is 'dedicated the right value to return?


Jambunathan K.

>From 82fcc473277c2a1c5647820c19eff0f0e11582c9 Mon Sep 17 00:00:00 2001
From: Jambunathan K 
Date: Tue, 12 Oct 2010 21:17:09 +0530
Subject: [PATCH] Fix broken internal links on export

* org.el (org-link-search): Return 'dedicated on successful match when
org-link-search-must-match-exact-headline is set to t.
---
 lisp/org.el |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index a80286f..f0ad595 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9389,6 +9389,7 @@ in all files.  If AVOID-POS is given, ignore matches near that position."
  (regexp-quote s))
 			 nil t))
 	;; OK, found a match
+	(setq type 'dedicated)
 	(goto-char (match-beginning 0)))
((and (not org-link-search-inhibit-query)
 	 (eq org-link-search-must-match-exact-headline 'query-to-create)
-- 
1.7.2.3

___
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: [babel] [BUG] incorrect indentation when tangling with org-src-preserve-indentation

2010-10-12 Thread Achim Gratz

This commit produces a warning from the byte compiler on Emacs 23.1:

In org-babel-expand-body:python:
ob-python.el:60:29:Warning: reference to free variable
`org-src-preserve-indentation'
Wrote /home/gratz/lisp/org-mode/lisp/ob-python.elc


Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs


___
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] cache issue when publishing website with include file

2010-10-12 Thread Ian Barton
Vinh Nguyen  writes:

>
> I'm wondering how others are handling this in their work flow?  Delete
> the cache directory?  Edit all .org files so they get updated at the
> publishing command?
>
I delete the .org-timestamps directory. I guess you could always touch
all the files in your project, so org thinks that they have been changed.
-- 
Best wishes,

Ian.

___
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: Need help publishing subdirectories

2010-10-12 Thread Jeff Horn
>> The relevant portion of my configuration is below.
>>
>> (setq org-publish-project-alist nil)
>> (setq org-publish-project-alist
>>       '(("ftr-static"
>>          :base-directory "~/org/ftr"
>>          :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
>>          :publishing-directory "~/Sites/FTR/"
>>          :recursive t
>>          :publishing-function (org-publish-attachment)
>>          :table-of-contents nil
>>          :todo-keywords nil
>>          :section-numbers nil
>>          :recursive t
>>          )
>>         ("ftr-jeff"
>>          :base-directory "~/org/ftr/jeff"
>>          :base-extension "org"
>>          :publishing-directory "~/Sites/FTR/jeff"
>>          :recursive t
>>          :publishing-function (org-publish-org-to-html 
>> org-publish-org-to-org)
>>          :htmlized-source
>>          :table-of-contents nil
>>          :todo-keywords nil
>>          :section-numbers nil
>>          :recursive t
>>          )
>>         ("ftr"
>>          :components ( "ftr-static"
>>                        "ftr-jeff"
>>                       )
>>          )))
>>
>> The table of contents and section number options are being ignored
>> (possibly others). Any ideas?
>
> Isn't that what *should* happen if the :table-of-contents and :section-numbers
> options are set to nil?

Sorry for the misunderstanding. What I meant to say was the options
are being ignored, such that table of contents and section numbers are
being used, as if these variables were set to non-nil.

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.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


Re: [Orgmode] centering text in html

2010-10-12 Thread Christian Moe




On a similar note, I searched for "right" on the manual but did not
see anything for right aligned.  Just to confirm, there isn't a
#BEGIN_RIGHT feature right?


Not that I know of, but Org-mode contains multitudes...

CM

___
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: Need help publishing subdirectories

2010-10-12 Thread Nick Dokos
Jeff Horn  wrote:

> >> The relevant portion of my configuration is below.
> >>
> >> (setq org-publish-project-alist nil)
> >> (setq org-publish-project-alist
> >>       '(("ftr-static"
> >>          :base-directory "~/org/ftr"
> >>          :base-extension 
> >> "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
> >>          :publishing-directory "~/Sites/FTR/"
> >>          :recursive t
> >>          :publishing-function (org-publish-attachment)
> >>          :table-of-contents nil
> >>          :todo-keywords nil
> >>          :section-numbers nil
> >>          :recursive t
> >>          )
> >>         ("ftr-jeff"
> >>          :base-directory "~/org/ftr/jeff"
> >>          :base-extension "org"
> >>          :publishing-directory "~/Sites/FTR/jeff"
> >>          :recursive t
> >>          :publishing-function (org-publish-org-to-html 
> >> org-publish-org-to-org)
> >>          :htmlized-source
> >>          :table-of-contents nil
> >>          :todo-keywords nil
> >>          :section-numbers nil
> >>          :recursive t
> >>          )
> >>         ("ftr"
> >>          :components ( "ftr-static"
> >>                        "ftr-jeff"
> >>                       )
> >>          )))
> >>
> >> The table of contents and section number options are being ignored
> >> (possibly others). Any ideas?
> >
> > Isn't that what *should* happen if the :table-of-contents and 
> > :section-numbers
> > options are set to nil?
> 
> Sorry for the misunderstanding. What I meant to say was the options
> are being ignored, such that table of contents and section numbers are
> being used, as if these variables were set to non-nil.
> 

So, you are changing the project settings but you don't see the changes
in the html files? Have you investigated caching effects? Not only at
the web browser but also at the org-mode publishing level? org-publish
keeps timestamps on org files and does not update the html files if they
have not been changed.

Nick

___
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: Need help publishing subdirectories

2010-10-12 Thread Jeff Horn
> So, you are changing the project settings but you don't see the changes
> in the html files? Have you investigated caching effects? Not only at
> the web browser but also at the org-mode publishing level? org-publish
> keeps timestamps on org files and does not update the html files if they
> have not been changed.

Thanks for your help, Nick. I have been deleting ~/.org-timestamps/
when republishing, and forcing a refresh of the web browser.

If I open the HTML files in an editor, I can see the table of contents
in the file, and there is no customer stylesheet link, and there is
the default style wrapped in CDATA.

Jeff



-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.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


Re: [Orgmode] Re: Need help publishing subdirectories

2010-10-12 Thread Nick Dokos
Jeff Horn  wrote:

> > So, you are changing the project settings but you don't see the changes
> > in the html files? Have you investigated caching effects? Not only at
> > the web browser but also at the org-mode publishing level? org-publish
> > keeps timestamps on org files and does not update the html files if they
> > have not been changed.
> 
> Thanks for your help, Nick. I have been deleting ~/.org-timestamps/
> when republishing, and forcing a refresh of the web browser.
> 
> If I open the HTML files in an editor, I can see the table of contents
> in the file, and there is no customer stylesheet link, and there is
> the default style wrapped in CDATA.
> 

OK - let me try to summarize and see if I have understood correctly:

o in your org-publish-project-alist you set :table-of-contents to nil
o you clear the timestamps directory
o you run org-publish and you examine the resulting html file and it
  contains a TOC.
o the html file's modification time is correct, i.e. it was updated
  a few seconds ago.

Correct so far?

I cannot reproduce this in my setup:

Org-mode version 7.01trans (release_7.01h.654.g3afc)

Unless somebody can see what's wrong, if you don't mind doing some elisp
debugging, I 'd suggest adding a (debug) call in org-publish-file and
checking the value of the plist before the publishing function is
called (look for the big, marked section below for more details):

(defun org-publish-file (filename &optional project no-cache)
  "Publish file FILENAME from PROJECT.
If NO-CACHE is not nil, do not initialize org-publish-cache and
write it to disk.  This is needed, since this function is used to
publish single files, when entire projects are published.
See `org-publish-projects'."
  (let* ((project
  (or project
  (or (org-publish-get-project-from-filename filename)
  (error "File %s not part of any known project"
 (abbreviate-file-name filename)
 (project-plist (cdr project))
 (ftname (expand-file-name filename))
 (publishing-function
  (or (plist-get project-plist :publishing-function)
  'org-publish-org-to-html))
 (base-dir
  (file-name-as-directory
   (expand-file-name
(or (plist-get project-plist :base-directory)
(error "Project %s does not have :base-directory defined"
   (car project))
 (pub-dir
  (file-name-as-directory
   (file-truename
(or (plist-get project-plist :publishing-directory)
(error "Project %s does not have :publishing-directory defined"
   (car project))
 tmp-pub-dir)

(unless no-cache
  (org-publish-initialize-cache (car project)))

(setq tmp-pub-dir
  (file-name-directory
   (concat pub-dir
   (and (string-match (regexp-quote base-dir) ftname)
(substring ftname (match-end 0))

;;;
;;; add a debug call, reeavaluate the function, do the publish and when
;;; you are dumped into the debugger, say e project-plist  and see
;;; what :table-of-contents is set to. If it's what it's supposed to be,
;;; continue execution with c and look at the html file, both contents
;;; and modification time. If it's still wrong in terms of contents but
;;; right in terms of modification time, there is something wrong with
;;; the publishing function: you might want to step through it with
;;; edebug, checking things along the way.

(debug)

;;;^

(if (listp publishing-function)
;; allow chain of publishing functions
(mapc (lambda (f)
(when (org-publish-needed-p filename pub-dir f tmp-pub-dir)
  (funcall f project-plist filename tmp-pub-dir)
  (org-publish-update-timestamp filename pub-dir f)))
  publishing-function)
  (when (org-publish-needed-p filename pub-dir publishing-function
  tmp-pub-dir)
(funcall publishing-function project-plist filename tmp-pub-dir)
(org-publish-update-timestamp
 filename pub-dir publishing-function)))
(unless no-cache (org-publish-write-cache-file


HTH,
Nick

___
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: Need help publishing subdirectories

2010-10-12 Thread Nick Dokos

... and just to make sure: you either re-evaluate
org-publish-project-alist or you restart emacs after changing it?

Nick


___
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] Latex-Export with custom commands

2010-10-12 Thread Maximilian Matthe

Hi,

I'm having a .tex-file named style.tex which contains the following:

> \usepackage{xspace}
> \newcommand{\cA}{\ensuremath{\mathcal{A}}\xspace}

I'm including this file into my org-file with

> #+LATEX_HEADER: \input{style}

Now, when I type sth. like this:

> Inside normal text \cA just works fine.

But when I want to add superscripts to that A:

> Now adding a superscript to \cA^n because I need it.

In the pdf-Output there is a space between the superscript and the A. 
That is because of the latex-export does sth like:


> \ensuremath{\mathcal{A}}$^n$

Is there some workaround for that behaviour?

Best regards, Max


___
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: [WIP] OpenOffice Exporter

2010-10-12 Thread Matt Price
On Mon, Oct 11, 2010 at 5:35 AM, Giovanni Ridolfi  wrote:

> Jambunathan K  writes:
>
>
> There is also the org-DocBook exporter. DocBook files can be read by OOo
> see:
> http://xml.openoffice.org/xmerge/docbook/index.html
>
> I have had a lot of trouble with this route, so a direct export would be
far better for me.  I would love to see support for features like footnotes,
though, if that can somehow be done.  Thanks for doing this, Jambunathan!
matt
___
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: [Babel] Handling of errors when using Ledger

2010-10-12 Thread Sébastien Vauban
Hi Dan,

Dan Davison wrote:
> Sébastien Vauban writes:
> [...]
>> Let's imagine I thought (which was the case at some point) I needed to
>> enclose the parameters between quotes:
>>
>> #+srcname: quoted-params
>> #+begin_src ledger :cmdline "reg unknown" :noweb yes :session
>> <>
>> #+end_src
>>
>> #+results: quoted-params
>>
>> Nothing is returned. In fact, I would expect an error to be thrown [...] I
>> don't know if this is a common problem (to Org-Babel) or only to the Ledger
>> part of it, but I think *we* should somehow improve the handling of errors.
>
> Babel has a standard mechanism for evaluating shell commands and displaying
> errors if any. It is the function `org-babel-eval' in ob-eval.el. The
> problem is that ob-ledger is not using this mechanism. Would you be
> interested in fixing this? Basically what is required is to re-implement
> `org-babel-execute:ledger' using `org-babel-eval'. (There are plenty of
> examples in the other langauges to follow.) Please don't worry if you are
> too busy though.

I'd be interested to try and fix it. I am busy, yes: I am just recovering 3
days of lost time due to my 5 years old PC which crashed on Friday morning. I
now temporarily am on a Windows; but I've had to tweak my Emacs and Gnus a
bit, to recover all the backups done through Unison, and experience all the
problems due to differences in filenames (characters allowed, case
insensitiveness, etc.). Apart from that, we're rebuilding my house, and that
demands a lot of time from me. So, yes, time is a scarce resource, but I'm
sure everybody can say so.

So, I'd propose to fight for being the first one to fix that... And let's see
who will win... ;-)


>> - Maybe displaying a =#+results-err= block which would be what's shown on
>>   =/dev/stderr=, when not void?
>
> I've vaguely wondered about this sort of thing in the past. The thing is
> that that's getting close to the idea of proper exception handling in
> Org-babel. That would certainly be interesting, and I'm sure we would
> welcome well thought-through proposals on the topic.

Quite sad nobody else reacts on this.


> It would need to deal with errors occurring in a block anywhere in the `call
> tree' (e.g. what happens when block A is evaluated and A references blocks B
> and C, and B references D and an error occurs in D)

I don't this we need to go in such a complicated path. After all, if I launch
a script with calls to external commands, I only will see that my parent
script has gotten an error (if checked, even). I never will see exactly which
subcommand can have failed (or only through side-effects: messages with a
clear indication of which program is outputting something on the console).

Plus, I could use D in both A and K. Maybe D succeeds when called from K and
not when called from A. So, when getting an error, I think it is sufficient to
see it associated to the parent block. It's inside it that the error occurs,
after all.


>> - And having a way to display the error code would be a plus.
>
> That will happen automatically when ledger is converted to use
> `org-babel-eval'.

OK. Thanks for your explanations.

Best regards,
  Seb

PS- BTW, I had a very bad habit of letting the important mails as "unread".
Now that I've crashed my PC, I've lost all my mail marks as well... Should I
have used links from Gnus to the important mails...

-- 
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] puzzling plain list and tree folding behaviour

2010-10-12 Thread Nicolas Goaziou
Hello,

> Brian van den Broek writes:

> org-version: 7.01h emacs version: 23.1.1 ubuntu 10.04 I have not set
> any org-mode variables that treat of plain lists.

Many changes have been made to plain lists since 7.01h. For example,
your third point is definitely gone.

You may upgrade to Org git version.

Regards,

-- Nicolas

___
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] puzzling plain list and tree folding behaviour

2010-10-12 Thread Brian van den Broek

Nicolas Goaziou said unto the world at 10-10-12 04:56 PM:

Hello,


Brian van den Broek writes:



org-version: 7.01h emacs version: 23.1.1 ubuntu 10.04 I have not set
any org-mode variables that treat of plain lists.


Many changes have been made to plain lists since 7.01h. For example,
your third point is definitely gone.

You may upgrade to Org git version.

Regards,

-- Nicolas



Nicolas,

Thanks for the response.

I don't keep up with the list too much, and have very limited elisp. So, 
I've always been leery of being on the bleeding edge, especially with 
software to which I entrust my most important data. But, I might screw 
up my courage and give it a go.


Thanks again,

Brian vdB

___
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] org-publish fails to export the #anchor in other_org_file.html#anchor

2010-10-12 Thread Daniel Clemente

Hi.

Before commit bbac53d7fe1cab14bc70e152092cf7a538a6a810, org-publish made this 
change to my HTML, which was wrong:

-Precisamente una idea loca que tengo es integrar la World Wide Web en org-mode…
+Precisamente una idea loca que tengo es integrar la World Wide Web en org-mode…


After that commit (and in exactly the same setup), it makes this change, which 
is also wrong:

-Precisamente una idea loca que tengo es integrar la World Wide Web en org-mode…
+Precisamente una idea loca que tengo es integrar la World 
Wide Web en org-mode…


I think org-html-make-link doesn't export anchors („fragments“) in links 
between org files.
The following patch corrects this for me; please review.

diff --git a/lisp/org-html.el b/lisp/org-html.el
index 3fd7b72..3e4a789 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -746,7 +746,8 @@ MAY-INLINE-P allows inlining it as an image."
((or
(not type)
(string= type "http")
-   (string= type "https"))
+   (string= type "https")
+   (string= type "file"))
   (if fragment
  (setq thefile (concat thefile "#" fragment
 




___
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] org-mobile-use-encryption

2010-10-12 Thread Greg Troxel

I am trying to test encryption for MobileOrg via a beta from Richard.
(We're still playing the 'convince itunes to let you run code on your
own phone game', so this report is preliminary about what Org itself is
doing.)

I have in .emacs-local.el:

(setq org-mobile-use-encryption t)
(setq org-mobile-encryption-password "mypasswd")

and I did org-mobile-push.  I found that there was an old agendas.org
that was not encrypted, and it seems that org-mobile-push omits
agendas.org if org-mobile-use-encryption is t, but still creates it when
nil.

checksums.dat is in cleartext.  This seems ok, but could be a missed
opportunity for some integrity protection.

index.org is in cleartext.  The list of file names is of course in the
webdav area, and that seems not a big deal, but it also contains the
TODO keyword plan, priority tag list, etc.


I'm not sure this level of paranoia is warranted, but typical encrypting
filesystems also encrypt the filenames.  It probably suffices to just
warn the user that the filenames of org files will still be exposed in
the DAV area.





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


[Orgmode] Re: cache issue when publishing website with include file

2010-10-12 Thread Bernt Hansen
Ian Barton  writes:

> Vinh Nguyen  writes:
>
>>
>> I'm wondering how others are handling this in their work flow?  Delete
>> the cache directory?  Edit all .org files so they get updated at the
>> publishing command?
>>
> I delete the .org-timestamps directory. I guess you could always touch
> all the files in your project, so org thinks that they have been changed.

You can run the publish command with a prefix argument to force
publishing all files in the project.

-Bernt

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


[Orgmode] Re: [WIP] OpenOffice Exporter

2010-10-12 Thread Bernt Hansen
Matt Price  writes:

> On Mon, Oct 11, 2010 at 5:35 AM, Giovanni Ridolfi  
> wrote:
>
> Jambunathan K  writes:
>
> There is also the org-DocBook exporter. DocBook files can be read by OOo
> see:
> http://xml.openoffice.org/xmerge/docbook/index.html
>
> I have had a lot of trouble with this route, so a direct export would be far 
> better for me.  I would love to see
> support for features like footnotes, though, if that can somehow be done.  
> Thanks for doing this, Jambunathan!
> matt

I haven't managed to get embedded images into an OO or Word document
satisfactorily using the org -> HTML -> MS Word route yet.  An exporter
that handles this correctly would be great!

Regards,
Bernt

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


[Orgmode] org-capture: org-capture-place-item needs search bounds

2010-10-12 Thread sand
In org-capture-place-item, excerpted here...

 (defun org-capture-place-item ()
   "Place the template as a new plain list item."
   (let* ((txt (org-capture-get :template))
  (target-entry-p (org-capture-get :target-entry-p))
  (ind 0)
  beg end)
 (cond
  ((org-capture-get :exact-position)
   (goto-char (org-capture-get :exact-position)))
  ((not target-entry-p)
   ;; Insert as top-level entry, either at beginning or at end of file
   (setq beg (point-min) end (point-max)))
  (t
   (setq beg (1+ (point-at-eol))
 end (save-excursion (outline-next-heading) (point)
 (if (org-capture-get :prepend)
 (progn
   (goto-char beg)
   (if (re-search-forward (concat "^" (org-item-re)) nil t)
   (progn
 (goto-char (match-beginning 0))
 (setq ind (org-get-indentation)))
 (goto-char end)
 (setq ind 0)))
   (goto-char end)
   (if (re-search-backward (concat "^" (org-item-re)) nil t)
   (progn
 (setq ind (org-get-indentation))
 (org-end-of-item))
 (setq ind 0)))
 [...]

the function needs to bound re-search-forward by END, and it needs to bound  
re-search-backward by BEG.  As it stands right now, if the target location 
doesn't contain an item already, the function will happily pick the nearest 
list in a preceeding or following entry.

Derek

-- 
Derek Upham
s...@blarg.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


[Orgmode] Any other Aquamacs + org-mode users?

2010-10-12 Thread Robert Goldman
If so, are any of you having trouble with the faces in agenda buffers?

I'm finding that I get all of the todo keywords in what looks like the
warning face --- bright red.  It's a problem because it looks like the
display is shouting at me about tasks that are DONE, not just ones that
are still TODO.

I don't see this problem in the ordinary org buffers.  In those buffers
the todo keywords are colored differently -- e.g., red for TODO and
green for DONE.

I was wondering if this is a misconfiguration on my part (I don't
/think/ I have customized any aspect of org-mode display), or if there's
some bad interaction between aquamacs (I'm using 2.1) faces and
org-mode, or if I've misconfigured aquamacs, so it doesn't handle the
org-mode faces properly.

Any suggestions would be very welcome.

thanks!
r

___
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] puzzling plain list and tree folding behaviour

2010-10-12 Thread Brian van den Broek

Nicolas Goaziou said unto the world at 10-10-12 04:56 PM:

Hello,


Brian van den Broek writes:



org-version: 7.01h emacs version: 23.1.1 ubuntu 10.04 I have not set
any org-mode variables that treat of plain lists.


Many changes have been made to plain lists since 7.01h. For example,
your third point is definitely gone.

You may upgrade to Org git version.

Regards,

-- Nicolas



Nicolas,

I gathered my courage and downloaded a development snapshot a few hours 
ago. It seems that all three issues enumerated in my first message have 
indeed been taken care of in the checkins between 7.01h and the snapshot 
I have.


So, thanks.

Brian vdB

___
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] Themes Compatible with color-theme.el

2010-10-12 Thread Eric Schulte
Ian Barton  writes:

> Scott Jaderholm  writes:
>
>> http://jaderholm.com/color-themes/color-theme-colorful-obsolescence.el
>> http://jaderholm.com/color-themes/color-theme-active.el
>> http://jaderholm.com/color-themes/color-theme-wombat.el
>>
>> Please link to don't copy so that as I make changes they'll get updated.
>>
>> Scott
>  >
>>
> Scott,
>
> Thanks for the references to your other themes. I'll make sure that I
> link to them instead of copying them.

Hi Ian,

I've previously posted my color theme to the following.
http://orgmode.org/worg/org-color-themes.php

Is there another worg page with a collection of color themes?

Best -- 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] Any other Aquamacs + org-mode users?

2010-10-12 Thread Nick Dokos
Robert Goldman  wrote:

> If so, are any of you having trouble with the faces in agenda buffers?
> 
> I'm finding that I get all of the todo keywords in what looks like the
> warning face --- bright red.  It's a problem because it looks like the
> display is shouting at me about tasks that are DONE, not just ones that
> are still TODO.
> 
> I don't see this problem in the ordinary org buffers.  In those buffers
> the todo keywords are colored differently -- e.g., red for TODO and
> green for DONE.
> 
> I was wondering if this is a misconfiguration on my part (I don't
> /think/ I have customized any aspect of org-mode display), or if there's
> some bad interaction between aquamacs (I'm using 2.1) faces and
> org-mode, or if I've misconfigured aquamacs, so it doesn't handle the
> org-mode faces properly.
> 
> Any suggestions would be very welcome.
> 

C-u C-x =

is your friend: it'll tell you some details about the face. That in turn
might provide a clue as to how it ended up this way.

HTH,
Nick

___
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] Any other Aquamacs + org-mode users?

2010-10-12 Thread Jeff Horn
That's a helpful tip, Nick. I didn't know about that.

I was frustrated by the faces for some of the default themes in the
"color-theme" package, so I'm thinking it's probably not an Aquamacs
specific issue.

In any case, I found a patched version of "zenburn" that includes
faces for org-mode. I heard it has been folded into the most recent
version of zenburn, but I find it hard to follow (zenburn is orginally
for vim, and there's an emacs fork, so I'm not sure where development
has headed).

I'm pretty happy with the faces zenburn provides. YMMV.

Jeff

On Tue, Oct 12, 2010 at 11:50 PM, Nick Dokos  wrote:
> Robert Goldman  wrote:
>
>> If so, are any of you having trouble with the faces in agenda buffers?
>>
>> I'm finding that I get all of the todo keywords in what looks like the
>> warning face --- bright red.  It's a problem because it looks like the
>> display is shouting at me about tasks that are DONE, not just ones that
>> are still TODO.
>>
>> I don't see this problem in the ordinary org buffers.  In those buffers
>> the todo keywords are colored differently -- e.g., red for TODO and
>> green for DONE.
>>
>> I was wondering if this is a misconfiguration on my part (I don't
>> /think/ I have customized any aspect of org-mode display), or if there's
>> some bad interaction between aquamacs (I'm using 2.1) faces and
>> org-mode, or if I've misconfigured aquamacs, so it doesn't handle the
>> org-mode faces properly.
>>
>> Any suggestions would be very welcome.
>>
>
> C-u C-x =
>
> is your friend: it'll tell you some details about the face. That in turn
> might provide a clue as to how it ended up this way.
>
> HTH,
> Nick
>
> ___
> 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
>



-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.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


Re: [Orgmode] Re: Need help publishing subdirectories

2010-10-12 Thread Jeff Horn
> OK - let me try to summarize and see if I have understood correctly:
>
> o in your org-publish-project-alist you set :table-of-contents to nil
> o you clear the timestamps directory
> o you run org-publish and you examine the resulting html file and it
>  contains a TOC.
> o the html file's modification time is correct, i.e. it was updated
>  a few seconds ago.
>
> Correct so far?

Correct.

> Unless somebody can see what's wrong, if you don't mind doing some elisp
> debugging, I 'd suggest adding a (debug) call in org-publish-file and
> checking the value of the plist before the publishing function is
> called (look for the big, marked section below for more details):

I'll do my best. I don't know a lot about emacs, but I'm learning.
What was the function for? I guess I should be editing an org-mode
source file? Do I need to recompile after adding the debug call?

Thanks again!
Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.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


Re: [Orgmode] Re: [babel] [BUG] incorrect indentation when tangling with org-src-preserve-indentation

2010-10-12 Thread Eric Schulte
Fixed, Thanks -- Eric

Achim Gratz  writes:

> This commit produces a warning from the byte compiler on Emacs 23.1:
>
> In org-babel-expand-body:python:
> ob-python.el:60:29:Warning: reference to free variable
> `org-src-preserve-indentation'
> Wrote /home/gratz/lisp/org-mode/lisp/ob-python.elc
>
>
> Achim.

___
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] Latex-Export with custom commands

2010-10-12 Thread Nick Dokos
Maximilian Matthe  wrote:

> 
> 
> Nick Dokos schrieb:
> > You cannot expect org to do anything else: how is it supposed to know
> > that the \cA is part of a math expression?
> >
> >   
> >> Is there some workaround for that behaviour?
> >>
> >> 
> >
> > The obvious one of telling org (and latex) that these are math expressions
> > works fine:
> >
> >   $\cA$ and $\cA^n$ 
> >
> > or (as I prefer to write it):
> >
> >   \(\cA\) and \(\cA^n\)
> >
> > HTH,
> > Nick
> >   
> Hi,
> 
> (why is there no answer directly in the mailing list?)

Because I forgot to cc: the list (I tend to do that on a regular basis:
apologies).

> I know your shown workaround, but I thougt that it would be possible,
> to export
> 
> > \cA^n
> 
> as
> 
> $\cA^n$ instead of \cA$^n$. That is, if there is only one sign before
> the superscript, org shoud include it into the math-fragment.
> 

I don't think that's possible: it would require a parser of far greater
complexity.

> Regards, Max
> 

Nick

___
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] Insert link to recently captured Note?

2010-10-12 Thread Nathan Neff
I'd like to ask the mailing list how they handle the following situation:

I'm clocked into FOO below, then spend about 20 minutes on something
that's somewhat
related to FOO, but is not really a direct sub-task of FOO, so I
probably want to refile it later.

So, I open org-capture and create some notes about * BAR, and file it away.

Now, I'm back in * FOO and want to quickly put a note about * BAR in
my FOO task.

So, ideally my structure would look like this:
-- some file 
* FOO
Got caught up with [[link to * BAR]]
-- notes.org 
* BAR
blew 30 minutes on this problem.
I might file this headline somewhere, but I want to be able to link from * FOO
to this new note


I've found variables like org-capture-bookmark-last-stored-position,
but I think that it
contains just the filename (like notes.org).  What I probably need is
a way to create an ID
for the newly captured heading, and then store a link to it on the
clipboard or something.

Does anyone else have a need for this, or do this in their everyday work?
I know there's ways to create a link from * BAR (the new note) to *
FOO (the origin/context)
but I want an easy way to insert a link to * FOO to * BAR.  Also, the
link needs to work no matter
where I file * BAR later on, so I presume that a unique ID needs to be
created for * BAR
when I capture it.

Thanks for any advice,
--Nate

___
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: Insert link to recently captured Note?

2010-10-12 Thread Nathan Neff
On Wed, Oct 13, 2010 at 1:29 AM, Nathan Neff  wrote:
> I'd like to ask the mailing list how they handle the following situation:
>
> I'm clocked into FOO below, then spend about 20 minutes on something
> that's somewhat
> related to FOO, but is not really a direct sub-task of FOO, so I
> probably want to refile it later.
>
> So, I open org-capture and create some notes about * BAR, and file it away.
>
> Now, I'm back in * FOO and want to quickly put a note about * BAR in
> my FOO task.
>
> So, ideally my structure would look like this:
> -- some file 
> * FOO
> Got caught up with [[link to * BAR]]
> -- notes.org 
> * BAR
> blew 30 minutes on this problem.
> I might file this headline somewhere, but I want to be able to link from * FOO
> to this new note
>
>
> I've found variables like org-capture-bookmark-last-stored-position,
> but I think that it
> contains just the filename (like notes.org).  What I probably need is
> a way to create an ID
> for the newly captured heading, and then store a link to it on the
> clipboard or something.

Okay, I found out how to do create a unique ID, by defining a template
like this:

org-capture-templates '(("t" "Task" entry (file "~/todo.txt")
 "* foo\n :PROPERTIES:\n  ID:
%(shell-command-to-string \"uuidgen\")  :END:")
)

Now, I just need a way to quickly insert a link to this newly created ID.

___
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