Re: [Orgmode] pages properties in agenda

2010-04-13 Thread Carsten Dominik

Hi Shepagh

On Apr 11, 2010, at 2:59 AM, Shelagh Manton wrote:

I have been using the org-learning module in some study and while it  
is

quite useful as it is, I was thinking that I might improve my use by a
special agenda command that could pull out and display a property.

Use case:

I use the org-learning to re-read sections of a book I am studying.  
And
so I have a :PAGES: property with the page numbers of the section I  
am to
read. Specially if I bomb out on remembering what I am supposed to  
know!


I was wondering if I could create a custom agenda command that would
display the page numbers from that property so that I can just open  
the
book up at the relevant pages for immediate study instead of going  
to the
relevant todo, opening up the drawer and seeing what the page  
numbers are?


No.

But you can create a sparse tree based on a tags match or however else  
you

can tell that you need to repeat that section.
Then switch to column view, and make sure the page number shows up in
the column view format.

HTH

- 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] orgcard.txt in Makefile

2010-04-13 Thread Carsten Dominik


On Apr 12, 2010, at 6:56 PM, Nathan Neff wrote:


Hello,

I'd like to use the orgcard.txt file that's included in the org-mode  
source.
I like being able to search through a text file for relevant  
keyboard shortcuts.


It doesn't seem like it's been updated since org version 6.10.

I tried running make doc, but I don't think that orgcard.txt is  
generated in the make doc task.


Is orgcard.txt generated from orgcard.tex?  If so, can anyone tell  
me how

to do it?


This file has been created by hand.  To update it, print the PDF
file and just compare line by line - the changes are probaby
limited.  If you update it, please send it to me so that I can
replace the outdated version.

Thanks!

- 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] Extended link capabilities to Wanderlust messages

2010-04-13 Thread Carsten Dominik

Hi David, thanks for this!  I have applied the patch.
I had to apply it by hand - so please double-check.

Also, other wanderlust users:  I don't use Wanderlust, so this patch  
goes

in untersted by me.  Please check it out!

- Carsten

On Apr 11, 2010, at 10:48 AM, David Maus wrote:


Hello all,

Attached patch extendes Org mode's capabilities to store and open
links to Wanderlust messages.  The gist of the extended capabilities:

- Remove filter conditions for messages in a filter folder

  If customization variable `org-wl-link-remove-filter' is non-nil,
  filter conditions are stripped of the folder name.

- Create web links for messages in a Shimbun folder

  If customization variable `org-wl-shimbun-prefer-web-links' is
  non-nil, calling `org-store-link' on a Shimbun message creates a
  web link to the messages source, indicated in the Xref: header
  field.

- Create web links for messages in a nntp folder

  If customization variable `org-wl-nntp-prefer-web-links' is
  non-nil, calling `org-store-link' on a nntp message creates a web
  link either to gmane.org if the group can be read trough gmane or
  to googlegroups otherwise. In both cases the message-id is used as
  reference.

- Open links in namazu search folder

  If `org-wl-open' is called with one prefix, WL opens a namazu
  search folder for message's message-id using
  `org-wl-namazu-default-index' as search index.  If this variable is
  nil or `org-wl-open' is called with two prefixes Org asks for the
  search index to use.

Regards,

-- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de
org-wl-extended.diff___
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: (org-set-tags t t) gives an error point is not currently on a headline

2010-04-13 Thread Carsten Dominik

Hi Ryan,

thanks for this patch.

I ended up to instead provide a special command to align
all tags, because org-set-tags should throw an error when
called not on a headline, for other reasons.

I am assuming that you want to call this from some lisp function - so

  (org-align-all-tags)

should now do the job for you.

HTH. and thanks again.

- Carsten

On Apr 8, 2010, at 8:11 PM, Ryan Thompson wrote:


Hi,

When I run (org-set-tags t t) to realign all tags in the buffer, it
doesn't work unless the point is currently on a headline, because
org-set-tags calls (org-get-tags-string) early on, and
org-get-tags-string raises an error if not on a headline. This can be
fixed by moving the binding of `current' to `(org-get-tags-string)'
into the else clause of the first if statment. I have attached a patch

-Ryan
--
fix-org-set-tags-with- 
prefix.diff___

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] HTML export of properties

2010-04-13 Thread Carsten Dominik


On Apr 12, 2010, at 9:21 PM, Vincent Belaïche wrote:


Thanks for the answers,

I had just written `=' instead of `:', what puzzled me is that I had
already tried with a plain drawer w/o this mistake.

Well I should have used completion, maybe Org mode documentation   
should
also mention `C-M-i' as an alternative to `M-TAB' suitable for  
MSwindows

users!


Esc TAB should also work.  However, if you are also using flyspell, then
you need to work around another conflict.

I do now mention the additional keys in the manual.

Thanks

- 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] Re: orgcard.txt in Makefile

2010-04-13 Thread Christian Egli
Hi 

Nathan Neff nathan.n...@gmail.com writes:

 I'd like to use the orgcard.txt file that's included in the org-mode source.
 I like being able to search through a text file for relevant keyboard
 shortcuts.

 It doesn't seem like it's been updated since org version 6.10.

 I tried running make doc, but I don't think that orgcard.txt is generated in
 the make doc task.

AFAIK It is not.

 Is orgcard.txt generated from orgcard.tex?  If so, can anyone tell me how
 to do it?

I presume that it is converted by hand. I tried a few automated tools
(pdftotext, latex2html + w3m) but they all give very bad results.

I would recommend to either

  a) compare the existing orgcard.pdf and orgcard.txt and update the
 existing orgcard.txt accordingly or
  b) cut'n'paste the text from a pdf viewer into emacs and do some magic
 with rectangles (as the text is in three columns) to achieve the
 desired result.

Then submit the newest orgcard.txt as a patch so you will not have to
keep it locally.

Thanks
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland



___
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: [PATCH] [babel] Add option to display process buffer when editing R source code blocks

2010-04-13 Thread Julien Barnier
Hi Dan,

 Could I suggest a slightly different route? We already have the
 functions org-babel-switch-to-session and org-babel-load-session, which
 work for any language. These switch to the process buffer, like your
 patch does. I agree with you about wanting a function that ends up
 displaying the process buffer and the code edit buffer. I have the
 following personal function which achieves that:

 (defun dan/org-babel-switch-to-code-with-session (optional arg)
 Switch to code edit buffer and display session
 (interactive P)
 (save-excursion
   (org-babel-switch-to-session arg nil))
 (org-edit-src-code))

 Could you experiment with these functions, and see if they are
 satisfactory, amd let us know if we can improve things? E.g. we could
 include a function like my one above to display both the session with
 the edit-buffer.

Ah, yes, I didn't notice the existence of
org-babel-switch-to-session. It is indeed much cleaner that my patch
:-)

The features I would miss compared top my quick and dirty-function
is the fact that the source code buffer is displayed above the session
one (I really don't like having the session above), the fact that when
I quit the source code editing, the session buffer is closed too, and
the ability to keep org file buffer open with the source and the
session ones.

I can reproduce the behavios I was looking for with the following
modifications to your function. But this is another quick and dirty
hack, and I can't say if it cuold meet the needs of others :

(defun dan/org-babel-switch-to-code-with-session (optional arg keep-org)
Switch to code edit buffer and display session. If keep-org is
non nil, keep the org file buffer open, too.
(interactive P)
(let ((info (org-babel-get-src-block-info)))
  (org-edit-src-code)
  (if keep-org
(split-window-vertically)
(delete-other-windows))
  (save-excursion
  (org-babel-switch-to-session arg info))
  (other-window -1)))

I think I'll stick with this function for the moment. 

 Note that o-b-load-session additionally loads the body of the block into
 the session; and that switch-session, if called with a prefix arg,
 assigns variables from the header args in the session[1]. These are
 bound to M-down and M-up when on a code block.

Ah yes, didn't know these ones either...

 Oh, and also... org-babel-switch-to-session and org-babel-load-session
 use the emacs function pop-to-buffer. That means that there's all sorts
 of extra control you can have over how the windows are displayed. See
 the documentation for things like pop-to-buffer, pop-up-windows,
 split-window-sensibly, special-display-buffer-names, etc.

Yes, I feel I have some more customization opportunities lying in
these documentation pages... 

Thanks for your detailed answer !

-- 
Julien



___
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: xemacs21 support broke from 35f to 35g

2010-04-13 Thread Sebastien Delafond
On 2010-04-13, Carsten Dominik carsten.domi...@gmail.com wrote:
 I fixed that.

thank you ! I get a 404 when tryign to access
http://orgmode.org/org-6.35i.tar.gz, but I'm sure this will get fixed
soon ;)

 org-freemind needs the rx library.  I am now explicitly requireing
 rx, so people will know what is missing.

cool, thanks !

Cheers,

--Seb



___
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: xemacs21 support broke from 35f to 35g

2010-04-13 Thread Carsten Dominik


On Apr 13, 2010, at 11:45 AM, Sebastien Delafond wrote:


On 2010-04-13, Carsten Dominik carsten.domi...@gmail.com wrote:

I fixed that.


thank you ! I get a 404 when tryign to access
http://orgmode.org/org-6.35i.tar.gz, but I'm sure this will get fixed
soon ;)


My mistake - it is up now.

- Carsten




org-freemind needs the rx library.  I am now explicitly requireing
rx, so people will know what is missing.


cool, thanks !

Cheers,

--Seb



___
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] Re: xemacs21 support broke from 35f to 35g

2010-04-13 Thread Sebastien Delafond
 org-freemind needs the rx library.  I am now explicitly requireing
 rx, so people will know what is missing.

Is there any easy way we could by default disable org-freemind for the
xemacs family, as they do not include rx.el ?

Cheers,

--Seb



___
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: confused about logging

2010-04-13 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 On Apr 13, 2010, at 4:22 AM, Nick Dokos wrote:

 Bernt Hansen be...@norang.ca wrote:

 Dan Griswold dgris...@rochester.rr.com writes:

 Hi all,

 I have a repeating task, like so:

 *** TODO Print copies   
 :@PRINT:
SCHEDULED: 2010-03-09 Tue ++1w

 I would like to have things set so that when I change the todo
 state,
 and the schedule advances, then there will not be any logging done.

 However, with org-log-repeat, org-log-done, and org-log-done-with- 
 time
 all set to nil (indeed, it appears all org-log-X vars are set to
 nil),
 I get a timestamp in a property drawer when I advance the
 schedule, like
 so:

 *** TODO Print copies   
 :@PRINT:
SCHEDULED: 2010-04-13 Tue ++1w
:PROPERTIES:
:LAST_REPEAT: [2010-04-12 Mon 20:06]
:END:

 This happens with an emacs environment started with emacs -q, and
 a file
 that contains only the above entry.

 I don't need or want such information recorded. But I don't know
 how to
 stop it, and I don't know where else to look for the responsible
 variable.

 Any hints?

 Set the property

  :LOGGING:  nil


 I don't think that works - and I also don't think that there is a
 way to
 do what Dan wants, currently.  The code in org.el:org-auto-repeat- 
 maybe
 looks like this:


(when repeat
  (if (eq org-log-repeat t) (setq org-log-repeat 'state))
  (setq to-state (or (org-entry-get nil REPEAT_TO_STATE)
   org-todo-repeat-to-state))
  (unless (and to-state (member to-state org-todo-keywords-1))
  (setq to-state (if (eq interpret 'type) last-state head)))
  (org-todo to-state)
  (org-entry-put nil LAST_REPEAT (format-time-string
  (org-time-stamp-format t t)))



 and the LAST_REPEAT property is set unconnditionally. At least, that's
 how I read it.


 This is correct.  Should we change this? LAST_REPEAT is used for the
 clock display
 of repeating tasks.

It's not really useful if there is no clocking data for the task -- so
maybe we can skip setting it when no clock data exists?

-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] Suggestions needed for handling ideas

2010-04-13 Thread Ali Tofigh
On Mon, Apr 12, 2010 at 16:38, John Hendy jw.he...@gmail.com wrote:
 Frequently my notes on meetings contain ideas for stuff to try. Does
 anyone have any advice on how to handle these?

 I'm very 'idea' centered as well. See some 'ideas' below :)

;-)

 What about:

 ### IDEA 1 ###
 --- file: project_name.org ---
 * Journals
 ** Title date
 Notes about stuff

 * Ideas
 ** TODO idea 1 date
 ** WORKING idea 2
 ** DONE idea 3 date

 Something like this? This could track ideas in each project and if you do
 use them as TODOs you can pull them up with agenda to check ideas across all
 projects.

What I would like is to keep my ideas in their context and not
separately. Ideally I just want to write my meeting notes as usual but
be able to somehow mark certain sections as ideas to come back to
later. I keep my real todos, the ones I want to work on, separately as
you suggest.

 ### IDEA 2 ###
 - a remember template for ideas?
 - file keystrokes set to set the file to a particular project's file with a
 simple key entry?
 - or... one file called 'ideas.org' divided by projects (or just tag idea
 headlines with the project name)
 --- then use remember-mode to add ideas to that file when you're in
 meetings/taking notes in a different, dedicated project file?

Same as above...

I really really would like some feature to be able to highlight some
part of my text (or even better a list item) as an idea. This way my
ideas could be interspersed in the level I'm in. It doesn't seem
logical to me to create a new heading for each idea in the middle of
my notes.

=== project1.org ===
* journal
** meeting 1
   notes...

   - idea 1 :idea:
   - idea 2 :idea:

   notes contd... (this is same level still as notes above under
heading meeting 1)

* tasks
** todo1
*** subtask1
** todo2

 I'm so new I can hardly believe I'm proposing these ideas as I don't even
 know that I know everything necessary to implement them! But... these are
 things i ponder so I thought I'd share...

I appreciate it. It's fun to share ideas!

/Ali


___
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] Embedding org-syntax in program source

2010-04-13 Thread LanX
Hi

is there a way to make org-mode ignore comment characters at the beginning
of a line?

Such that
;* Head

or
#** Subhead

work in elisp or perl?

I know of org-babel, but the code produced is no legal Lisp/Perl code
anymore...

Thanks
  Rolf
___
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: xemacs21 support broke from 35f to 35g

2010-04-13 Thread Carsten Dominik

I believe a Makefile guru could remove it - I cannot.

- Carsten

On Apr 13, 2010, at 1:15 PM, Sebastien Delafond wrote:


org-freemind needs the rx library.  I am now explicitly requireing
rx, so people will know what is missing.


Is there any easy way we could by default disable org-freemind for the
xemacs family, as they do not include rx.el ?

Cheers,

--Seb



___
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] [patch] Extended link capabilities to Wanderlust messages

2010-04-13 Thread David Maus
Carsten Dominik wrote:
Hi David, thanks for this!  I have applied the patch.
I had to apply it by hand - so please double-check.

Everything is where it belongs.

 -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


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


[Orgmode] removing timestamps from the agenda

2010-04-13 Thread Brody, William (Buck)
From the agenda, how can I remove a timestamp?  I can add one with C-c C-d, or 
modify one with S-right, but how do I remove one?

Thanks
___
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: floating, non scheduled agenda items

2010-04-13 Thread Łukasz Stelmach
Richard Riley rileyrg...@gmail.com writes:

 Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes:
 Richard Riley rileyrg...@gmail.com writes:
 Richard Riley rileyrg...@gmail.com writes:

 What would be the best way to include in my daily agenda a section of
 non schedule items which are there every day until I decide to
 remove them.
 [...]
 I needed to email Jan a little more for him to explain the procedure
 [...]
 ,
 | You can replace the default agenda with a custom agenda if you specify
 | a as the accesskey for the custom agenda.
 [...]
 | - Jan
 `

 Personaly I'd recomend you leaving the default agenda intact and adding
 *your* own under 'A'. It's nice to have the *real* defaults at hand from
 time to time.

 I think this does use the real agenda doesn't it?

It is indeed, however, you might want to customise the agenda further.

-- 
Miłego dnia,
Łukasz Stelmach



___
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] removing timestamps from the agenda

2010-04-13 Thread David Maus
Brody, William (Buck) wrote:

From the agenda, how can I remove a timestamp?  I can add one with
C-c C-d, or modify one with S-right, but how do I remove one?

To remove a scheduled or deadline simply use a prefix: C-u C-c C-d
removes the deadline, C-u C-c C-s a scheduled timestamp.

HTH
 -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


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


[Orgmode] Org files not displaying on Github

2010-04-13 Thread Ross A. Laird

Some of my org files do not display on github. Here is the error I
received from Github tech support:

,
|  require 'org-ruby'
| = true
|  Orgmode::Parser.new(File.read(/Users/.../laird.org)).to_html
| NoMethodError: undefined method `paragraph_type' for 
| ** Weight:String
| from /.../org-ruby/parser.rb:105:in `initialize'
| from /.../org-ruby/parser.rb:91:in `each'
| from /.../org-ruby/parser.rb:91:in `initialize'
| from (irb):3:in `new'
| from (irb):3
`

Anybody know what's going on here? 
(Most of my org files display without difficulty on Github.)

Ross

-- 
Ross A. Laird, PhD
www.rosslaird.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] question on missing scheduled entries in agenda

2010-04-13 Thread Emin.shopper Martinian.shopper
Thanks, I was not aware that I needed to customize the ical export.

Thanks!

On Fri, Apr 2, 2010 at 4:03 AM, David Maus dm...@ictsoc.de wrote:
 Emin.shopper Martinian.shopper wrote:
Dear Experts,

I have noticed that if I have a nested entry in an org-mode file, it
does not get picked up properly in my agenda.

For example, if I have something like the stuff shown below in an
org-mode file and I create an agenda or export it, I sometimes get an
entry for the top level item which includes the bottom level item. For
example, if I do C-c C-e c and export this to an icalendar agenda
then I get an entry for PLAN even though it is not schedule but I get
no entry for quick morning stuff even though it is scheduled. Any
thoughts on what I can do so that such scheduled items are handled
properly?

 First let's single out the problem: Is it about iCal export or agenda
 display?  I've tried the example and both entries show up in the
 agenda (M-x org-agenda RET a).

 For the iCal export I get:

 ,
 | BEGIN:VCALENDAR
 | VERSION:2.0
 | X-WR-CALNAME:OrgMode
 | PRODID:-//David Maus//Emacs with Org-mode//EN
 | X-WR-TIMEZONE:CEST
 | CALSCALE:GREGORIAN
 | BEGIN:VEVENT
 | UID: TS-b9d39029-8b23-49a4-81ea-968da38c60ad
 | DTSTART;VALUE=DATE:20100322
 | DTEND;VALUE=DATE:20100323
 | SUMMARY:PLAN                                           :PLAN:DAILY:
 | DESCRIPTION: ** quick morning stuff
 | CATEGORIES:PLAN,DAILY,test
 | END:VEVENT
 | END:VCALENDAR
 `

 So indeed: The scheduled subheadline doesn't get an entry but is used
 as description of the PLAN headline.

 Did you customize the iCal export properly (M-x customize-group RET
 org-export-icalendar RET)?

 If not this behavior is actually okay.  There is this variable with
 the default setting:

 ,
 | Hide Org Icalendar Use Scheduled:
 | [ SCHEDULED timestamps in non-TODO entries become events
 | [ ] SCHEDULED timestamps in TODO entries become events
 | [X] SCHEDULED in TODO entries become start date
 |    State: STANDARD.
 |    Contexts where iCalendar export should use a scheduling time stamp. More
 `

 So SCHEDULED entries are only exported when they have a TODO keyword.

 HTH
  -- David

 --
 OpenPGP... 0x99ADB83B5A4478E6
 Jabber dmj...@jabber.org
 Email. dm...@ictsoc.de



___
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: emacs/org-mode on Droid?

2010-04-13 Thread Matthew Jones
I am the developer/maintainer of MobileOrg for Android and I'd appreciate
any feedback on the application.   You can find more information and
download links on the wiki:
http://wiki.github.com/matburt/mobileorg-android/

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Mon, Apr 12, 2010 at 10:08 PM, Daniel Martins daniel...@gmail.comwrote:

 Please, share your first impressions!!! I just bought an Android phone
 and would like to take similar routes.

 Daniel

 2010/2/16 David Rogoff da...@therogoffs.com:
  On 2010-02-16 13:47:59 -0800, Tom Tobin said:
 
  On Tue, Feb 16, 2010 at 12:18 PM, David Rogoff da...@therogoffs.com
  wrote:
 
  Hi all.
 
  New org-mode convert also looking at new phones.  It looks like theMoto
  Droid would be great for running org-mode.  Has anyone ported emacs to
 this
  platform and gotten org-mode running?
 
  I just switched from my iPhone back to an Android phone; I came across
  this project:
 
  http://github.com/matburt/mobileorg-android
 
  I haven't tried it yet, though.
 
  Thanks - I'll take a look.
 
 
 
 
  ___
  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

___
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] Embedding org-syntax in program source

2010-04-13 Thread LanX
Oops, forgot to reply to the list... 8-| ..

-- Forwarded message --

Thanks Eric,


see this thread http://thread.gmane.org/gmane.emacs.orgmode/7957, as I
 recall basically it's possible to get most org-like behavior using
 orgstruct-mode, but many are continually frustrated by the remaining
 missing 20% of behavior.


Hmm, for what I read it's NOT easily possible, Tassilo switched back to
outline-minor-mode.




  I know of org-babel, but the code produced is no legal Lisp/Perl code
  anymore...

 could you please elaborate,
 ...

 I'm currently using Org-babel to write code in a variety of programming
 languages, and I've had no problems running the tangled code.


Thats the point you have to tangle the code and furthermore you have to run
emacs to tangle it.

The file as such is not a legal Perl code anymore because of lines starting
with a *.
(never actually worked with babel, but thats what I read from the docs)

And relying on an extra step for code generation is dangerous...

This is for sure acceptable with elisp or multilanguage projects.

Anyway I think, I will do some experiments with using a Code Filter in Perl
which eliminates the org-code. (thats a filter run at execution-time
changing the source before it's fed into the compiler)

Cheers
  Rolf

PS: I forgot to mention that when switching to other modes the highlighting
will also get confused and fly-make will report plenty of syntax problems.
___
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: Problem entering an every-weekday meeting with start time

2010-04-13 Thread Patrick Aikens
*sigh*
I knew it had to be something simple I was missing.  Thanks!

2010/4/12 Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl:
 Patrick Aikens paik...@gmail.com writes:

 I have a meeting I wish to have on my agenda every weekday at the
 appropriate start time.  I have tried the following, which doesn't
 show up in my agenda at all:
 ** Daily Meeting
    %%(memq (calendar-day-of-week date) '(1 2 3 4 5)) 10:30


 How about

 ** Daily Meeting 10:30
    %%(memq (calendar-day-of-week date) '(1 2 3 4 5))


 or

 ** Daily Meeting
 %%(memq (calendar-day-of-week date) '(1 2 3 4 5)) Daily meeting 10:30


 --
 Miłego dnia,
 Łukasz Stelmach



 ___
 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




-- 
SELECT * FROM users WHERE clue  0


___
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] Embedding org-syntax in program source

2010-04-13 Thread Eric Schulte
LanX lanx.p...@googlemail.com writes:

 Oops, forgot to reply to the list... 8-| ..

 -- Forwarded message --

 Thanks Eric,


 see this thread http://thread.gmane.org/gmane.emacs.orgmode/7957, as I
 recall basically it's possible to get most org-like behavior using
 orgstruct-mode, but many are continually frustrated by the remaining
 missing 20% of behavior.


 Hmm, for what I read it's NOT easily possible, Tassilo switched back to
 outline-minor-mode.




  I know of org-babel, but the code produced is no legal Lisp/Perl code
  anymore...

 could you please elaborate,
 ...

 I'm currently using Org-babel to write code in a variety of programming
 languages, and I've had no problems running the tangled code.


 Thats the point you have to tangle the code and furthermore you have to run
 emacs to tangle it.

 The file as such is not a legal Perl code anymore because of lines starting
 with a *.
 (never actually worked with babel, but thats what I read from the docs)


Ah, I see, I was worried that you were having a problem with tangling.
Maybe there is some way to hide the org-mode wrappings with heredoc
style lines (I'm not very familiar with perl, but I hear it is very
flexible about the syntax in source-code files).  Maybe something like

  =for comment

  org-mode text

  * headlines

  etc...

  #+begin_src perl
  =cut

  =for comment
  #+end_src

  more org-mode...


 And relying on an extra step for code generation is dangerous...

 This is for sure acceptable with elisp or multilanguage projects.


Certainly tangling is an extra step, and as a matter of taste not
something many people will want to use, but I wouldn't say it's
dangerous.  I tangle in a couple of very real very large single-language
projects (sometimes with the same code tangling to run on different
platforms) and find it reliable.


 Anyway I think, I will do some experiments with using a Code Filter in
Perl
 which eliminates the org-code. (thats a filter run at execution-time
 changing the source before it's fed into the compiler)


Good luck, if you find a workable solution, I'm sure there'd be interest
to hear about it here.

Best -- Eric


 Cheers
   Rolf

 PS: I forgot to mention that when switching to other modes the highlighting
 will also get confused and fly-make will report plenty of syntax problems.
 ___
 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] Re: emacs/org-mode on Droid?

2010-04-13 Thread Mark Elston

On 4/13/2010 8:42 AM, Matthew Jones wrote:

I am the developer/maintainer of MobileOrg for Android and I'd
appreciate any feedback on the application.   You can find more
information and download links on the wiki:
http://wiki.github.com/matburt/mobileorg-android/

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net



I recently got a Droid (and am enjoying it) and would like to try out
MobileOrg but don't have a WebDAV account and don't really want to
spend money on one for just one purpose (MobileOrg).

My ISP doesn't supply a WebDAV account but it does supply an FTP
site.  Why can't MobileOrg support FTP for those who don't want to
go to the trouble of buying an extra WebDAV account?

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


[Orgmode] org-babel python/shell or gantt charts with gnuplot from within org-mode

2010-04-13 Thread Erik Butz
Hi all,

I have been playing around with org-mode and have been thinking about
the possibility to create gantt charts with org-mode. I did not find
anything in the archives, and todays thread about taskjuggler brought
me back to the subject.

This is a python script hovering around the web (gantt.py) which
enables gant charts with gnuplot. I played around with this a bit so
as to have it accept ISO timestamps (%Y-%m-%dT%H:%M:%S) and or
durations. Now I am looking for a way to execute this from within
org-mode probably using org-babel

The (bash) syntax would be something like

python gantt.py -t Title -i input.txt | gnuplot -persist

I would like to pass an org table to the script instead of the input
file so the equivalent of doing

cat input | python gantt.py -t Title | gnuplot -persist

The input structure is (e.g.)

Task 1  2010-4-2T12:00:00   1   validate
Task 2  2010-4-5T12:00:00   5.25  something
Task 3  2010-4-5T12:00:00   2010-4-10T0:00:00   otherthing
Task 4  5.5 yet another thing
which could well be the column mode representation of a file probably.

I am sorry should this be a bit vague.

Please let me know if I can provide any more information to clarify the problem

Cheers and thanks,

Erik


___
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: emacs/org-mode on Droid?

2010-04-13 Thread Matthew Jones
There are plenty of free webdav services out there, a quick google search
came up with a few...  I haven't used any of them as I run my own on my VPS,
but check out http://www.box.net or http://mydisk.se

Any of these should work fine with MobileOrg

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Tue, Apr 13, 2010 at 1:54 PM, Mark Elston m_els...@comcast.net wrote:

 On 4/13/2010 8:42 AM, Matthew Jones wrote:

 I am the developer/maintainer of MobileOrg for Android and I'd
 appreciate any feedback on the application.   You can find more
 information and download links on the wiki:
 http://wiki.github.com/matburt/mobileorg-android/

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 I recently got a Droid (and am enjoying it) and would like to try out
 MobileOrg but don't have a WebDAV account and don't really want to
 spend money on one for just one purpose (MobileOrg).

 My ISP doesn't supply a WebDAV account but it does supply an FTP
 site.  Why can't MobileOrg support FTP for those who don't want to
 go to the trouble of buying an extra WebDAV account?

 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

___
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-babel python/shell or gantt charts with gnuplot from within org-mode

2010-04-13 Thread Eric Schulte
Erik Butz erik.b...@googlemail.com writes:

 Hi all,

 I have been playing around with org-mode and have been thinking about
 the possibility to create gantt charts with org-mode. I did not find
 anything in the archives, and todays thread about taskjuggler brought
 me back to the subject.

 This is a python script hovering around the web (gantt.py) which
 enables gant charts with gnuplot. I played around with this a bit so
 as to have it accept ISO timestamps (%Y-%m-%dT%H:%M:%S) and or
 durations. Now I am looking for a way to execute this from within
 org-mode probably using org-babel

 The (bash) syntax would be something like

 python gantt.py -t Title -i input.txt | gnuplot -persist

 I would like to pass an org table to the script instead of the input
 file so the equivalent of doing

 cat input | python gantt.py -t Title | gnuplot -persist

 The input structure is (e.g.)

 Task 12010-4-2T12:00:00   1   validate
 Task 22010-4-5T12:00:00   5.25  something
 Task 32010-4-5T12:00:00   2010-4-10T0:00:00   otherthing
 Task 45.5 yet another thing
 which could well be the column mode representation of a file probably.


something like the following in will allow you to pass a table to a
series of shell commands

  #+tblname: tasks
  | Task 1 | 2010-4-2T12:00:00 | 1 | validate   |
  | Task 2 | 2010-4-5T12:00:00 |  5.25 | something  |
  | Task 3 | 2010-4-5T12:00:00 | 2010-4-10T0:00:00 | otherthing |

  #+begin_src sh :var tasks=tasks
echo $tasks |wc
  #+end_src

  #+results:
  : 3  15 130

you can also use a gnuplot block to accept the output of gantt.py, and
once everything is working it can be packaged up into a library of babel
[1] function which could then be called with a short line like.

#+call: gantt(tasks=my-task-table)

Hope that helps, let me know if you have any more questions. -- Eric


 I am sorry should this be a bit vague.

 Please let me know if I can provide any more information to clarify the 
 problem

 Cheers and thanks,

 Erik


 ___
 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

Footnotes: 
[1]  http://orgmode.org/worg/org-contrib/babel/library-of-babel.php



___
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] Plans for synching with Emacs dev sources?

2010-04-13 Thread Óscar Fuentes
Currently I'm using 6.33x, which is the version that comes with Emacs
dev source code. I'll like to use a more recent version of org-mode, and
so I ask if there are plans for upgrading Emacs' org-mode sources with
the current release. If not, I'll use org-mode git sources, although
this would complicate a bit the deployment across several machines.

Thanks.



___
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] Loosing tasks with remember

2010-04-13 Thread Christian Zang
Dear org-enthusiasts,

I have a remember template to file away quick notes and todos that looks like

(setq org-remember-templates
  '((Todo ?t *** TODO %?\n %i\n ~/Org/inbox.org Inbox)))

When a invoke a remember buffer and write something like

*** TODO Task 1

*** TODO Task 2

and file it away in my inbox.org file using C-c C-c everything is fine, but 
when I choose a different headline (level 2) via C-1 C-c C-c, only the first of 
the two tasks will get filed under the chosen headline, the other one 
disappears.

Is this the intended behaviour? Or am I overlooking an important variable, or 
lies the problem in my template? If so, what can I do to change my setup, so 
that every task will get filed under the chosen headline?

I am using the latest org-mode (pulled from git 10 min ago) with emacs 23.1 on 
Mac OS X 10.6. 

Thanks!

Best,
Christian

___
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] Embedding org-syntax in program source

2010-04-13 Thread Dan Davison
LanX lanx.p...@googlemail.com writes:
[...]
  I know of org-babel, but the code produced is no legal Lisp/Perl code
  anymore...

 could you please elaborate,
 ...

 I'm currently using Org-babel to write code in a variety of programming
 languages, and I've had no problems running the tangled code.



Hi Rolf,

 Thats the point you have to tangle the code and furthermore you have to run
 emacs to tangle it.

Right. Given the present forum I presume you are using emacs, so that
shouldn't be a problem per se?

 The file as such is not a legal Perl code anymore because of lines starting
 with a *.
 (never actually worked with babel, but thats what I read from the docs)

I think you may have formed an inaccurate idea of how people are working
with source code in org-mode. It's not just about creating code files
with a bunch of stars in them; it involves embedding source code in
fully-functioning org-mode files (i.e. with headings, tags, properties,
TODO items, tables, links, timestamps etc). So of course these files do
not contain legal Perl code.


 And relying on an extra step for code generation is dangerous...

You would have to explain that assertion. I work on a number of projects
where the code files are generated by tangling, and I'm still here. Also
still here are people whose finished products require the extra step of
running make, latex, gcc compilation etc.


 This is for sure acceptable with elisp or multilanguage projects.

I didn't understand this.

[...]
 PS: I forgot to mention that when switching to other modes the highlighting
 will also get confused and fly-make will report plenty of syntax problems.

I'm not sure what you mean here. When working with code in org-mode, one
uses C-c ' to switch to a language major-mode buffer containing the body
of the source code block. Is that working OK for you?

Dan


 ___
 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] Plans for synching with Emacs dev sources?

2010-04-13 Thread Jan Böcker
On 13.04.2010 22:15, Óscar Fuentes wrote:
 Currently I'm using 6.33x, which is the version that comes with Emacs
 dev source code. I'll like to use a more recent version of org-mode, and
 so I ask if there are plans for upgrading Emacs' org-mode sources with
 the current release. If not, I'll use org-mode git sources, although
 this would complicate a bit the deployment across several machines.

AFAIK that happens whenever a new major version of emacs is released,
which is very infrequently.

Even if the next version of emacs would be just around the corner, you'd
just find yourself in the situation of using a very outdated version
again within a few weeks.

However, deployment across several machines can be easy with git. My
~/.emacs.d is a git repository which contains all my emacs configuration
and elisp library files. I have added org-mode as a submodule here, so
after running git pull  git submodule update on another machine,
everything is in sync again.

I use the org-babel approach to emacs configuration. In my startup.org,
the first toplevel subtree contains code that finds out what machine it
is running on by looking at the hostname and sets the variable
jb/system. I have one toplevel subtree for common configuration and two
for settings specific to one of my two machines.

- Jan


___
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] Plans for synching with Emacs dev sources?

2010-04-13 Thread Eric Schulte
Jan Böcker jan.boec...@jboecker.de writes:

 On 13.04.2010 22:15, Óscar Fuentes wrote:
 Currently I'm using 6.33x, which is the version that comes with Emacs
 dev source code. I'll like to use a more recent version of org-mode, and
 so I ask if there are plans for upgrading Emacs' org-mode sources with
 the current release. If not, I'll use org-mode git sources, although
 this would complicate a bit the deployment across several machines.

 AFAIK that happens whenever a new major version of emacs is released,
 which is very infrequently.


If this is the case, then should we start pushing new versions of
Org-mode to the Emacs development repository at every *Org-mode* version
bumb, rather than at every Emacs version bump?

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


[Orgmode] Are raw org files available on Worg website?

2010-04-13 Thread Dan Davison
Could someone tell me if the plain-text org versions of Worg pages are
published by default on the Worg website, or if there is a way to make
the org file available on Worg for a particular Worg page?

Thanks,

Dan


___
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] [ANN] org-mime -- using orgmode to send html mail?

2010-04-13 Thread Eric S Fraga
Eric,

I have been away a couple of weeks where I have avoided using email as
much as possible.  I have therefore come back to find this whole
incredible thread that has led to org-mime.  Very exciting!  Although
I'm not a big fan of html email in general, an easy to use mime
interface which allows me to embed equations easily is very welcome.

However, it doesn't appear to work very well for me, with org-mode
from git as of a couple of hours ago:

- GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2) of
  2009-11-02 on raven, modified by Debian

- Org-mode version 6.35g (release_6.35g.41.g9cfe)

- Wanderlust/2.15.9 (Almost Unreal)

What I get when I try your example, by copying your original org text
into my email buffer and invoking org-mime-htmlize, is:

,
| | - *tables*
|   | colname one | colname two |
|   |-+-|
|   |   1 |   1 |
|   |   2 |   4 |
|   |   3 |   9 | 
| 
| - *inline images* including latex equations $f(n) = n + \frac{1}{n}
|   \int_{0}^{n}{d_x f(x) + f(n - x)}$ and the results of ditaa blocks,
|   etc...
| 
|   #+begin_src ditaa :file blue.png :cmdline -r
|   +-+
|   | cBLU|
|   | |
|   |++
|   ||cPNK|
|   |||
|   +++
|   #+end_src
| 
| - *blockquotes*
|   #+begin_quote
| HTML e-mail is the use of a subset of HTML (often ill-defined) to
| provide formatting and semantic markup capabilities in e-mail that
| are not available with plain text. -- wikipedia
|   #+end_quote
| 
| - fontified *code blocks* (shown below)
| 
| - and *HTML character* conversion, like \forall character c s.t. \exists
|   h \in /HTML characters/ and c \equiv h, org-html-export of c results
|   in h
| 
| --; charset=US-ASCII

| | 

binRkJ8AWzno7.bin
Description: Binary data


binCrMS27xDLX.bin
Description: Binary data
___
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] Are raw org files available on Worg website?

2010-04-13 Thread Bastien
Hi Dan,

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

 Could someone tell me if the plain-text org versions of Worg pages are
 published by default on the Worg website, or if there is a way to make
 the org file available on Worg for a particular Worg page?

Here it is: http://orgmode.org/worg/sources/

HTH

-- 
 Bastien


___
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] Are raw org files available on Worg website?

2010-04-13 Thread Dan Davison
Bastien bastien.gue...@wikimedia.fr writes:

 Hi Dan,

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

 Could someone tell me if the plain-text org versions of Worg pages are
 published by default on the Worg website, or if there is a way to make
 the org file available on Worg for a particular Worg page?

 Here it is: http://orgmode.org/worg/sources/

Thanks Bastien. I added a link to this in the Pages About Worg section
of the index.

Dan


 HTH


___
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-babel python/shell or gantt charts with gnuplot from within org-mode

2010-04-13 Thread Erik Butz
Hi Eric,

thanks for this information, this already brings me one step further.

There is now another issue which I run into, trying to get this to
work: python lists seem to be a potential problem. In the code there
are several lists which are constructed by a

# Generate gnuplot lines
plot_lines = ['plot ' +
  ', \\\n\t'.join((' '.join(['-1',
   'title %s' % t,
   'with lines',
   'linecolor %s %s ' %
(colorprefix, colors[t]),
   'linewidth 6'])
for t in tasks))]

which cause the program to fail and not to produce any output when accessed.

I can create lists with append('a') however and use them mostly w/o problems.

Is there any know limitation somewhere in org-babel or am I running
into some other problem here?
(in principle this should just be run like in any normal shell, right?)

Again any hints appreciated

Erik

P.S. let me stress that the code works w/o problems from a normal
shell, since otherwise this sounds more like a python question


On Tue, Apr 13, 2010 at 8:51 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Erik Butz erik.b...@googlemail.com writes:

 Hi all,

 I have been playing around with org-mode and have been thinking about
 the possibility to create gantt charts with org-mode. I did not find
 anything in the archives, and todays thread about taskjuggler brought
 me back to the subject.

 This is a python script hovering around the web (gantt.py) which
 enables gant charts with gnuplot. I played around with this a bit so
 as to have it accept ISO timestamps (%Y-%m-%dT%H:%M:%S) and or
 durations. Now I am looking for a way to execute this from within
 org-mode probably using org-babel

 The (bash) syntax would be something like

 python gantt.py -t Title -i input.txt | gnuplot -persist

 I would like to pass an org table to the script instead of the input
 file so the equivalent of doing

 cat input | python gantt.py -t Title | gnuplot -persist

 The input structure is (e.g.)

 Task 1        2010-4-2T12:00:00       1       validate
 Task 2        2010-4-5T12:00:00       5.25      something
 Task 3        2010-4-5T12:00:00       2010-4-10T0:00:00       otherthing
 Task 4        5.5                     yet another thing
 which could well be the column mode representation of a file probably.


 something like the following in will allow you to pass a table to a
 series of shell commands

  #+tblname: tasks
  | Task 1 | 2010-4-2T12:00:00 |                 1 | validate   |
  | Task 2 | 2010-4-5T12:00:00 |              5.25 | something  |
  | Task 3 | 2010-4-5T12:00:00 | 2010-4-10T0:00:00 | otherthing |

  #+begin_src sh :var tasks=tasks
    echo $tasks |wc
  #+end_src

  #+results:
  : 3      15     130

 you can also use a gnuplot block to accept the output of gantt.py, and
 once everything is working it can be packaged up into a library of babel
 [1] function which could then be called with a short line like.

 #+call: gantt(tasks=my-task-table)

 Hope that helps, let me know if you have any more questions. -- Eric


 I am sorry should this be a bit vague.

 Please let me know if I can provide any more information to clarify the 
 problem

 Cheers and thanks,

 Erik


 ___
 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

 Footnotes:
 [1]  http://orgmode.org/worg/org-contrib/babel/library-of-babel.php




___
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-babel python/shell or gantt charts with gnuplot from within org-mode

2010-04-13 Thread Dan Davison
Erik Butz erik.b...@googlemail.com writes:

 Hi Eric,

 thanks for this information, this already brings me one step further.

 There is now another issue which I run into, trying to get this to
 work: python lists seem to be a potential problem. In the code there
 are several lists which are constructed by a

 # Generate gnuplot lines
 plot_lines = ['plot ' +
   ', \\\n\t'.join((' '.join(['-1',
'title %s' % t,
'with lines',
'linecolor %s %s ' %
 (colorprefix, colors[t]),
'linewidth 6'])
 for t in tasks))]

 which cause the program to fail and not to produce any output when accessed.

 I can create lists with append('a') however and use them mostly w/o problems.

 Is there any know limitation somewhere in org-babel or am I running
 into some other problem here?
 (in principle this should just be run like in any normal shell, right?)

Hi Erik,

So have I understood this right that you're following Eric's model and
passing an org table into a shell block whch calls python?
I.e. something like

#+begin_src sh :var tasks=tasks
  echo $tasks | python gantt.py
#+end_src

In that case it should be exactly the same as running the python code in
a shell outside emacs. To debug this, how about capturing the data
that's going into python with

#+begin_src sh :var tasks=tasks
  echo $tasks  input-data-for-python
#+end_src

and then outside emacs doing the equivalent of

python gantt.py  input-data-for-python

Does that reveal the same problem?

Dan


 Again any hints appreciated

 Erik

 P.S. let me stress that the code works w/o problems from a normal
 shell, since otherwise this sounds more like a python question


 On Tue, Apr 13, 2010 at 8:51 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Erik Butz erik.b...@googlemail.com writes:

 Hi all,

 I have been playing around with org-mode and have been thinking about
 the possibility to create gantt charts with org-mode. I did not find
 anything in the archives, and todays thread about taskjuggler brought
 me back to the subject.

 This is a python script hovering around the web (gantt.py) which
 enables gant charts with gnuplot. I played around with this a bit so
 as to have it accept ISO timestamps (%Y-%m-%dT%H:%M:%S) and or
 durations. Now I am looking for a way to execute this from within
 org-mode probably using org-babel

 The (bash) syntax would be something like

 python gantt.py -t Title -i input.txt | gnuplot -persist

 I would like to pass an org table to the script instead of the input
 file so the equivalent of doing

 cat input | python gantt.py -t Title | gnuplot -persist

 The input structure is (e.g.)

 Task 1        2010-4-2T12:00:00       1       validate
 Task 2        2010-4-5T12:00:00       5.25      something
 Task 3        2010-4-5T12:00:00       2010-4-10T0:00:00       otherthing
 Task 4        5.5                     yet another thing
 which could well be the column mode representation of a file probably.


 something like the following in will allow you to pass a table to a
 series of shell commands

  #+tblname: tasks
  | Task 1 | 2010-4-2T12:00:00 |                 1 | validate   |
  | Task 2 | 2010-4-5T12:00:00 |              5.25 | something  |
  | Task 3 | 2010-4-5T12:00:00 | 2010-4-10T0:00:00 | otherthing |

  #+begin_src sh :var tasks=tasks
    echo $tasks |wc
  #+end_src

  #+results:
  : 3      15     130

 you can also use a gnuplot block to accept the output of gantt.py, and
 once everything is working it can be packaged up into a library of babel
 [1] function which could then be called with a short line like.

 #+call: gantt(tasks=my-task-table)

 Hope that helps, let me know if you have any more questions. -- Eric


 I am sorry should this be a bit vague.

 Please let me know if I can provide any more information to clarify the 
 problem

 Cheers and thanks,

 Erik


 ___
 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

 Footnotes:
 [1]  http://orgmode.org/worg/org-contrib/babel/library-of-babel.php




 ___
 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] [ANN] org-mime -- using orgmode to send html mail?

2010-04-13 Thread Eric Schulte
So, for some reason the `org-mime-org-export' helper function is
returning nil on your (and Eric's) machines.  Could you try evaluating
(C-M-x) the following in your *scratch* buffer?

(insert (org-mime-org-export html - first
- second
- third (make-temp-file quick-test)))

When I execute the above it inserts the following into the scratch
buffer

ul
li
first
/li
li
second
/li
li
third
/li
/ul

If instead you get an error, or it inserts nil, then it means that our
systems are somehow different with respect to that function, which is a
slight alteration of `org-run-like-in-org-mode'.

At that point you could try using something like

(org-run-like-in-org-mode 'org-export-as-html)

to export a non-html buffer to html, or you could also try starting up
Emacs with the -Q option, then loading org-mime.el, opening an org-mode
file, and calling org-mime-org-buffer-htmlize, and sending an email to
yourself.

Sorry I can't be of more help, I'm really mystified as to how this
function could be returning nil.

Best -- Eric

Andrew Hyatt ahy...@gmail.com writes:

 Thanks for the response.  I upgraded, now I get a

 Debugger entered--Lisp error: (wrong-type-argument arrayp t)
  substring(t 33)
  (progn (insert org-mime-default-header) (insert body) (write-file tmp-file)
 (org-load-modules-maybe) (unless org-local-vars (setq org-local-vars ...))
 (substring (eval ...) (if ... ... 0)))
  (unwind-protect (progn (insert org-mime-default-header) (insert body)
 (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars ...)
 (substring ... ...)) (and (buffer-name temp-buffer) (kill-buffer
 temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ...
 ... ... ... ... ...) (and ... ...)))
  (with-current-buffer temp-buffer (unwind-protect (progn ... ... ... ... ...
 ...) (and ... ...)))
  (let ((temp-buffer ...)) (with-current-buffer temp-buffer (unwind-protect
 ... ...)))
  (with-temp-buffer (insert org-mime-default-header) (insert body)
 (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars (setq
 org-local-vars ...)) (substring (eval ...) (if ... ... 0)))
  (save-excursion (with-temp-buffer (insert org-mime-default-header) (insert
 body) (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars
 ...) (substring ... ...)))
  org-mime-org-export(org #(\nHTML test\n\n~foo~\n=bar=\n_baz_\n\n| 1 | 2
 |\n| a | b |\n 0 1 (fontified t) 1 11 (fontified t) 11 12 (fontified t) 12
 18 (fontified t) 18 24 (fontified t) 24 30 (fontified t) 30 31 (fontified t)
 31 40 (fontified t face (gnus-cite-1 message-cited-text)) 40 41 (fontified
 t) 41 50 (fontified t face (gnus-cite-1 message-cited-text)) 50 51
 (fontified t)) /tmp/mail2522ZvL)
  (let* ((region-p ...) (html-start ...) (html-end ...) (raw-body ...)
 (tmp-file ...) (body ...) (org-export-skip-text-before-1st-heading nil)
 (org-export-htmlize-output-type ...) (org-export-preserve-breaks
 org-mime-preserve-breaks) (html-and-images ...) (html-images ...) (html
 ...)) (delete-region html-start html-end) (save-excursion (goto-char
 html-start) (insert ... ...)))
  org-mime-htmlize(nil)
  call-interactively(org-mime-htmlize record nil)

 I tried this with orgstruct-mode off and on, but it was the same error
 either way.  Earlier, before I got the latest version, I tried with
 orgstruct-mode on, and it successfull htmlized my mail. But, when I received
 it, the mail only contained the word nil.

 On Mon, Apr 12, 2010 at 1:22 PM, Eric Schulte schulte.e...@gmail.comwrote:

 Hi Andrew,

 Thanks for the report.  My guess is that somehow the call to
 org-export-as-html is erroring out because some org-mode variables
 aren't being set, maybe you don't have orgstruct-mode as a minor-mode in
 your email composition -- not that it's required, but that could be the
 difference between our setups which is causing you to see the bug and
 not me.

 I've changed the `org-mime-org-export' so it more closely mimics the
 `org-run-like-in-org-mode' wrapping function, which should hopefully fix
 this problem.  Please let me know either way, and if the problem
 persists we can try to figure out exactly which variable isn't being
 initialized.

 Thanks for the report! -- Eric

 Andrew Hyatt ahy...@gmail.com writes:

  This looks great.  However, I get an error on my test mail:
 
  This is should be HTML mode.
 
  ~foo~
  =bar=
  _baz_
 
  | Table | A |
  | 1 | 2 |
 
  On calling org-mime-htmlize
 
  Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-match(nil #(This is should be HTML mode. 0 28 (fontified t)))
byte-code(\304\211. \305\n \\203A
org-html-handle-time-stamps(#(This is should be HTML mode. 0 28
  (fontified t)))
byte-code( \203.
org-export-as-html(nil nil nil string t)
(let nil (org-export-as-html nil nil nil (quote string) t))
eval((let nil (org-export-as-html nil nil nil (quote string) t)))
(progn (insert org-mime-default-header) (insert body) (write-file
  tmp-file) (eval 

Re: [Orgmode] [ANN] org-mime -- using orgmode to send html mail?

2010-04-13 Thread Eric Schulte
Hi Eric,

It looks like you're having the same issue as Andrew.  Could you try the
suggestions I put in the email to him and let me know the results?

Thanks -- Eric

Eric S Fraga ucec...@ucl.ac.uk writes:

 Eric,

 I have been away a couple of weeks where I have avoided using email as
 much as possible.  I have therefore come back to find this whole
 incredible thread that has led to org-mime.  Very exciting!  Although
 I'm not a big fan of html email in general, an easy to use mime
 interface which allows me to embed equations easily is very welcome.

 However, it doesn't appear to work very well for me, with org-mode
 from git as of a couple of hours ago:

 - GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2) of
   2009-11-02 on raven, modified by Debian

 - Org-mode version 6.35g (release_6.35g.41.g9cfe)

 - Wanderlust/2.15.9 (Almost Unreal)

 What I get when I try your example, by copying your original org text
 into my email buffer and invoking org-mime-htmlize, is:

 ,
 | | | 


___
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: Loosing tasks with remember

2010-04-13 Thread Bernt Hansen
Christian Zang christian.z...@fh-weihenstephan.de writes:

 Dear org-enthusiasts,

 I have a remember template to file away quick notes and todos that looks like

 (setq org-remember-templates
   '((Todo ?t *** TODO %?\n %i\n ~/Org/inbox.org Inbox)))

 When a invoke a remember buffer and write something like

 *** TODO Task 1

 *** TODO Task 2

 and file it away in my inbox.org file using C-c C-c everything is fine, but 
 when I choose a different headline (level 2) via C-1 C-c C-c, only the first 
 of the two tasks will get filed under the chosen headline, the other one 
 disappears.

 Is this the intended behaviour? Or am I overlooking an important variable, or 
 lies the problem in my template? If so, what can I do to change my setup, so 
 that every task will get filed under the chosen headline?

 I am using the latest org-mode (pulled from git 10 min ago) with emacs 23.1 
 on Mac OS X 10.6. 

 Thanks!

Hi Christian,

Yes this is intended behaviour (sort of).  Remember mode is designed for
one task three per filing operation.  I think it files multiple tasks in
the default save configuration but if you file to a target only the
first task is filed.

To work around this I would either invoke remember multiple times, one
for each task or provide a parent task to hold your multiple TODO
entries like this

* TODO refile task
** TODO Task 1
** TODO Task 2

then you refile the entire tree to the target destination.

HTH,
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] [ANN] org-mime -- using orgmode to send html mail?

2010-04-13 Thread Andrew Hyatt
I do get the same result you do.  Hopefully, I'll have some time tomorrow to
look into the issue.  RIght now, though, my problem is not the nil, but the
error I reported in my previous email.

On Tue, Apr 13, 2010 at 8:57 PM, Eric Schulte schulte.e...@gmail.comwrote:

 So, for some reason the `org-mime-org-export' helper function is
 returning nil on your (and Eric's) machines.  Could you try evaluating
 (C-M-x) the following in your *scratch* buffer?

 (insert (org-mime-org-export html - first
 - second
 - third (make-temp-file quick-test)))

 When I execute the above it inserts the following into the scratch
 buffer

 ul
 li
 first
 /li
 li
 second
 /li
 li
 third
 /li
 /ul

 If instead you get an error, or it inserts nil, then it means that our
 systems are somehow different with respect to that function, which is a
 slight alteration of `org-run-like-in-org-mode'.

 At that point you could try using something like

 (org-run-like-in-org-mode 'org-export-as-html)

 to export a non-html buffer to html, or you could also try starting up
 Emacs with the -Q option, then loading org-mime.el, opening an org-mode
 file, and calling org-mime-org-buffer-htmlize, and sending an email to
 yourself.

 Sorry I can't be of more help, I'm really mystified as to how this
 function could be returning nil.

 Best -- Eric

 Andrew Hyatt ahy...@gmail.com writes:

  Thanks for the response.  I upgraded, now I get a
 
  Debugger entered--Lisp error: (wrong-type-argument arrayp t)
   substring(t 33)
   (progn (insert org-mime-default-header) (insert body) (write-file
 tmp-file)
  (org-load-modules-maybe) (unless org-local-vars (setq org-local-vars
 ...))
  (substring (eval ...) (if ... ... 0)))
   (unwind-protect (progn (insert org-mime-default-header) (insert body)
  (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars
 ...)
  (substring ... ...)) (and (buffer-name temp-buffer) (kill-buffer
  temp-buffer)))
   (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ...
  ... ... ... ... ...) (and ... ...)))
   (with-current-buffer temp-buffer (unwind-protect (progn ... ... ... ...
 ...
  ...) (and ... ...)))
   (let ((temp-buffer ...)) (with-current-buffer temp-buffer
 (unwind-protect
  ... ...)))
   (with-temp-buffer (insert org-mime-default-header) (insert body)
  (write-file tmp-file) (org-load-modules-maybe) (unless org-local-vars
 (setq
  org-local-vars ...)) (substring (eval ...) (if ... ... 0)))
   (save-excursion (with-temp-buffer (insert org-mime-default-header)
 (insert
  body) (write-file tmp-file) (org-load-modules-maybe) (unless
 org-local-vars
  ...) (substring ... ...)))
   org-mime-org-export(org #(\nHTML test\n\n~foo~\n=bar=\n_baz_\n\n| 1 |
 2
  |\n| a | b |\n 0 1 (fontified t) 1 11 (fontified t) 11 12 (fontified t)
 12
  18 (fontified t) 18 24 (fontified t) 24 30 (fontified t) 30 31 (fontified
 t)
  31 40 (fontified t face (gnus-cite-1 message-cited-text)) 40 41
 (fontified
  t) 41 50 (fontified t face (gnus-cite-1 message-cited-text)) 50 51
  (fontified t)) /tmp/mail2522ZvL)
   (let* ((region-p ...) (html-start ...) (html-end ...) (raw-body ...)
  (tmp-file ...) (body ...) (org-export-skip-text-before-1st-heading nil)
  (org-export-htmlize-output-type ...) (org-export-preserve-breaks
  org-mime-preserve-breaks) (html-and-images ...) (html-images ...) (html
  ...)) (delete-region html-start html-end) (save-excursion (goto-char
  html-start) (insert ... ...)))
   org-mime-htmlize(nil)
   call-interactively(org-mime-htmlize record nil)
 
  I tried this with orgstruct-mode off and on, but it was the same error
  either way.  Earlier, before I got the latest version, I tried with
  orgstruct-mode on, and it successfull htmlized my mail. But, when I
 received
  it, the mail only contained the word nil.
 
  On Mon, Apr 12, 2010 at 1:22 PM, Eric Schulte schulte.e...@gmail.com
 wrote:
 
  Hi Andrew,
 
  Thanks for the report.  My guess is that somehow the call to
  org-export-as-html is erroring out because some org-mode variables
  aren't being set, maybe you don't have orgstruct-mode as a minor-mode in
  your email composition -- not that it's required, but that could be the
  difference between our setups which is causing you to see the bug and
  not me.
 
  I've changed the `org-mime-org-export' so it more closely mimics the
  `org-run-like-in-org-mode' wrapping function, which should hopefully fix
  this problem.  Please let me know either way, and if the problem
  persists we can try to figure out exactly which variable isn't being
  initialized.
 
  Thanks for the report! -- Eric
 
  Andrew Hyatt ahy...@gmail.com writes:
 
   This looks great.  However, I get an error on my test mail:
  
   This is should be HTML mode.
  
   ~foo~
   =bar=
   _baz_
  
   | Table | A |
   | 1 | 2 |
  
   On calling org-mime-htmlize
  
   Debugger entered--Lisp error: (wrong-type-argument stringp nil)
 string-match(nil #(This is should be HTML mode. 0 28 (fontified
 t)))