[Orgmode] Re: org-hide-emphasis-markers problem

2009-08-08 Thread Nicolas Goaziou
Carsten Dominik  writes:

My culprit wasn't the good one !

Here is the backtrace when using org-agenda-clockreport-mode :

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  *(nil 2)
  (setq b (1+ (point-at-eol)) n (* level org-indent-indentation-per-level))
  (while (not exit) (setq e end) (if (not ...) (setq e ... exit t) (setq e ...) 
(if ... ...) (setq level ...) (setq nstars ...) (add-text-properties ... ... 
...)) (when (and b ...) (add-text-properties b e ...)) (setq b (1+ ...) n (* 
level org-indent-indentation-per-level)))
  (save-excursion (goto-char beg) (while (not exit) (setq e end) (if ... ... 
... ... ... ... ...) (when ... ...) (setq b ... n ...)))
  (let ((buffer-undo-list t) before-change-functions after-change-functions) 
(save-excursion (goto-char beg) (while ... ... ... ... ...)))
  (prog1 (buffer-modified-p) (let (... before-change-functions 
after-change-functions) (save-excursion ... ...)))
  (set-buffer-modified-p (prog1 (buffer-modified-p) (let ... ...)))
  (org-unmodified (save-excursion (goto-char beg) (while ... ... ... ... ...)))
  (let (ov b e n level exit nstars) (org-unmodified (save-excursion ... ...)))
  (progn (let (ov b e n level exit nstars) (org-unmodified ...)))
  (if (or t org-indent-mode) (progn (let ... ...)))
  (when (or t org-indent-mode) (let (ov b e n level exit nstars) 
(org-unmodified ...)))
  org-indent-add-properties(1 3828)

With a minimal init file, it appears that the variable
org-startup-indented set to t is to blame.

Hoping someone is able to reproduce this.

Regards,

-- 
Nicolas Goaziou



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


Re: [Orgmode] Fireforg, a Firefox extension for Org mode interaction

2009-08-08 Thread Daniel Martins
I followed your indications but it did not work properly.

1. My org-agenda-files became nil I dont know the reason

2. The plugin was properly installed in firefox but it did not talk
propoerly with emacsclient. Nothing happens on emacs.

I dont know how to make a few tests to verify what happened


Daniel

2009/8/7 Daniel Martins 

> As I am not a developer I cannot be 100% certain but I feel that there are
> standardized paths for
> emacs and firefox that work across distributions.
>
> Maybe someone from the list could give us some hint.
>
> Daniel
>
> 2009/8/7 Andreas Burtzlaff 
>
>> Hi,
>>
>>
>> On Fri, 7 Aug 2009 09:00:53 -0300
>> Daniel Martins  wrote:
>>
>> > Amaziing and quite useful work!!!
>>
>> Thanks Daniel.
>>
>> > It would be interesting to have a package .deb/.rpm  to install the
>> whole
>> > bundle.
>> >
>> > More people would install and be a beta tester.
>>
>> Yes, the installation is messy, because the proper integration with
>> existing code is also a matter of discussion, especially the rewrite of
>> org-registry.
>> Preparing packages is a good idea, but as a Gentoo user I have no
>> experience with rpm/deb packages; are there standardized paths for
>> emacs and firefox that work across distributions? In that case I might
>> give it a try.
>>
>> Andreas
>>
>
>
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Positioning Latex diagram on PDF output

2009-08-08 Thread Graham Smith
I am experimenting with a TiKZ/pgf mindmap in orgmode.  Although it
looks as if it should fit on the (A4) PDF page, it is offset to the
right and cut off, even though there seems to plenty of room on the
page to left of the diagram.

The code is just the example from the manual, which I have modified a
bit, and is shown below.

Is there some way of moving it across to the left a bit, so it will
fit on the page?

Many thanks,

Graham

\begin{tikzpicture}
  \path[mindmap,concept color=black,text=white]
node[concept] {Ecological Impact Assessment}
[clockwise from=0]
child[concept color=green!50!black] {
  node[concept] {Ecology}
  [clockwise from=90]
  child { node[concept] {theory} }
  child { node[concept] {field skills} }
  child { node[concept] {methods} }
  child { node[concept] {software engineer\-ing} }
}
child[concept color=blue] {
  node[concept] {Legislation}
  [clockwise from=-30]
  child { node[concept] {EIA} }
  child { node[concept] {Policy and Planning} }
}
child[concept color=red] {
  node[concept] {Data Analysis}
  [clockwise from=-30]
  child{node[concept]{Statistics}}
  child{node[concept]{GIS}}
  child{node[concept]{Decision Science}}
}
child[concept color=orange] {
  node[concept] {Professional Practice}
  [clockwise from=-75]
  child{node[concept]{Business skills}}
  child{node[concept]{Presentation skills}}
  child{node[concept]{EcIA best practice}}
  };
\end{tikzpicture}


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


Re: [Orgmode] Fireforg, a Firefox extension for Org mode interaction

2009-08-08 Thread Andreas Burtzlaff
On Sat, 8 Aug 2009 14:19:35 -0300
Daniel Martins  wrote:

> I followed your indications but it did not work properly.
> 
> 1. My org-agenda-files became nil I dont know the reason

org-agenda-files is not altered in my code.
I made a small mistake in the original posting and am changing the
installation now anyway, but for the time being:
Do you mean the debug message:
"org-registry-initialize: org-agenda-files = nil"
and did you put the lisp code into .emacs?
In that case make
(org-registry-initialize t)
the very _last_ line in your .emacs .
I'll put a page on Worg soon...
My apologies for the inconvenience.
By the way, these kind of emacs configuration issues are a reason why
packaging is a bit problematic, at least at this stage of development.

> 
> 2. The plugin was properly installed in firefox but it did not talk
> propoerly with emacsclient. Nothing happens on emacs.

What exactly did you try?
Your issue 1. prevents the url lookup to work, so I'd only expect
"store-link" and "remember" to work anyway. (right click on the statusbar entry)

Does org-protocol itself work with the bookmarks described in its
manual?

Generally, error messages in firefox are shown in Tools->Error Console:
Look for errors containing: "chrome://fireforg/" , and send them to me
(privately, not through the list, perhaps).

Thanks for your help and patience in testing

Andreas


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


[Orgmode] Re: Positioning Latex diagram on PDF output

2009-08-08 Thread Leo
On 2009-08-08 19:29 +0100, Graham Smith wrote:
> I am experimenting with a TiKZ/pgf mindmap in orgmode.  Although it
> looks as if it should fit on the (A4) PDF page, it is offset to the
> right and cut off, even though there seems to plenty of room on the
> page to left of the diagram.

I think this is due to the geometry of your document. There's a left
margin that pushes the tikz picture to the right.

> The code is just the example from the manual, which I have modified a
> bit, and is shown below.
> 
> Is there some way of moving it across to the left a bit, so it will
> fit on the page?

You can use the preview package to trim the output so that it leaves,
for example, 1pt on all sides of the tikz pictures. Here is a compilable
example.

%% 
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{1pt}

\begin{document}
\begin{tikzpicture}
  \path[mindmap,concept color=black,text=white]
node[concept] {Ecological Impact Assessment}
[clockwise from=0]
child[concept color=green!50!black] {
  node[concept] {Ecology}
  [clockwise from=90]
  child { node[concept] {theory} }
  child { node[concept] {field skills} }
  child { node[concept] {methods} }
  child { node[concept] {software engineer\-ing} }
}
child[concept color=blue] {
  node[concept] {Legislation}
  [clockwise from=-30]
  child { node[concept] {EIA} }
  child { node[concept] {Policy and Planning} }
}
child[concept color=red] {
  node[concept] {Data Analysis}
  [clockwise from=-30]
  child{node[concept]{Statistics}}
  child{node[concept]{GIS}}
  child{node[concept]{Decision Science}}
}
child[concept color=orange] {
  node[concept] {Professional Practice}
  [clockwise from=-75]
  child{node[concept]{Business skills}}
  child{node[concept]{Presentation skills}}
  child{node[concept]{EcIA best practice}}
  };
\end{tikzpicture}
\end{document}

> Many thanks,
> 
> Graham

Are you developing a mindmap exporter for org? If so, I am very
interested ;)

Best,
Leo

-- 
Emacs uptime: 1 day, 3 hours, 44 minutes, 23 seconds



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


Re: [Orgmode] Fireforg, a Firefox extension for Org mode interaction

2009-08-08 Thread Daniel Martins
The issue on org-agenda-files was solved. It was my mistake, sorry.

The firefox plugin:

(right click on the statusbar entry) : works in a limited sense. It pops up
the remember and store-links options but nothing happens when I left-click
on both fields.

(left click on the statusbar entry) : does absolutely nothing.

Daniel

2009/8/8 Andreas Burtzlaff 

> On Sat, 8 Aug 2009 14:19:35 -0300
> Daniel Martins  wrote:
>
> > I followed your indications but it did not work properly.
> >
> > 1. My org-agenda-files became nil I dont know the reason
>
> org-agenda-files is not altered in my code.
> I made a small mistake in the original posting and am changing the
> installation now anyway, but for the time being:
> Do you mean the debug message:
> "org-registry-initialize: org-agenda-files = nil"
> and did you put the lisp code into .emacs?
> In that case make
> (org-registry-initialize t)
> the very _last_ line in your .emacs .
> I'll put a page on Worg soon...
> My apologies for the inconvenience.
> By the way, these kind of emacs configuration issues are a reason why
> packaging is a bit problematic, at least at this stage of development.
>
> >
> > 2. The plugin was properly installed in firefox but it did not talk
> > propoerly with emacsclient. Nothing happens on emacs.
>
> What exactly did you try?
> Your issue 1. prevents the url lookup to work, so I'd only expect
> "store-link" and "remember" to work anyway. (right click on the statusbar
> entry)
>
> Does org-protocol itself work with the bookmarks described in its
> manual?
>
> Generally, error messages in firefox are shown in Tools->Error Console:
> Look for errors containing: "chrome://fireforg/" , and send them to me
> (privately, not through the list, perhaps).
>
> Thanks for your help and patience in testing
>
> Andreas
>
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] suggestion: "native" orgmode XML export (and import?)

2009-08-08 Thread Ilya Shlyakhter
> In the meantime, it would be useful to describe what kind of XML output
> do you want, because "XML" does not really describe anything per se.

I'm looking for XML output that would closely mirror the logical
structure of the org file, and that would contain all the information
in the orgfile (since it's easy to ignore the parts you don't need
during XML processing).  So, something like


   
  Tasks
  Here are the tasks I need to do
  
  
 Buy bread
 DONE
 fooderrands
 
 Importance1

Deadline070809
 
   

  
   

The details of the XML schema can of course change.   But it should
let you process org file data without having to parse any elements of
the org file (ideally, even dates) -- it would all be parsed by
orgmode's native parsing code and put into XML elements.

If there are questions about how to represent specific org elements in
XML I can try to write a more detailed spec.

thanks,

ilya




On Sat, Aug 8, 2009 at 7:48 AM, Bastien wrote:
> Ilya Shlyakhter  writes:
>
>> That's great, thanks!  I should be able to take it from there.
>> It would be great if at some point this became official, and also
>> included an XML exporter and specification.
>
> FYI, I'll upload a slightly improved version of org-export.el next week,
> together with documentation on how to write an exporter.  But the basic
> structure of the parsed buffer is the same, you can use it safely.
>
> In the meantime, it would be useful to describe what kind of XML output
> do you want, because "XML" does not really describe anything per se.
>
> Best,
>
> --
>  Bastien
>


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


Re: [Orgmode] Fireforg, a Firefox extension for Org mode interaction

2009-08-08 Thread Andreas Burtzlaff
On Sat, 8 Aug 2009 17:09:35 -0300
Daniel Martins  wrote:

> The issue on org-agenda-files was solved. It was my mistake, sorry.

No problem
 
> (right click on the statusbar entry) : works in a limited sense. It pops up
> the remember and store-links options but nothing happens when I left-click
> on both fields.

Does org-protocol itself work with the bookmarks described in its
manual? If yes, are there any error messages in Tools->Error console in
Firefox containing: "chrome://fireforg/" ?

> (left click on the statusbar entry) : does absolutely nothing.
> 

It will only show something, if the currently viewed url is found in
the agenda files.

To make a test case put:

* Greatest tool in the world [[http://orgmode.org/][Org mode]]:Org:

in one of your agenda files, save it and visit http://orgmode.org/ with
firefox.

Checklist:
1. Does the file ~/.org-registry.xml exist ? If not, look in *Messages*
   buffer in emacs and send me the last bit.
2. Does it contain orgmode.org? (grep "orgmode.org" ~/.org-registry.xml )
3. Does the statusbar entry show anything, e.g.:
   (1) :Org:
   If not, send me the error messages in firefox as described above.
4. Does the left click work now?

Thanks for the testing

Andreas


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


[Orgmode] suggestion: balance tracking

2009-08-08 Thread Ilya Shlyakhter
A small extension to orgmode would let you track how you're balancing
your time among your projects: whether you're spending more than you
want on some, and less than you want on others.

It would work as follows.   For any node you can define a property
"goal", saying how many todo's you want to complete in that subtree
per day (on average).   For each todo item that you mark DONE, you
would include in the entry the date of its completion.
Then, an orgmode command would, for each subtree with a "goal"
property at the root, compute how many todo's you completed in that
subtree within the last 2 weeks (say), and would report those subtrees
where the average # of todo's per day falls below the goal.   The
report would be sorted, with the most neglected goals first.

Some todo's could be worth more than others; a todo could have a
"goalvalue" property, in which case that property's value would be
added to the subtree's sum, instead of the default value of 1.   E.g.
this could represent hours spent.

The same mechanism could be used to check e.g. the balance of a budget
(whether you're spending more/less money than you would like on some
areas).


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


Re: [Orgmode] Re: Positioning Latex diagram on PDF output

2009-08-08 Thread Graham Smith
leo

Thanks, this was useful, but...


> %% 
> \documentclass{article}
> \usepackage{tikz}
> \usetikzlibrary{mindmap}
> \usepackage[active,tightpage]{preview}
> \PreviewEnvironment{tikzpicture}
> \setlength\PreviewBorder{1pt}

Based on this I have altered the headers in orgmode to

#+LATEX_HEADER: \usepackage{tikz}
#+LATEX_HEADER: \usetikzlibrary{mindmap,trees}
#+LATEX_HEADER: \usepackage[active,tightpage]{preview}
#+LATEX_HEADER: \PreviewEnvironment{tikzpicture}
#+LATEX_HEADER: \setlength\PreviewBorder{20pt}

This has certainly solved the mindmap position problem, but now the
resultant pdf loses all the text from the original orgmode file. :-(

I assume I don't need to add the document class line?

Graham

P.S. I'm not working on a Mindmap exporter just trying some pgf graphics.


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


[Orgmode] Re: Positioning Latex diagram on PDF output

2009-08-08 Thread Leo
On 2009-08-08 22:14 +0100, Graham Smith wrote:
> Based on this I have altered the headers in orgmode to
>
> #+LATEX_HEADER: \usepackage{tikz}
> #+LATEX_HEADER: \usetikzlibrary{mindmap,trees}
> #+LATEX_HEADER: \usepackage[active,tightpage]{preview}
> #+LATEX_HEADER: \PreviewEnvironment{tikzpicture}
> #+LATEX_HEADER: \setlength\PreviewBorder{20pt}
>
> This has certainly solved the mindmap position problem, but now the
> resultant pdf loses all the text from the original orgmode file. :-(
>
> I assume I don't need to add the document class line?

In that case, you can use geometry package or scale your tikz picture so
that it fits into the textwidth.

-- 
Emacs uptime: 1 day, 5 hours, 57 minutes, 35 seconds



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


[Orgmode] MACRO calls with linebreaks?

2009-08-08 Thread Stefan Vollmar

Hello,

I find org-mode's MACRO feature very useful for exporting to HTML as  
it allows you to generate literally any HTML construct that you need,  
here is a simple example: http://www.nf.mpg.de/kinderuni/kinderuni_en.html 
 (see the "Colophon" section; thanks again to everybody from the list  
who helped!).


For another project, we need to generate a table with many (multi- 
line) rows like this:


| logo.png | somebody.jpg | name \\ telephone \\ email... |

The images have different sizes (so some alignment is needed) and the  
text in the last column should have several lines (which should be  
next to the person's portrait). This can (currently) not been done  
with standard org tables (I am not complaining).


With something like this:

#+macro: person #+HTML: [...]table>


{{{person(logo.png, somebody.jpg, someb...@nf.mpg.de, name>telephoneroomgroup[...])}}}


the problem can be solved and yet again org-mode's flexibility is  
demonstrated.


The MACRO can be hidden in a setup-file. However, the MACRO call can  
not and it looks like a kludge and is awkward to read. MACRO calls  
work well with few and short arguments - different from this case. The  
problem is that org-mode seems to require the brackets in one line for  
MACROs to work. Assuming this restriction was not there, one could  
write in a much more readable fashion:


{{{person(
logo.png, somebody.jpg,
someb...@nf.mpg.de,
 name
 telephone
 room
 group
 [...]
)}}}

and (just a thought) might expect white space in front of an argument  
to be ignored and linebreaks in arguments conserved. Maybe there is a  
better way to pass longer arguments to MACROs?


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







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


[Orgmode] Re: org-link-mode ...

2009-08-08 Thread Bastien
Hi Lennart,

(I'm copying the Orgmode mailing list because it helps to get people's
opinion on such ideas...)

Lennart Borgman  writes:

> I am missing the minor mode org-link-mode. I just had a look at
> linkd.el again and decided I wanted to ask you to make a minor mode
> out of the link handling in org instead.

Org already lets you create links from nearly anywhere in Emacs. 

What would such a minor mode do?

> I have a minor mode which I call mlink-mode for link handling. The
> main purpose of that at the moment is creating links in html files and
> for making links out of variables in elisp file so that you quickly
> can jump to definitions. 

`org-store-link' can handle HTML and elisp files okay.

> However there is no "insert link". That is
> what I am looking for and then it looks to me like what I want is
> already there in org-mode, but...

You can of course insert links in Org-mode files.  Is your idea about
inserting links outside of Org-mode files?  Can you give an example?

> The purpose of mlinks.el was to try to unifiy links in some way so I
> will probably try to unify it with org links if you break it out.

I think I need more background on what are the main features of
linkd.el and mlinks.el -- and what are the ones you miss in Org...  

Thanks for further clarifications :)

-- 
 Bastien


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


Re: [Orgmode] Fireforg, a Firefox extension for Org mode interaction (Moved to Worg)

2009-08-08 Thread Andreas Burtzlaff

Up to date documentation of Fireforg now resides on Worg:

http://orgmode.org/worg/org-devel.php#fireforg

Please only use the installation procedures described there from now on.

Andreas


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


Re: [Orgmode] Re: org-link-mode ...

2009-08-08 Thread Eric Schulte
Bastien  writes:

> Hi Lennart,
>
> (I'm copying the Orgmode mailing list because it helps to get people's
> opinion on such ideas...)
>
> Lennart Borgman  writes:
>
>> I am missing the minor mode org-link-mode. I just had a look at
>> linkd.el again and decided I wanted to ask you to make a minor mode
>> out of the link handling in org instead.
>
> Org already lets you create links from nearly anywhere in Emacs. 
>
> What would such a minor mode do?
>

Not sure if this is apropos to this conversation, but I've been thinking
for some time that it would be useful to have a minor mode which would
activate org-style links in non-org files.  For example if an org link
in the comment section of a source-code document could be highlighted
and activated so that the C-c C-o keybinding can be used to follow said
link. -- Eric


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