Re: [Orgmode] Can no longer retrieve TIMESTAMP and TIMESTAMP_IA with org-entry-get

2009-12-20 Thread Carsten Dominik

Fixed, thanks matt!

- Carsten

On Dec 19, 2009, at 11:57 PM, Matt Lundin wrote:


Hi Carsten,

I believe that commit b8e0d6fdb41f2165d675e89fcb54b741c971f6f4 broke
accessing timestamps with the org-entry-get.

With that commit, several functions I use to check whether an entry  
has

a timestamp stopped working.

In other words,

(org-entry-get nil TIMESTAMP_IA)

or

(org-entry-get nil TIMESTAMP)

always return nil, even if a timestamp exists.

Strangely, the org-entry-properties alist includes values for  
TIMESTAMP

and TIMESTAMP_IA.

I tested this by evaluating the expressions in the sample entry below:

--8---cut here---start-8---
* TODO Test:computer:
 2009-12-19 Sat
 [2009-12-19 Sat 17:47]

(org-entry-get nil TIMESTAMP_IA)
(org-entry-get nil TIMESTAMP)
(org-entry-properties)
--8---cut here---end---8---

Thanks,
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


- 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] Bug: Can't set org-export-latex-title-command using #+BIND: [6.33trans]

2009-12-20 Thread Christopher Suckling

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.


Using the following test file:

,
| # -*- mode: org; -*-
| 
| * Tree
| ** Subtree
|I want no \maketitle command
| 
| * COMMENT Local variables
| #+BIND: org-export-latex-title-command 
| 
| # Local Variables:
| # End:
`

exporting to latex yields:

,
| % Created 2009-12-20 Sun 10:52
| % BEGIN defaults
| \documentclass[a4paper, 12pt]{memoir}
| \usepackage{org-export}
|  % END defaults
| 
| 
| \title{test}
| \author{Christopher Suckling}
| \date{20 December 2009}
| 
| \begin{document}
| 
| \maketitle
| 
| \setcounter{tocdepth}{3}
| \tableofcontents
| \vspace*{1cm}
| 
| \chapter{Tree}
| \label{sec-1}
| \section{Subtree}
| \label{sec-1.1}
| 
|I want no \maketitle command
| 
| \end{document}
`

Evaluating

,
| (setq org-export-latex-title-command )
`

prior to export successfully removes \maketitle.


Best, Christopher


Emacs  : GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS 
apple-appkit-1038.25)
 of 2009-12-08 on rushka.local
Package: Org-mode version 6.33trans

current state:
==
(setq
 org-export-latex-default-class org-export
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-todo-keyword-faces '((CANCELLED :foreground gray40 :weight bold)
  (DEFERRED :foreground olivedrab4 :weight bold)
  (OPEN :foreground red1 :weight bold :underline t
   :slant italic)
  (TODO :foreground dodgerblue3 :weight bold)
  (NEXT :foreground navyblue :weight bold)
  (WAITING :foreground red3 :weight bold)
  (DELEGATED :foreground deeppink4 :weight bold)
  (COMMENT :foreground RosyBrown4))
 org-link-frame-setup '((vm . vm-visit-folder-other-frame)
(gnus . org-gnus-no-new-news)
(file . find-file-other-window))
 org-special-ctrl-a/e t
 org-agenda-custom-commands '((d Today's effort agenda 
   ((org-agenda-view-columns-initially t)
(org-agenda-ndays 1))
   )
  (W Weekly review
   ((agenda  ((org-agenda-ndays 7)))
(alltodo 
 ((org-agenda-files (list ~/Sites/org/))
  (org-agenda-file-regexp ^[^m].*_A\\.org$)
  (org-agenda-todo-ignore-with-date t)
  (org-agenda-sorting-strategy
   (quote
(priority-down todo-state-down category-keep
 tag-up effort-up)
)
   )
  (org-agenda-overriding-header
   Unscheduled TODO entries - work: )
  )
 )
(todo WAITING|DELEGATED
 ((org-agenda-files (list ~/Sites/org/))
  (org-agenda-file-regexp ^[^m].*_A\\.org$)
  (org-agenda-todo-ignore-scheduled nil)
  (org-agenda-todo-ignore-deadlines nil)
  (org-agenda-sorting-strategy
   (quote
(priority-down todo-state-down tag-up
 category-keep)
)
   )
  (org-agenda-overriding-header
   Awaiting response from others - work: )
  )
 )
)
   )
  (I Import diary from iCal agenda 
   ((org-agenda-mode-hook (lambda nil 
(org-mac-iCal)
  (F Import links to flagged mail agenda 
   ((org-agenda-mode-hook
 (lambda nil
  (let ((org-mac-mail-account Gmail))
   (org-mac-insert-flagged-mail taskpool_A.org
Flagged mail)
   )
  )
 )
)
  

Re: [Orgmode] Bug: Can't set org-export-latex-title-command using #+BIND: [6.33trans]

2009-12-20 Thread Carsten Dominik

Fixed, thanks

- Carsten

On Dec 20, 2009, at 11:58 AM, Christopher Suckling 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.


Using the following test file:

,
| # -*- mode: org; -*-
|
| * Tree
| ** Subtree
|I want no \maketitle command
|
| * COMMENT Local variables
| #+BIND: org-export-latex-title-command 
|
| # Local Variables:
| # End:
`

exporting to latex yields:

,
| % Created 2009-12-20 Sun 10:52
| % BEGIN defaults
| \documentclass[a4paper, 12pt]{memoir}
| \usepackage{org-export}
|  % END defaults
|
|
| \title{test}
| \author{Christopher Suckling}
| \date{20 December 2009}
|
| \begin{document}
|
| \maketitle
|
| \setcounter{tocdepth}{3}
| \tableofcontents
| \vspace*{1cm}
|
| \chapter{Tree}
| \label{sec-1}
| \section{Subtree}
| \label{sec-1.1}
|
|I want no \maketitle command
|
| \end{document}
`

Evaluating

,
| (setq org-export-latex-title-command )
`

prior to export successfully removes \maketitle.


Best, Christopher


Emacs  : GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS apple- 
appkit-1038.25)

of 2009-12-08 on rushka.local
Package: Org-mode version 6.33trans

current state:
==
(setq
org-export-latex-default-class org-export
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
vars)
org-todo-keyword-faces '((CANCELLED :foreground gray40 :weight  
bold)

  (DEFERRED :foreground olivedrab4 :weight bold)
  (OPEN :foreground red1 :weight bold :underline t
   :slant italic)
  (TODO :foreground dodgerblue3 :weight bold)
  (NEXT :foreground navyblue :weight bold)
  (WAITING :foreground red3 :weight bold)
  (DELEGATED :foreground deeppink4 :weight bold)
  (COMMENT :foreground RosyBrown4))
org-link-frame-setup '((vm . vm-visit-folder-other-frame)
(gnus . org-gnus-no-new-news)
(file . find-file-other-window))
org-special-ctrl-a/e t
org-agenda-custom-commands '((d Today's effort agenda 
   ((org-agenda-view-columns-initially t)
(org-agenda-ndays 1))
   )
  (W Weekly review
   ((agenda  ((org-agenda-ndays 7)))
(alltodo 
 ((org-agenda-files (list ~/Sites/org/))
  (org-agenda-file-regexp ^[^m].*_A\\.org$)
  (org-agenda-todo-ignore-with-date t)
  (org-agenda-sorting-strategy
   (quote
(priority-down todo-state-down category-keep
 tag-up effort-up)
)
   )
  (org-agenda-overriding-header
   Unscheduled TODO entries - work: )
  )
 )
(todo WAITING|DELEGATED
 ((org-agenda-files (list ~/Sites/org/))
  (org-agenda-file-regexp ^[^m].*_A\\.org$)
  (org-agenda-todo-ignore-scheduled nil)
  (org-agenda-todo-ignore-deadlines nil)
  (org-agenda-sorting-strategy
   (quote
(priority-down todo-state-down tag-up
 category-keep)
)
   )
  (org-agenda-overriding-header
   Awaiting response from others - work: )
  )
 )
)
   )
  (I Import diary from iCal agenda 
   ((org-agenda-mode-hook (lambda nil 
(org-mac-iCal)
  (F Import links to flagged mail agenda 
   ((org-agenda-mode-hook
 (lambda nil
  (let ((org-mac-mail-account Gmail))
   (org-mac-insert-flagged-mail taskpool_A.org
Flagged mail)
   )
 

Re: [Orgmode] Re: Question about searches (ultimately for agenda)

2009-12-20 Thread Carsten Dominik


On Dec 19, 2009, at 5:35 AM, Mueen Nawaz wrote:


On 12/17/09 13:26, Carsten Dominik wrote:

Yes, so that the search only continues after that entry. But yes, you
are right, this can fail for the final entry in a file.

Try

'(when (org-entry-is-done) (outline-next-heading) (point))


Seems to work.

Also, I'm pretty weak with Emacs Lisp. What does (point) do?  
Google's

no help (obviously).


Point returns the buffer position of he cursor, in this case the
position where the next entry starts.


	OK. I guess I don't understand why we need to know where the point  
is.


The agenda skip function is called to check if an entry should be  
skipped.  At each entry that matches the current query definition  
while sweeping an agenda file, this function will be called to give  
you a final chance to say NO to this entry.  If it returns nil, that  
means, OK, take the entry and put it into the agenda.  If it returns  
something else, that must be the location from where to resume search  
for another match of your query.


For example it can return the location of the end of the current entry  
to make search continue from there.  Or the location of the end of the  
entire subtree end to make search continue from there.  You could also  
return (point-at-eob) to make sure that after skipping this entry, the  
search in this buffer will find nothing more.  You you also make it  
return 1 o start from the beginning of the bugger an in this way end  
up in an infinite loop :-)


Clearer now?

Is this returning the value of the point in whatever buffer I am  
when I /execute/ the agenda command? Or is this more like the  
function is sweeping the point across all agenda files to find  
headlines? Or...?






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


- Carsten





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


Re: [Orgmode] Beamer support in Org-mode

2009-12-20 Thread Darlan Cavalcante Moreira

I also liked this idea. Since beamer does not track where the \note command is
used inside the frame and just puts every note from that frame in the next
notes slide, then there is no loss if org-mode put several \note commands in
the end of the frame environment when exporting. Therefore, a headline below the
frame headline seems to be a good approach.

Also, if the beamer notes are not desired when exporting to other formats one
could add a tag to the notes headline and use the already available feature of
not exporting headlines with a given tag.

- Darlan Cavalcante Moreira

At Sat, 19 Dec 2009 12:33:14 -1000,
Thomas S. Dye t...@tsdye.com wrote:
 
 Hi Daniel,
 
 On Dec 18, 2009, at 11:01 AM, Daniel Martins wrote:
 
  \pnote could be an option
 
  Another idea is to reserve the lowest level to notes
 
  * section
  ** subsection
  *** frame
  etc
 
 
  ** notes
 
  (I don't know how many *'s are needed)
 
  maybe we can set a number / variable
 
  like
 
  org-beamer-frame-level
 
  we could create
 
  org-beamer-notes-level
 
  Daniel
 
 
  2009/12/18 Nick Dokos nicholas.do...@hp.com:
  Adam Spiers orgm...@adamspiers.org wrote:
 
  On Tue, Dec 15, 2009 at 04:49:23PM -0300, Darlan Cavalcante  
  Moreira wrote:
  In addition, while I also agree that footnotes shouldn't be in a  
  presentation
  they are allowed when working with beamer and may be useful in  
  some cases. If
  org-mode export footnotes as beamer notes then some months from  
  now someone
  would be asking here in the mailing-list how to enter a standard  
  footnote when
  exporting to beamer.
 
  I agree - unfortunately there are genuinely sensible uses of  
  footnotes
  in presentations.  For example, citation of sources for quotations,
  data etc. is ideally accomplished by footnotes: they are not used
  during the presentation itself, but by distributing paper and/or
  electronic copies after the talk, footnotes provide essential
  reference data for perusal by the audience at a later date.
 
  I think that's an argument *for* Eric's idea (assuming that the  
  handout
  includes notes - that's my practice, but maybe not everybody does  
  that,
  although they *should* :-) ).
 
  In general, I think slides should be very simple: single-level lists,
  single idea per slide, no footnotes - but I know that generalities  
  like
  that are just guidelines: meant to be broken, given a good enough  
  cause.
 
  Imagine a slide showing the results of a benchmark, claiming X is
  much faster than Y!  You might want to talk briefly about how the
  results were obtained, and about the impact of the results, but you
  would also need to be able to tell the audience they could
  independently verify the results by obtaining a copy of the slides  
  and
  visiting the URL contained in the footnote - especially if the  
  results
  are controversial!  In this case, it would not matter that the URL  
  was
  too small to be legible from the back of the room.
 
 
 
  How does inverting Eric's idea sound: invent a new kind of footnote,
  let's call it, say, a pnote, which is treated exactly like a  
  footnote in
  all exports *except* beamer. In beamer, footnotes end up in the frame
  and pnotes end up in the notes.
 
  Not sure whether the implementation would be as simple as this  
  makes it
  sound, but who knows?[1]
 
  Thanks,
  Nick
 
  [1] Well, OK: Carsten knows...
 
 
 FWIW, I like this idea.  I think it tracks the mapping between beamer  
 and LaTeX very well.
 
 In my experience, beamer slide shows are an aid in the spoken  
 presentation of a LaTeX article.
 
 Beamer does a good job of mapping the higher level LaTeX sectioning  
 commands, with some themes that automatically display down to  
 subsection.  To my mind, frames in beamer capture lower-level  
 structure (e.g. subsubsection, paragraph, subparagraph) in their  
 (often over-used) bulleted lists, and (more appropriately) the  
 photographs, diagrams, maps etc. that are inserted as figures in the  
 LaTeX article.  As others on the list have noted, LaTeX footnotes also  
 map fairly directly to beamer footnotes.
 
 This leaves most of the text of the article, which from my perspective  
 maps to beamer notes.  Marking off notes with the headline below the  
 last one that deals with frames and their paraphernalia seems natural  
 to me.  The typical org-mode file that exports to LaTeX will have big  
 chunks that transfer very readily to the notes sections of a beamer  
 presentation.
 
 I don't know whether the idea makes sense from the point of view of  
 implementation, though, because I can't really read the org-mode Lisp  
 code owing to my own illiteracy.
 
 All the best,
 Tom
 
 
 
 ___
 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 

Re: [Orgmode] Re: OrgmodeWiki Support

2009-12-20 Thread Darlan Cavalcante Moreira

One of the main reasons that made me move from planner to org after using
planner mode for more than one year is exactly the one file per day approach
that is used by planner. Don't get me wrong, planner-mode is very good but I
think that the powerful outline capabilities of org-mode works better with my
brain than several files.

Today I use a remember template for notes that asks me for a title and puts the
note in a notes.org file. Maybe a good approach for camel case words for
org-mode could be similar to this.

Suppose that camel case support is active in org-mode and the user tries to
visit the link CamelCaseWord which does not exist yet. Org-mode could then
create a headline in a wiki.org file like this
,
| * CamelCaseWord
| CamelCaseWord
`
and visit that file.

This would allow the user to change the title if desired and the link would
still be valid even from other files (using the proposed etags functionality).

At last, in order to tell org-mode in which file (in this case wiki.org) and in
which section the new headlines should be created the user could define a
template similar to the remember templates (maybe it is even possible to use
remember-mode for this with the already available functionality).

- Darlan Cavalcante Moreira


At Fri, 18 Dec 2009 16:59:22 +0100,
Carsten Dominik carsten.domi...@gmail.com wrote:
 
 
 On Dec 18, 2009, at 3:19 PM, Adam Spiers wrote:
 
  On Fri, Dec 18, 2009 at 01:15:59PM +0100, Carsten Dominik wrote:
  On Dec 18, 2009, at 12:28 PM, Adam Spiers wrote:
  I would *love* to see auto-linking of WikiWords as a customisable
  option.  I'm not sure if anyone's looked at supporting WikiWords  
  yet.
 
  Where should the link go?  To a file WikiWord.org?  Or doing an
  etags search?
 
  To a file WikiWord.org would cater for the majority of my needs.
  Would be even cooler if you could specify a list of directories as a
  search path, where each directory was either absolute or relative to
  the current file!
 
  Maybe others could make use of an etags option too; I'm not sure.  I
  guess you might then need a custom function to translate the WikiWord
  into a tag to lookup, since a lot of tags are not CamelCase.
 
 I think it would be useful to discuss this proposal first in a broader  
 sense.
 Let me try to make a start.
 
 A few days ago, Paul Sexton submitted his proposal for simple
 file-to-file links based on etags.
 
 He wanted to make [[sometext]] be a link to sometext where
 the target definition sometext can be in a different file.
 Furthermore, his proposal uses an external program to do the
 indexing of the tags, and following the links uses the etags
 code shipped with Emacs.
 
 Finally, Paul's proposal also contains a way to automatically
 create new topics when a link is called that does not yet have
 a target.
 
 Now we are talking about WikiWords, or CamelCase links.  Here the
 idea is that any such mixed-case word automatically is treated as a  
 link.
 Traditionally these links to a separate file with name given by the
 link text directly.  But I suppose it could also got to a target
 somewhere in a file?
 
 For a couple of reasons it seems to me that it would be useful
 to look at these proposals together.  For one thing, I am not
 a huge fan of the zillions of files that will be created when using
 the one-file-per-word approach.  Since Org-mode is outline based, it
 seem to make a lot of sense to have many topics per file.
 
 One way to move into this direction would be to still use etags
 to index the possible targets, and then to turn specific words
 (like CamelCase words) directly into links without the need to
 surround them with [[...]].
 
 But of course, we could also have an implementation as Adam
 proposes it, with CamelCase words linking to files, and
 then [[target]] linking to targets.
 
 Can we discuss this for a bit?
 
 - Carsten
 
 
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


Re: [Orgmode] Best way to use org-mode as a work log

2009-12-20 Thread Rick Moynihan
2009/12/19 Ethan Brown ethandbr...@gmail.com:
 I've been an emacs user since about 1990, but have just recently
 discovered org-mode.  It seems as if it would be very well suited to
 use as my work log--I currently just use a regular text file.

 Since a work log is based around daily entries, I'm wondering if
 anyone can recommend the best way to use org-mode for such a purpose.
 I perused the FAQs but didn't see anything.  Org-mode apparently
 integrates with the emacs calendar/diary so there is probably a right
 way to do this.  If there's a FM out there that deals with this I'm
 happy to RTFM.

I have a very simple method of using org-mode for this kind of thing.
I have the following remember template:

(setq org-remember-templates
  '((Journal ?j * %^{Journal Entry} %^g\n  %T\n %i\n %? %a %
 ~/org/journal.org Journal))
  ;; ...
)

Then doing C-c r [j]ournal inserts an entry into my journal.org file
under the Journal Heading.  This file is then just a big linear list
of headlines with notes under them.

e.g.

* Journal
** ...
** Emailed org-mode list with my journal setup
   2009-12-20 Sun 16:48

I sometimes tag these entries also but generally avoid using them
with TODO/DONE states.

Is this the kind of thing you're looking for?


R.


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


Re: [Orgmode] Bug: Can't set org-export-latex-title-command using #+BIND: [6.33trans]

2009-12-20 Thread Christopher Suckling
On Sun, 20 Dec 2009 13:29:59 +0100, Carsten Dominik carsten.domi...@gmail.com 
wrote:

Thank you, but not quite working yet:

,
| #+BIND: org-export-latex-title-command 
`

now appears to be having the *effect* of setting a global variable.

I load Emacs then visit the below test org file. I then export the file.

I get a \maketitle line.

I then C-c C-c on the #+BIND: line and re-export.

\maketitle is removed.

I then export another org file without the #+BIND: line. 

There is no \maketitle, even though there should be.

I add

,
| #+BIND: org-export-latex-title-command \foobar
`

to the new org file, C-c C-c and export:

\foobar is added to the exported file.

Finally, I re-export the original test org file (without C-c C-c on the
#+BIND: line):

\foobar is added to the exported file.

However,

,
| C-h v org-export-latex-title-command
`

always returns the value \\maketitle, no matter what the value of the
#+BIND: line.

Best, Christopher

 Fixed, thanks

 - Carsten

 On Dec 20, 2009, at 11:58 AM, Christopher Suckling 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.
 

 Using the following test file:

 ,
 | # -*- mode: org; -*-
 |
 | * Tree
 | ** Subtree
 |I want no \maketitle command
 |
 | * COMMENT Local variables
 | #+BIND: org-export-latex-title-command 
 |
 | # Local Variables:
 | # End:
 `

 exporting to latex yields:

 ,
 | % Created 2009-12-20 Sun 10:52
 | % BEGIN defaults
 | \documentclass[a4paper, 12pt]{memoir}
 | \usepackage{org-export}
 |  % END defaults
 |
 |
 | \title{test}
 | \author{Christopher Suckling}
 | \date{20 December 2009}
 |
 | \begin{document}
 |
 | \maketitle
 |
 | \setcounter{tocdepth}{3}
 | \tableofcontents
 | \vspace*{1cm}
 |
 | \chapter{Tree}
 | \label{sec-1}
 | \section{Subtree}
 | \label{sec-1.1}
 |
 |I want no \maketitle command
 |
 | \end{document}
 `

 Evaluating

 ,
 | (setq org-export-latex-title-command )
 `

 prior to export successfully removes \maketitle.


 Best, Christopher


 Emacs  : GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS apple-
 appkit-1038.25)
 of 2009-12-08 on rushka.local
 Package: Org-mode version 6.33trans

 current state:
 ==
 (setq
 org-export-latex-default-class org-export
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-
 vars)
 org-todo-keyword-faces '((CANCELLED :foreground gray40 :weight
 bold)
(DEFERRED :foreground olivedrab4 :weight bold)
(OPEN :foreground red1 :weight bold :underline t
 :slant italic)
(TODO :foreground dodgerblue3 :weight bold)
(NEXT :foreground navyblue :weight bold)
(WAITING :foreground red3 :weight bold)
(DELEGATED :foreground deeppink4 :weight bold)
(COMMENT :foreground RosyBrown4))
 org-link-frame-setup '((vm . vm-visit-folder-other-frame)
  (gnus . org-gnus-no-new-news)
  (file . find-file-other-window))
 org-special-ctrl-a/e t
 org-agenda-custom-commands '((d Today's effort agenda 
 ((org-agenda-view-columns-initially t)
  (org-agenda-ndays 1))
 )
(W Weekly review
 ((agenda  ((org-agenda-ndays 7)))
  (alltodo 
   ((org-agenda-files (list ~/Sites/org/))
(org-agenda-file-regexp ^[^m].*_A\\.org$)
(org-agenda-todo-ignore-with-date t)
(org-agenda-sorting-strategy
 (quote
  (priority-down todo-state-down category-keep
   tag-up effort-up)
  )
 )
(org-agenda-overriding-header
 Unscheduled TODO entries - work: )
)
   )
  (todo WAITING|DELEGATED
   ((org-agenda-files (list ~/Sites/org/))
(org-agenda-file-regexp ^[^m].*_A\\.org$)
(org-agenda-todo-ignore-scheduled nil)
(org-agenda-todo-ignore-deadlines nil)
(org-agenda-sorting-strategy
 (quote
  (priority-down todo-state-down tag-up
 

[Orgmode] batch exporting

2009-12-20 Thread andrea

Given that I often would like to export to some formats I would like to
create the final script that handles everything.

If easy enough it can also be useful for non org users that still would
like to get the output formatted...

So my attempt is here
--8---cut here---start-8---
#!/bin/bash

# Pass as input the file you want to convert to html

FILE=$1

if ! test -f $FILE
then
echo file not found
else
echo converting file $FILE
# TODO putting a minimal init file
emacs --batch \
--eval (add-to-list 'load-path \$HOME/.emacs.d/org-mode/lisp/\) \
--load=$HOME/.emacs.d/org-mode/lisp/org.el \
--visit=MyFile --funcall org-export-as-html-batch
fi

help() {
echo pass a file to export
}

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

But it gives this error
*Wrong type argument: commandp, org-export-as-html-batch*

Then I would like to add some flags to export in different formats and
to set destination and source.

And by the way, the script given as example in the function help doesn't
work...



___
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] batch exporting

2009-12-20 Thread Nick Dokos
andrea andrea.crott...@gmail.com wrote:

 
 Given that I often would like to export to some formats I would like to
 create the final script that handles everything.
 
 If easy enough it can also be useful for non org users that still would
 like to get the output formatted...
 
 So my attempt is here
 --8---cut here---start-8---
 #!/bin/bash
 
 # Pass as input the file you want to convert to html
 
 FILE=$1
 
 if ! test -f $FILE
 then
 echo file not found
 else
 echo converting file $FILE
 # TODO putting a minimal init file
 emacs --batch \
   --eval (add-to-list 'load-path \$HOME/.emacs.d/org-mode/lisp/\) \
   --load=$HOME/.emacs.d/org-mode/lisp/org.el \
   --visit=MyFile --funcall org-export-as-html-batch
 fi
 
 help() {
 echo pass a file to export
 }
 
 --8---cut here---end---8---
 
 But it gives this error
 *Wrong type argument: commandp, org-export-as-html-batch*
 
 Then I would like to add some flags to export in different formats and
 to set destination and source.
 
 And by the way, the script given as example in the function help doesn't
 work...
 
 

See the thread at

http://thread.gmane.org/gmane.emacs.orgmode/17059

HTH,
Nick


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


[Orgmode] Re: Best way to use org-mode as a work log

2009-12-20 Thread Ethan Brown
On Sat, Dec 19, 2009 at 8:07 AM, Matt Lundin m...@imapmail.org wrote:
 Ethan Brown ethandbr...@gmail.com writes:

 I've been an emacs user since about 1990, but have just recently
 discovered org-mode.  It seems as if it would be very well suited to
 use as my work log--I currently just use a regular text file.

 Would you mind explaining what you mean by a work log? Org-mode has
 built in logging and clocking features to track when you worked on
 something and how long you spent on it. Using the agenda, you can easily
 review all your work from any past date, week, etc. But perhaps you mean
 something more like a diary?

 Since a work log is based around daily entries, I'm wondering if
 anyone can recommend the best way to use org-mode for such a purpose.
 I perused the FAQs but didn't see anything. Org-mode apparently
 integrates with the emacs calendar/diary so there is probably a right
 way to do this. If there's a FM out there that deals with this I'm
 happy to RTFM.

 These sections of the manual should be of interest:

  - http://orgmode.org/manual/Progress-logging.html#Progress-logging

  - http://orgmode.org/manual/Agenda-commands.html#Agenda-commands (see
   the command vl or l - toggle logbook mode)

  - http://orgmode.org/manual/Clocking-work-time.html#Clocking-work-time

 I read the excellent tutorial at
 http://www.newartisans.com/2007/08/using-org-mode-as-a-day-planner.html
 about using org-mode as a day planner, but a work log is somewhat
 different, as it's a recount of the events and tasks worked on during
 the day.

 You might want to check out Bernt Hansen's nice walk-through, which
 deals extensively with clocking:

 http://doc.norang.ca/org-mode.html

 Best,
 Matt


Thanks Matt, and also Mueen for the responses.   I have a work log
spanning the last 5 or so years on my current project.  It's a plain
text file that I just edit in emacs, plain and simple.  Here is how my
work log is organized and how I've done my initial conversion to
org-mode.  My current format is of the form:

05/14/09

Accounting system:
Work on CSS for tables
 ** Use standard fonts!

 Design schema for SAP integration.
 

05/15/09
.
05/16/09
.


So when I start my work day, I just add the current date to the end of
the file and type away.   After reviewing the Org-mode docs and
playing around a bit I decided to just start simple and work my way
slowly into the more complex features.  I decided that my
implementation would set a top-level outline for each day and then set
the daily tasks with appropriate tags.  I needed to convert my current
work log, which contains entries from the last 5 or so years.  The
conversion was quite simple:

(1)  Replace all lines with * in the first character to + as the
first character so as not to inadvertently create an outline entry.
 M-x replace-regexp RET ^ *\* RET + RET

(2)  Replace all daily start entry lines with top-level outline
entries.  So lines of the form:

05/15/09
 would be transformed to to lines of the form
* Day Entry [2009-05-14]

 M-x replace-regexp RET
^\([0-9]\{1,2\}\)/\([0-9]\{1,2\}\)/\([0-9]\{2\}\) RET * Day Entry
\[20\3-\1-\2]  RET

And voila!  My work log was converted to org-mode format and I'm ready
to go.  Here's my work log for today in my new format, previous days
collapsed:

* Day Entry [2009-12-17] ...
* Day Entry [2009-12-18] ...
* Day Entry [2009-12-19]
** DONE Convert worklog to emacs .org file.:work_organization:
   CLOSED: [2009-12-19 Sat 09:23]
*** DONE Replace all lines with * in the first character to +.
CLOSED: [2009-12-19 Sat 09:10]
*** DONE Change all lines with starting entries XX/YY/ZZ to day entries of the
CLOSED: [2009-12-19 Sat 09:23]
  form * Day Entry [20ZZ-XX-YY]
Use emacs replace-regex
  ^\([0-9]\{1,2\}\)/\([0-9]\{1,2\}\)/\([0-9]\{2\}\)
   = * Day Entry \[20\3-\1-\2]


I'm currently using KTimeTracker for doing my project time tracking,
but I'm going to read up on the org-mode timers and perhaps switch
over.

Thanks again,

--Ethan


___
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] Best way to use org-mode as a work log

2009-12-20 Thread Ethan Brown
On Sun, Dec 20, 2009 at 8:51 AM, Rick Moynihan rick.moyni...@gmail.com wrote:
 2009/12/19 Ethan Brown ethandbr...@gmail.com:
 I've been an emacs user since about 1990, but have just recently
 discovered org-mode.  It seems as if it would be very well suited to
 use as my work log--I currently just use a regular text file.

 Since a work log is based around daily entries, I'm wondering if
 anyone can recommend the best way to use org-mode for such a purpose.
 I perused the FAQs but didn't see anything.  Org-mode apparently
 integrates with the emacs calendar/diary so there is probably a right
 way to do this.  If there's a FM out there that deals with this I'm
 happy to RTFM.

 I have a very simple method of using org-mode for this kind of thing.
 I have the following remember template:

 (setq org-remember-templates
      '((Journal ?j * %^{Journal Entry} %^g\n  %T\n %i\n %? %a %
         ~/org/journal.org Journal))
  ;; ...
 )

 Then doing C-c r [j]ournal inserts an entry into my journal.org file
 under the Journal Heading.  This file is then just a big linear list
 of headlines with notes under them.

 e.g.

 * Journal
 ** ...
 ** Emailed org-mode list with my journal setup
   2009-12-20 Sun 16:48

 I sometimes tag these entries also but generally avoid using them
 with TODO/DONE states.

 Is this the kind of thing you're looking for?


 R.


Thanks Rick.  I was playing around with something like this earlier
today.  Unfortunately, I'm getting an error when I run
M-x org-remember  (org-remember: Wrong type argument: commandp,
remember).  But fortunately, I'm getting the same error with your
expression, so I know the problem isn't my expression syntax :-/   But
I'll work through it.  Than you very much for your suggestion.

--Ethan


___
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: Best way to use org-mode as a work log

2009-12-20 Thread Russell Adams
 
 Thanks Matt, and also Mueen for the responses.   I have a work log
 spanning the last 5 or so years on my current project.  It's a plain
 text file that I just edit in emacs, plain and simple.  Here is how my
 work log is organized and how I've done my initial conversion to
 org-mode.  My current format is of the form:
 
 05/14/09
 
 Accounting system:
 Work on CSS for tables
  ** Use standard fonts!
 
  Design schema for SAP integration.
  
 
 05/15/09
 .
 05/16/09
 .
 
 

My workflow  projects is the opposite. I use a logical layout
organized by topic, plan, notes, etc. Each time I leave org and return
I insert an inactive timestamp, as well as making sure that TODO item
changes are logged.

I find organizing by topic or plan to be immensely easier to use.

Then, if I need a time view into my work, I pull up the agenda. I'll
often use the logbook mode, and if I want real detail I'll activate
the inactive timestamps.

Its a beautiful way to work, allowing me to focus on comprehensive
notes and organizing the issues at hand, while org provides alternate
views into that data.

Thanks.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
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: batch exporting

2009-12-20 Thread andrea
Nick Dokos nicholas.do...@hp.com writes:

 See the thread at

 http://thread.gmane.org/gmane.emacs.orgmode/17059

I also tried the scripts from that thread (but it's actually the same
thing), I always get the same error.
What could that mean:

converting file euler.org
Wrong type argument: commandp, org-export-as-html-batch



___
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: batch exporting

2009-12-20 Thread Carsten Dominik


On Dec 20, 2009, at 11:43 PM, andrea wrote:


Nick Dokos nicholas.do...@hp.com writes:


See the thread at

   http://thread.gmane.org/gmane.emacs.orgmode/17059


I also tried the scripts from that thread (but it's actually the same
thing), I always get the same error.
What could that mean:

converting file euler.org
Wrong type argument: commandp, org-export-as-html-batch


Have you tried (as the installation instructions say)

(require 'org-install)

??

- 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] Organizing a students live

2009-12-20 Thread Daniel Martins
All academics here present (including of course Carsten) suffer from
the same problem, I think


*** Math classes
2009-12-10 Thu 11:00-14:00 +1w


will repeat forever and ever...

We need to create a schedule for a period.

The package remind (and its simple interface wyrd) do this job
wonderfully but I do not know how to deal with this problem in Org
mode

Daniel
2009/12/19 Thomas Bach bac...@uni-mainz.de:
 Hi Jan,

 interesting setup, it never came to my mind to organize everything on a
 weekly basis. Well, it makes sense. :)
 Why do you put inactive timestamps for beginning and end of the
 semester? Doesn’t that mean that it won’t show up in the agenda view?
 How are you handling examens?

 With the hints of Giovanni and Darlan I actually came up with something
 like this:

 * Calendario
  :PROPERTIES:
  :CATEGORY: Calendario
  :END:
 ** segundo cuatrimestre
   2010-02-08 Mon
 *** vacaciones
    2010-03-15 Mon--2010-03-19 Fri
    2010-04-02 Fri--2010-04-12 Mon
 *** finaliza segundo cuatrimestre
    2010-06-04 Fri

 For the rare dates of the semester. I like this to get a fast overview
 when planing travels etc..

 For classes I created a tree like the following:

 * Classes
 ** Inteligencia Artificial
   :PROPERTIES:
   :CATEGORY: IA
   :END:
 *** teoría
    2009-12-10 Thu 11:00-14:00 +1w
 *** examen
    :PROPERTIES:
    :CATEGORY: IA examen
    :END:
  practicas
     2010-01-14 Thu 11:00
  teoria
     2010-01-29 Fri 09:00
 *** trabajos
  presentar el texto
     DEADLINE: 2010-01-07 Thu
 * TODO leer el texto y resumir

 But there are some still things that don’t fit together e.g. that
 classes (teoría) show up on vacations…
 BTW: Is it possible to inherit from higher CATEGORYs instead of
 overwriting it? So that I could only write :CATEGORY: examen?

 I will think and try out a bit more with all this over the weekend.

 Best regards,
     Thomas Bach.


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



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


[Orgmode] Re: Organizing a students live

2009-12-20 Thread Matt Lundin
Daniel Martins daniel...@gmail.com writes:

 All academics here present (including of course Carsten) suffer from
 the same problem, I think


 *** Math classes
 2009-12-10 Thu 11:00-14:00 +1w


 will repeat forever and ever...

 We need to create a schedule for a period.

 The package remind (and its simple interface wyrd) do this job
 wonderfully but I do not know how to deal with this problem in Org
 mode

The following FAQ should help:

http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files

- 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] Browser Interface to org-mode?

2009-12-20 Thread sumeet pareek
I am not a 100% sure but I believe I heard some where in the google tech
talk about browser interface to org-mode. Could anybody tell me where can I
find it? It would be a boon to me as I am mostly on a windows box where
running org-mode is not the most simple thing to do.

I also work from multiple systems and would seriously benefit from any
org-mode interface/clone that works from the browser!?

-- 
Cheers
Sumeet Pareek
___
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] Browser Interface to org-mode?

2009-12-20 Thread Manish
On Mon, Dec 21, 2009 at 12:24 PM, sumeet pareek wrote:
 I am not a 100% sure but I believe I heard some where in the google tech
 talk about browser interface to org-mode. Could anybody tell me where can I
 find it? It would be a boon to me as I am mostly on a windows box where
 running org-mode is not the most simple thing to do.

I do not think there is any browser interface to Org mode.

Do you use Org on non-Windows system at present?  Do you use Emacs on
Windows at present?  Have you tried Org with Emacs on Windows?  What
difficulties did you face?

 I also work from multiple systems and would seriously benefit from any
 org-mode interface/clone that works from the browser!?

Most folks here use DVCS based syncing solutions.

-- 
Manish


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


[Orgmode] Re: batch exporting

2009-12-20 Thread andrea
Carsten Dominik carsten.domi...@gmail.com writes:

 On Dec 20, 2009, at 11:43 PM, andrea wrote:

 Nick Dokos nicholas.do...@hp.com writes:

 See the thread at

http://thread.gmane.org/gmane.emacs.orgmode/17059

 I also tried the scripts from that thread (but it's actually the same
 thing), I always get the same error.
 What could that mean:

 converting file euler.org
 Wrong type argument: commandp, org-export-as-html-batch

 Have you tried (as the installation instructions say)

 (require 'org-install)

 ??

Now it goes a bit further

--8---cut here---start-8---
emacs   --batch \
--eval (add-to-list 'load-path \$HOME/.emacs.d/org-mode/lisp/\) \
--eval (require 'org-install) \
--load=$orglib/org.el \
--visit=$1 --funcall org-export-as-html-batch
--8---cut here---end---8---

--8---cut here---start-8---
ip116-027:euler_project andrea$ org_html.sh euler.org 
converting file euler.org
Exporting...
htmlize.el 1.34 or later is needed for source code formatting
Exporting...
Exporting...
Wrong type argument: stringp, nil
--8---cut here---end---8---

How can I have more verbose errors by the way?



___
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