[Orgmode] Export org-mode to .ics (on FTP-Server)

2007-04-11 Thread phil

Hello,

I'm using org-mode to keep track of my todos & events & to store  
stuff. I've an org-mode file (events.org) that contains all upcoming  
events (music, sports...).


I've setup my blog to show the next events that are taken from a .ics- 
file, that is stored on my webserver.


So the current workflow is:

1. Editing my events.org-file
2. Exporting this file to an .ics
3. Uploading the .ics file to my webserver using FTP

QUESTION:
Is it possibile to upload the .ics file after exporting in one step  
from emacs?


-  Phil


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] M-x lifesnap (and an itty bitty org-agenda problem i'm having)

2007-04-11 Thread Carsten Dominik


On Apr 6, 2007, at 15:06, David O'Toole wrote:


Hello everyone. I'm working on a very small (but very useful to me)
piece of software called Lifesnap. It is compatible with org-mode and
potentially of interest to org-people so I am mentioning it here.

The idea is to get a single-key overview of the output of various
Emacs packages I use to keep myself organized. This way I can more
easily "get in sync" with my information.

the webpage (with screenshot) is here:
http://dto.freeshell.org/notebook/LifeSnap.html

It's currently very tiny and with some bugs, but I already find it
useful. Eventually I would like it to behave much like the Evolution
Summary page, showing RSS feeds, weather, mail messages, and so on.
But it also can support any kind of custom "emacs feed" you can think
up. So org-agenda is one of the "plugins".

Speaking of which, there is a slight problem with org-agenda when
I switch weeks in the agenda week view, it clobbers the nice window
configuration. Is there any way to prevent this? I'm not sure why
changing weeks should alter the windows.


(setq org-agenda-window-setup 'current-window)




Anyway, I'm interested in hearing your feedback on lifesnap and seeing
what ideas/suggestions people may have.

-David


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Idea: Agenda Search publish?

2007-04-11 Thread chris

On 05/04/07, Jason F. McBrayer <[EMAIL PROTECTED]> wrote:


"David O'Toole" <[EMAIL PROTECTED]> writes:

> I think this means being able to publish static HTML from the various
> views given by the agenda. So for example you could set up a timer to
> publish your agenda each day (assuming you run emacs for months like I
> do) and then if you are away from home, check your website to see the
> HTML agenda.

Even taking the fancy publishing and timer stuff out of it, it would
be actually quite useful to be able just to export to html (or
whatever other target).   For example, to produce printed context
lists for away-from-the-computer contexts.

So, this is a function I use to htmlize the agenda buffer.  Very basic,

but works for me to be able to see my TODOs away from my desktop

(defun cw-print-agenda ()
 "htmlize org-mode's agenda"
 (interactive
"P")

 (require
'htmlize)

 (let ((todo-buffer "*Org
Agenda*"))
   (org-todo-list
0)

   (set-buffer
(htmlize-buffer))

   (write-file
"~/public_html/Todo.html")


(kill-this-buffer)

   (kill-buffer todo-buffer)))

Then I have a cron job to copy that to an external web server.

hth, C.
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Export org-mode to .ics (on FTP-Server)

2007-04-11 Thread Bastien
phil <[EMAIL PROTECTED]> writes:

> QUESTION:
> Is it possibile to upload the .ics file after exporting in one step from
> emacs?

Maybe doing it from Emacs is not as straightforward as doing it with a
simple script.

Here is an example of such a script -- it launches Emacs in batch mode,
takes your-calendar.org, converts it into a .ics file, then upload this
file to a remote host with rsync.


#!/bin/bash

/usr/local/bin/emacs --batch --eval \
"(progn (load-file \"~/elisp/org/org.el\") \
(load-file \"~/elisp/org/org-install.el\") \
(load-file \"~/elisp/org-batch-config.el\") \
(setq org-icalendar-combined-name \"Your Calendar\") \
(setq org-combined-agenda-icalendar-file 
\"~/org/cal/your-calendar.ics\") \
(setq org-agenda-files (quote (\"~/org/cal/your-calendar.org\"" \
-f org-export-icalendar-combine-agenda-files

/usr/bin/rsync -rtv ~/org/cal/your-calendar.ics -e ssh [EMAIL 
PROTECTED]:/home/login/cal/


Regards,

-- 
Bastien


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: 4.70 org-goto bug

2007-04-11 Thread Leo
On 2007-04-11, Carsten Dominik said:

> I cannot reproduce that bug.  Anyone?
>
> - Carsten

I can't reproduce it either. However, on the first heading, 'b' will
move to the first line of the buffer even it is not a heading. Is this
intentional?

To reproduce:
   o  'C-c C-j'
   o  hit 'u' until on level-1 heading
   o  hit 'b' all the way

You will see cursor eventually located in a non-heading line and 'f'
won't be able to move back to heading line although 'n' can.

Sample org file:
,
|   #+STARTUP: content
|   * Head 1
|   * Head 2
`

>
> On Apr 9, 2007, at 12:13, Rick Moynihan wrote:
>
>> Hi, I've been playing with org-mode 4.70 and I'm really liking the
>> multiple TODO sequences.
>>
>> However, I seem to have encountered a bug with org-goto.  When
>> navigating between headings of the same level with "f" and "b", if I
>> try and move too far (i.e. I'm at either the first or last level of
>> indentation and I push f/b respectively) I get the error:
>>
>> error "before first heading".
>>
>> Then ALL of my emacs keybindings fail, I can't seem to switch
>> buffers or even kill the debug buffer.

-- 
Leo  (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: 4.70 org-goto bug

2007-04-11 Thread Leo
On 2007-04-11, Carsten Dominik said:

> I cannot reproduce that bug.  Anyone?
>
> - Carsten

I can't reproduce it either. However, on the first heading, 'b' will
move to the first line of the buffer even it is not a heading. Is this
intentional?

To reproduce:
   o  'C-c C-j'
   o  hit 'u' until on level-1 heading
   o  hit 'b' all the way

You will see cursor eventually located in a non-heading line and 'f'
won't be able to move back to heading line although 'n' can.

Sample org file:
,
|   #+STARTUP: content
|   * Head 1
|   * Head 2
`

> On Apr 9, 2007, at 12:13, Rick Moynihan wrote:
>
>> Hi, I've been playing with org-mode 4.70 and I'm really liking the
>> multiple TODO sequences.
>>
>> However, I seem to have encountered a bug with org-goto.  When
>> navigating between headings of the same level with "f" and "b", if I
>> try and move too far (i.e. I'm at either the first or last level of
>> indentation and I push f/b respectively) I get the error:
>>
>> error "before first heading".
>>
>> Then ALL of my emacs keybindings fail, I can't seem to switch
>> buffers or even kill the debug buffer.

-- 
Leo  (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Idea: Agenda Search publish?

2007-04-11 Thread Bastien
chris <[EMAIL PROTECTED]> writes:

> So, this is a function I use to htmlize the agenda buffer.  Very basic,
> but works for me to be able to see my TODOs away from my desktop
>
> (defun cw-print-agenda () 
>   "htmlize org-mode's agenda" 
>   (interactive "P")   
>   
>   (require 'htmlize)  
>   
>   (let ((todo-buffer "*Org Agenda*")) 
>   
> (org-todo-list 0) 
>   
> (set-buffer (htmlize-buffer)) 
>   
> (write-file "~/public_html/Todo.html")
>   
> (kill-this-buffer)
>   
> (kill-buffer todo-buffer)))

I guess (interactive "P") should be (interactive) only, and (org-todo-list
0) should be replaced by something like (org-todo-list "TODO") since 4.70.

Nice use of htmlize though!

-- 
Bastien


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Idea: Agenda Search publish?

2007-04-11 Thread chris


I guess (interactive "P") should be (interactive) only, and (org-todo-list
0) should be replaced by something like (org-todo-list "TODO") since 4.70.



I really do need to learn better lisp, and, yes, my org-mode is quite out of
date.  Thanks for the tips!  C.
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Idea: Agenda Search publish?

2007-04-11 Thread Leo
On 2007-04-11, chris said:

> Even taking the fancy publishing and timer stuff out of it, it would
> be actually quite useful to be able just to export to html (or
> whatever other target).   For example, to produce printed context
> lists for away-from-the-computer contexts.
>
> So, this is a function I use to htmlize the agenda buffer.  Very
> basic, but works for me to be able to see my TODOs away from my
> desktop
[...]

This doesn't make efficient use of what is already in org i.e. the org
publishing tools. For now, I use ps-print-buffer to export to ps files
and then pdf files.

-- 
Leo  (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Bug: lines are commented when they shouldn't

2007-04-11 Thread Leo
On 2007-01-09, Bastien said:

> ===%<=
> #+TITLE: Title example
>
> * First header
>
> Try to edit this line.  Auto-filling does comment each line after this
> #one (<- like this). This bug does not happen when you remove the #+..
> ===%<=
>
> I've seen this bug before, but i think it was not in 4.60.
>
> Regards,

Seems this bug is back in 4.70.

-- 
Leo  (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] '|' in a table

2007-04-11 Thread Leo
Hello, list,

I need to input a LaTeX formula in a cell of a org table. The formula
looks like this:

$mad(x) = 1.4826\cdot median(|x_i-median(x)|)$

However org will think '|' as delimiter of the table. Any solutions?

Thanks,
-- 
Leo  (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] '|' in a table

2007-04-11 Thread William Henney

Hi Leo

On 4/11/07, Leo <[EMAIL PROTECTED]> wrote:

I need to input a LaTeX formula in a cell of a org table. The formula
looks like this:

$mad(x) = 1.4826\cdot median(|x_i-median(x)|)$

However org will think '|' as delimiter of the table. Any solutions?



$mad(x) = 1.4826\cdot median(\vert x_i-median(x)\vert)$

Or, better still

\newcommand{\median}{\mathop{\mathrm{median}}}
\newcommand{\mad}{\mathop{\mathrm{mad}}}
$\mad(x) = 1.4826\cdot \median(\vert x_i-\median(x) \vert)$

Cheers

Will



--

 Dr William Henney, Centro de Radioastronomía y Astrofísica,
 Universidad Nacional Autónoma de México, Campus Morelia


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: '|' in a table

2007-04-11 Thread Leo
Dear William,

On 2007-04-11, William Henney said:

>> I need to input a LaTeX formula in a cell of a org table. The formula
>> looks like this:
>>
>> $mad(x) = 1.4826\cdot median(|x_i-median(x)|)$
>>
>> However org will think '|' as delimiter of the table. Any solutions?
>>
>
> $mad(x) = 1.4826\cdot median(\vert x_i-median(x)\vert)$
>
> Or, better still
>
> \newcommand{\median}{\mathop{\mathrm{median}}}
> \newcommand{\mad}{\mathop{\mathrm{mad}}}
> $\mad(x) = 1.4826\cdot \median(\vert x_i-\median(x) \vert)$
>
> Cheers
>
> Will

That's wonderful answer. Thanks.

regards,
-- 
Leo  (GPG Key: 9283AA3F)


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [bug] infinite loop

2007-04-11 Thread Leo
Another bug in 4.70.

before the first level-1 heading, typing "M-RET" will enter emacs into
infinite loop.

,[ Backtrace ]
| Debugger entered--Lisp error: (quit)
|   looking-at("[   ]*$")
|   (if (looking-at "[  ]*$") (setq ind1 ind-empty) (skip-chars-forward "   
") (setq ind1 (current-column)))
|   (while t (beginning-of-line 0) (if (< ... limit) (throw ... nil)) (if 
(looking-at "[]*$") (setq ind1 ind-empty) (skip-chars-forward "   
") (setq ind1 ...)) (if (< ind1 ind) (throw ... ...)))
|   (catch (quote exit) (while t (beginning-of-line 0) (if ... ...) (if ... ... 
... ...) (if ... ...)))
|   (if (catch (quote exit) (while t ... ... ... ...)) nil (goto-char pos) 
(error "Not in an item"))
|   (if (org-at-item-p) (beginning-of-line 1) (beginning-of-line 1) 
(skip-chars-forward "   ") (setq ind (current-column)) (if (catch ... ...) 
nil (goto-char pos) (error "Not in an item")))
|   (let ((pos ...) (limit ...) (ind-empty ...) ind ind1) (if (org-at-item-p) 
(beginning-of-line 1) (beginning-of-line 1) (skip-chars-forward " ") 
(setq ind ...) (if ... nil ... ...)))
|   org-beginning-of-item()
|   (progn (org-beginning-of-item) (org-at-item-p) (if (org-invisible-p) (error 
"Invisible item")) t)
|   (condition-case nil (progn (org-beginning-of-item) (org-at-item-p) (if ... 
...) t) (error nil))
|   (save-excursion (condition-case nil (progn ... ... ... t) (error nil)))
|   (if (save-excursion (condition-case nil ... ...)) (progn (let* ... ... ... 
... ... ... ...) (org-maybe-renumber-ordered-list) (and checkbox ...) t))
|   (when (save-excursion (condition-case nil ... ...)) (let* (... ... ... pos) 
(cond ... ... ...) (insert bul ...) (just-one-space) (setq pos ...) 
(end-of-line 1) (unless ... ... ...)) (org-maybe-renumber-ordered-list) (and 
checkbox (org-update-checkbox-count-maybe)) t)
|   org-insert-item()
|   (not (org-insert-item))
|   (or force-heading (not (org-insert-item)))
|   (if (or force-heading (not ...)) (progn (let* ... ... ... ... ... ... ... 
...)))
|   (when (or force-heading (not ...)) (let* (... ... pos) (cond ... ... ...) 
(insert head) (just-one-space) (setq pos ...) (end-of-line 1) (unless ... ... 
...) (run-hooks ...)))
|   (if (= (buffer-size) 0) (insert "\n* ") (when (or force-heading ...) (let* 
... ... ... ... ... ... ... ...)))
|   org-insert-heading(nil)
|   call-interactively(org-insert-heading)
|   (cond ((org-at-table-p) (call-interactively ...)) (t (call-interactively 
...)))
|   org-meta-return(nil)
|   call-interactively(org-meta-return)
`

Regards,
-- 
Leo  (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bugs and suggestions for Org 4.70

2007-04-11 Thread Bastien
Hi Carsten and all,

here is a bug report for Org 4.70 + cvs GNU Emacs (23.0.0.1), followed by a
couple of suggestions.

Bugs :

- Comment syntax: M-; still complains that no comment syntax is defined.

- *Bold* words at the beginning of lines are considered headlines when
   folding/unfolding.

- If a list item contains a number that find itself at the beginning of a
  line (within this list item), this number will be considered as a start
  for another ordered-list item when exporting.  For example :

  - « Topicalisation et focalisation dans les phrases françaises en SI »,
Focus and Background in Romance Languages, Vienne, 23-27 Septembre
2007.  (abstract joint)


  ... here "2007" will start a new ordered-list item. 

- Org-mode can't use brackets within a link's label.

  For example: [[http://www.org-fever.org][[org fever]]] - the last "]"
  following "fever" won't be part of the link.  I confess brackets inside
  labels are somewhat exotic and might acutally be confusing, but.. well.

Suggestions :

- I often attach a location to scheduled/deadlined events.  Why not using
  LOCATION in addition to SCHEDULED or DEADLINE ?  This would also end up
  in a new "LOCATION:" entry in the .ics export.  Maybe default locations
  could be defined in some #+LOCATIONS: ?

- TODO keywords could be stripped out from the iCal export - or at least
  this bit of information could be optional ?

- It would be nice if we had some feedback in the modeline telling us what
  project / headline is currently clocked in -- suggestion stolen from the
  planner mailing list...

- Publishing a narrowed buffer should re-order levels of headlines.  For
  example, if the buffer is narrowed to a third-level headline, then this
  headline should be considered as a first-level headline when exporting
  (and the fourth as a second-level headline, and so on...)

- Taking (cadr (current-time-zone)) as the exported timezone in .ics format
  is not always accurate since the car of (current-time-zone) is relevant
  to the definition of the local timezone.

  For example, here in France : (current-time-zone) is (7200 "CEST"), which
  means GMT+2 -- not GMT.  I've found there is timezone.el out there, maybe
  a good resource ?

- Instead of telling us that this is not an ordered list, C-c C-c on
  unordered list items could cycle through these states :

  - ...
  - [ ] ...
  - [X] ...

  ... but maybe the C-c C-c is already *very* busy !

- Org-timeline might be aware of several files ? -- the default files being
  org-agenda-files.  But maybe combination of org-agenda / org-agenda-ndays
  is enough ?

Here it is.  Sorry for the length ... i'm afraid this is a side-effect of
org-mode itself ;)

Best regards,

-- 
Bastien


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] publish archives

2007-04-11 Thread François Lagarde

I meet troubles to publish org archives files. I am certainly wrong but can't
see my mistake..

My archives files are located into a archive directory.

In my org-publish-project-alist I created the following inputs:
   ("org" ... )
   ("archive" :base-directory "~/documents/org/archive/"
 :base-extension "orgarchive"
 :with-section-numbers t
 :archived-trees t
 :headline-levels t
 :publishing-directory "~/public_html/org/archive"
 :table-of-contents t)

I can publish my org project, but none of my archive file. I thought that one of
the reason was the extension (previously org_archive), but I renamed the
archives and changed the base-extension without success...

any helps is welcome.

-- 
François Lagarde


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Feature request: HTML table formatting

2007-04-11 Thread Daniel J. Sinder
Generally, I like the latest incarnation of HTML table formatting,
in particular because I can control the presence of horizontal
lines.  But, now I'm spoiled and would like to do the same for
vertical lines -- on a table-by-table basis.  With the rules=groups
attribute (already the default with org-mode), this can be
accomplished in HTML using the COLGROUP element.

What about a new column delimiter (e.g., '!') to indicate column
groups in addition to columns?  My hope is to have something like
the following be possible:

!!  Col A  |  Col B  |  Col C !
!!-|-|!
!  Row 1 !A1   |   B1|   C1   !
!  Row 2 !A2   |   B2|   C2   !
!!-|-|!

The '!' lines would appear in the HTML rendering, while the "|"
lines would not.  Or, as an ASCII export:
|---+-+-+|
|   | Col A   | Col B   | Col C  |
|---+-+-+|
| Row 1 | A1B1C1 |
| Row 2 | A2B2C2 |
|---+|


Dan




___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [bug] infinite loop

2007-04-11 Thread Jason F. McBrayer
On Wed, 2007-04-11 at 21:06 +0100, Leo wrote:

> before the first level-1 heading, typing "M-RET" will enter emacs into
> infinite loop.

I can confirm this.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode