Re: [Orgmode] [org-beamer] inline slides?

2010-01-28 Thread Darlan Cavalcante Moreira

I can see the merit of your idea about writing the slides when writing the
thesis, but you could also create a Presentation headline at the and of the
org file and put commented anchor and links in the the thesis and in the
slides. This would allow you to easily jump from on to another.

Another option would be splitting the frame in two windows, one showing the
thesis and the other one showing the slides.

- Darlan

At Wed, 27 Jan 2010 16:10:01 +,
Eric S Fraga ucec...@ucl.ac.uk wrote:
 
 At Tue, 26 Jan 2010 16:38:46 -0500,
 Austin Frank wrote:
  I have an idea that doesn't yet qualify as a feature request, more like
  an idea for discussion.  What do people think about the idea of adding
  the capability to write inline slides, akin to the way we can currently
  write inline TODO items?
 
 Interesting!  I am trying to get my mind around this.  It is
 definitely an intriguing idea, putting aside the complexities of
 implementation.  I could see it being useful, along the lines of all
 the tangling examples in org-babel.
 
 Whether I would use something like this or not is difficult to
 ascertain.  I don't need to write long documents like a thesis (any
 more! although my students do ;-); more importantly, I often will
 prepare more than one presentation based on a given project and each
 presentation will be substantially different enough to make it
 difficult to embed slides.
 
  [...]
  The application I have in mind has to do with writing my doctoral
  thesis.  I know that I'll be writing long chapters; I also know that
  I'll have to prepare slides for my public defense.  Ideally, during the
  writing process I'll be able to notice a series of important points and
  drop into an inline slide to jot them down for the talk.  Similarly, I
  could see wanting to start a section with an overview slide, but not
  wanting to alter the structure of the section.
 
 Yes, this I can see.  However, the type of different content you may
 wish to attach/embed will depend on its final purpose.  That is, in
 terms of presentations, who will be in the audience?
 
  Since slides are mostly just headlines with special tags and properties,
  at the end of the process I could easily selectively export just the
  text of the dissertation or just the embedded slides.
 
 This begs the question: maybe an export to org based on tags
 function is all that is required?  And this is probably already
 implemented; I hesitate to suggest how or where, given my lack of
 awareness of all the various multitude of features of org-mode, but I
 can imagine that sparse trees could be part of any solution?
 
 Just some thoughts...
 
 eric
 
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


[Orgmode] [babel] tangle and Makefile

2010-01-28 Thread Martin G. Skjæveland

Hi,

I have two questions regarding org-babel-tangle and Makefile.

Running org-babel-tangle on the following file

--start
* test

#+begin_src makefile :tangle Makefile
  test:
  echo hello
#+end_src
--end

writes a file 'Makefile.' (with a period). Is it possible to have it
write to a file named 'Makefile' (without a period)?

When I use this makefile

  $make -f Makefile. test

I get

  Makefile.:4: *** missing separator (did you mean TAB instead of 8
  spaces?). Stop.

even though I used TAB and not space when editing the Makefile code. How
can I avoid TABs being converted to space?

Thanks!
Martin


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.




Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
 of 2009-09-27 on palmer, modified by Debian
Package: Org-mode version 6.34trans (release_6.34c.16.ga2cf.dirty)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-interpreters '(makefile tex n3 xml java python dot
  sh emacs-lisp)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
  org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-latex-classes '((article \\documentclass[11pt]{article}
 (\\section{%s} . \\section*{%s})
 (\\subsection{%s} . \\subsection*{%s})
 (\\subsubsection{%s} . \\subsubsection*{%s})
 (\\paragraph{%s} . \\paragraph*{%s}))
(book \\documentclass[11pt]{book}
 (\\chapter{%s} . \\chapter*{%s})
 (\\section{%s} . \\section*{%s})
 (\\subsection{%s} . \\subsection*{%s})
 (\\subsubsection{%s} . \\subsubsection*{%s}))
)

 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)

 org-use-speed-commands t
 org-mode-hook '((lambda nil
  (org-add-hook (quote change-major-mode-hook)
   (quote org-babel-show-result-all) (quote append)
   (quote local))
  )
 org-babel-result-hide-spec org-babel-hide-all-hashes
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
 org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe 
org-babel-hash-at-point

  org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
  (src org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp \\Martin G\\. Skjæveland\\
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)

 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)
 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )


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


[Orgmode] Re: About Ditaa

2010-01-28 Thread Bernt Hansen
Chao Lu looc...@gmail.com writes:

 I'm trying to power my org with the ditaa block generator, so I
 downloaded the jar file, and put it in
 ~/.emacs.d/org/var/ditaa0_9.jar. Then I include (setq
 org-ditaa-jar-path ~/.emacs.d/org/var/ ditaa0_9.jar) in my .emacs.

FYI:

There's a ditaa.jar distributed with org-mode in the contrib/scripts
directory.

-Bernt


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


Re: [Orgmode] List number resetting when using anchor tag in exported HTML

2010-01-28 Thread Jere McDevitt
If I key in what you list below with the list numbers flush or indented only
1 space, then yes the line numbers reset to 4  5 in the org file, but if
you export that to HTML, because the Anchor1 is not preceded by a
comment mark, it shows up in the generated HTML as text.  If the comment
marker is put in place, the numbering resets but the anchor does not have
any visible text, the generated a tag is wrapped in p tags and the
enumeration is stopped/started around it.

Is there a way to define the anchor so the numbering continues as desired in
both org and generated HTML, but no text is visible in the generated HTML?


--8---cut here---start-8---
* This is the first header line

 1. This is line number 1
 2. This is line number 2
 3. This is line number 3
Anchor1
  4. This should be line number 4, but is reset by the anchor tag
  5. This should be line number 5.
--8---cut here---end---8---


ol
li
List item 1
/li
li

List item 2
/li
li

List item 3
a name=Anchor1 class=targetAnchor1/a

/li
li
List item 4
/li
li
List item 5

/li

/ol




Table of Contents

   - 1 Header line 1

  1 Header line 1

   1. List item 1
   2. List item 2
   3. List item 3 Anchor1
   4. List item 4
   5. List item 5



On Wed, Jan 27, 2010 at 2:29 AM, Eric S Fraga ucec...@ucl.ac.uk wrote:

 At Tue, 26 Jan 2010 16:01:23 +,
 Eric S Fraga wrote:

  The following works just fine (at least for HTML export, not sure about
 anything else):
 
  --8---cut here---start-8---
  * This is the first header line
 
1. This is line number 1
2. This is line number 2
3. This is line number 3
   Anchor1
1. This should be line number 4, but is reset by the anchor tag
2. This should be line number 5.
  --8---cut here---end---8---
 
  Note the indentation in particular.

 (responding to my own post... sorry!)

 The above is a little misleading as it looks like org is confused with
 respect to list numbering.  I should have said that the numbering
 above was incorrect only because I hadn't given org a chance to update
 the numbers.  Hitting, for instance, C-cC-c on the last line gives:

 --8---cut here---start-8---
 * This is the first header line

  1. This is line number 1
  2. This is line number 2
  3. This is line number 3
 Anchor1
   4. This should be line number 4, but is reset by the anchor tag
   5. This should be line number 5.
 --8---cut here---end---8---

 Apologies for any confusion caused!

 eric

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


Re: [Orgmode] viewing task notes in agenda

2010-01-28 Thread Carsten Dominik

Hi Manish,

I have SPC in the agenda bound to org-agenda-show-and-scroll-up, and  
that does open the drawer.  Have you made a different binding?


- Carsten

On Jan 8, 2010, at 12:17 PM, Manish wrote:


On Fri, Jan 8, 2010 at 1:07 PM, Carsten Dominik wrote:


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


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

possible to just force open the LOGBOOK when follow-mode is `on' for
the inactive timestamped item?


Hi Manish,

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

What exactly would you have happen?


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

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

Regards
--
Manish


- Carsten





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


Re: [Orgmode] incorrect checkbox statistics

2010-01-28 Thread Carsten Dominik


On Jan 8, 2010, at 1:29 PM, Manish wrote:


Hello Carsten,

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

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


Hi Manish,

these are useful examples, but I find it too complex to fix - this  
might need a complete rewrite of the statistics code - and I don't  
have the time and concentration for this.  Part of the complexity is  
the intermingling of TODO and checkboxes, which makes this a  
complicated logic.


I keep this in my list of things to look at if I am bored, but it is  
not likely to be fixed any time soon.


Patches - on the other hand - are always welcome! :-)

- Carsten



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

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

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

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


--8---cut here---end---8---

Regards
--
Manish


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


- Carsten





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


Re: [Orgmode] icalendar: exporting times of day specified in heading?

2010-01-28 Thread Carsten Dominik

Hi Stephen,

while it might be possible to do what you ask for, I think it is error- 
prone because people might accidently have something in the headline  
which looks like a time.  I don't mind so much if Org's agenda  
stumbles over this, but I don't want to produce incorrect icalendar  
files.


Also, this icalendar export function is programmed in a messy way, and  
I don't see a quick way to fix this.


If you can make me a patch, I will take it.

- Carsten

On Jan 16, 2010, at 3:38 PM, Stephen Eglen wrote:


Hi,

I often use org-agenda-diary-entry to make simple entries into
an agenda.org file.  I see that the agenda is clever enough to  
recognise

if a time range has been typed into the heading.  However, this time
range is not exported by the icalendar code.

Here's a simple example, independent of org-agenda-diary-entry,  
although

in reality, example 2 would be the type of entry I normally make.

if I have a test.org file containing:
--
* 2010-01-16 Sat 08:00-08:30 example 1

* 2010-01-16 Sat example 2 09:00-09:30
--

then when I view the agenda I see:

Saturday   16 January 2010
 test:8:00- 8:30 example 1
  8:00.. 
 test:9:00- 9:30  example 2
 10:00.. 

[There's an extra space before 'example 2', which I'm not sure about.]

So far, so good - the agenda has parsed 09:00-09:30 from the headline.
But now if I make an ics file (e.g. by 'C-c C-e i' in test.org) the
start and end time of the event are not recognised.  Here's a relevant
snippet from test.ics:

BEGIN:VCALENDAR
...
DTSTART:20100116T08
DTEND:20100116T083000
SUMMARY: example 1
CATEGORIES:test
...
DTSTART;VALUE=DATE:20100116
DTEND;VALUE=DATE:20100117
SUMMARY: example 2 09:00-09:30

What I *think* I'd like is that for the 2nd calendar entry is

DTSTART:20100116T0900
DTEND:20100116T0930

Is that sensible/possible?  Alternatively, how about
org-agenda-diary-entry parsing the time specification and writing the
date and time within angle brackets?

(org-version)
Org-mode version 6.33trans (release_6.33f.22.gcb8ce.dirty)

Thanks, Stephen




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


- Carsten





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


Re: [Orgmode] Bug: Inconsistency exporting \LaTeX and \TeX [6.34a]

2010-01-28 Thread Carsten Dominik

Hi Bill,

thanks for noticing this inconsistency - it is now fixed.

- Carsten

On Jan 15, 2010, at 11:15 PM, Bill Jackson wrote:


When exporting to LaTeX, the commands \LaTeX and \TeX are not
processed consistently.  In particular, the backslash for \LaTeX is
escaped.  This might not be a bug, but it is a bit confusing.  An
example input file:



* The One and Only Header
 The command \LaTeX generates an escaped backslash, while \TeX and
 \alpha do not.  Note that LaTeX is converted to a command, while TeX
 is not.



Typing C-c C-e l will generate the output file:



% Created 2010-01-15 Fri 13:47
\documentclass[11pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{amssymb}
\usepackage{hyperref}


\title{escLaTeX}
\author{}
\date{15 January 2010}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\section{The One and Only Header}
\label{sec-1}

 The command \\LaTeX{} generates an escaped backslash, while \TeX and
 $\alpha$ do not.  Note that \LaTeX{} is converted to a command,  
while TeX

 is not.

\end{document}




Emacs  : GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
of 2009-07-29 on SOFT-MJASON
Package: Org-mode version 6.34a

current state:
==
(setq
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
vars)

org-after-todo-state-change-hook '(org-clock-out-if-current)
org-export-latex-format-toc-function 'org-export-latex-format-toc- 
default

org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-directory O:/org
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers

 org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
org-export-preprocess-before-normalizing-links-hook '(org-remove- 
file-link-modifiers)

org-mode-hook '(#[nil \300\301\302\303\304$\207
  [org-add-hook change-major-mode-hook org-show-block-all
   append local]
  5]
)
org-confirm-elisp-link-function 'yes-or-no-p
org-occur-hook '(org-first-headline-recenter)
org-export-preprocess-before-selecting-backend-code-hook '(org- 
beamer-select-beamer-code)
org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- 
toc

  org-beamer-auto-fragile-frames
  org-beamer-place-default-actions-for-lists)
)


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


- Carsten





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


[Orgmode] Blogs, org-mode, and wordpress

2010-01-28 Thread David Thole
Hey all,

I wasn't sure if anyone tried to do something similar or not.

I am moving web services, and moving blog engines to wordpress - and I
thought about org-mode and how much it'd be better to have blogs
inside org mode.  For the past month and a half or so, I've been
working on that solution.  The reason I'm emailing the group is to get
a feel for all those who've done something like this before, what
their solution was, and if anyone is interested in this solution.  So
this email I hope to gather that feedback, and explain what I've done
in a fair bit of detail as well.

The organization of the blog-setup is fairly simple.  In a dedicated
directory, named blogs, I have an index.org file.  Inside that org
file, I have the following general structure:

#+CATEGORIES: Blog_Category_1 Blog_Category_2 ...
...

* BLOG TITLE
   Status: Published, Publish, Draft
   Categories: Blog_Category_1 Blog_Category_2 ...
   File: [[file:-MM-DD.org][-MM-DD]]
   CMD5: MD5 in hex

For each blog file, there's 1 per day.  The general format of the file
is just the straight up content of the blog.  Right now it supports
links, bold, and italics.  I hope to add others as needed, including
images later.

For the actual program itself, there are two parts:
org-sync.lisp
cl-wordpress

cl-wordpress is simply a library for common lisp, that will interface
with wordpress through XMLRPC.  I spent a large amount of time on
this, and this project itself will be published fairly soon.

org-sync.lisp does the following operations on a sync:
- Parse index.org
- For any blogs that are in state Publish, create a MD5Sum of the
file, convert the org-specific tags to HTML tags, and push to
cl-wordpress.  After that, change the state from Publish to
Published
- For any blogs that are in state Draft, do nothing.
- For any blogs that are in state Published, read the blog file
itself.  Generate an MD5 of the file contents, and compare with the
stored value for the MD5.  If they differ, call an updateBlogEntry
function within cl-wordpress which will update the blog.  In short,
this is determined by the title, that doesn't change in this system.
- At the end, write all the index.org file once again, with the
changes to the org-objects.

The goal of this was to be able to write the org-files locally, and
when I want them to be published, I change the state accordingly.  I
would then have a cron job that would:
- Update museorg (my git repository of org, org-notes, and some
muse-mode documents)
- Run the sync function from the org-sync.lisp file
- Run git commit  git push.

I hope this makes sense on the general way I went with this, and why.
I hope to eventually be able to change this to using cl-org-mode, but
that depends on how useful it'd be for others to have this library
published.  Right now as it stands, I'll have cl-wordpress up by the
end of next week, hopefully on common-lisp.net, but org-sync is the
one I'm not sure yet.  If others find it interesting, and helpful,
I'll clean up the code, document, test, and push it out to github or
common-lisp.net.

Thoughts and feedback definitely welcome.

-David
http://www.thedarktrumpet.com


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


Re: [Orgmode] Bug: Exporting commands with angle brackets [6.34a]

2010-01-28 Thread Carsten Dominik

Hi Bill,

thank you for this report.  I have fixed this.  However, I do wonder  
if there might be cases where this will not work, for example with  
something like


\alpha23

meant in a mathematical sense.  I find it hard to com up with an  
example where it really will fail, but we will have to see.


- Carsten

On Jan 15, 2010, at 11:08 PM, Bill Jackson wrote:


When exporting to LaTeX, curly brackets in a command will be escaped
if that command also contains angle brackets.  This can be a problem
when using beamer.  An example input file:



#+LaTeX_CLASS: beamer

* The One and Only Frame
 When LaTeX \alert2{commands} contain angle brackets, the curly
 brackets are erroneously escaped in the output.  \alert{Commands}
 that do not contain angle brackets work properly.



Typing C-c C-e l will generate the output file:



% Created 2010-01-15 Fri 13:57
\documentclass{beamer}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{amssymb}
\usepackage{hyperref}


\title{escCurly}
\author{}
\date{15 January 2010}

\begin{document}

\maketitle

\begin{frame}
\frametitle{Outline}
\setcounter{tocdepth}{3}
\tableofcontents
\end{frame}

\begin{frame}
\frametitle{The One and Only Frame}
\label{sec-1}

 When \LaTeX{} \alert2\{commands\} contain angle brackets, the curly
 brackets are erroneously escaped in the output.  \alert{Commands}
 that do not contain angle brackets work properly.
\end{frame}

\end{document}




Emacs  : GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
of 2009-07-29 on SOFT-MJASON
Package: Org-mode version 6.34a

current state:
==
(setq
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
vars)

org-after-todo-state-change-hook '(org-clock-out-if-current)
org-export-latex-format-toc-function 'org-export-latex-format-toc- 
default

org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-directory O:/org
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers

 org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
org-export-preprocess-before-normalizing-links-hook '(org-remove- 
file-link-modifiers)

org-mode-hook '(#[nil \300\301\302\303\304$\207
  [org-add-hook change-major-mode-hook org-show-block-all
   append local]
  5]
)
org-confirm-elisp-link-function 'yes-or-no-p
org-occur-hook '(org-first-headline-recenter)
org-export-preprocess-before-selecting-backend-code-hook '(org- 
beamer-select-beamer-code)
org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- 
toc

  org-beamer-auto-fragile-frames
  org-beamer-place-default-actions-for-lists)
)


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


- Carsten





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


Re: [Orgmode] Bug: \log and friends are not recognized as math [6.34b]

2010-01-28 Thread Carsten Dominik

Hi Rasmus,

can you make me a list of macros that should be treated in this way?
I guess we can simply add these to org-html-entities t=and that might  
already solve the issue.


- Carsten

On Jan 17, 2010, at 12:30 PM, Rasmus Pank Roulund wrote:


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?   
See


http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


Hello,
It seems a bit extravagant to include all of the system-info so I  
removed

most of it . . .

Anyhow Org does not recognized \log and friends as math when using  
the latex-exporter.


Try the following minimal example

\log is math. so is \ln

The LaTeX result is:

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{amssymb}
\usepackage{hyperref}

% NOTICE THE TITLE.
\title{\log is math. so is \ln}
% It should have been $\log$ and $\ln$
\author{Rasmus}
\date{17 January 2010}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\end{document}

Would it be possible to adopt \log-like functions as math? \cos, \tan,
\sin are also affected.
It is so convenient to write \log-like but I have to fix the exported
latex file manually afterward.

BTW: I created a very complex econometric note in org. Once I had
squeezed the LaTeX-related bugs (math typos) the export was /perfect/!
(except for the \log's). Good work!

--Rasmus


Emacs  : GNU Emacs 23.1.91.1 (i686-pc-linux-gnu, GTK+ Version 2.18.5)
of 2010-01-15 on pank
Package: Org-mode version 6.34b


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


- Carsten





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


[Orgmode] How to set python version for org-babel

2010-01-28 Thread David Trem
Hi,

 I'm currently learning org-babel with python.
I have several version of python installed on my Mac.
One from apple and two from macports.
I'd like to use python2.6 from macports.
I tried to set the python-python-command variable to python2.6
but the python 2.5 from apple is still used by org-babel.

I need some help to go forward.

Thanks in advance,

David


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


Re: [Orgmode] icalendar: exporting times of day specified in heading?

2010-01-28 Thread Stephen Eglen
Hi Carsten,

 Hi Stephen,
 
 while it might be possible to do what you ask for, I think it is
 error- prone because people might accidently have something in the
 headline which looks like a time.  I don't mind so much if Org's
 agenda stumbles over this, but I don't want to produce incorrect
 icalendar files.
 
 Also, this icalendar export function is programmed in a messy way, and
 I don't see a quick way to fix this.
 
 If you can make me a patch, I will take it.

Thanks for this.  I did decide to bite the bullet and look into this.  I
think I have some working code, modifiying:
  org-agenda-add-entry-to-org-agenda-diary-file

so that it parses out the date at that point, conditional on
org-agenda-search-headline-for-time being t.  In this way, it doesn't
touch the ical export functions.

I will double check and submit a patch for consideration. 

A small note though: along the way, I've sometimes noticed that diary
entries   are included with a level 2 heading rather than a level 4
heading.  I haven't been able to track this down, its just noticeable
when I later browse agenda.org

*** 2010-02-02 Tuesday
 15:00-15:30 check me
 2010-02-02 Tue

i.e. that 2nd line is sometimes given two heaings, and is not within the
right level 3 heading.  Anything obvious I might want to look at when
debugging?

Stephen


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


Re: [Orgmode] How to set python version for org-babel

2010-01-28 Thread Pierre de Buyl

Hello,

Can you specify which version of Emacs you are using ?

I anticipate one of the aqua version: you need to set manually the  
path accessible to GUI apps in OS X: this is done by editing the file  
~/.MacOSX/environment.plist and adjust the path therein.


After you add the path to the macports executable directory (before / 
usr/bin directory) the python command that is present there (if  
there is a python there, check with which python in a terminal)  
will be given priority.


HTH, and do not hesitate to ask for more details if needed,

Pierre

Le 28 janv. 10 à 16:18, David Trem a écrit :


Hi,

 I'm currently learning org-babel with python.
I have several version of python installed on my Mac.
One from apple and two from macports.
I'd like to use python2.6 from macports.
I tried to set the python-python-command variable to python2.6
but the python 2.5 from apple is still used by org-babel.

I need some help to go forward.

Thanks in advance,

David


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




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


[Orgmode] [PATCH] Improved org-assign-fast-keys.

2010-01-28 Thread Mikael Fornius

I have 30+ TODO-keywords defined in some org-files.

When using C-c C-t to alter state I got weird keys assigned.

I suggest changing org-assign-fast-keys as attached patch describes.

I was bold enough to remove the FIXME comment already there but if one
has more than 70 keywords it can cause ugly keys again. But no one uses
more than 70 keywords?

I have tested it and, it works for me. :-)

Anyway, Carsten, feel free to use this patch in org-mode if you like it.

Thanks for a great piece of software and community, cheers!

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2dc260d..c662d89 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-28  Mikael Fornius  m...@abc.se
+
+	* org.el (org-assign-fast-keys): Prefer keys used in keyword name
+	when assigning. Begin using numerical characters when all in name
+	is used up. This is to spare alphanumeric characters for better
+	match with other keywords.
+
 2010-01-28  Carsten Dominik  carsten.domi...@gmail.com
 
 	* org-latex.el (org-export-latex-preprocess): More consistent
diff --git a/lisp/org.el b/lisp/org.el
index cd378b4..d92e335 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4129,30 +4129,24 @@ This will extract info from a string like \WAIT(w@/!)\.
 	  x))
 	  list))
 
-;; FIXME: this could be done much better, using second characters etc.
 (defun org-assign-fast-keys (alist)
   Assign fast keys to a keyword-key alist.
 Respect keys that are already there.
-  (let (new e k c c1 c2 (char ?a))
+  (let (new e (alt ?0))
 (while (setq e (pop alist))
-  (cond
-   ((equal e '(:startgroup)) (push e new))
-   ((equal e '(:endgroup)) (push e new))
-   ((equal e '(:newline)) (push e new))
-   (t
-	(setq k (car e) c2 nil)
-	(if (cdr e)
-	(setq c (cdr e))
-	  ;; automatically assign a character.
-	  (setq c1 (string-to-char
-		(downcase (substring
-			   k (if (= (string-to-char k) ?@) 1 0)
-	  (if (or (rassoc c1 new) (rassoc c1 alist))
-	  (while (or (rassoc char new) (rassoc char alist))
-		(setq char (1+ char)))
-	(setq c2 c1))
-	  (setq c (or c2 char)))
-	(push (cons k c) new
+  (if (or (memq (car e) '(:newline :endgroup :startgroup))
+	  (cdr e)) ;; Key already assigned.
+	  (push e new)
+	(let ((clist (string-to-list (downcase (car e
+	  (used (append new alist)))
+	  (when (= (car clist) ?@)
+	(pop clist))
+	  (while (and clist (rassoc (car clist) used))
+	(pop clist))
+	  (unless clist
+	(while (rassoc alt used)
+	  (incf alt)))
+	  (push (cons (car e) (or (car clist) alt)) new
 (nreverse new)))
 
 ;;; Some variables used in various places

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


Re: [Orgmode] [babel] tangle and Makefile

2010-01-28 Thread Dan Davison
Martin G. Skjæveland mart...@ifi.uio.no writes:

 Hi,

 I have two questions regarding org-babel-tangle and Makefile.

 Running org-babel-tangle on the following file

 --start
 * test

 #+begin_src makefile :tangle Makefile
   test:
   echo hello
 #+end_src
 --end

 writes a file 'Makefile.' (with a period). Is it possible to have it
 write to a file named 'Makefile' (without a period)?

Hi Martin,

I've had this problem too. Here's a patch. Eric -- can you apply if
it looks OK?

Dan

From 5c4d56a2e43a97186bf2971b6406f5fa2257130d Mon Sep 17 00:00:00 2001
From: Dan Davison davi...@stats.ox.ac.uk
Date: Thu, 28 Jan 2010 10:23:11 -0500
Subject: [PATCH] babel: prevent trailing periods in tangled file names without 
extensions

---
 contrib/babel/lisp/org-babel-tangle.el |7 ---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/contrib/babel/lisp/org-babel-tangle.el 
b/contrib/babel/lisp/org-babel-tangle.el
index c805373..66e2c26 100644
--- a/contrib/babel/lisp/org-babel-tangle.el
+++ b/contrib/babel/lisp/org-babel-tangle.el
@@ -102,9 +102,10 @@ exported source code blocks by language.
  (( (length tangle) 0) tangle))
 target-file))
  (file-name (when base-name
-  (if (string= base-name
-   (file-name-sans-extension 
base-name))
-  (concat base-name . ext) base-name
+  (if (and ext
+  (string= base-name
+   (file-name-sans-extension 
base-name)))
+ (concat base-name . ext) base-name
 ;; ;; debugging
 ;; (message tangle=%S base-name=%S file-name=%S
 ;;  tangle base-name file-name)
-- 
1.6.3.3


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


sometimes we don't want org-src to remove tabs [WAS: Re: [Orgmode] tangle and Makefile]]

2010-01-28 Thread Dan Davison
Martin G. Skjæveland mart...@ifi.uio.no writes:

 Hi,

 I have two questions regarding org-babel-tangle and Makefile.

 Running org-babel-tangle on the following file

 --start
 * test

 #+begin_src makefile :tangle Makefile
   test:
   echo hello
 #+end_src
 --end

[...]
 When I use this makefile

   $make -f Makefile. test

 I get

   Makefile.:4: *** missing separator (did you mean TAB instead of 8
   spaces?). Stop.

 even though I used TAB and not space when editing the Makefile code. How
 can I avoid TABs being converted to space?

Hi again Martin,

This is more to do with org-mode sensu strictu (non-babel). When you
exit a code edit buffer, tabs are automatically converted to
spaces. There is an org-mode variable org-src-preserve-indentation which
already has a few different effects. Perhaps a solution is to add
not_removing_tabs to the effects of this variable, as in the patch
below. I can't think off hand what that's going to break -- anyone?

Dan


From d854544d24377434c2ace13aac45e85e42bcc7aa Mon Sep 17 00:00:00 2001
From: Dan Davison davi...@stats.ox.ac.uk
Date: Thu, 28 Jan 2010 10:36:29 -0500
Subject: [PATCH] org-src: Don't remove tabs when org-src-preserve-indentation 
is non-nil

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

diff --git a/lisp/org-src.el b/lisp/org-src.el
index cdad99b..1d155cc 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -525,7 +525,7 @@ the language, a switch telling if the content should be in 
a single line.
   org-edit-src-content-indentation))
 (preserve-indentation org-src-preserve-indentation)
 (delta 0) code line col indent)
-(untabify (point-min) (point-max))
+(unless preserve-indentation (untabify (point-min) (point-max)))
 (save-excursion
   (goto-char (point-min))
   (if (looking-at [ \t\n]*\n) (replace-match ))
-- 
1.6.3.3


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


[Orgmode] org-exp-bibtex

2010-01-28 Thread Peter Danenberg
Despite org-mode/contrib/lisp being in my loadpath and issuing
(require 'org-exp-bibtex), org-exp-bibtex doesn't seem to be
available. Using autoload results in Autoloading failed to define
function org-exp-bibtex.

Would anyone mind sharing with me how they successfully installed
org-exp-bibtex?


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


Re: [Orgmode] [babel] tangle and Makefile

2010-01-28 Thread Eric Schulte
This patch has been applied. Thanks -- Eric

Dan Davison davi...@stats.ox.ac.uk writes:

 Martin G. Skjæveland mart...@ifi.uio.no writes:

 Hi,

 I have two questions regarding org-babel-tangle and Makefile.

 Running org-babel-tangle on the following file

 --start
 * test

 #+begin_src makefile :tangle Makefile
   test:
   echo hello
 #+end_src
 --end

 writes a file 'Makefile.' (with a period). Is it possible to have it
 write to a file named 'Makefile' (without a period)?

 Hi Martin,

 I've had this problem too. Here's a patch. Eric -- can you apply if
 it looks OK?

 Dan

 From 5c4d56a2e43a97186bf2971b6406f5fa2257130d Mon Sep 17 00:00:00 2001
 From: Dan Davison davi...@stats.ox.ac.uk
 Date: Thu, 28 Jan 2010 10:23:11 -0500
 Subject: [PATCH] babel: prevent trailing periods in tangled file names 
 without extensions

 ---
  contrib/babel/lisp/org-babel-tangle.el |7 ---
  1 files changed, 4 insertions(+), 3 deletions(-)

 diff --git a/contrib/babel/lisp/org-babel-tangle.el 
 b/contrib/babel/lisp/org-babel-tangle.el
 index c805373..66e2c26 100644
 --- a/contrib/babel/lisp/org-babel-tangle.el
 +++ b/contrib/babel/lisp/org-babel-tangle.el
 @@ -102,9 +102,10 @@ exported source code blocks by language.
   (( (length tangle) 0) tangle))
  target-file))
   (file-name (when base-name
 -  (if (string= base-name
 -   (file-name-sans-extension 
 base-name))
 -  (concat base-name . ext) 
 base-name
 +  (if (and ext
 +  (string= base-name
 +   (file-name-sans-extension 
 base-name)))
 + (concat base-name . ext) base-name
  ;; ;; debugging
  ;; (message tangle=%S base-name=%S file-name=%S
  ;;  tangle base-name file-name)


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


Re: [Orgmode] How to set python version for org-babel

2010-01-28 Thread Eric Schulte
Hi David,

David Trem david.t...@gmail.com writes:

 Hi,

  I'm currently learning org-babel with python.
 I have several version of python installed on my Mac.
 One from apple and two from macports.
 I'd like to use python2.6 from macports.
 I tried to set the python-python-command

On my system I believe the variable is named `python-command', maybe try
the following...

(setq python-command python2.6)

Best -- Eric

 variable to python2.6
 but the python 2.5 from apple is still used by org-babel.

 I need some help to go forward.

 Thanks in advance,

 David


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


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


Re: [Orgmode] org-exp-bibtex

2010-01-28 Thread Nick Dokos
Peter Danenberg p...@roxygen.org wrote:

 Despite org-mode/contrib/lisp being in my loadpath and issuing

Are you sure about it being in your load-path? What does

M-x locate-library RET org-exp-bibtex RET

say? If it finds it, both autoload and require should work.

Nick



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


Re: [Orgmode] icalendar: exporting times of day specified in heading?

2010-01-28 Thread Eric S Fraga
At Thu, 28 Jan 2010 15:22:41 +,
Stephen Eglen wrote:

[...]

 A small note though: along the way, I've sometimes noticed that diary
 entries   are included with a level 2 heading rather than a level 4
 heading.  I haven't been able to track this down, its just noticeable
 when I later browse agenda.org

 i.e. that 2nd line is sometimes given two heaings, and is not within the
 right level 3 heading.

I also have experienced this, specifically that the actual day entry
does not appear below the month headline but alongside it (i.e. a
sibling, at the same depth).  I have not mentioned it before as I
have not been able to have this happen in a reproducible manner.
Also, I'm not sure if it has something to do with the differences
between emacs v23 and v22; I have to use both depending on which of my
computers I happen to have at hand!

[...]

  Anything obvious I might want to look at when
 debugging?

Ditto.  If there's any obvious debugging I can do to help track this
down, please let me know.  Having said this, I've not noticed it
happen in the past couple of weeks.

eric


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


Re: [Orgmode] How to set python version for org-babel

2010-01-28 Thread David Trem
Thanks to Pierre and Eric help, I had all elements to
solve my issue. But before explaining my solution
let me give more detail on my setup:
MacOsX 10.5.8
Emacs 23.1 (from macports)

I had to add in my .emacs
(setq python-python-command
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python)

and add PYTHONPATH variable to the ~/.MacOSX/environment.plist
pointing to the corresponding python2.6 site-package folder.

I'm not sure I understand what is going on. This looks like
quite dirty fix but it works for now...

Thanks again,

David


Le 28/01/10 18:11, Eric Schulte a écrit :
 Hi David,
 
 David Trem david.t...@gmail.com writes:
 
 Hi,

  I'm currently learning org-babel with python.
 I have several version of python installed on my Mac.
 One from apple and two from macports.
 I'd like to use python2.6 from macports.
 I tried to set the python-python-command
 
 On my system I believe the variable is named `python-command', maybe try
 the following...
 
 (setq python-command python2.6)
 
 Best -- Eric
 
 variable to python2.6
 but the python 2.5 from apple is still used by org-babel.

 I need some help to go forward.

 Thanks in advance,

 David


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


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


[Orgmode] patch for local variable based todo blocking

2010-01-28 Thread Wes Hardaker

Attached is a patch that lets local variables define whether or not todo
dependency blocking should be used (both for TODOs and for checkboxes).
I have one file in particular that I'm using checkboxes to quickly
indicate multi-selections from a list but for most of my files I want
TODOs blocked by uncompleted checkboxes.

Normally org uses hook methods for checking for TODO blocks and this
patch just inserts a check at the top to test and see if the variable
turning on the blocking type is still set.

-- 
Wes Hardaker 
My Pictures:  http://capturedonearth.com/
My Thoughts:  http://pontifications.hardakers.net/
diff --git a/lisp/org.el b/lisp/org.el
index cd378b4..bdc5c5a 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10159,54 +10159,56 @@ changes.  Such blocking occurs when:
   3. The parent of the task is blocked because it has siblings that should
  be done first, or is child of a block grandparent TODO entry.
 
-  (catch 'dont-block
-;; If this is not a todo state change, or if this entry is already DONE,
-;; do not block
-(when (or (not (eq (plist-get change-plist :type) 'todo-state-change))
-	  (member (plist-get change-plist :from)
-		  (cons 'done org-done-keywords))
-	  (member (plist-get change-plist :to)
-		  (cons 'todo org-not-done-keywords))
-	  (not (plist-get change-plist :to)))
-  (throw 'dont-block t))
-;; If this task has children, and any are undone, it's blocked
-(save-excursion
-  (org-back-to-heading t)
-  (let ((this-level (funcall outline-level)))
-	(outline-next-heading)
-	(let ((child-level (funcall outline-level)))
-	  (while (and (not (eobp))
-		  ( child-level this-level))
-	;; this todo has children, check whether they are all
-	;; completed
-	(if (and (not (org-entry-is-done-p))
-		 (org-entry-is-todo-p))
-		(throw 'dont-block nil))
-	(outline-next-heading)
-	(setq child-level (funcall outline-level))
-;; Otherwise, if the task's parent has the :ORDERED: property, and
-;; any previous siblings are undone, it's blocked
-(save-excursion
-  (org-back-to-heading t)
-  (let* ((pos (point))
-	 (parent-pos (and (org-up-heading-safe) (point
-	(if (not parent-pos) (throw 'dont-block t)) ; no parent
-	(when (and (org-entry-get (point) ORDERED)
-		   (forward-line 1)
-		   (re-search-forward org-not-done-heading-regexp pos t))
-	  (throw 'dont-block nil)) ; block, there is an older sibling not done.
-	;; Search further up the hierarchy, to see if an anchestor is blocked
-	(while t
-	  (goto-char parent-pos)
-	  (if (not (looking-at org-not-done-heading-regexp))
-	  (throw 'dont-block t)) ; do not block, parent is not a TODO
-	  (setq pos (point))
-	  (setq parent-pos (and (org-up-heading-safe) (point)))
+  (if (not org-enforce-todo-dependencies)
+  t ; if locally turned off don't block
+(catch 'dont-block
+  ;; If this is not a todo state change, or if this entry is already DONE,
+  ;; do not block
+  (when (or (not (eq (plist-get change-plist :type) 'todo-state-change))
+		(member (plist-get change-plist :from)
+			(cons 'done org-done-keywords))
+		(member (plist-get change-plist :to)
+			(cons 'todo org-not-done-keywords))
+		(not (plist-get change-plist :to)))
+	(throw 'dont-block t))
+  ;; If this task has children, and any are undone, it's blocked
+  (save-excursion
+	(org-back-to-heading t)
+	(let ((this-level (funcall outline-level)))
+	  (outline-next-heading)
+	  (let ((child-level (funcall outline-level)))
+	(while (and (not (eobp))
+			( child-level this-level))
+	  ;; this todo has children, check whether they are all
+	  ;; completed
+	  (if (and (not (org-entry-is-done-p))
+		   (org-entry-is-todo-p))
+		  (throw 'dont-block nil))
+	  (outline-next-heading)
+	  (setq child-level (funcall outline-level))
+  ;; Otherwise, if the task's parent has the :ORDERED: property, and
+  ;; any previous siblings are undone, it's blocked
+  (save-excursion
+	(org-back-to-heading t)
+	(let* ((pos (point))
+	   (parent-pos (and (org-up-heading-safe) (point
 	  (if (not parent-pos) (throw 'dont-block t)) ; no parent
 	  (when (and (org-entry-get (point) ORDERED)
 		 (forward-line 1)
 		 (re-search-forward org-not-done-heading-regexp pos t))
-	(throw 'dont-block nil))) ; block, older sibling not done.
+	(throw 'dont-block nil))  ; block, there is an older sibling not done.
+	  ;; Search further up the hierarchy, to see if an anchestor is blocked
+	  (while t
+	(goto-char parent-pos)
+	(if (not (looking-at org-not-done-heading-regexp))
+		(throw 'dont-block t))	; do not block, parent is not a TODO
+	(setq pos (point))
+	(setq parent-pos (and (org-up-heading-safe) (point)))
+	(if (not parent-pos) (throw 'dont-block t)) ; no parent
+	(when (and (org-entry-get (point) ORDERED)
+		   (forward-line 1)
+		   

[Orgmode] Re: Format lists in multiple columns

2010-01-28 Thread Wes Hardaker
 On Wed, 27 Jan 2010 09:47:06 +0100, Carsten Dominik 
 carsten.domi...@gmail.com said:

 * Fruits
 1. Apples   5.Grapefruit
 2. Oranges6.blueberries
 3. Pears  7.nectarines
 4. Strawberries

CD No.

Well, tables help here...
-- 
Wes Hardaker 
My Pictures:  http://capturedonearth.com/
My Thoughts:  http://pontifications.hardakers.net/


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


[Orgmode] Hide file names in agenda view

2010-01-28 Thread David A. Gershman
I've been searching a while and thought it'd be simple to find.  How can
I suppress the file names in the agenda view?

i.e. turn

   file2:7:00- 8:00 alwkjekisdjksj
   file1:   10:00-11:00 alsdkfjasdlfkj

into

7:00- 8:00 alwkjekisdjksj
   10:00-11:00 alsdkfjasdlfkj

Thanks!



David A. Gershman
gersh...@dagertech.net
http://dagertech.net/gershman/
It's all about the path! --d. gershman


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


Re: [Orgmode] Symbol's value as variable is void

2010-01-28 Thread Nick Dokos
Thomas S. Dye t...@tsdye.com wrote:

 Thanks Nick,
 
 Perhaps that is the relevant commit.  I'm pretty sure it was made =20
 subsequent to my last successful export.
 
 All the best,
 Tom
 
 On Jan 27, 2010, at 2:37 PM, Nick Dokos wrote:
 
  I took a quick look but I don't know what's wrong: Eric S. will have =20=
 
  to take a look,
  but this commit seems relevant:
 
  commit d154f2794741275a41d4631892335d581d7da27a
  Author: Eric Schulte schulte.e...@gmail.com
  Date:   Mon Jan 18 13:03:36 2010 -0700
 
 babel: no longer overwriting non-babel src blocks org-exp-blocks: =20=
 
  adding progress-marker local variable
 
   the progress-marker local variable set inside of a let in
   org-exp-blocks is used to constrain searches in org-babel-exp to
   ensure that a babel block doesn't overwrite non-babel src blocks
 

I'm blind: Eric S. fixed it on Monday with

commit b59a57e8909e38fd4c69c7c62ec8ecad87e8528e
Author: Eric Schulte schulte.e...@gmail.com
Date:   Mon Jan 25 23:54:03 2010 -0700

babel: bug fix related to no longer overwriting non-babel src blocks 
commit

  this fixes a bug introduced in commit
  d154f2794741275a41d4631892335d581d7da27a


You just need to update I think.

Nick


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


[Orgmode] org-sort-multi??

2010-01-28 Thread David A. Gershman

Hello Again,

I'm looking to sort my outline (headlines, top level) by multi criteria
(2 really).  I see online references to 'org-sort-multi' as recently as
August 2009.  But my emacs can't find it. 

Help?


David A. Gershman
gersh...@dagertech.net
http://dagertech.net/gershman/
It's all about the path! --d. gershman


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


Re: [Orgmode] Bug: org-habit and headlines with links

2010-01-28 Thread Carsten Dominik

Hi Luke,

thanks for the bisect, that was useful.

Could you please try if the following patch does reliably fix this  
problem?


Thanks!!

- Carsten

diff --git a/lisp/org-habit.el b/lisp/org-habit.el
index cf53057..deb8132 100644
--- a/lisp/org-habit.el
+++ b/lisp/org-habit.el
@@ -305,7 +305,7 @@ current time.
 (defun org-habit-insert-consistency-graphs (optional line)
   Insert consistency graph for any habitual tasks.
   (let ((inhibit-read-only t) l c
-   (buffer-invisibility-spec nil)
+   (buffer-invisibility-spec '(org-link))
(moment (time-subtract (current-time)
   (list 0 (* 3600 org-extend-today-until) 0
 (save-excursion

On Jan 17, 2010, at 4:45 PM, Luke Amdor wrote:

When I have a headline with a link on it and I have that headline's  
habit property set to true, org-habit will barf all over my link  
when presenting the agenda. This will only happen when org-habit- 
graph-column is set something shorter than the full raw text of the  
link (which is about all of them).


I ran git bisect on org-mode and found the bad commit to be:

commit 2f5f6e401f187c2db8131cdbc4355b688ce4c55a
Author: Carsten Dominik carsten.domi...@gmail.com
Date:   Mon Jan 4 09:58:53 2010 +0100

Turn off invisibility while constructing habit graphs

Bernt Hansen reported strange things happening to the display when
graph tasks are hidden while updating a task in the agenda.

Here's my bisect log:

# bad: [0e370d498b34469a025cdce864fd5c5987bf8050] Fix typo
# good: [a7fb89e9edf59f50294199046e570b4b11bb13b1] Merge branch  
'master' of git+ssh://repo.or.cz/srv/git/org-mode

git bisect start 'origin/master' 'HEAD'
# good: [21ad7f0bef20addfe15fbe3e95d65e6c810d68f1] Fix typo
git bisect good 21ad7f0bef20addfe15fbe3e95d65e6c810d68f1
# good: [0b5d9bf1c62454523b275dd6a6b95bf881580eb1] Merge branch 'org- 
ctags'

git bisect good 0b5d9bf1c62454523b275dd6a6b95bf881580eb1
# bad: [588a42d4fd2e59e3f69d5a3f9ea00ff3a64f5df9] org-exp- 
generic.el: Fix bug with closing bodies

git bisect bad 588a42d4fd2e59e3f69d5a3f9ea00ff3a64f5df9
# bad: [32441cd15150f541d3ba50633cfb9fffc8d3d11a] Fix agenda link  
opening bug

git bisect bad 32441cd15150f541d3ba50633cfb9fffc8d3d11a
# bad: [ddcb2be1c8920fabfbca3777cc774ed1ac653a6e] Work-around for  
formatting bug with email subject line from wanderlust

git bisect bad ddcb2be1c8920fabfbca3777cc774ed1ac653a6e
# good: [c23ade5d8e4b3cd4f0c4dbe5260cad1f227d2710] Make C-c r C  
customize remember templates

git bisect good c23ade5d8e4b3cd4f0c4dbe5260cad1f227d2710
# good: [f266ee62bb8282cc883adea9f26362b2d3b1ab7d] Fix typo
git bisect good f266ee62bb8282cc883adea9f26362b2d3b1ab7d
# bad: [2f5f6e401f187c2db8131cdbc4355b688ce4c55a] Turn off  
invisibility while constructing habit graphs

git bisect bad 2f5f6e401f187c2db8131cdbc4355b688ce4c55a

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


- Carsten





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


Re: [Orgmode] remote reference

2010-01-28 Thread Carsten Dominik

Hi Giovanny,

yes, that is right, only field references are allowed for direct  
assignment.
Columns or ranges are allowed only as arguments of functions that will  
collapse them into a scalar.


- Carsten

On Jan 18, 2010, at 9:53 AM, Giovanni Ridolfi wrote:


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

Hi, Carsten,


On the left
side of equations you can only have single fields
like @2$3

ok this works

or a column like $3.

But this does /not/ work: see the example columns $3


Org-mode version 6.34
GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT- 
MJASON

Example:
-
* [2010-01-15 ven] table  reference
** table a
#+TBLNAME: Taba
|   | # |  x | y |
|---+---++---|
|   | 1 | -2 | 4 |
|   | 2 | -1 | 1 |
|   | 3 |  0 | 0 |
|   | 4 |  1 | 1 |
|   | 5 |  2 | 4 |
| ^ |   || a |
** table b
*** columns $3
|   |   |   |
|   |   |   |
|   |   |   |
|   |   |   |
|   |   |   |
|---+---+---|
|   | ^ | b |
#+TBLFM: $3=remote(Taba,$3)



Looks like someone needs to write a tutorial about that! :-)


When I'll have finally understood ;-)

Giovanni


- Carsten





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


Re: [Orgmode] Re: [org-beamer] \alert

2010-01-28 Thread Carsten Dominik


On Jan 26, 2010, at 5:22 PM, Eric S Fraga wrote:


At Tue, 26 Jan 2010 16:06:27 +0100,
Sébastien Vauban wrote:

Eric S Fraga wrote:

At 24 Jan 2010 20:10:03 +0100,
Sven Bretfeld wrote:


Is there any Symbol in org-beamer for \alert{Text}? In  
presentations \alert


[...]


 org-export-latex-emphasis-alist (quote
   ((* \\textbf{%s} nil)
(/ \\emph{%s} nil)
(_ \\underline{%s} nil)
(+ \\texttt{%s} nil)
(= \\verb=%s= nil)
(~ \\verb~%s~ t)
(@ \\alert{%s} nil



That's what I'm using as well, but the problem is that it's not  
compatible

anymore with non-beamer LaTeX, the alert macro being unknown.


Very true.  I've never thought about this as my presentations are for
presentation only etc.  However, it would definitely be nice to have a
more general solution.

Would there be a way to conditionally translate @...@ to alert (if  
beamer) or
to emph (if not-beamer), so that we can still easily compile a  
document to one
or the other LaTeX back-end, without having to customize  
variables in Emacs,

prior to a compilation to the other back-end?


The alist structure doesn't allow for embedded lisp code, as far as I
can tell.  It would obviously be easier if this structure could be
evaluated on the fly.

I must admit I do not have clear specifications on how to tell Org  
about such

a config...


The only suggestion I can come up with would be to modify this
variable using, for instance, the org-export-later-after-initial- 
vars-hook?


Is there a LaTeX command that can figure out if it is running a beamer  
class?
If yes, a possible solution would be to redefine \alert in LaTeX when  
not doing BEAMER.


- Carsten



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


Re: [Orgmode] org-exp-bibtex

2010-01-28 Thread Carsten Dominik


On Jan 28, 2010, at 5:20 PM, Peter Danenberg wrote:


Despite org-mode/contrib/lisp being in my loadpath and issuing
(require 'org-exp-bibtex), org-exp-bibtex doesn't seem to be
available. Using autoload results in Autoloading failed to define
function org-exp-bibtex.


There is no function org-exp-bibtex.

What happens if you evalueate the following form?

(progn (require 'org-exp-bibtex) (featurep 'org-exp-bibtex))

???

- Carsten



Would anyone mind sharing with me how they successfully installed
org-exp-bibtex?


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


- Carsten





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


Re: [Orgmode] Refile to top or bottom of list on demand

2010-01-28 Thread Carsten Dominik


On Jan 27, 2010, at 12:22 AM, David A. Gershman wrote:



When I refile a heading, there is a variable that can be set to send  
the

refiled headings to the front or back of the destination list.

Is there a way to do that on demand, i.e. without setting a  
variable?


No.  But you could make you own command which uses `let' to bind the  
variable and then call org-refile


(defun my-refile-reversed ()
   Call `org-refile', temporary changing the value of `org-reverse- 
note-order'.

   (interactive)
   (let ((org-reverse-note-order (not org-reverse-note-order)))
  (call-interactively 'org-refile)))

- Carsten



Thanks!


David A. Gershman
gersh...@dagertech.net
http://dagertech.net/gershman/
It's all about the path! --d. gershman


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


- Carsten





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


Re: [Orgmode] Hook Function Examples

2010-01-28 Thread Carsten Dominik


On Jan 25, 2010, at 7:21 AM, Mark Elston wrote:


On 1/24/2010 9:24 PM, Nick Dokos wrote:

Mark Elstonm_els...@comcast.net  wrote:

I am trying to make use of some of the hooks for exporting and  
haven't
found any docs about what they take or how to make use of them  
(elisp

is *not* my native language).



The Emacs Lisp Reference manual has a section (23.1: Hooks) on hooks,
but I'm not sure how helpful it will be to you. The most important  
note

is that normal hook variables are, by convention, named
foo-hook. normal means that the functions that are added to the  
hook

take no arguments and return no useful values.


In particular, I am trying to figure out how to use the following
to see if any of them are going to help me:

 org-export-preprocess-hook
 org-export-preprocess-after-tree-selection-hook
 org-export-preprocess-final-hook

Any examples of a hook function for these would help a lot.  In
particular, what are the parameters, is the point looking at
anything in particular, etc.



Use the source, Luke! (erm... Mark!)

 C-h v org-export-preprocess-hookRET

gives me:

 (org-export-blocks-preprocess)



Thanks, Nick.  I had checked a few hooks (but not that one) and
couldn't find any that had any functions assigned.


so we have here an example of a hook function!

 C-h f org-export-blocks-preprocessRET

gives you the function's doc string, including a link to where it is
defined, and clicking on the link will take you to the function: no
params (it is a normal hook after all), and I think you can make no
assumptions about the context. In particular, the above function  
wraps
everything in a save-excursion, goes to the beginning of the buffer  
and

searches for interesting things, doing something on each interesting
thing it finds.


OK.  From what I read I am assuming that a buffer is created with some
already-processed (though not completely) org data as its initial
content.  Then, at some point, these hook functions are called on this
new buffer.  I assume this is the case since you wouldn't want to go
modifying the original buffer - though this is not stated anywhere  
that

I can find.


That is correct, the preprocess hooks are called in a temporary  
buffer,

they can be used to modify that buffer in any way you like without
affecting the original buffer.



Some hook functions apparently *do* take parameters (e.g.
org-cycle-hook, etc) and I wasn't sure about the ones that didn't
mention any.


Yes, the only way to find out is to look at the docstring.
If that says nothing about arguments and return values, you can assume
the they do not expect arguments and do not return anything useful,
respectively.



I was just trying to find my way and didn't have a map of what was
where.  Even the org-export-blocks-preprocess()  function is a little
difficult to wade through for someone not really familiar with elisp.
I think I have pieced it together, though.  This may give me what I  
need

to do what I want (remove some specific kinds of headers when creating
certain LaTeX files).

Are my assumptions above correct, then?

Mark



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


- Carsten





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


Re: sometimes we don't want org-src to remove tabs [WAS: Re: [Orgmode] tangle and Makefile]]

2010-01-28 Thread Carsten Dominik


On Jan 28, 2010, at 4:47 PM, Dan Davison wrote:


Martin G. Skjæveland mart...@ifi.uio.no writes:


Hi,

I have two questions regarding org-babel-tangle and Makefile.

Running org-babel-tangle on the following file

--start
* test

#+begin_src makefile :tangle Makefile
 test:
 echo hello
#+end_src
--end


[...]

When I use this makefile

 $make -f Makefile. test

I get

 Makefile.:4: *** missing separator (did you mean TAB instead of 8
 spaces?). Stop.

even though I used TAB and not space when editing the Makefile  
code. How

can I avoid TABs being converted to space?


Hi again Martin,

This is more to do with org-mode sensu strictu (non-babel). When you
exit a code edit buffer, tabs are automatically converted to
spaces. There is an org-mode variable org-src-preserve-indentation  
which

already has a few different effects. Perhaps a solution is to add
not_removing_tabs to the effects of this variable, as in the patch
below. I can't think off hand what that's going to break -- anyone?

Dan


From d854544d24377434c2ace13aac45e85e42bcc7aa Mon Sep 17 00:00:00 2001
From: Dan Davison davi...@stats.ox.ac.uk
Date: Thu, 28 Jan 2010 10:36:29 -0500
Subject: [PATCH] org-src: Don't remove tabs when org-src-preserve- 
indentation is non-nil


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

diff --git a/lisp/org-src.el b/lisp/org-src.el
index cdad99b..1d155cc 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -525,7 +525,7 @@ the language, a switch telling if the content  
should be in a single line.

   org-edit-src-content-indentation))
 (preserve-indentation org-src-preserve-indentation)
 (delta 0) code line col indent)
-(untabify (point-min) (point-max))
+(unless preserve-indentation (untabify (point-min) (point-max)))
(save-excursion
  (goto-char (point-min))
  (if (looking-at [ \t\n]*\n) (replace-match ))
--
1.6.3.3


If you have an *indented* code block where the #+begin src is already  
indented, this might mess up the relative indentation in the Org-mode  
buffer because TAB can
land on odd places in the line.  But I can see that this is a problem  
with Makefiles, so please apply the patch.


Thanks

- Carsten


- Carsten





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


Re: [Orgmode] [PATCH] Improved org-assign-fast-keys.

2010-01-28 Thread Carsten Dominik

Hi Mikael,

this looks very good, thanks for getting rid of the FIXME... :-)

I have applied the patch.

- Carsten

On Jan 28, 2010, at 4:38 PM, Mikael Fornius wrote:



I have 30+ TODO-keywords defined in some org-files.

When using C-c C-t to alter state I got weird keys assigned.

I suggest changing org-assign-fast-keys as attached patch describes.

I was bold enough to remove the FIXME comment already there but if one
has more than 70 keywords it can cause ugly keys again. But no one  
uses

more than 70 keywords?

I have tested it and, it works for me. :-)

Anyway, Carsten, feel free to use this patch in org-mode if you like  
it.


Thanks for a great piece of software and community, cheers!

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2dc260d..c662d89 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-28  Mikael Fornius  m...@abc.se
+
+   * org.el (org-assign-fast-keys): Prefer keys used in keyword name
+   when assigning. Begin using numerical characters when all in name
+   is used up. This is to spare alphanumeric characters for better
+   match with other keywords.
+
2010-01-28  Carsten Dominik  carsten.domi...@gmail.com

* org-latex.el (org-export-latex-preprocess): More consistent
diff --git a/lisp/org.el b/lisp/org.el
index cd378b4..d92e335 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4129,30 +4129,24 @@ This will extract info from a string like  
\WAIT(w@/!)\.

  x))
  list))

-;; FIXME: this could be done much better, using second characters  
etc.

(defun org-assign-fast-keys (alist)
  Assign fast keys to a keyword-key alist.
Respect keys that are already there.
-  (let (new e k c c1 c2 (char ?a))
+  (let (new e (alt ?0))
(while (setq e (pop alist))
-  (cond
-   ((equal e '(:startgroup)) (push e new))
-   ((equal e '(:endgroup)) (push e new))
-   ((equal e '(:newline)) (push e new))
-   (t
-   (setq k (car e) c2 nil)
-   (if (cdr e)
-   (setq c (cdr e))
- ;; automatically assign a character.
- (setq c1 (string-to-char
-   (downcase (substring
-  k (if (= (string-to-char k) ?@) 1 0)
- (if (or (rassoc c1 new) (rassoc c1 alist))
- (while (or (rassoc char new) (rassoc char alist))
-   (setq char (1+ char)))
-   (setq c2 c1))
- (setq c (or c2 char)))
-   (push (cons k c) new
+  (if (or (memq (car e) '(:newline :endgroup :startgroup))
+ (cdr e)) ;; Key already assigned.
+ (push e new)
+   (let ((clist (string-to-list (downcase (car e
+ (used (append new alist)))
+ (when (= (car clist) ?@)
+   (pop clist))
+ (while (and clist (rassoc (car clist) used))
+   (pop clist))
+ (unless clist
+   (while (rassoc alt used)
+ (incf alt)))
+ (push (cons (car e) (or (car clist) alt)) new
(nreverse new)))

;;; Some variables used in various places

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


- Carsten





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


Re: [Orgmode] icalendar: exporting times of day specified in heading?

2010-01-28 Thread Carsten Dominik


On Jan 28, 2010, at 4:22 PM, Stephen Eglen wrote:


Hi Carsten,


Hi Stephen,

while it might be possible to do what you ask for, I think it is
error- prone because people might accidently have something in the
headline which looks like a time.  I don't mind so much if Org's
agenda stumbles over this, but I don't want to produce incorrect
icalendar files.

Also, this icalendar export function is programmed in a messy way,  
and

I don't see a quick way to fix this.

If you can make me a patch, I will take it.


Thanks for this.  I did decide to bite the bullet and look into  
this.  I

think I have some working code, modifiying:
 org-agenda-add-entry-to-org-agenda-diary-file

so that it parses out the date at that point, conditional on
org-agenda-search-headline-for-time being t.  In this way, it doesn't
touch the ical export functions.

I will double check and submit a patch for consideration.


Thanks!



A small note though: along the way, I've sometimes noticed that diary
entries   are included with a level 2 heading rather than a level 4
heading.


I do not understand this.  Included where? How?  Can you please  
describe this

more extensively?

Thanks

- Carsten


 I haven't been able to track this down, its just noticeable
when I later browse agenda.org

*** 2010-02-02 Tuesday
 15:00-15:30 check me
2010-02-02 Tue

i.e. that 2nd line is sometimes given two heaings, and is not within  
the

right level 3 heading.  Anything obvious I might want to look at when
debugging?

Stephen


- Carsten





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


Re: [Orgmode] List number resetting when using anchor tag in exported HTML

2010-01-28 Thread Carsten Dominik


On Jan 28, 2010, at 2:20 PM, Jere McDevitt wrote:

If I key in what you list below with the list numbers flush or  
indented only 1 space, then yes the line numbers reset to 4  5 in  
the org file, but if you export that to HTML, because the  
Anchor1 is not preceded by a comment mark, it shows up in the  
generated HTML as text.  If the comment marker is put in place, the  
numbering resets but the anchor does not have any visible text, the  
generated a tag is wrapped in p tags and the enumeration is  
stopped/started around it.


Is there a way to define the anchor so the numbering continues as  
desired in both org and generated HTML, but no text is visible in  
the generated HTML?



--8---cut here---start-8---
* This is the first header line

 1. This is line number 1
 2. This is line number 2
 3. This is line number 3
Anchor1
 4. This should be line number 4, but is reset by the anchor tag
 5. This should be line number 5.
--8---cut here---end---8---




Hi Jere,

here is how to do this, but it is not creating links to that
anchor automatically.  You have to make these explicitly,
like [[#anchor2][A link to item 3]]

* This is the first header line

 1. This is line number 1
 2. This is line number 2
 3. This is line number 3
#+HTML:a name='anchor2'
 4. This should be line number 4, but is reset by the anchor tag
 5. This should be line number 5.



ol
li
List item 1
/li
li

List item 2
/li
li

List item 3
a name=Anchor1 class=targetAnchor1/a

/li
li

List item 4
/li
li
List item 5

/li

/ol



Table of Contents
• 1 Header line 1
1 Header line 1
• List item 1
• List item 2
• List item 3 Anchor1
• List item 4
• List item 5


On Wed, Jan 27, 2010 at 2:29 AM, Eric S Fraga ucec...@ucl.ac.uk  
wrote:

At Tue, 26 Jan 2010 16:01:23 +,
Eric S Fraga wrote:

 The following works just fine (at least for HTML export, not sure  
about anything else):


 --8---cut here---start-8---
 * This is the first header line

   1. This is line number 1
   2. This is line number 2
   3. This is line number 3
  Anchor1
   1. This should be line number 4, but is reset by the anchor tag
   2. This should be line number 5.
 --8---cut here---end---8---

 Note the indentation in particular.

(responding to my own post... sorry!)

The above is a little misleading as it looks like org is confused with
respect to list numbering.  I should have said that the numbering
above was incorrect only because I hadn't given org a chance to update
the numbers.  Hitting, for instance, C-cC-c on the last line gives:

--8---cut here---start-8---
* This is the first header line

 1. This is line number 1
 2. This is line number 2
 3. This is line number 3
Anchor1
 4. This should be line number 4, but is reset by the anchor tag
 5. This should be line number 5.
--8---cut here---end---8---

Apologies for any confusion caused!

eric

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


- Carsten





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


Re: [Orgmode] org-exp-bibtex

2010-01-28 Thread Peter Danenberg
 There is no function org-exp-bibtex.

 What happens if you evalueate the following form?

 (progn (require 'org-exp-bibtex) (featurep 'org-exp-bibtex))

That evaluates to t.

Are there hooks installed, by the way, for exported to LaTeX? C-c C-e
d (export as LaTeX, process to PDF, and open the resulting PDF
document) doesn't seem to run bibtex; nor does #+BIBLIOGRAPHY: x y
insert \bibliographystyle{y}\bibliography{x} into the LaTeX document.


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


Re: [Orgmode] org-exp-bibtex

2010-01-28 Thread Peter Danenberg
 Are you sure about it being in your load-path? What does
 
 M-x locate-library RET org-exp-bibtex RET
 
 say? If it finds it, both autoload and require should work.

locate-library says:

  Library is file ~/lib/emacs/org-mode/contrib/lisp/org-exp-bibtex.el

Just to be sure, my require form looks like:

  (require 'org-exp-bibtex)

Do I specifically need to add a preprocess hook such as this?

  (add-hook 'org-export-preprocess-hook 'org-export-bibtex-preprocess)


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


[Orgmode] Re: Hide file names in agenda view

2010-01-28 Thread Matt Lundin
David A. Gershman dagershman_...@dagertech.net writes:

 I've been searching a while and thought it'd be simple to find.  How can
 I suppress the file names in the agenda view?

 i.e. turn

file2:7:00- 8:00 alwkjekisdjksj
file1:   10:00-11:00 alsdkfjasdlfkj

 into

 7:00- 8:00 alwkjekisdjksj
10:00-11:00 alsdkfjasdlfkj


This is controlled via the variable org-agenda-prefix-format. You can
type C-h v org-agenda-prefix-format to get all the details.

Here's very *simple* setting to get rid of file names on all agenda
views:

(setq org-agenda-prefix-format %t %s)

- Matt


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


[Orgmode] Re: Hide file names in agenda view

2010-01-28 Thread Richard Riley
Matt Lundin m...@imapmail.org writes:

 David A. Gershman dagershman_...@dagertech.net writes:

 I've been searching a while and thought it'd be simple to find.  How can
 I suppress the file names in the agenda view?

 i.e. turn

file2:7:00- 8:00 alwkjekisdjksj
file1:   10:00-11:00 alsdkfjasdlfkj

 into

 7:00- 8:00 alwkjekisdjksj
10:00-11:00 alsdkfjasdlfkj


 This is controlled via the variable org-agenda-prefix-format. You can
 type C-h v org-agenda-prefix-format to get all the details.

 Here's very *simple* setting to get rid of file names on all agenda
 views:

 (setq org-agenda-prefix-format %t %s)

 - Matt



Here's another example posted to this  group a while back.


,
| 
|   
;;
|   ;; With this typing L in agenda and todo buffers allows toggling
|   ;; whether category/file names appear or not at the left or entries in
|   ;; agenda/todo listings.
|   
;;
|   
|   (defvar my-org-agenda-list-category t)
|   (defun my-org-agenda-toggle-list-category ()
|Toggles whether category/file name appears or not at the left
| of entries in agenda listings. Useful to unclutter listings.
| (interactive)
| (if my-org-agenda-list-category
| (progn 
|   (setq my-org-agenda-list-category nil)
|   (setq org-agenda-prefix-format
| '((agenda  .   %-12:c%?-12t% s)
|   (timeline  .   % s)
|   (todo  .   %-12:c)
|   (tags  .   %-12:c)
|   (search .   %-12:c)))
|   )
|   (setq my-org-agenda-list-category t)
|   (setq org-agenda-prefix-format
| '((agenda  .   %?-12t% s)
|   (timeline  .   % s)
|   (todo  .   )
|   (tags  .   )
|   (search .   )))
|   )
| (org-agenda-redo))
|   
|   (add-hook 
|'org-mode-hook
|(lambda ()
|  (define-key org-agenda-keymap   L 'my-org-agenda-toggle-list-category)
|  (define-key org-agenda-mode-map L 'my-org-agenda-toggle-list-category)
|))
`



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


[Orgmode] ASCIIMathML or LaTeXMathML for HTML?

2010-01-28 Thread Xiao-Yong Jin
Hi,

Lately I stumbled upon AsciiDoc[1], which uses
ASCIIMathML[2] or LaTeXMathML[3] to export math formulae in
XHTML documents.  Both of these two MathML approaches seem
very nice to me.  I am not sure if anyone has brought this
up.  But I see org-mode info says

   (1) Yes, there is MathML, but that is not yet fully supported by
many browsers, and there is no decent converter for turning LaTeX or
ASCII representations of formulas into MathML. So for the time being,
converting formulas into images seems the way to go.

Admittedly, not all LaTeX functionality are supported, and
only Mozilla/Firefox supports MathML fully.  But I think it
is a decent way to support simple formulae in org-mode for
people who just want to view their notes in Firefox.

[1] http://www.methods.co.nz/asciidoc/
[2] http://www1.chapman.edu/~jipsen/mathml/asciimath.html
[3] http://www.maths.nottingham.ac.uk/personal/drw/lm.html
-- 
Jc/*__o/*
X\ * (__
Y*/\  


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