[O] Checkbox Statistics - Report Progress

2011-06-16 Thread neil whitley
Hi

I want to include the checkbox statistics in my custom agenda which I
use to report my past weekly work to my boss.

I would like to have something like:

Monday

Project A [30%] Complete Today
Project B [85%] Complete Today 
Project C [50%] Complete Today 

Tuesday

Project A [40%] Complete Today 
Project B [90%] Complete Today 
Project C [45%] Complete Today 

...etcetc

Friday

Project A [100%] Complete Today 
Project B [97%] Complete  Today
Project C [50%] Complete  Today

The way the statistics work as far as I can see is that they give an
instant 'snapshot'. BUT is there a way to generate an agenda report that
shows how the projects have progressed to [100%] ? 

Maybe have checkbox statistics logged as they change with a timestamp
for example?

Thanks :-)

Neil




Re: [O] Literate Programming - Continue a Source Block?

2011-06-16 Thread Eric Schulte
Neeum Zawan  writes:

> Eric Schulte  writes:
>
>> How about the following solution, which is based on a new :noweb-ref
>> header argument.
>>
>> When expanding ``noweb'' style references the bodies of all code block
>> with /either/ a block name matching the reference name /or/ a :noweb-ref
>> header argument matching the reference name will be concatenated
>> together to form the replacement text.
>>
>> By setting this header argument at the sub-tree or file level, simple
>> code block concatenation may be achieved.  For example, when tangling
>> the following Org-mode file, the bodies of code blocks will be
>> concatenated into the resulting pure code file.
>
> Hi,
>
> Your example is not completely clear. I noticed you didn't put any names
> for the source blocks that use the noweb-ref. Is it necessary not to
> name them,

The source code blocks may have names, as before all code block names
should be unique or the behavior may be undefined.

> or can one name them but their names will still have to be unique and
> are orthogonal to concatenation (i.e. they have names, but the
> concatenation is due to whatever the argument of noweb-ref is)?
>

The value of the :noweb-ref header argument supersedes the name of the
code block for noweb expansion.  To preserve existing semantics and to
avoid requiring the use of the :noweb-ref header argument in simple
cases, the code block name will be used to resolve noweb references in
blocks which do not have a :noweb-ref header argument.

>
> I think either way, this solution serves my purpose. My original
> suggestion was to have a header whose value would be "append" to allow
> for concatenation if the name matches a previous source block. It seems
> your solution above is the same except instead of looking at the name of
> the source block, it looks at the argument of noweb-ref.
>

Yup, happy this sounds like it should work for your original need.

>
> Overwriting is still not supported, but I don't know if that's all that
> important (I don't have an immediate need for it). And noweb by default
> did not have it either, so perhaps it's not needed for most tasks

This was my thinking.

> (OTOH, you may want to think about what the best solution is if later
> on you decide to add overwriting capability).
>

If someone finds a real need for overwriting code blocks, hopefully the
specifics of their need will point towards an implementation.

>
> Thanks. Hope to see this or something like it soon.
>

You welcome, hope this turns out to be helpful -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] Literate Programming - Continue a Source Block?

2011-06-16 Thread Neeum Zawan
Eric Schulte  writes:

> How about the following solution, which is based on a new :noweb-ref
> header argument.
>
> When expanding ``noweb'' style references the bodies of all code block
> with /either/ a block name matching the reference name /or/ a :noweb-ref
> header argument matching the reference name will be concatenated
> together to form the replacement text.
>
> By setting this header argument at the sub-tree or file level, simple
> code block concatenation may be achieved.  For example, when tangling
> the following Org-mode file, the bodies of code blocks will be
> concatenated into the resulting pure code file.

Hi,

Your example is not completely clear. I noticed you didn't put any names
for the source blocks that use the noweb-ref. Is it necessary not to
name them, or can one name them but their names will still have to be
unique and are orthogonal to concatenation (i.e. they have names, but
the concatenation is due to whatever the argument of noweb-ref is)?

I think either way, this solution serves my purpose. My original
suggestion was to have a header whose value would be "append" to allow
for concatenation if the name matches a previous source block. It seems
your solution above is the same except instead of looking at the name of
the source block, it looks at the argument of noweb-ref.

Overwriting is still not supported, but I don't know if that's all that
important (I don't have an immediate need for it). And noweb by default
did not have it either, so perhaps it's not needed for most tasks (OTOH,
you may want to think about what the best solution is if later on you
decide to add overwriting capability).

Thanks. Hope to see this or something like it soon.




Re: [O] New release?

2011-06-16 Thread Memnon Anon
Achim Gratz  writes:

> Org 7.5 has got quite a few wrinkles ironed out during the past few
> months and the current HEAD looks very clean save for two compiler
> warnings in org-indent.el... 
[...]
> I'd think that the folks who aren't comfortable with living at the
> bleeding edge would benefit from "maint" being pulled up and a new
> release pushed out, unless someone feels that there's a showstopper
> hiding someplace.  Bastien?

FWIW, +1.

Just switched from stable 7.5 to git yesterday because I got the same
impression. 

Memnon




Re: [O] Delays in mailing list server?

2011-06-16 Thread Nick Dokos
Sebastien Vauban  wrote:

> Nick Dokos wrote:
> > It looks as if it bounced around lists.gnu.org for 36 minutes or so.
> > Anybody else seeing these delays?
> 
> I can't comment on the ML delays, as I'm reading these posts thru Gmane. But I
> can tell I often see very looong delays (many hours, sometimes) -- though I'm
> never able to tell who's the culprit.
> 

FWIW, it seems to be cured now: within a minute, I have both
the copy I mail to myself, and the copy back from the mailing
list. Previously, I'd get the first one within a minute, but
the second one would take an hour (+- a half hour).

Nick




Re: [O] New release?

2011-06-16 Thread Jambunathan K
Eric Schulte  writes:

> Hi Achim,
>
> I fully agree, and I believe a new release is planned in the next couple
> of weeks.  Specifically expect a new release before Emacs 24 goes into
> pre-test feature freeze at the end of this month.

I hoped to have my work (atleast the work the new core exporter) tested
 and integrated before the 7.6 release or the next merge with Emacs.

I see that this would inevitably get pushed (atleast) to the next cycle
if not to etenrnity.

Why am I so desperate and despondent? sigh sigh sigh.

Jambunathan K.



Re: [O] HTML5 presentations

2011-06-16 Thread Jambunathan K

> Admittedly I don't know what transformation are required by the html5
> presentation mechanism, however I would think that an approach like that
> taken in org-export-as-s5 [1], in which the existing org-export-as-html
> is simply wrapped in a let-form which sets variable values uses hooks to
> post-process, should be the simplest and would leverage as much of the
> existing machinery as possible.

To strengthen my argument for the generic backend agnostic driver in
org-odt branch, here are few concrete examples from org-s5.

org-s5 requires an insider understanding (see [1]) of what org does in
the background. Using my exporter wouldn't place such a huge
responsibility on the user part.

With [2] in mind, `org-export-content-div' on the current org-html.el be
"redefined".

[3] could also be elegantly handled with the new driver.

Let me re-iterate, I strongly urge that such one-off solutions be built
on top of html exporter in org-odt branch. It will help make the new
backend-agnostic driver evolve and more usable. Everyone would benefit.

While we are on the topic of presentations, let me add that with my new
exporter building a html/odt presentations along OpenOffice lines [4]
would be quite easy. That is one can make a generic presentation driver
out of the existing document driver.

IMHO let's not fallback on hacks when elegant solutions are readily
available.

Let me note that I am not interested in presentations so much as to
build a patch for or improve org-s5/org-html5. 

In effect, my argument is for embracing and extending the
org-html/org-odt and help it evolve in more useful ways.

ps: I recognize that org-s5 creates useful presentations and gets the
job done.


Footnotes: 
[1]  Snippet of org-s5

--8<---cut here---start->8---
(org-export-preprocess-hook
 (list
  (lambda ()
(let ((class "slide"))
  (org-map-entries
   (lambda ()
 (save-excursion
   (org-back-to-heading t)
   (when (= (car (org-heading-components)) 1)
 (put-text-property (point-at-bol) (point-at-eol)
'html-container-class class)
--8<---cut here---end--->8---

[2]

--8<---cut here---start->8---
(lambda ()
  (save-excursion
(replace-regexp
 (regexp-quote "")
 (let ((info `(("author" . ,author)
   ("title" . ,title)
   ("date" . ,(substring date 0 10)
   (join `(""
   ""
   ""
   ""
   ""
   ,(org-fill-template org-s5-title-string-fmt info)
   ""
   ""
   ""
   ""
   ,(org-fill-template org-s5-title-page-fmt info)))
--8<---cut here---end--->8---

[3]

(lambda ()
  (save-excursion
(replace-regexp
 (regexp-quote "")
 "")))

[4]

http://wiki.services.openoffice.org/wiki/Documentation/OOoAuthors_User_Manual/Impress_Guide/Creating_slides_from_an_outline
 
>
> Best -- Eric
>
> Footnotes: 
> [1]  https://github.com/eschulte/org-S5/blob/master/org-export-as-s5.el#L17



-- 



Re: [O] how to escape org markup?

2011-06-16 Thread Nick Dokos
Steven Haryanto  wrote:

> On Fri, Jun 17, 2011 at 12:10 AM, Nick Dokos  wrote:
> 
> Steven Haryanto  wrote:
>
> > I need to insert bits of plain text into a final composite Org 
> document. The text should be
> > protected from any Org formatting (for example, "* " at the beginning 
> of a line should not be
> > interpreted as a headline). Is enclosing it with #+BEGIN_SRC/#+END_SRC 
> or #+BEGIN_EXAMPLE/#
> > +END_EXAMPLE the correct way? I'm thinking yes, but my Emacs still 
> interprets the "* " as
> headline
> > though.
> >
>
> This seems to work - I can export to html or latex and get the expected 
> result:
>
> --8<---cut here---start->8---
>
> * foo
> org example
>
> #+begin_example
> ,* bar
> <2011-06-16 Thu>
>
> This is example code.
>
> #+end_example
> --8<---cut here---end--->8---
>
> But I don't know all the rules and moreover I don't know of any place 
> where
> they are described. I'll look around and post an update when I find it.
> But feel free to beat me to it.
>
> Nick
> 
> Btw, I still need to escape "#+END_SRC" if they occur at the start of line in 
> text, for example by
> prepending it with a space (akin to prepending a space to "From " in mbox 
> format).
> 

Try the round-trip suggested in sec. 11.3, "Literal examples", of the
manual: C-c ' on the block, then C-c ' to go back.  Here is the example
that I used in a recent bug report[fn:1] after round-tripping it:

--8<---cut here---start->8---
* foo

#+begin_example
  ,#+TITLE: foo
  ,* One
  
  One
  
  ,* Two
  
  Euler says:
  
  ,#+begin_latex
  \[
  \int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}} \over {2}}
  \]
  ,#+end_latex
#+end_example
--8<---cut here---end--->8---

It indented and added commas in front.[fn:2]

Nick

Footnotes:

[fn:1] http://thread.gmane.org/gmane.emacs.orgmode/42546

[fn:2] Unfortunately, it does not fix things: the bug is still biting
   me.  Actually, it's two bugs: one is a generic one, the other is
   specific to latex export.



Re: [O] latex checkboxes

2011-06-16 Thread Nick Dokos
Skip Collins  wrote:

> On Thu, Jun 16, 2011 at 6:52 PM, Nick Dokos  wrote:
> > I like it! Well, almost all of it: I'd vote for \large, rather than \LARGE,
> > but otherwise it looks good to me.
> 
> Can we compromise on \Large ? :-)
> 
As Tom Dye pointed out, you can customize :cbon and :cboff, so
no compromise necessary: you say tomAHto and I say tomEIto...

The only fly in the ointment is the hardcoding of [-] but that will be
fixed a few seconds after Nicolas Goaziou gets wind of this thread :-)

> > ,
> > | \item [{\parbox[][][c]{\wd0}{\LARGE$\square$}}] a
> > `
> 
> I tried the optional preamble for \item in a very naive fashion. LaTeX
> threw an error. Maybe I did it wrong. Or maybe the preamble is
> fragile. Regardless, there is probably a simple solution. Even for
> enumerated lists, it makes sense to place the checkbox with the list
> number rather than with the item text.
> 

I don't know what you mean by "preamble" here. I get no errors from
the above in any case: just even, nice-looking squares and no bullets.
I have not tried enumerated lists.

> Regarding the extra square brackets after \parbox, I was just using
> the documentation I found at
> http://www.tug.org/tutorials/latex2e/$5cparbox.html :
> 

Thanks for the reference. I was going by Lamport's book which does not
mention them. I guess things have changed since 1994 - who'd have thunk
it?

Nick



Re: [O] odd behaviour in a function - looking for advice

2011-06-16 Thread Filippo A. Salustri
save-window-excursion did the trick.  Never heard of that one.
Thanks!
Cheers.
Fil

On 16 June 2011 21:46, Jambunathan K  wrote:
> "Filippo A. Salustri"  writes:
>
>> Hi all,
>>
>> I've got this function:
>>
>> (defun fas/org-priority (&optional p)
>>   "Change the priority of the current item, then refresh agenda."
>>   (interactive)
>>   (save-excursion
>>     (if (org-priority p)
>>         (org-agenda-redo
>>
>> I set up my window to have 2 frames side by side.  The org agenda is
>> in the left frame.  In the right frame is whatever org file I'm
>> working on.
>> In the org file (right frame), I call the above function, having bound
>> it to \C-,
>> It does what it's supposed to to the priority, but then the point
>> moves to the agenda frame and goes to the end of the agenda buffer.
>> I would have thought 'save-excursion' would have returned the point to
>> wherever I was when I called the function.
>>
>
> save-window-excursion maybe?
> Or you could solve the problem by one switch-to-buffer-other-window.
>
> Just a quick hint.
>
>> Anyone got any idea what I'm doing wrong?
>> Cheers.
>> Fil
>
> --
>



-- 
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/



Re: [O] how to escape org markup?

2011-06-16 Thread Steven Haryanto
On Fri, Jun 17, 2011 at 12:10 AM, Nick Dokos  wrote:

> Steven Haryanto  wrote:
>
> > I need to insert bits of plain text into a final composite Org document.
> The text should be
> > protected from any Org formatting (for example, "* " at the beginning of
> a line should not be
> > interpreted as a headline). Is enclosing it with #+BEGIN_SRC/#+END_SRC
> or #+BEGIN_EXAMPLE/#
> > +END_EXAMPLE the correct way? I'm thinking yes, but my Emacs still
> interprets the "* " as headline
> > though.
> >
>
> This seems to work - I can export to html or latex and get the expected
> result:
>
> --8<---cut here---start->8---
>
> * foo
> org example
>
> #+begin_example
> ,* bar
> <2011-06-16 Thu>
>
> This is example code.
>
> #+end_example
> --8<---cut here---end--->8---
>
> But I don't know all the rules and moreover I don't know of any place where
> they are described. I'll look around and post an update when I find it.
> But feel free to beat me to it.
>
> Nick
>

Btw, I still need to escape "#+END_SRC" if they occur at the start of line
in text, for example by prepending it with a space (akin to prepending a
space to "From " in mbox format).

--
sh


Re: [O] odd behaviour in a function - looking for advice

2011-06-16 Thread Jambunathan K
Jambunathan K  writes:

> "Filippo A. Salustri"  writes:
>
>> Hi all,
>>
>> I've got this function:
>>
>> (defun fas/org-priority (&optional p)
>>   "Change the priority of the current item, then refresh agenda."
>>   (interactive)
>>   (save-excursion
>> (if (org-priority p)
>> (org-agenda-redo
>>
>> I set up my window to have 2 frames side by side.  The org agenda is
>> in the left frame.  In the right frame is whatever org file I'm
>> working on.
>> In the org file (right frame), I call the above function, having bound
>> it to \C-,
>> It does what it's supposed to to the priority, but then the point
>> moves to the agenda frame and goes to the end of the agenda buffer.
>> I would have thought 'save-excursion' would have returned the point to
>> wherever I was when I called the function.
>>
>
> save-window-excursion maybe? 
> Or you could solve the problem by one switch-to-buffer-other-window.
>
> Just a quick hint.

Also look at window-buffer or functions that start with
window-configuration-*.

Disclaimer: I cannot assure that the solution I suggest would work or is
correct but they sound like good starting points.

>
>> Anyone got any idea what I'm doing wrong?
>> Cheers.
>> Fil



Re: [O] odd behaviour in a function - looking for advice

2011-06-16 Thread Jambunathan K
"Filippo A. Salustri"  writes:

> Hi all,
>
> I've got this function:
>
> (defun fas/org-priority (&optional p)
>   "Change the priority of the current item, then refresh agenda."
>   (interactive)
>   (save-excursion
> (if (org-priority p)
> (org-agenda-redo
>
> I set up my window to have 2 frames side by side.  The org agenda is
> in the left frame.  In the right frame is whatever org file I'm
> working on.
> In the org file (right frame), I call the above function, having bound
> it to \C-,
> It does what it's supposed to to the priority, but then the point
> moves to the agenda frame and goes to the end of the agenda buffer.
> I would have thought 'save-excursion' would have returned the point to
> wherever I was when I called the function.
>

save-window-excursion maybe? 
Or you could solve the problem by one switch-to-buffer-other-window.

Just a quick hint.

> Anyone got any idea what I'm doing wrong?
> Cheers.
> Fil

-- 



Re: [O] Use custom program to process LaTeX fragments?

2011-06-16 Thread Jambunathan K
Uriel Avalos  writes:

> On Thu, 9 Jun 2011 08:56:33 -0700 (PDT)
> amscopub-m...@yahoo.com wrote:
>
>> Currently, whenever you export to HTML, you have 3 options for processing 
>> LaTeX 
>> fragments: (1) dvipng, (2) jsmath, (3) or leave it as is. 
>> 
>> 
>> Is it possible to use an arbitrary program to process LaTeX fragments?
>> 
>> What I want to do is use a commandline converter to turn the LaTeX fragments 
>> directly into MathML. This way the final HTML document already has the 
>> correct 
>> MathML without the need to use javascript. (Why? I use princexml to convert 
>> that 
>> HTML file to a hi-quality PDF. JSmath is no good for that.)
>> 
>
> anyone?

You are interested in a solution but not interested in engaging in a
conversation. It seems strange to me. 

Honestly I could have cooked up something ...

It would help if you give us summary of what princexml does, how you
intend to use it, how mature the codebase is and how it compares to the
tool I mentioned etc etc etc.

You need to engage if you are interested in a solution. 

Jambunathan K.

>
>

-- 



Re: [O] latex checkboxes

2011-06-16 Thread Skip Collins
On Thu, Jun 16, 2011 at 6:52 PM, Nick Dokos  wrote:
> I like it! Well, almost all of it: I'd vote for \large, rather than \LARGE,
> but otherwise it looks good to me.

Can we compromise on \Large ? :-)

> ,
> | \item [{\parbox[][][c]{\wd0}{\LARGE$\square$}}] a
> `

I tried the optional preamble for \item in a very naive fashion. LaTeX
threw an error. Maybe I did it wrong. Or maybe the preamble is
fragile. Regardless, there is probably a simple solution. Even for
enumerated lists, it makes sense to place the checkbox with the list
number rather than with the item text.

Regarding the extra square brackets after \parbox, I was just using
the documentation I found at
http://www.tug.org/tutorials/latex2e/$5cparbox.html :

\parbox[position][height][inner-pos]{width}{text}

A parbox is a box whose contents are created in paragraph mode. The
\parbox has two mandatory arguments:

width - specifies the width of the parbox, and
text - the text that goes inside the parbox.
LaTeX will position a parbox so its centre lines up with the centre of
the text line. The optional position argument allows you to line up
either the top or bottom line in the parbox (default is top).

If the height argument is not given, the box will have the natural
height of the text.

The inner-pos argument controls the placement of the text inside the
box. If it is not specified, position is used.

t --- text is placed at the top of the box.
c --- text is centred in the box.
b --- text is placed at the bottom of the box.
s --- stretch vertically. The text must contain vertically stretchable
space for this to work.
A \parbox command is used for a parbox containing a small piece of
text, with nothing fancy inside. In particular, you shouldn't use any
of the paragraph-making environments inside a \parbox argument. For
larger pieces of text, including ones containing a paragraph-making
environment, you should use a minipage environment See minipage.



[O] odd behaviour in a function - looking for advice

2011-06-16 Thread Filippo A. Salustri
Hi all,

I've got this function:

(defun fas/org-priority (&optional p)
  "Change the priority of the current item, then refresh agenda."
  (interactive)
  (save-excursion
(if (org-priority p)
(org-agenda-redo

I set up my window to have 2 frames side by side.  The org agenda is
in the left frame.  In the right frame is whatever org file I'm
working on.
In the org file (right frame), I call the above function, having bound
it to \C-,
It does what it's supposed to to the priority, but then the point
moves to the agenda frame and goes to the end of the agenda buffer.
I would have thought 'save-excursion' would have returned the point to
wherever I was when I called the function.

Anyone got any idea what I'm doing wrong?
Cheers.
Fil

-- 
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/



Re: [O] Use custom program to process LaTeX fragments?

2011-06-16 Thread Uriel Avalos
On Thu, 9 Jun 2011 08:56:33 -0700 (PDT)
amscopub-m...@yahoo.com wrote:

> Currently, whenever you export to HTML, you have 3 options for processing 
> LaTeX 
> fragments: (1) dvipng, (2) jsmath, (3) or leave it as is. 
> 
> 
> Is it possible to use an arbitrary program to process LaTeX fragments?
> 
> What I want to do is use a commandline converter to turn the LaTeX fragments 
> directly into MathML. This way the final HTML document already has the 
> correct 
> MathML without the need to use javascript. (Why? I use princexml to convert 
> that 
> HTML file to a hi-quality PDF. JSmath is no good for that.)
> 

anyone?



Re: [O] HTML5 presentations

2011-06-16 Thread Jambunathan K

I don't want to hijack this thread.

> Can you explain more about how we should proceed?  

Let us invite the author of html5 in to the discussion or let some
interested party provide a patch/diff of what changes the author had
done or let the body of html5 presentation be made available so that
someone could look at it.

AFAICS, None of the above things had happended on this thread. Flame me
if my observation is wrong.

org-s5 came in to being just because some interested party provided a
good starting point for Eric to build upon. I would like to see
something likewise happen with html5 presentation. I have been in this
list for quite sometime and there have been earlier attempts at slidy
integrated which weren't as successful as the recent attempt. I wonder
what that teaches us?

I will not answer your questions because I clearly indicated that I am a
man with my own agenda and I have no understanding of the problem being
discussed.

Jambunathan K.




Re: [O] latex checkboxes

2011-06-16 Thread Nick Dokos
Thomas S. Dye  wrote:

> Skip Collins  writes:
> 
> > There is a couple of problems with the way checkboxes are typeset in LaTeX.
> >
> > - [ ] a
> > - [X] b
> > - [-] c
> >
> > is translated to the LaTeX
> >
> > \begin{itemize}
> > \item $\Box$ a
> > \item $\boxtimes$ b
> > \item $\boxminus$ c
> > \end{itemize}
> >
> > The first problem is that \Box is not the same size as \boxtimes or 
> > \boxminus .
> > The correct symbol to use from the amssymb package is \square which
> > matches the other two symbols.
> >
> > Another problem is that these symbols were intended to be mathematical
> > binary operators, and are therefore rather small for the purposes of a
> > checkbox. I suggest that LaTeX output could be modified to something
> > like:
> >
> > \setbox0=\hbox{\LARGE$\square$}
> > \begin{itemize}
> > \item {\parbox[][][c]{\wd0}{\LARGE$\square$}} a
> > \item {\parbox[][][c]{\wd0}{\LARGE$\boxtimes$}} b
> > \item {\parbox[][][c]{\wd0}{\LARGE$\boxminus$}} c
> > \end{itemize}
> >
> > The parbox ensures that the checkbox is nicely centered with the first
> > line of text.
> >
> > Another nice-to-have feature would be to use the checkbox as a label
> > for list items in non-enumerated lists. Currently, the list bullet
> > appears as visual clutter next to the checkbox.
> >
> >
> Aloha Skip,
> 
> I think you might be able to get the behavior you want by modifying the
> variable org-export-latex-list-parameters, perhaps something like
> '(:ustart "\\setbox0=\\hbox{\\LARGE$\\square$}\n\\begin{itemize}\n" :cboff
> "\\parbox[][][c]{\\wd0}{\\LARGE$\\square$}" :cbon
> "\\parbox[][][c]{\\wd0}{\\LARGE$\\boxtimes$}")
> 
> The variable is set by default to  '(:cbon "$\\boxtimes$" :cboff
> "$\\Box$") in org-latex.el and is used to override the default settings
> of org-list-to-latex in org-list.el.
>  
> Not tested.
> 

Yes, you can indeed - except for the [-] which is hardcoded. Try the
following:

--8<---cut here---start->8---
#LATEX_HEADER: \setbox0=\hbox{\large$\square$}

#+BIND: org-export-latex-list-parameters (:cbon 
"[{\\parbox[][][c]{\\wd0}{\\large$\\boxtimes$}}]" :cboff 
"[{\\parbox[][][c]{\\wd0}{\\large$\\square$}}]")

* DONE Organize party [3/4]
   - [ ] call people
   - [X] order food
   - [-] think about what music to play
   - [X] talk to the neighbors
--8<---cut here---end--->8---

So the question is: why is the [-] hardcoded?

Nick



Re: [O] latex checkboxes

2011-06-16 Thread Thomas S. Dye
Skip Collins  writes:

> There is a couple of problems with the way checkboxes are typeset in LaTeX.
>
> - [ ] a
> - [X] b
> - [-] c
>
> is translated to the LaTeX
>
> \begin{itemize}
> \item $\Box$ a
> \item $\boxtimes$ b
> \item $\boxminus$ c
> \end{itemize}
>
> The first problem is that \Box is not the same size as \boxtimes or \boxminus 
> .
> The correct symbol to use from the amssymb package is \square which
> matches the other two symbols.
>
> Another problem is that these symbols were intended to be mathematical
> binary operators, and are therefore rather small for the purposes of a
> checkbox. I suggest that LaTeX output could be modified to something
> like:
>
> \setbox0=\hbox{\LARGE$\square$}
> \begin{itemize}
> \item {\parbox[][][c]{\wd0}{\LARGE$\square$}} a
> \item {\parbox[][][c]{\wd0}{\LARGE$\boxtimes$}} b
> \item {\parbox[][][c]{\wd0}{\LARGE$\boxminus$}} c
> \end{itemize}
>
> The parbox ensures that the checkbox is nicely centered with the first
> line of text.
>
> Another nice-to-have feature would be to use the checkbox as a label
> for list items in non-enumerated lists. Currently, the list bullet
> appears as visual clutter next to the checkbox.
>
>
Aloha Skip,

I think you might be able to get the behavior you want by modifying the
variable org-export-latex-list-parameters, perhaps something like
'(:ustart "\\setbox0=\\hbox{\\LARGE$\\square$}\n\\begin{itemize}\n" :cboff
"\\parbox[][][c]{\\wd0}{\\LARGE$\\square$}" :cbon
"\\parbox[][][c]{\\wd0}{\\LARGE$\\boxtimes$}")

The variable is set by default to  '(:cbon "$\\boxtimes$" :cboff
"$\\Box$") in org-latex.el and is used to override the default settings
of org-list-to-latex in org-list.el.
 
Not tested.

hth,
Tom
 
-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] HTML5 presentations

2011-06-16 Thread Eric Schulte
Robert Goldman  writes:

> On 6/16/11 Jun 16 -3:36 PM, Jambunathan K wrote:
>> Eric Schulte  writes:
>> 
>>> Robert Goldman  writes:
>>>
 On 6/7/11 Jun 7 -3:01 PM, Tassilo Horn wrote:
> Vinh Nguyen  writes:
>
> 

 I have tried the version here:
 https://github.com/twada/org-html5presentation.el

 and it does not seem to be ready for prime-time.  Org-babel features
 don't work, and there seems to be not a clear integration with the
 org-export-preprocessor.  See my two issues, one (not satisfactorily)
 closed, one open.

 Possibly this should be folded into contrib, so that people could
 cooperate on it more easily than when it lives off in a separate git
 repo, but it shouldn't be enabled for the unwary until it's been
 thoroughly exercised.

 Is there a "tries to use all features" org presentation somewhere that
 would serve as a good acid test for an export facility?  It would be
 very handy to have that.

>>>
>>> This export target seems to re-implement much of the org HTML export
>>> mechanics which is most likely the reason for the incomplete coverage of
>>> Org's large functionality.
>>>
>>> Perhaps it would be possible to change this so that it works more like
>>> org-s5, that is, so that it firsts exports using the existing html
>>> export functionality, and then simply manipulates the resulting html.
>>>
>> 
>> I haven't looked at or tried either org-s5 or the html5 presentations. 
>> 
>> I would like to note that much of the refactoring of the html exporter
>> is already done and is ready for prime time. I would very much like to
>> see that my code be used for such experimentations.
>> 
>> I will only note that the only way Free Software can thrive is by
>> adopting an "embrace and extend" approach.
>
> Can you explain more about how we should proceed?  Are you recommending:
>
> Your refactoring should be merged into the main branch BEFORE attempting
> to re-engineer org-html5presentation?
>
> Or is there something else?
>
> Also, does your re-engineering help with the problem that I cited above?
>  I.e., the fact that org-export-current-backend is used BOTH to load the
> export code AND to indicate to the preprocessor how to preprocess.  The
> problem here is that we can't make two different backends share the same
> preprocessing.
>
> Actually, more generally, I think the problem is that the
> export-preprocessor, since it doesn't have anything like methods or
> higher-order functions, forces us to build into each preprocessing
> function a big conditional based on the value of
> org-export-current-backend, which is cumbersome.
>

Admittedly I don't know what transformation are required by the html5
presentation mechanism, however I would think that an approach like that
taken in org-export-as-s5 [1], in which the existing org-export-as-html
is simply wrapped in a let-form which sets variable values uses hooks to
post-process, should be the simplest and would leverage as much of the
existing machinery as possible.

Best -- Eric

Footnotes: 
[1]  https://github.com/eschulte/org-S5/blob/master/org-export-as-s5.el#L17

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



[O] [PATCH] Make org-capture more generic

2011-06-16 Thread Matthieu Lemerre

Hi,

I really like org-capture, and especially the "hierarchical" interface
for selecting possible capture templates, but I think it needs to be
extended slightly so that it can be used to archive anything.

Some of the things I would like to do when capturing are:
 1. Just jump to some location without inserting anything so that I can
edit things by myself (for instance, jump to the location where my
org-capture-template is defined to manually add new templates)
 2. Copying some file to some location (no org involved)
 3. Extract some files from my mail to attach them to some org item
 4. Insert some parametrized code at point (e.g. for repetitive
projects, like planning a business trip, I would like to insert
a predefined project at point, so I don't have to do all the 
planning every time I do it)

Item 1. is feasible if I remember to use C-u before calling
org-template, but this is a ugly workaround. Another way that I tried
was to using "" as a template with an unnarrowed buffer, but this
triggers a default template instead.

My first patch just extends org-capture to allow empty template, using a
new entry type, 'empty.

The second allows to use functions to define template. Together with an
empty template, it should allow implementing my 2, and may be useful to
implement 3 and 4.

I don't think these patches will be definitive; I mostly would like to
discuss org-capture evolution with org-mode gurus ;)

Regards
Matthieu

>From 8fa638b36f477f2b81e131439729dda954d2e0ad Mon Sep 17 00:00:00 2001
From: Matthieu Lemerre 
Date: Fri, 17 Jun 2011 00:04:40 +0200
Subject: [PATCH 1/2] Add a new "empty" entry-type to org-capture.

This special empty entry type allows to not insert any text in a
template. This can be used e.g. to only jump to a location, so that
the user can edit it by hand.
---
 lisp/org-capture.el |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 7d3f630..7e055f9 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1178,6 +1178,7 @@ Point will remain at the first line after the inserted text."
((eq type 'item) (setq txt "- %?"))
((eq type 'checkitem) (setq txt "- [ ] %?"))
((eq type 'table-line) (setq txt "| %? |"))
+   ((eq type 'empty) (setq txt ""))
((member type '(nil entry)) (setq txt "* %?\n  %a"
 (org-capture-put :template txt :type type)))
 
-- 
1.7.4.1

>From 4d933ee2cc91f93c8e78a792175751e27c9d03e4 Mon Sep 17 00:00:00 2001
From: Matthieu Lemerre 
Date: Fri, 17 Jun 2011 00:19:40 +0200
Subject: [PATCH 2/2] Allows org-capture template to be a function.

The function should return a string, which is used as a template.
---
 lisp/org-capture.el |   20 +++-
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 7e055f9..368532f 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1171,15 +1171,17 @@ Point will remain at the first line after the inserted text."
   (org-capture-put :key (car entry) :description (nth 1 entry)
 		   :target (nth 3 entry))
   (let ((txt (nth 4 entry)) (type (or (nth 2 entry) 'entry)))
-(when (or (not txt) (and (stringp txt) (not (string-match "\\S-" txt
-  ;; The template may be empty or omitted for special types.
-  ;; Here we insert the default templates for such cases.
-  (cond
-   ((eq type 'item) (setq txt "- %?"))
-   ((eq type 'checkitem) (setq txt "- [ ] %?"))
-   ((eq type 'table-line) (setq txt "| %? |"))
-   ((eq type 'empty) (setq txt ""))
-   ((member type '(nil entry)) (setq txt "* %?\n  %a"
+(if (functionp txt)
+	(setq txt (funcall txt))
+  (when (or (not txt) (and (stringp txt) (not (string-match "\\S-" txt
+	;; The template may be empty or omitted for special types.
+	;; Here we insert the default templates for such cases.
+	(cond
+	 ((eq type 'item) (setq txt "- %?"))
+	 ((eq type 'checkitem) (setq txt "- [ ] %?"))
+	 ((eq type 'table-line) (setq txt "| %? |"))
+	 ((eq type 'empty) (setq txt ""))
+	 ((member type '(nil entry)) (setq txt "* %?\n  %a")
 (org-capture-put :template txt :type type)))
 
 (defun org-capture-goto-target (&optional template-key)
-- 
1.7.4.1



Re: [O] latex checkboxes

2011-06-16 Thread Nick Dokos
Skip Collins  wrote:

> There is a couple of problems with the way checkboxes are typeset in LaTeX.
> 
> - [ ] a
> - [X] b
> - [-] c
> 
> is translated to the LaTeX
> 
> \begin{itemize}
> \item $\Box$ a
> \item $\boxtimes$ b
> \item $\boxminus$ c
> \end{itemize}
> 
> The first problem is that \Box is not the same size as \boxtimes or \boxminus 
> .
> The correct symbol to use from the amssymb package is \square which
> matches the other two symbols.
> 
> Another problem is that these symbols were intended to be mathematical
> binary operators, and are therefore rather small for the purposes of a
> checkbox. I suggest that LaTeX output could be modified to something
> like:
> 
> \setbox0=\hbox{\LARGE$\square$}
> \begin{itemize}
> \item {\parbox[][][c]{\wd0}{\LARGE$\square$}} a
> \item {\parbox[][][c]{\wd0}{\LARGE$\boxtimes$}} b
> \item {\parbox[][][c]{\wd0}{\LARGE$\boxminus$}} c
> \end{itemize}
> 
> The parbox ensures that the checkbox is nicely centered with the first
> line of text.
> 
> Another nice-to-have feature would be to use the checkbox as a label
> for list items in non-enumerated lists. Currently, the list bullet
> appears as visual clutter next to the checkbox.
> 

I like it! Well, almost all of it: I'd vote for \large, rather than \LARGE,
but otherwise it looks good to me.

Also, the nice-to-have feature is very easy to implement. All it needs is
a pair of square brackets around the box:

,
| \item [{\parbox[][][c]{\wd0}{\LARGE$\square$}}] a
`

The \setbox can go into the preamble btw.

Nick



Re: [O] custom IDs not exported

2011-06-16 Thread Nick Dokos
Daniel Clemente  wrote:

> 
>   The latest commit I can find after cloning git://repo.or.cz/org-mode.git to 
> a new directory is this:
> 
> ,
> | commit 90f6765cdf77c1414726d899f00c77da43f45758
> | Author: Eric Schulte 
> | Date:   Mon Jun 13 14:58:56 2011 -0700
> | 
> | ob-tangle: no longer inserting newlines between appended code blocks
> | 
> | * lisp/ob-tangle.el (org-babel-tangle-combine-named-blocks): No longer
> |   inserting newlines between appended code blocks.
> `
> 
> 
>   So it seems there's some sort of delay with repo.or.cz
> 

Indeed: the git repo was changed to orgmode.org back in December (?)
and repo.or.cz was left as a mirror, but apparently it has been
non compos mentis for a little while. Your best best is to go
to the horse's mouth - cd into the directory that holds the git clone
of org and

   git config remote.origin.url git://orgmode.org/org-mode.git

Then just continue as if nothing happened.

Nick

PS There was some discussion of this on the ML this morning (or last night?
   I'm losing track of time...)




Re: [O] custom IDs not exported

2011-06-16 Thread Daniel Clemente

  The latest commit I can find after cloning git://repo.or.cz/org-mode.git to a 
new directory is this:

,
| commit 90f6765cdf77c1414726d899f00c77da43f45758
| Author: Eric Schulte 
| Date:   Mon Jun 13 14:58:56 2011 -0700
| 
| ob-tangle: no longer inserting newlines between appended code blocks
| 
| * lisp/ob-tangle.el (org-babel-tangle-combine-named-blocks): No longer
|   inserting newlines between appended code blocks.
`


  So it seems there's some sort of delay with repo.or.cz




El Thu, 16 Jun 2011 17:40:56 -0400 Nick Dokos va escriure:
> 
> It is checked in already. The commit looks like this:
> 
> ,
> | commit 1891ee5aafee710315a26595385e670e1ac3771e
> | Author: Carsten Dominik 
> | Date:   Tue Jun 14 10:46:09 2011 +0200
> | 
> | Fix HTML export to make CUSTOM_ID links work again
> | 
> | * lisp/org-html.el (org-export-as-html):
> | (org-html-level-start): Only convert section number underscores to 
> dashes.
> `
> 
> ``git show 1891ee5aafee710315a26595385e670e1ac3771e'' will show you whether
> you have it or need to pull.
> 
> Nick



[O] latex checkboxes

2011-06-16 Thread Skip Collins
There is a couple of problems with the way checkboxes are typeset in LaTeX.

- [ ] a
- [X] b
- [-] c

is translated to the LaTeX

\begin{itemize}
\item $\Box$ a
\item $\boxtimes$ b
\item $\boxminus$ c
\end{itemize}

The first problem is that \Box is not the same size as \boxtimes or \boxminus .
The correct symbol to use from the amssymb package is \square which
matches the other two symbols.

Another problem is that these symbols were intended to be mathematical
binary operators, and are therefore rather small for the purposes of a
checkbox. I suggest that LaTeX output could be modified to something
like:

\setbox0=\hbox{\LARGE$\square$}
\begin{itemize}
\item {\parbox[][][c]{\wd0}{\LARGE$\square$}} a
\item {\parbox[][][c]{\wd0}{\LARGE$\boxtimes$}} b
\item {\parbox[][][c]{\wd0}{\LARGE$\boxminus$}} c
\end{itemize}

The parbox ensures that the checkbox is nicely centered with the first
line of text.

Another nice-to-have feature would be to use the checkbox as a label
for list items in non-enumerated lists. Currently, the list bullet
appears as visual clutter next to the checkbox.



Re: [O] HTML5 presentations

2011-06-16 Thread Robert Goldman
On 6/16/11 Jun 16 -3:36 PM, Jambunathan K wrote:
> Eric Schulte  writes:
> 
>> Robert Goldman  writes:
>>
>>> On 6/7/11 Jun 7 -3:01 PM, Tassilo Horn wrote:
 Vinh Nguyen  writes:


>>>
>>> I have tried the version here:
>>> https://github.com/twada/org-html5presentation.el
>>>
>>> and it does not seem to be ready for prime-time.  Org-babel features
>>> don't work, and there seems to be not a clear integration with the
>>> org-export-preprocessor.  See my two issues, one (not satisfactorily)
>>> closed, one open.
>>>
>>> Possibly this should be folded into contrib, so that people could
>>> cooperate on it more easily than when it lives off in a separate git
>>> repo, but it shouldn't be enabled for the unwary until it's been
>>> thoroughly exercised.
>>>
>>> Is there a "tries to use all features" org presentation somewhere that
>>> would serve as a good acid test for an export facility?  It would be
>>> very handy to have that.
>>>
>>
>> This export target seems to re-implement much of the org HTML export
>> mechanics which is most likely the reason for the incomplete coverage of
>> Org's large functionality.
>>
>> Perhaps it would be possible to change this so that it works more like
>> org-s5, that is, so that it firsts exports using the existing html
>> export functionality, and then simply manipulates the resulting html.
>>
> 
> I haven't looked at or tried either org-s5 or the html5 presentations. 
> 
> I would like to note that much of the refactoring of the html exporter
> is already done and is ready for prime time. I would very much like to
> see that my code be used for such experimentations.
> 
> I will only note that the only way Free Software can thrive is by
> adopting an "embrace and extend" approach.

Can you explain more about how we should proceed?  Are you recommending:

Your refactoring should be merged into the main branch BEFORE attempting
to re-engineer org-html5presentation?

Or is there something else?

Also, does your re-engineering help with the problem that I cited above?
 I.e., the fact that org-export-current-backend is used BOTH to load the
export code AND to indicate to the preprocessor how to preprocess.  The
problem here is that we can't make two different backends share the same
preprocessing.

Actually, more generally, I think the problem is that the
export-preprocessor, since it doesn't have anything like methods or
higher-order functions, forces us to build into each preprocessing
function a big conditional based on the value of
org-export-current-backend, which is cumbersome.

Best,
r



Re: [O] custom IDs not exported

2011-06-16 Thread Daniel Clemente
Hi,

Could you check this patch in?

Thanks


El Sat, 11 Jun 2011 23:12:26 -0400 Nick Dokos va escriure:
> 
> I have a minimal patch that I think fixes this problem, but there are
> other underscores used in various places in org-html.el so there might
> be additional problems. I'd appreciate it if you (and/or others) test it
> and report not only on this problem but on any other problems you find.
> 
> Thanks,
> Nick
> 
> diff --git a/lisp/org-html.el b/lisp/org-html.el
> index afc6a77..b5d371f 100644
> --- a/lisp/org-html.el
> +++ b/lisp/org-html.el
> @@ -1395,7 +1395,7 @@ lang=\"%s\" xml:lang=\"%s\">
>  (setq txt (replace-match "" t t 
> txt)))
>(setq href
>  (replace-regexp-in-string
> - "\\." "_" (format "sec-%s" 
> snumber)))
> + "\\." "-" (format "sec-%s" 
> snumber)))
>(setq href (org-solidify-link-text (or 
> (cdr (assoc href org-export-preferred-target-alist)) href)))
>(push
> (format
> @@ -2412,7 +2412,7 @@ When TITLE is nil, just close all open levels."
>   (insert "\n" title "\n"
>   (aset org-levels-open (1- level) t)
>   (setq snumber (org-section-number level)
> -   snu (replace-regexp-in-string "\\." "_" snumber))
> +   snu (replace-regexp-in-string "\\." "-" snumber))
>   (setq level (+ level org-export-html-toplevel-hlevel -1))
>   (if (and num (not body-only))
>   (setq title (concat
> 



Re: [O] custom IDs not exported

2011-06-16 Thread Nick Dokos
Daniel Clemente  wrote:

> Hi,
> 
> Could you check this patch in?
> 

It is checked in already. The commit looks like this:

,
| commit 1891ee5aafee710315a26595385e670e1ac3771e
| Author: Carsten Dominik 
| Date:   Tue Jun 14 10:46:09 2011 +0200
| 
| Fix HTML export to make CUSTOM_ID links work again
| 
| * lisp/org-html.el (org-export-as-html):
| (org-html-level-start): Only convert section number underscores to dashes.
`

``git show 1891ee5aafee710315a26595385e670e1ac3771e'' will show you whether
you have it or need to pull.

Nick

> 
> 
> El Sat, 11 Jun 2011 23:12:26 -0400 Nick Dokos va escriure:
> > 
> > I have a minimal patch that I think fixes this problem, but there are
> > other underscores used in various places in org-html.el so there might
> > be additional problems. I'd appreciate it if you (and/or others) test it
> > and report not only on this problem but on any other problems you find.
> > 
> > Thanks,
> > Nick
> > 
> > diff --git a/lisp/org-html.el b/lisp/org-html.el
> > index afc6a77..b5d371f 100644
> > --- a/lisp/org-html.el
> > +++ b/lisp/org-html.el
> > @@ -1395,7 +1395,7 @@ lang=\"%s\" xml:lang=\"%s\">
> >(setq txt (replace-match "" t t 
> > txt)))
> >  (setq href
> >(replace-regexp-in-string
> > -   "\\." "_" (format "sec-%s" 
> > snumber)))
> > +   "\\." "-" (format "sec-%s" 
> > snumber)))
> >  (setq href (org-solidify-link-text (or 
> > (cdr (assoc href org-export-preferred-target-alist)) href)))
> >  (push
> >   (format
> > @@ -2412,7 +2412,7 @@ When TITLE is nil, just close all open levels."
> > (insert "\n" title "\n"
> > (aset org-levels-open (1- level) t)
> > (setq snumber (org-section-number level)
> > - snu (replace-regexp-in-string "\\." "_" snumber))
> > + snu (replace-regexp-in-string "\\." "-" snumber))
> > (setq level (+ level org-export-html-toplevel-hlevel -1))
> > (if (and num (not body-only))
> > (setq title (concat
> > 
> 



Re: [O] HTML5 presentations

2011-06-16 Thread Jambunathan K
Eric Schulte  writes:

> Robert Goldman  writes:
>
>> On 6/7/11 Jun 7 -3:01 PM, Tassilo Horn wrote:
>>> Vinh Nguyen  writes:
>>> 
 After the recent org-mode to S5 discussion, I stumbled onto
 [these](https://gist.github.com/509761) code.  It offers a way to
 export org files to HTML5 presentations.  I think it looks quite nice.
  I see it being better than S5 in that no "ui" folder is required.
 What do you all think?  Is it worthy of being incorporated into
 org-mode?
>>> 
>>> Just tried it, and it's pretty cool!  Easy to use and nicely looking.
>>> 
>>> Bye,
>>> Tassilo
>>> 
>>> 
>>> 
>>
>> I have tried the version here:
>> https://github.com/twada/org-html5presentation.el
>>
>> and it does not seem to be ready for prime-time.  Org-babel features
>> don't work, and there seems to be not a clear integration with the
>> org-export-preprocessor.  See my two issues, one (not satisfactorily)
>> closed, one open.
>>
>> Possibly this should be folded into contrib, so that people could
>> cooperate on it more easily than when it lives off in a separate git
>> repo, but it shouldn't be enabled for the unwary until it's been
>> thoroughly exercised.
>>
>> Is there a "tries to use all features" org presentation somewhere that
>> would serve as a good acid test for an export facility?  It would be
>> very handy to have that.
>>
>
> This export target seems to re-implement much of the org HTML export
> mechanics which is most likely the reason for the incomplete coverage of
> Org's large functionality.
>
> Perhaps it would be possible to change this so that it works more like
> org-s5, that is, so that it firsts exports using the existing html
> export functionality, and then simply manipulates the resulting html.
>

I haven't looked at or tried either org-s5 or the html5 presentations. 

I would like to note that much of the refactoring of the html exporter
is already done and is ready for prime time. I would very much like to
see that my code be used for such experimentations.

I will only note that the only way Free Software can thrive is by
adopting an "embrace and extend" approach.

Jambunathan K.


> Best -- Eric

-- 



Re: [O] org-capture does not fully clean up after C-c C-k

2011-06-16 Thread Jason Dunsmore
Carsten Dominik  writes:

> On 4.5.2011, at 14:30, Leo wrote:
>
>> Hello,
>> 
>> I have one template as follows
>> 
>> ("n" "Notes" entry (file "Notes.org") "* %?\n  %i" :prepend t)
>> 
>> Every time I `C-c C-k' to abort the capture, a blank line is inserted at
>> the front of file Notes.org.
>
> Hi Leo,
>
> I am unable to reproduce this.  I do get an empty line the first time,
> but when the empty line is already there, then there is no problem.
>
> Do you find the insertion of this one empty line a problem?

It's a significant problem for me.  I still use org-remember because 1)
org-capture inserts an extra blank line and 2) canceling a capture
doesn't work for some reason - I get the following message:

"org-capture-finalize: Capture process aborted, but target buffer could not be 
cleaned up correctly"

Both of these issues cause me to do manual clean up following every
capture.

Please let me know if there are fixes/workarounds for these issues.  I'd
like to finally make the switch to org-capture.

Regards,
Jason



Re: [O] Delays in mailing list server?

2011-06-16 Thread Sebastien Vauban
Hi Nick,

Nick Dokos wrote:
> I replied to Fil earlier through the list (not sure if the direct reply
> to him got there quickly) and it took a long time for the round-trip
> through the list server to get back to me:
>
> ,
> | ...
> | Received: from localhost ([::1]:59909 helo=lists.gnu.org)
> | by lists.gnu.org with esmtp (Exim 4.71)
> | (envelope-from )
> | id 1QXDNL-0008Ik-MT
> | for nicholas.do...@hp.com; Thu, 16 Jun 2011 10:16:51 -0400
> | Received: from eggs.gnu.org ([140.186.70.92]:35691)
> | by lists.gnu.org with esmtp (Exim 4.71)
> | (envelope-from ) id 1QXCnI-0006kD-J9
> | for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 09:39:38 -0400
> | ...
> `
>
> It looks as if it bounced around lists.gnu.org for 36 minutes or so.
> Anybody else seeing these delays?

I can't comment on the ML delays, as I'm reading these posts thru Gmane. But I
can tell I often see very looong delays (many hours, sometimes) -- though I'm
never able to tell who's the culprit.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] how to control exported src color

2011-06-16 Thread Eric Schulte
silent  writes:

> yes, I just checked my emacs, the buffer is much like the exported code,
> emacs buffer not looks that bad because it using a dark blue background,
>
> I changed to another color-theme, and the exported code looks much better,
>
> I will try to customize org-export-htmlize later.
>

Another option is to set the background of code segments to a dark
blue.  I often do that with the inclusion of a line like the following
in my Org-mode file.

#+style: pre{background-color: #232323; color: 
#E6E1DC;}

Note, if you are using a color-theme, then the file defining the color
theme probably holds the html code of your background color, which could
then be copied directly as the  element background.

Cheers -- Eric

>
> thanks!
>
> 2011/6/15 Jambunathan K :
>> silent  writes:
>>
>>> hi,
>>>
>>> I met a problem:
>>>
>>> I use #+BEGIN_SRC html #+END_SRC in org, and export to html
>>> but the source code's highlight color is not good,
>>
>> Does your Emacs buffers look that way?
>>
>>> could you please tell me how can I change the color ?
>>
>> M-x customize-group RET org-export-htmlize
>>
>> is a good starting point. But you have to do some homework.
>>
>> Jambunathan K.
>>
>> --
>>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] HTML5 presentations

2011-06-16 Thread Robert Goldman
On 6/16/11 Jun 16 -2:29 PM, Eric Schulte wrote:
> Robert Goldman  writes:
> 
>> On 6/7/11 Jun 7 -3:01 PM, Tassilo Horn wrote:
>>> Vinh Nguyen  writes:
>>>
 After the recent org-mode to S5 discussion, I stumbled onto
 [these](https://gist.github.com/509761) code.  It offers a way to
 export org files to HTML5 presentations.  I think it looks quite nice.
  I see it being better than S5 in that no "ui" folder is required.
 What do you all think?  Is it worthy of being incorporated into
 org-mode?
>>>
>>> Just tried it, and it's pretty cool!  Easy to use and nicely looking.
>>>
>>> Bye,
>>> Tassilo
>>>
>>>
>>>
>>
>> I have tried the version here:
>> https://github.com/twada/org-html5presentation.el
>>
>> and it does not seem to be ready for prime-time.  Org-babel features
>> don't work, and there seems to be not a clear integration with the
>> org-export-preprocessor.  See my two issues, one (not satisfactorily)
>> closed, one open.
>>
>> Possibly this should be folded into contrib, so that people could
>> cooperate on it more easily than when it lives off in a separate git
>> repo, but it shouldn't be enabled for the unwary until it's been
>> thoroughly exercised.
>>
>> Is there a "tries to use all features" org presentation somewhere that
>> would serve as a good acid test for an export facility?  It would be
>> very handy to have that.
>>
> 
> This export target seems to re-implement much of the org HTML export
> mechanics which is most likely the reason for the incomplete coverage of
> Org's large functionality.
> 
> Perhaps it would be possible to change this so that it works more like
> org-s5, that is, so that it firsts exports using the existing html
> export functionality, and then simply manipulates the resulting html.

Alternatively, would it be possible to have this behave mostly like
conventional HTML export (i.e., have the org-export-current-backend be
'html), and then simply have the code that does the emitting override
particular bits of the normal org-html behavior?

The problem with this approach is that a side-effect of setting the
org-export-current-backend to 'foo is to (require 'org-foo).  This means
it's difficult to make something like org-export-as-html5presentation be
parasitic on org-export-as-html...

I confess to not understanding how beamer and conventional latex export
interact; possibly that would provide valuable precedent for this.

best,
r



Re: [O] New release?

2011-06-16 Thread Eric Schulte
Hi Achim,

I fully agree, and I believe a new release is planned in the next couple
of weeks.  Specifically expect a new release before Emacs 24 goes into
pre-test feature freeze at the end of this month.

Best -- Eric

Achim Gratz  writes:

> Org 7.5 has got quite a few wrinkles ironed out during the past few
> months and the current HEAD looks very clean save for two compiler
> warnings in org-indent.el... and that part of the code looks like it
> could use the same solution that org-agenda.el employs around line 1766.
>
> I'd think that the folks who aren't comfortable with living at the
> bleeding edge would benefit from "maint" being pulled up and a new
> release pushed out, unless someone feels that there's a showstopper
> hiding someplace.  Bastien?
>
>
> Regards,
> Achim.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



[O] How to filter by tag/todo in AGENDA VIEW

2011-06-16 Thread Mark S

Hello!

Yes, I know you can make customized views, but I could find nothing in the  
documentation showing how to customize the AGENDA view. In the  
documentation, there are example of how to use the various type functions,  
but none for the agenda type function. There must be some options that go  
with it, or some way to tell it what TODOs you want to see.


The closest thing to an example is this:

 (agenda "")

Hmm. What goes inside of ""?

I know how to filter inside the TODO list, but I can't seem to find how  
your filter inside of the agenda view. Is there a way? In particular, I  
want to filter out all the TODO keyword items so I can see just the  
non-todo schedules and deadlines.



Thanks!
Mark



Re: [O] HTML5 presentations

2011-06-16 Thread Eric Schulte
Robert Goldman  writes:

> On 6/7/11 Jun 7 -3:01 PM, Tassilo Horn wrote:
>> Vinh Nguyen  writes:
>> 
>>> After the recent org-mode to S5 discussion, I stumbled onto
>>> [these](https://gist.github.com/509761) code.  It offers a way to
>>> export org files to HTML5 presentations.  I think it looks quite nice.
>>>  I see it being better than S5 in that no "ui" folder is required.
>>> What do you all think?  Is it worthy of being incorporated into
>>> org-mode?
>> 
>> Just tried it, and it's pretty cool!  Easy to use and nicely looking.
>> 
>> Bye,
>> Tassilo
>> 
>> 
>> 
>
> I have tried the version here:
> https://github.com/twada/org-html5presentation.el
>
> and it does not seem to be ready for prime-time.  Org-babel features
> don't work, and there seems to be not a clear integration with the
> org-export-preprocessor.  See my two issues, one (not satisfactorily)
> closed, one open.
>
> Possibly this should be folded into contrib, so that people could
> cooperate on it more easily than when it lives off in a separate git
> repo, but it shouldn't be enabled for the unwary until it's been
> thoroughly exercised.
>
> Is there a "tries to use all features" org presentation somewhere that
> would serve as a good acid test for an export facility?  It would be
> very handy to have that.
>

This export target seems to re-implement much of the org HTML export
mechanics which is most likely the reason for the incomplete coverage of
Org's large functionality.

Perhaps it would be possible to change this so that it works more like
org-s5, that is, so that it firsts exports using the existing html
export functionality, and then simply manipulates the resulting html.

Best -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



[O] New release?

2011-06-16 Thread Achim Gratz

Org 7.5 has got quite a few wrinkles ironed out during the past few
months and the current HEAD looks very clean save for two compiler
warnings in org-indent.el... and that part of the code looks like it
could use the same solution that org-agenda.el employs around line 1766.

I'd think that the folks who aren't comfortable with living at the
bleeding edge would benefit from "maint" being pulled up and a new
release pushed out, unless someone feels that there's a showstopper
hiding someplace.  Bastien?


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

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves




Re: [O] HTML5 presentations

2011-06-16 Thread Robert Goldman
On 6/7/11 Jun 7 -3:01 PM, Tassilo Horn wrote:
> Vinh Nguyen  writes:
> 
>> After the recent org-mode to S5 discussion, I stumbled onto
>> [these](https://gist.github.com/509761) code.  It offers a way to
>> export org files to HTML5 presentations.  I think it looks quite nice.
>>  I see it being better than S5 in that no "ui" folder is required.
>> What do you all think?  Is it worthy of being incorporated into
>> org-mode?
> 
> Just tried it, and it's pretty cool!  Easy to use and nicely looking.
> 
> Bye,
> Tassilo
> 
> 
> 

I have tried the version here:
https://github.com/twada/org-html5presentation.el

and it does not seem to be ready for prime-time.  Org-babel features
don't work, and there seems to be not a clear integration with the
org-export-preprocessor.  See my two issues, one (not satisfactorily)
closed, one open.

Possibly this should be folded into contrib, so that people could
cooperate on it more easily than when it lives off in a separate git
repo, but it shouldn't be enabled for the unwary until it's been
thoroughly exercised.

Is there a "tries to use all features" org presentation somewhere that
would serve as a good acid test for an export facility?  It would be
very handy to have that.



Re: [O] Bug: void-variable filter-buffer-substring-functions [7.5 (release_7.5.384.g94b32)]

2011-06-16 Thread Bernt Hansen
Thanks!!

-Bernt

Eric Schulte  writes:

> For now I've reverted this commit, while I try to figure out the best
> solution here.
> Bernt Hansen  writes:
>
>> Hi Eric,
>>
>> Commit 66e8a4b (Globally replace buffer-substring-filters with
>> filter-buffer-substring-functions., 2011-06-14) breaks clock reports
>> with the following backtrace below when org-indent-mode is enabled.
>>
>> Reverting this commit fixes this for me.

-- 
Bernt



Re: [O] Bug: void-variable filter-buffer-substring-functions [7.5 (release_7.5.384.g94b32)]

2011-06-16 Thread Eric Schulte
Hi Bernt,

Thanks for the easy to follow-instructions.

I've been able to reproduce this error using Emacs23.  It looks as
though the `filter-buffer-substring-functions' variable is not defined
in any Emacs prior to 24.  I am not sure what the best way is to remove
all usage of the now-deprecated `buffer-substring-filters' variable
without using this new potentially-missing variable.

For now I've reverted this commit, while I try to figure out the best
solution here.

Thanks -- Eric

Bernt Hansen  writes:

> Hi Eric,
>
> Commit 66e8a4b (Globally replace buffer-substring-filters with
> filter-buffer-substring-functions., 2011-06-14) breaks clock reports
> with the following backtrace below when org-indent-mode is enabled.
>
> The key sequence to reproduce this error with the minimal emacs setup
> below is as follows:
>
> | Key | Description   |
> |-+---|
> | C-c a a | Go to the agenda  |
> | R   | Show the clock report |
>
> Reverting this commit fixes this for me.
>
> Regards,
> Bernt
>
> /tmp/test.el
> (setq org-startup-indented t)
>
> ~/bin/minimal-emacs
> #!/bin/sh
> TESTEL=
> TESTFILE=/tmp/test.el
> if test -e $TESTFILE
> then
>   TESTEL="-l /tmp/test.el"
> fi
> emacs -q -l ~/minimal.emacs $TESTEL $1
>
> ~/minimal.emacs
> (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
> (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . 
> org-mode))
> (require 'org-install)
>
> (global-set-key "\C-cl" 'org-store-link)
> (global-set-key "\C-ca" 'org-agenda)
> (global-set-key "\C-cb" 'org-iswitchb)
>
>
> Debug Backtrace
> Debugger entered--Lisp error: (void-variable 
> filter-buffer-substring-functions)
[...]
>   org-indent-mode(1)
>
> Emacs  : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
>  of 2010-12-11 on raven, modified by Debian
> Package: Org-mode version 7.5 (release_7.5.384.g94b32)
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] accessing org-lowest-priority in .emacs

2011-06-16 Thread Filippo A. Salustri
Right.  I got it with the org-load-hook thing.  Thanks, and apologies.
Cheers.
Fil

On 16 June 2011 12:15, Nick Dokos  wrote:

> Filippo A. Salustri  wrote:
>
> > I must be a moron.  But I'm still having problems.
> > Here's what's in my Preferences.el:
> >
> > 
> > (require 'org-install)
> > (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) ; use it for
> *.org.
> > (add-hook 'org-mode-hook 'turn-on-font-lock) ; font lock on
> always.
> >
> > (defvar fas/org-priority-scale
> >   (/ (* 1000 (- org-lowest-priority org-highest-priority)) 10))
> > 
> >
> > When I start aquamacs, I get an error that org-lowest-priority is not
> defined.
> >
>
> Nope, the fault is mine: org-install just sets up autoloads, so you have to
> require 'org, or set up the hook or do the eval-after-load as Jambunathan
> suggested.
>
> Nick
>



-- 
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/


Re: [O] accessing org-lowest-priority in .emacs

2011-06-16 Thread Filippo A. Salustri
I must be a moron.  But I'm still having problems.
Here's what's in my Preferences.el:


(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) ; use it for *.org.
(add-hook 'org-mode-hook 'turn-on-font-lock) ; font lock on
always.

(defvar fas/org-priority-scale
  (/ (* 1000 (- org-lowest-priority org-highest-priority)) 10))


When I start aquamacs, I get an error that org-lowest-priority is not
defined.

Help?

Cheers.
Fil


On 16 June 2011 09:39, Nick Dokos  wrote:

> Filippo A. Salustri  wrote:
>
>
> > I've got code of this form in my Preferences.el (aquamacs-speak for
> .emacs):
> >
> > (defvar fas/org-some-variable
> >   (/ 10 (* 1000 (- org-lowest-priority org-highest-priority
> >
> > But org-lowest-priority & org-highest-priority aren't defined at that
> > point in Preferences.el.  I need to defer the calculation till org is
> > running.
> >
>
> You just need to defer it until org is loaded: just put it after the
> (require 'org-install). If you are depending on an autoloaded function
> to be called in order to load org, you can just (require 'org) at some
> place in Preferences.el and put the defvar after it. Or you can
> initialize it in a hook - org-load-hook is the one to use here:
>
> (add-to-list 'org-load-hook
> (function
>   (lambda ()
>(setq  fas/org-some-variable
>   (/ 10 (* 1000 (- org-lowest-priority
> org-highest-priority)))
>
> Nick
>
>
>
>
>
>
>
>


-- 
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/


Re: [O] how to escape org markup?

2011-06-16 Thread Nick Dokos
Nick Dokos  wrote:

> Steven Haryanto  wrote:
> 
> > I need to insert bits of plain text into a final composite Org document. =
> The text should be
> > protected from any Org formatting (for example, "* " at the beginning of =
> a line should not be
> > interpreted as a headline). Is enclosing it with #+BEGIN_SRC/#+END_SRC or=
> =C2=A0#+BEGIN_EXAMPLE/#
> > +END_EXAMPLE the correct way? I'm thinking yes, but my Emacs still interp=
> rets the "* " as headline
> > though.
> >=20
> 
> This seems to work - I can export to html or latex and get the expected res=
> ult:
> 
> 
> * foo
> org example
> 
> #+begin_example
> ,* bar
> <2011-06-16 Thu>
> 
> This is example code.
> 
> #+end_example
> 
> But I don't know all the rules and moreover I don't know of any place where
> they are described. I'll look around and post an update when I find it.
> But feel free to beat me to it.
> 

Section 11.3, "Literal Examples", of the Org manual
(info "(org)Literal Examples")

footnote 4.

Nick






Re: [O] how to escape org markup?

2011-06-16 Thread Nick Dokos
Steven Haryanto  wrote:

> I need to insert bits of plain text into a final composite Org document. The 
> text should be
> protected from any Org formatting (for example, "* " at the beginning of a 
> line should not be
> interpreted as a headline). Is enclosing it with #+BEGIN_SRC/#+END_SRC 
> or #+BEGIN_EXAMPLE/#
> +END_EXAMPLE the correct way? I'm thinking yes, but my Emacs still interprets 
> the "* " as headline
> though.
> 

This seems to work - I can export to html or latex and get the expected result:

--8<---cut here---start->8---

* foo
org example

#+begin_example
,* bar
<2011-06-16 Thu>

This is example code.

#+end_example
--8<---cut here---end--->8---

But I don't know all the rules and moreover I don't know of any place where
they are described. I'll look around and post an update when I find it.
But feel free to beat me to it.

Nick



Re: [O] HTML5 presentations

2011-06-16 Thread Achim Gratz
Eric S Fraga  writes:
> What browser(s) are people using for this?  Conkeror doesn't work well
> at all and iceweasel (aka firefox) 3.5.19 sort of works.

Although I haven't tried it recently, conkeror just uses the XULrunner
engine that Firefox is based on.  So if you switch to a reasonably
recent version of XULrunner, it should work.  Current version from
Firefox4 should be 2.0.1, previous one from Firefox3.6 is 1.9.2 IIRC.
Debian likely keeps XULrunner2 in the experimental branch for the next
two and a half years... :-)


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

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] accessing org-lowest-priority in .emacs

2011-06-16 Thread Nick Dokos
Filippo A. Salustri  wrote:

> I must be a moron.  But I'm still having problems.
> Here's what's in my Preferences.el:
> 
> 
> (require 'org-install)
> (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) ; use it for *.org.
> (add-hook 'org-mode-hook 'turn-on-font-lock)             ; font lock on 
> always.
> 
> (defvar fas/org-priority-scale
>   (/ (* 1000 (- org-lowest-priority org-highest-priority)) 10))
> 
> 
> When I start aquamacs, I get an error that org-lowest-priority is not defined.
> 

Nope, the fault is mine: org-install just sets up autoloads, so you have to
require 'org, or set up the hook or do the eval-after-load as Jambunathan
suggested.

Nick



[O] capture datetree into headline?

2011-06-16 Thread Nathan Neff
I looked over the docs for org-capture, and it seems
that file + datetree is the only option.

I'd like the datetree to be stored in a specific headline in a file,
such as "Log"

Is there a way to have file + headline + datetree ("myfile.org" "Log")

Or, use the "id" of a headline, like

(id+datetree)?

Thanks,
--Nate



[O] how to escape org markup?

2011-06-16 Thread Steven Haryanto
Hi all,

I need to insert bits of plain text into a final composite Org document. The
text should be protected from any Org formatting (for example, "* " at the
beginning of a line should not be interpreted as a headline). Is enclosing
it with #+BEGIN_SRC/#+END_SRC or #+BEGIN_EXAMPLE/#+END_EXAMPLE the correct
way? I'm thinking yes, but my Emacs still interprets the "* " as headline
though.

--
sh


[O] Bug: void-variable filter-buffer-substring-functions [7.5 (release_7.5.384.g94b32)]

2011-06-16 Thread Bernt Hansen
Hi Eric,

Commit 66e8a4b (Globally replace buffer-substring-filters with
filter-buffer-substring-functions., 2011-06-14) breaks clock reports
with the following backtrace below when org-indent-mode is enabled.

The key sequence to reproduce this error with the minimal emacs setup
below is as follows:

| Key | Description   |
|-+---|
| C-c a a | Go to the agenda  |
| R   | Show the clock report |

Reverting this commit fixes this for me.

Regards,
Bernt

/tmp/test.el
--8<---cut here---start->8---
(setq org-startup-indented t)
--8<---cut here---end--->8---

~/bin/minimal-emacs
--8<---cut here---start->8---
#!/bin/sh
TESTEL=
TESTFILE=/tmp/test.el
if test -e $TESTFILE
then
  TESTEL="-l /tmp/test.el"
fi
emacs -q -l ~/minimal.emacs $TESTEL $1
--8<---cut here---end--->8---

~/minimal.emacs
--8<---cut here---start->8---
(add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
(require 'org-install)

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
--8<---cut here---end--->8---


Debug Backtrace
--8<---cut here---start->8---
Debugger entered--Lisp error: (void-variable filter-buffer-substring-functions)
  add-to-list(filter-buffer-substring-functions 
org-indent-remove-properties-from-string)
  (cond ((org-bound-and-true-p org-inhibit-startup) (setq org-indent-mode nil)) 
((and org-indent-mode ...) (message "org-indent-mode does not work in XEmacs - 
refusing to turn it on") (setq org-indent-mode nil)) ((and org-indent-mode ...) 
(message "org-indent-mode can crash Emacs 23.1 - refusing to turn it on!") 
(ding) (sit-for 1) (setq org-indent-mode nil)) (org-indent-mode (org-set-local 
... nil) (or org-indent-strings ...) (when 
org-indent-mode-turns-off-org-adapt-indentation ...) (when 
org-indent-mode-turns-on-hiding-stars ... ...) (make-local-variable ...) 
(add-to-list ... ...) (org-add-hook ... ... nil ...) (org-add-hook ... ... nil 
...) (org-add-hook ... ... nil ...) (and font-lock-mode ...)) (t 
(save-excursion ...)))
  (let ((last-message ...)) (setq org-indent-mode (cond ... ... ...)) (cond 
(... ...) (... ... ...) (... ... ... ... ...) (org-indent-mode ... ... ... ... 
... ... ... ... ... ...) (t ...)) (run-hooks (quote org-indent-mode-hook) (if 
org-indent-mode ... ...)) (if (called-interactively-p ...) (progn nil ...)))
  org-indent-mode(1)
  (progn (require (quote org-indent)) (org-indent-mode 1))
  (if org-startup-indented (progn (require ...) (org-indent-mode 1)))
  (when org-startup-indented (require (quote org-indent)) (org-indent-mode 1))
  (if org-inhibit-startup nil (when org-startup-align-all-tables (let ... ... 
...)) (when org-startup-with-inline-images (org-display-inline-images)) (when 
org-startup-indented (require ...) (org-indent-mode 1)) (unless 
org-inhibit-startup-visibility-stuff (org-set-startup-visibility)))
  (unless org-inhibit-startup (when org-startup-align-all-tables (let ... ... 
...)) (when org-startup-with-inline-images (org-display-inline-images)) (when 
org-startup-indented (require ...) (org-indent-mode 1)) (unless 
org-inhibit-startup-visibility-stuff (org-set-startup-visibility)))
  (let ((delay-mode-hooks t)) (outline-mode) (setq major-mode (quote org-mode)) 
(setq mode-name "Org") (progn (if ... ...) (unless ... ...) (let ... ...)) 
(use-local-map org-mode-map) (set-syntax-table org-mode-syntax-table) (setq 
local-abbrev-table org-mode-abbrev-table) (if (featurep ...) (when ... ... ... 
...) (define-key org-mode-map [menu-bar headings] ...) (define-key org-mode-map 
[menu-bar hide] ...) (define-key org-mode-map [menu-bar show] ...)) 
(org-load-modules-maybe) (easy-menu-add org-org-menu) (easy-menu-add 
org-tbl-menu) (org-install-agenda-files-menu) (if org-descriptive-links 
(add-to-invisibility-spec ...)) (add-to-invisibility-spec (quote ...)) 
(add-to-invisibility-spec (quote ...)) (when (featurep ...) (org-set-local ... 
t)) (org-set-local (quote outline-regexp) org-outline-regexp) (org-set-local 
(quote outline-level) (quote org-outline-level)) (when (and org-ellipsis ... 
... ...) (unless org-display-table ...) (set-display-table-slot 
org-display-table 4 ...) (setq buffer-display-table org-display-table)) 
(org-set-regexps-and-options) (when (and org-tag-faces ...) (org-set-tag-faces 
... org-tag-faces)) (org-set-local (quote calc-embedded-open-mode) "# ") 
(modify-syntax-entry 64 "w") (if org-startup-truncated (setq truncate-lines t)) 
(org-set-local (quote font-lock-unfontify-region-function) (quote 
org-unfontify-region)) (org-set-local (quote org-table-may-need-update) t) 
(org-add-hook (quote before-change-fun

[O] Delays in mailing list server?

2011-06-16 Thread Nick Dokos

I replied to Fil earlier through the list (not sure if the direct reply
to him got there quickly) and it took a long time for the round-trip
through the list server to get back to me:

,
| ...
| Received: from localhost ([::1]:59909 helo=lists.gnu.org)
|   by lists.gnu.org with esmtp (Exim 4.71)
|   (envelope-from )
|   id 1QXDNL-0008Ik-MT
|   for nicholas.do...@hp.com; Thu, 16 Jun 2011 10:16:51 -0400
| Received: from eggs.gnu.org ([140.186.70.92]:35691)
|   by lists.gnu.org with esmtp (Exim 4.71)
|   (envelope-from ) id 1QXCnI-0006kD-J9
|   for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 09:39:38 -0400
| ...
`

It looks as if it bounced around lists.gnu.org for 36 minutes or so.
Anybody else seeing these delays?

Nick



[O] git server issue, repo.or.cz vs orgmode.org

2011-06-16 Thread Giovanni Ridolfi
Hello everyone,

I just checked the two repositories:

http://orgmode.org/w/org-mode.git
and
http://repo.or.cz/w/org-mode.git

The latter is behind of 4 commits, i.e. 11 hours.
Its last commit is Eric Schulte's 

90f6765cdf77c1414726d899f00c77da43f45758

So has  repo.or.cz  been discontinued or
 is   repo.or.cz  still kernel panicking? 

cheers,
Giovanni



[O] Bug: void-variable filter-buffer-substring-functions [7.5 (release_7.5.384.g94b32)]

2011-06-16 Thread Bernt Hansen
Hi Eric,

Commit 66e8a4b (Globally replace buffer-substring-filters with
filter-buffer-substring-functions., 2011-06-14) breaks clock reports
with the following backtrace below when org-indent-mode is enabled.

The key sequence to reproduce this error with the minimal emacs setup
below is as follows:

| Key | Description   |
|-+---|
| C-c a a | Go to the agenda  |
| R   | Show the clock report |

Reverting this commit fixes this for me.

Regards,
Bernt

/tmp/test.el
--8<---cut here---start->8---
(setq org-startup-indented t)
--8<---cut here---end--->8---

~/bin/minimal-emacs
--8<---cut here---start->8---
#!/bin/sh
TESTEL=
TESTFILE=/tmp/test.el
if test -e $TESTFILE
then
  TESTEL="-l /tmp/test.el"
fi
emacs -q -l ~/minimal.emacs $TESTEL $1
--8<---cut here---end--->8---

~/minimal.emacs
--8<---cut here---start->8---
(add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
(require 'org-install)

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
--8<---cut here---end--->8---


Debug Backtrace
--8<---cut here---start->8---
Debugger entered--Lisp error: (void-variable filter-buffer-substring-functions)
  add-to-list(filter-buffer-substring-functions 
org-indent-remove-properties-from-string)
  (cond ((org-bound-and-true-p org-inhibit-startup) (setq org-indent-mode nil)) 
((and org-indent-mode ...) (message "org-indent-mode does not work in XEmacs - 
refusing to turn it on") (setq org-indent-mode nil)) ((and org-indent-mode ...) 
(message "org-indent-mode can crash Emacs 23.1 - refusing to turn it on!") 
(ding) (sit-for 1) (setq org-indent-mode nil)) (org-indent-mode (org-set-local 
... nil) (or org-indent-strings ...) (when 
org-indent-mode-turns-off-org-adapt-indentation ...) (when 
org-indent-mode-turns-on-hiding-stars ... ...) (make-local-variable ...) 
(add-to-list ... ...) (org-add-hook ... ... nil ...) (org-add-hook ... ... nil 
...) (org-add-hook ... ... nil ...) (and font-lock-mode ...)) (t 
(save-excursion ...)))
  (let ((last-message ...)) (setq org-indent-mode (cond ... ... ...)) (cond 
(... ...) (... ... ...) (... ... ... ... ...) (org-indent-mode ... ... ... ... 
... ... ... ... ... ...) (t ...)) (run-hooks (quote org-indent-mode-hook) (if 
org-indent-mode ... ...)) (if (called-interactively-p ...) (progn nil ...)))
  org-indent-mode(1)
  (progn (require (quote org-indent)) (org-indent-mode 1))
  (if org-startup-indented (progn (require ...) (org-indent-mode 1)))
  (when org-startup-indented (require (quote org-indent)) (org-indent-mode 1))
  (if org-inhibit-startup nil (when org-startup-align-all-tables (let ... ... 
...)) (when org-startup-with-inline-images (org-display-inline-images)) (when 
org-startup-indented (require ...) (org-indent-mode 1)) (unless 
org-inhibit-startup-visibility-stuff (org-set-startup-visibility)))
  (unless org-inhibit-startup (when org-startup-align-all-tables (let ... ... 
...)) (when org-startup-with-inline-images (org-display-inline-images)) (when 
org-startup-indented (require ...) (org-indent-mode 1)) (unless 
org-inhibit-startup-visibility-stuff (org-set-startup-visibility)))
  (let ((delay-mode-hooks t)) (outline-mode) (setq major-mode (quote org-mode)) 
(setq mode-name "Org") (progn (if ... ...) (unless ... ...) (let ... ...)) 
(use-local-map org-mode-map) (set-syntax-table org-mode-syntax-table) (setq 
local-abbrev-table org-mode-abbrev-table) (if (featurep ...) (when ... ... ... 
...) (define-key org-mode-map [menu-bar headings] ...) (define-key org-mode-map 
[menu-bar hide] ...) (define-key org-mode-map [menu-bar show] ...)) 
(org-load-modules-maybe) (easy-menu-add org-org-menu) (easy-menu-add 
org-tbl-menu) (org-install-agenda-files-menu) (if org-descriptive-links 
(add-to-invisibility-spec ...)) (add-to-invisibility-spec (quote ...)) 
(add-to-invisibility-spec (quote ...)) (when (featurep ...) (org-set-local ... 
t)) (org-set-local (quote outline-regexp) org-outline-regexp) (org-set-local 
(quote outline-level) (quote org-outline-level)) (when (and org-ellipsis ... 
... ...) (unless org-display-table ...) (set-display-table-slot 
org-display-table 4 ...) (setq buffer-display-table org-display-table)) 
(org-set-regexps-and-options) (when (and org-tag-faces ...) (org-set-tag-faces 
... org-tag-faces)) (org-set-local (quote calc-embedded-open-mode) "# ") 
(modify-syntax-entry 64 "w") (if org-startup-truncated (setq truncate-lines t)) 
(org-set-local (quote font-lock-unfontify-region-function) (quote 
org-unfontify-region)) (org-set-local (quote org-table-may-need-update) t) 
(org-add-hook (quote before-change-fun

Re: [O] accessing org-lowest-priority in .emacs

2011-06-16 Thread Filippo A. Salustri
Right.  Require. *sigh* Let me just wipe the egg off my face.
Thanks.
Cheers.
Fil

On 16 June 2011 09:39, Nick Dokos  wrote:

> Filippo A. Salustri  wrote:
>
>
> > I've got code of this form in my Preferences.el (aquamacs-speak for
> .emacs):
> >
> > (defvar fas/org-some-variable
> >   (/ 10 (* 1000 (- org-lowest-priority org-highest-priority
> >
> > But org-lowest-priority & org-highest-priority aren't defined at that
> > point in Preferences.el.  I need to defer the calculation till org is
> > running.
> >
>
> You just need to defer it until org is loaded: just put it after the
> (require 'org-install). If you are depending on an autoloaded function
> to be called in order to load org, you can just (require 'org) at some
> place in Preferences.el and put the defvar after it. Or you can
> initialize it in a hook - org-load-hook is the one to use here:
>
> (add-to-list 'org-load-hook
> (function
>   (lambda ()
>(setq  fas/org-some-variable
>   (/ 10 (* 1000 (- org-lowest-priority
> org-highest-priority)))
>
> Nick
>
>
>
>
>
>
>
>


-- 
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/


Re: [O] Literate Programming - Continue a Source Block?

2011-06-16 Thread Olaf.Hamann

Am 08.06.2011 17:20, schrieb Neeum Zawan:

[...]
Now the original noweb allows what I'm asking for. If you begin a source
block with a name of an existing block but append an "=" symbol, it
knows to append to that source block.

It would be great if org-mode could add that capability. Another
approach is that if multiple source blocks with the same name are found,
the default behavior is to concatenate all those source blocks together
(and then add a header option for overwrite if the user wanted to
overwrite instead of append).

Thoughts?

I missed this feature too - I used it   (so called additive macros) very 
often with funnelweb.




Re: [O] equation numbering in html and latex export

2011-06-16 Thread Darlan Cavalcante Moreira

Using the org-special-blocks library org-mode will recognize blocks in the
form
: #+begin_something
:   bla bla bla
: #+end_something

Then you could write
: #+begin_equation
:   y=ax+b
: #+end_equation
in org-mode. It would be translated to
: \begin{equation}
:   y=ax+b
: \end{equation}
in latex and
: 
:   y=ax+b
: 
in html.

Can mathjax be configured to process anything inside ?

If not, maybe the #+begin_equation should be a built-in block in org-mode,
also with a fast template (maybe " wrote:
> 
> Samuel Sinayoko  writes:
> 
> > Dear list,
> >
> > I've been trying to write short scientific reports that I can export to
> > both LaTeX and HTML. So far I've managed to figure out how to include
> > equations, images, references, and how to include labels and cross
> > reference between all these things.
> >
> > The only problem I have is that I can't get numbered equations in both
> > LaTeX and HTML. Using the snippet below, I'm able to get a numbered
> > equation in HTML but not in LaTeX. I've put
> > loadFiles: ["extensions/eqn-number.js"], 
> > in jsMath/easy/load.js. If I replace the $$ by
> > \begin{equation} and \end{equation}, I get a numbered equation in LaTeX
> > but not in HTML. 
> >
> > How can I get numbered equations in both HTML and LaTeX?
> 
> I can't help you wish HTML unfortunately but I can summarise the issue
> in LaTeX.  
> 
> With the standard document class (article say), equations can be either
> "displayed" or "inline".  Only displayed equations are numbered and then
> only if you use =equation= (or =align=, =eqnarray=, etc).  $$ ... $$ is
> equivalent to \[ ... \] which is essentially equivalent to the
> unnumbered version of \begin{equation} (aka \begin{equation*}).
> 
> The trick would be to get the HTML exporter to apply the same processing
> to \begin{equation} ... \end{equation} as it does to $$ ... $$, I guess?
> -- 
> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
> : using Org-mode version 7.5 (release_7.5.399.g01eb)
> 



Re: [O] accessing org-lowest-priority in .emacs

2011-06-16 Thread Filippo A. Salustri
Yes, the math is wrong; I knew that.
Thanks for the hint.
Cheers.
Fil

On 16 June 2011 09:30, Jambunathan K  wrote:

>
> "Filippo A. Salustri"  writes:
>
> > I'm having a senior moment here.
> >
> > I've got code of this form in my Preferences.el (aquamacs-speak for
> .emacs):
> >
> > (defvar fas/org-some-variable
> >   (/ 10 (* 1000 (- org-lowest-priority org-highest-priority
> >
> > But org-lowest-priority & org-highest-priority aren't defined at that
> > point in Preferences.el.  I need to defer the calculation till org is
> > running.
>
> Do this
>
> #+begin_src emacs-lisp
> (require 'org) ;; note this
> (defvar fas/org-some-variable
>  (/ 10 (* 1000 (- org-lowest-priority org-highest-priority
> #+end_src
>
> or
>
> this
>
> #+begin_src emacs-lisp
> (eval-after-load 'org
>  (defvar fas/org-some-variable ;; replace defvar with setq, maybe?
>(/ 10 (* 1000 (- org-lowest-priority org-highest-priority)
>
> #+end_src
>
> Just re-check whether you have got your math right. It looks suspicious
> to me.
>
> >
> > It's embarrassing, but it's not coming to me.
> >
> > Can someone help me out?
> > Cheers.
> > Fil
>
>
> Jambunathan K.
> --
>



-- 
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/


Re: [O] equation numbering in html and latex export

2011-06-16 Thread Samuel Sinayoko
Thanks Eric. I think you're right. It would make sense to use
\begin{equation} \end{equation} with HTML export to number equations.
I've put a minimal example below showing what is happening.

--
#+TITLE: Equation numbering
#+STYLE: 

* Numbered in HTML export / Not numbered in LaTeX
Equation is numbered and can be referenced in HTML export. Equation is
*not* numbered in LaTeX export.
$$
\label{eq:1}
 y = ax + b
$$
Equation \ref{eq:1} is a polynomial of order 1.

* Not numbered in HTML / Numbered in LaTeX
Equation is not numbered but can be referenced in HTML export. Equation
is numbered in LaTeX export.
\begin{equation}
\label{eq:1}
 y = ax + b
\end{equation}
Equation \ref{eq:1} is not numbered but can be referenced in HTML
export. It is numbered in LaTeX export.
--

I also think the right behaviour would be to have a numbered equation in
the second case in both HTML and LaTeX, and an unnumbered equation in
the first case in both HTML and LaTeX. Does everyone agree?

I'd be happy to try and change the behaviour of the HTML export if
someone can point me in the right direction.

Cheers,

Sam





Re: [O] [patch] Problem with insert anniversary agenda function (was Re: org-bbdb-anniversaries gives error 'bad sexp')

2011-06-16 Thread Carsten Dominik

On Jun 16, 2011, at 10:04 AM, Eric S Fraga wrote:

> Eric S Fraga  writes:
> 
>> Carsten Dominik  writes:
>> 
>>> On Jun 13, 2011, at 6:15 PM, Philipp Haselwarter wrote:
>>> 
 thanks, got it working now (with some fiddling).
 
 looks like `calendar-date-style' is not honored /at all/, if you don't
 use -MM-DD format (as stated in the org-bbdb.el header, admittedly),
 it just blows up in your face :)
>>> 
>>> While I think the org-bbdb code could be made more forgiving,
>>> I strongly feel that calendar-date-style is an evil variable,
>>> especially if it is applied to input.  One should never rely on it.
>>> 
>>> my 5c.
>>> 
>>> - Carsten
>> 
>> Although I am likely to agree with you on this, any interactions with
>> Emacs's diary requires working with it.  
>> 
>> This reminds me of a problem with the insert anniversary function in the
>> default agenda view ("i a").  This function ignores the
>> calendar-date-style and inserts dates in the american style, which of
>> course means that diary entries are quietly ignored if you have
>> calendar-date-style set to anything other than 'american...
>> 
>> Not a big deal...  I don't use anniversaries *that* often!
> 
> I've made a simple change (attached) to org-agenda.el which at least
> considers the 'iso date style as well as european.  Might not be fancy
> lisp code but I think it works?
> 
> 
> I know I should be formatting this appropriately etc but I'm still not
> very comfortable with git...  too much to do, so little time.  sorry.

Thanks for the patch!  Indeed, there was a bug here which always forced
one particular date style even though the code was supposed to do the
right thing.  Thanks!

However, instead of applying your patch, I thought that maybe I
should put my foot where my mouth is and remove these dependencies
altogether.

So I have just introduced a few functions org-anniversary, org-cyclic
and a few more which are just like their diary-* cousins, but with a
stable (ISO) order of arguments.  Ah, I like this *much* better.
`i a' in the agenda will now also use org-anniversary, not diary-anniversary.

For users of org-diary-class, there is a new function org-class which works
the same as org-diary-class, but with stable argument ordering.

- Carsten



Re: [O] accessing org-lowest-priority in .emacs

2011-06-16 Thread Nick Dokos
Filippo A. Salustri  wrote:


> I've got code of this form in my Preferences.el (aquamacs-speak for .emacs):
> 
> (defvar fas/org-some-variable
>   (/ 10 (* 1000 (- org-lowest-priority org-highest-priority
> 
> But org-lowest-priority & org-highest-priority aren't defined at that
> point in Preferences.el.  I need to defer the calculation till org is
> running.
> 

You just need to defer it until org is loaded: just put it after the
(require 'org-install). If you are depending on an autoloaded function
to be called in order to load org, you can just (require 'org) at some
place in Preferences.el and put the defvar after it. Or you can
initialize it in a hook - org-load-hook is the one to use here:

(add-to-list 'org-load-hook 
 (function 
   (lambda ()
(setq  fas/org-some-variable
   (/ 10 (* 1000 (- org-lowest-priority 
org-highest-priority)))

Nick










Re: [O] accessing org-lowest-priority in .emacs

2011-06-16 Thread Jambunathan K

"Filippo A. Salustri"  writes:

> I'm having a senior moment here.
>
> I've got code of this form in my Preferences.el (aquamacs-speak for .emacs):
>
> (defvar fas/org-some-variable
>   (/ 10 (* 1000 (- org-lowest-priority org-highest-priority
>
> But org-lowest-priority & org-highest-priority aren't defined at that
> point in Preferences.el.  I need to defer the calculation till org is
> running.

Do this

#+begin_src emacs-lisp
(require 'org) ;; note this
(defvar fas/org-some-variable
  (/ 10 (* 1000 (- org-lowest-priority org-highest-priority
#+end_src

or 

this 

#+begin_src emacs-lisp
(eval-after-load 'org
  (defvar fas/org-some-variable ;; replace defvar with setq, maybe?
(/ 10 (* 1000 (- org-lowest-priority org-highest-priority)

#+end_src

Just re-check whether you have got your math right. It looks suspicious
to me.

>
> It's embarrassing, but it's not coming to me.
>
> Can someone help me out?
> Cheers.
> Fil


Jambunathan K.
-- 



Re: [O] Status google calendar sync

2011-06-16 Thread Stephen Eglen
Eric S Fraga  wrote:

> Stephen Eglen  writes:
> 
> > Thank you very much Arun, this page looks great:
> >
> >> http://orgmode.org/worg/org-tutorials/org-google-sync.html>
> >
> > When going from org -> google, do I need to do anything about using
> > org-icalendar-store-UID?  I'd rather not have to populate my org files
> > with :ID: entries.
> >
> > Stephen
> 
> The UID entries are necessary if you intend to upload a file that
> contains entries that you previously uploaded.  Without these, any
> pre-existing entry will be duplicated in google's calendar.

Thanks Eric.

Reading around a bit, there seems to be a bit of disquiet about how
google calendar reads .ics files, e.g.:

http://www.google.com/support/forum/p/Calendar/thread?tid=3fad85f47a70864b&hl=en

In particular, it seems odd that there is so much uncertainty about the
interval with which google calendar re-reads the .ics file and updates
the calendar.  I don't mind hitting a *refresh* button within a calendar
to manually force a resync, but there doesn't seem to be such a button!

I think what I'm looking for is a *read-only* solution so that google
calendar just renders the current orgmode.ics file read from the web,
rather than recalling what events were previously read in.(I don't
need to write to this calendar, as my org files are the master.)  In
this way, I would hope the ID entries would not be required.

I'm still in the first days of using my new android phone, so I may be
missing something, but there seemed no other decent calendar tool on the
android market that would just read and render an .ics file from the
web.I did however find this:

https://market.android.com/details?id=org.nightlabs.android.icssync

which sounds useful. Has anyone else seen/tried this?

Stephen



[O] accessing org-lowest-priority in .emacs

2011-06-16 Thread Filippo A. Salustri
I'm having a senior moment here.

I've got code of this form in my Preferences.el (aquamacs-speak for .emacs):

(defvar fas/org-some-variable
  (/ 10 (* 1000 (- org-lowest-priority org-highest-priority

But org-lowest-priority & org-highest-priority aren't defined at that
point in Preferences.el.  I need to defer the calculation till org is
running.

It's embarrassing, but it's not coming to me.

Can someone help me out?
Cheers.
Fil
-- 
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/



Re: [O] HTML5 presentations

2011-06-16 Thread Eric S Fraga
Joost Kremers  writes:

> On Wed, Jun 15, 2011 at 07:19:46PM +0100, Eric S Fraga wrote:
>> What browser(s) are people using for this?  Conkeror doesn't work well
>> at all and iceweasel (aka firefox) 3.5.19 sort of works.
>
> since it's an html5 presentation, you'll need a browser with html5 support.
> i don't think firefox 3.6 has it, you'll need firefox 4. chrome and the latest
> internet explorer should also work.

Thanks.  I guess I'll wait until Firefox 4 hits the Debian archives.
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.399.g01eb)



Re: [O] HTML5 presentations

2011-06-16 Thread Eric S Fraga
Juan Pechiar  writes:

> On Wed, Jun 15, 2011 at 07:19:46PM +0100, Eric S Fraga wrote:
>> What browser(s) are people using for this?  Conkeror doesn't work well
>> at all and iceweasel (aka firefox) 3.5.19 sort of works.
>
> Hi,
>
> Opera 11 (OSX) seems to work OK, only that slides start to appear
> shifted the higher the slide number shown. (~5% left for each slide).
>
> .j.

I am seeing the same thing with firefox 3.5.x. on Debian linux.
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.399.g01eb)



Re: [O] equation numbering in html and latex export

2011-06-16 Thread Eric S Fraga
Samuel Sinayoko  writes:

> Dear list,
>
> I've been trying to write short scientific reports that I can export to
> both LaTeX and HTML. So far I've managed to figure out how to include
> equations, images, references, and how to include labels and cross
> reference between all these things.
>
> The only problem I have is that I can't get numbered equations in both
> LaTeX and HTML. Using the snippet below, I'm able to get a numbered
> equation in HTML but not in LaTeX. I've put
> loadFiles: ["extensions/eqn-number.js"], 
> in jsMath/easy/load.js. If I replace the $$ by
> \begin{equation} and \end{equation}, I get a numbered equation in LaTeX
> but not in HTML. 
>
> How can I get numbered equations in both HTML and LaTeX?

I can't help you wish HTML unfortunately but I can summarise the issue
in LaTeX.  

With the standard document class (article say), equations can be either
"displayed" or "inline".  Only displayed equations are numbered and then
only if you use =equation= (or =align=, =eqnarray=, etc).  $$ ... $$ is
equivalent to \[ ... \] which is essentially equivalent to the
unnumbered version of \begin{equation} (aka \begin{equation*}).

The trick would be to get the HTML exporter to apply the same processing
to \begin{equation} ... \end{equation} as it does to $$ ... $$, I guess?
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.399.g01eb)



[O] [patch] Problem with insert anniversary agenda function (was Re: org-bbdb-anniversaries gives error 'bad sexp')

2011-06-16 Thread Eric S Fraga
Eric S Fraga  writes:

> Carsten Dominik  writes:
>
>> On Jun 13, 2011, at 6:15 PM, Philipp Haselwarter wrote:
>>
>>> thanks, got it working now (with some fiddling).
>>> 
>>> looks like `calendar-date-style' is not honored /at all/, if you don't
>>> use -MM-DD format (as stated in the org-bbdb.el header, admittedly),
>>> it just blows up in your face :)
>>
>> While I think the org-bbdb code could be made more forgiving,
>> I strongly feel that calendar-date-style is an evil variable,
>> especially if it is applied to input.  One should never rely on it.
>>
>> my 5c.
>>
>> - Carsten
>
> Although I am likely to agree with you on this, any interactions with
> Emacs's diary requires working with it.  
>
> This reminds me of a problem with the insert anniversary function in the
> default agenda view ("i a").  This function ignores the
> calendar-date-style and inserts dates in the american style, which of
> course means that diary entries are quietly ignored if you have
> calendar-date-style set to anything other than 'american...
>
> Not a big deal...  I don't use anniversaries *that* often!

I've made a simple change (attached) to org-agenda.el which at least
considers the 'iso date style as well as european.  Might not be fancy
lisp code but I think it works?

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 991a94a..0d074a7 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7770,11 +7770,12 @@ the resulting entry will not be shown.  When TEXT is empty, switch to
   (insert "\n")
   (require 'diary-lib)
   (let ((calendar-date-display-form
-	 (if (if (boundp 'calendar-date-style)
-		 (eq calendar-date-style 'european)
-		   (with-no-warnings ;; european-calendar-style is obsolete as of version 23.1
-		 (org-bound-and-true-p european-calendar-style))) ; Emacs 22
-		 '(day " " month " " year)
+	 (if (boundp 'calendar-date-style)
+		 (if (eq calendar-date-style 'european)
+		 '(day " " month " " year)
+		   (if (eq calendar-date-style 'iso)
+		   '(year " " month " " day)
+		 '(month " " day " " year)))
 	   '(month " " day " " year
 
 	(insert (format "(diary-anniversary %s) %s"

I know I should be formatting this appropriately etc but I'm still not
very comfortable with git...  too much to do, so little time.  sorry.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.399.g01eb.dirty)


Re: [O] BUG: Newest org-mode interferes with desktop save

2011-06-16 Thread Rainer M Krug
On Thu, Jun 16, 2011 at 9:29 AM, Jambunathan K wrote:

>
> > There seems to be a problem with my .emacs.desktop files in
> > combination with the new org
>
> It might help to try to narrow down the problem to one of the buffers -
> starting with the org buffers to begin with.
>
> Start nuking the buffers till you hit the problem or the problem
> disappears.
>
>
OK - I hope I did what you suggested. My setup now:

a) created user foo
b) changed ownership of /home/foo recursively to me (rkrug:rkrug)
c) copied the attached .emacs file into foo's home directory
d) created directory ~foo/tmp
e) copied test.org, .emacs.desktop.error .emacs.desktop.noerror
f)
cd ~/foo/tmp
cp -f .emacs.desktop.error .emacs.desktop
emacs -u foo
quit emacs -- question there
g)
cp -f .emacs.desktop.noerror .emacs.desktop
emacs -u foo
quit emacs -- question not there

In the .emacs file, the load paths are set to the git version of org-mode.
If I set them to 7.5, no question at all.

Hope you can reproduce it now and it helps to pinpoint the problem,

Cheers,

Rainer


It may not be buffers it could also be one of the other "states"
> (whatever that means) that the desktop persists across sessions.
>
> Jambunathan K.
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


.emacs
Description: Binary data


test.org
Description: Binary data


.emacs.desktop.error
Description: Binary data


.emacs.desktop.noerror
Description: Binary data


Re: [O] org-capture does not fully clean up after C-c C-k

2011-06-16 Thread Carsten Dominik

On 4.5.2011, at 14:30, Leo wrote:

> Hello,
> 
> I have one template as follows
> 
> ("n" "Notes" entry (file "Notes.org") "* %?\n  %i" :prepend t)
> 
> Every time I `C-c C-k' to abort the capture, a blank line is inserted at
> the front of file Notes.org.

Hi Leo,

I am unable to reproduce this.  I do get an empty line the first time,
but when the empty line is already there, then there is no problem.

Do you find the insertion of this one empty line a problem?

- Carsten

> 
> orgmode 2011-04-29 from git on Emacs 23.3.50.
> 
> With best wishes,
> Leo
> 
> 




Re: [O] how to control exported src color

2011-06-16 Thread silent
yes, I just checked my emacs, the buffer is much like the exported code,
emacs buffer not looks that bad because it using a dark blue background,

I changed to another color-theme, and the exported code looks much better,

I will try to customize org-export-htmlize later.

thanks!

2011/6/15 Jambunathan K :
> silent  writes:
>
>> hi,
>>
>> I met a problem:
>>
>> I use #+BEGIN_SRC html #+END_SRC in org, and export to html
>> but the source code's highlight color is not good,
>
> Does your Emacs buffers look that way?
>
>> could you please tell me how can I change the color ?
>
> M-x customize-group RET org-export-htmlize
>
> is a good starting point. But you have to do some homework.
>
> Jambunathan K.
>
> --
>



Re: [O] BUG: Newest org-mode interferes with desktop save

2011-06-16 Thread Jambunathan K

> There seems to be a problem with my .emacs.desktop files in
> combination with the new org 

It might help to try to narrow down the problem to one of the buffers -
starting with the org buffers to begin with.

Start nuking the buffers till you hit the problem or the problem
disappears.

It may not be buffers it could also be one of the other "states"
(whatever that means) that the desktop persists across sessions.

Jambunathan K.



Re: [O] BUG: Newest org-mode interferes with desktop save

2011-06-16 Thread Rainer M Krug
On Thu, Jun 16, 2011 at 12:40 AM, Nick Dokos  wrote:

> Rainer M Krug  wrote:
>
>
> > I created the attached init.el file. In my setup, ~/.emacs.d/org-mode
> > is a symbolic link. If I set it to org-7.7, everything works as
> > expected desktop is loaded and saved without question), but when
> > linking it to the git version, the desktop is loaded, but when closing
> > it giveas me the above mentioned question:
> >
> > "Current desktop was not loaded from a file. Overwrite this desktop
> file?"
> >
> > As I said, the desktop *is* loaded.
> >
> > Hope you can reproduce it with this setup,
> >
>
> Here's a caution: when desktop.el is loaded, it adds to after-init-hook a
> function that reads the desktop file. However, after-init-hook gets called
> "at the end of initialization": if you try to reproduce using something
> like
>
>emacs -q -l init.el
>
> it's not going to work - after-init-hook gets runs "between the -q and -l"
> so to speak, whereas desktop.el does not get loaded until init.el is
> loaded:
> that initializes the hook too late to do any good.
>
> Probably the best way to do it is to create a dummy user "foo", copy
> init.el
> to /home/foo/.emacs and then invoke emacs as
>
>   emacs -u foo
>
> Using this method, I cannot reproduce the problem with or without org in
> the init file: here's the one that I used which also sets a couple of
> desktop hooks that make some noise which is recorded in the *Messages*
> buffer - that helps to verify that things work according to
> expectations:
>
> --8<---cut here---start->8---
> ;;; -*- mode: emacs-lisp -*-
> (setq debug-on-error t)
> (require 'desktop)
> (desktop-save-mode 1)
> (add-to-list 'desktop-after-read-hook (function (lambda () (message "got a
> desktop file"
> (add-to-list 'desktop-no-desktop-file-hook (function (lambda () (message
> "no desktop file read"
>
> ;;; I tried with and without the following five lines
> ;;; I also tried with them placed *before* the desktop stuff
> (add-to-list 'load-path (expand-file-name
> "~nick/src/emacs/org/org-mode/lisp"))
> (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" .
> org-mode))
> (require 'org-install)
> (global-set-key "\C-cl" 'org-store-link)
> (global-set-key "\C-ca" 'org-agenda)
> --8<---cut here---end--->8---
>
> Nick
>
>
>
There seems to be a problem with my .emacs.desktop files in combination with
the new org - if I close all buffer, quit, answer the question with yes,
re-open emacs, open the same file again, close emacs (no questions asked),
open emacs again, desktop file is read, close, no questions asked.

So I know how to fix it. I attach one .emacs.desktop which shows this
behavior.

Cheers and thanks for your patience,

Rainer



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


.emacs.desktop
Description: Binary data