[Orgmode] Re: export all linked images with a certain property or tag

2007-10-03 Thread Fabian Braennstroem
Bastien schrieb am 10/02/2007 10:47 PM:
 Fabian Braennstroem [EMAIL PROTECTED] writes:
 
 Sounds pretty good for me, but is it possible to insert all
 current agenda headlines into one buffer?
 
 In agenda view, you can use C-x C-w to export the view to HTML. This
 uses htmlize.el, so make sure it's on your system.
 
 See Exporting to a file at the bottom of this info page:
 
   (info (Org)Agenda commands)

Sorry, I was not really clear... not the agenda view should
be exported, but every visible tree should be included in
one indirect buffer. Right now, 'b' shows the
current-headline in an indirect buffer, which I can export
to html like usual. For this purpose there has to be one
global indirect agenda-buffer, which gets all those visible
trees!?

 For now, if you want to skip some headlines during exportation, you will
 have to archive them, or to add the keyword QUOTE (C-c : when you're on
 the headline.)

Thanks, did not know QUOTE before, buf archiving :-)

Fabian



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


[Orgmode] batch printing of diary/agenda without Scheduled items

2007-10-03 Thread pete phillips
Hi

I want to print out my agenda to share/email to colleagues - entries
from the diary file and normal dates associated with things in angled
brackets eg: 2007-10-01 10:30

However, I don't want any Scheduled items to appear (as these are not
appointments/dates as such).

I currently use this:

 /usr/bin/emacs-snapshot -batch -l ~/.xemacs/init.el -eval (setq 
european-calendar-style nil diary-mail-days 7 diary-file
 \/home/pete/diary\)-eval  '(org-batch-agenda a  org-agenda-files 
(quote (~/TODO/HOME.org ~/TODO/SMTL.org)))' 

but it prints the Scheduled dates as well.

What magic incantation do I need to add ? 

Cheers,
Pete


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


[Orgmode] no running clock

2007-10-03 Thread Cezar

Hello,

 I get this error/warning most of the time when trying to clock out.

 This is how my task looks like:

** DONE [#A] my task
   SCHEDULED: 2007-10-03 Wed
   CLOCK: [2007-10-03 Wed 10:36]
   [2007-10-02 Tue]


Any idea why this happens ?

Cheers,
Cezar




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


Re: [Orgmode] FR: Using properties to customize global settings on a per-entry basis

2007-10-03 Thread Carsten Dominik


On Sep 29, 2007, at 5:50, John Wiegley wrote:

I love using #+STARTUP: lognotestate for noting down when and why a 
task

changes state.

However, I have several tasks which recur daily, or once every two 
days.  The
size of these tasks is starting to get crazy, since there are empty 
DONE

messages continually accruing.

I'd like either a) an option to disable lognotestate for recurring 
tasks, or

b) the ability to change the logging state for a particular entry using
properties.


OK, how about a general mechanism like this:  If there is a property
:org-log-done:, it will be used instead of the current value of
org-log-done during TODO state changeing, like

* repetitive entry
  :PROPERTIES:
 :org-log-done: nil
  :END:

This kind of thing could be applied in more contexts - even though we 
will have
to select each context where we like this explicitly - it always needs 
some coding.



- Carsten



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


[Orgmode] Re: export all linked images with a certain property or tag

2007-10-03 Thread Fabian Braennstroem


Bastien schrieb am 10/03/2007 12:24 PM:
 Fabian Braennstroem [EMAIL PROTECTED] writes:
 
 Sorry, I was not really clear... not the agenda view should be
 exported, but every visible tree should be included in one indirect
 buffer. Right now, 'b' shows the current-headline in an indirect
 buffer, which I can export to html like usual. For this purpose there
 has to be one global indirect agenda-buffer, which gets all those
 visible trees!?
 
 I don't think this will be easy to do since showing the current headline
 relies on narrowing the indirect buffer to a subtree, and narrowing more
 than one region is not possible in a single buffer.
 
 It would require to build another buffer with all headlines and subtrees
 that are part of the agenda view.  Interesting!
 

I gave it a small try, very simple and does not really work:

(defun org-agenda-collect-indirect-trees ()
  (interactive)
  (org-agenda-tree-to-indirect-buffer)
  (other-window 1)
  (mark-page)
;  (write-file dummy)
  (write-region nil 0 ~/org/agenda-indirect-buffer.org t)
  (other-window 1)
  (next-line)
  ; Loop over all agenda headlines...
)

not working means, that it appends the whole buffer content
and not just the viewable tree. The next problem would be to
run some kine of loop over all agenda headlines; now I would
just copy the command about 10 times ...
Do you think it is a working approach and maybe you got an
idea about the 'whole-buffer' problem?
Fabian



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


[Orgmode] Re: another GTD question from dto

2007-10-03 Thread Bernt Hansen
David O'Toole [EMAIL PROTECTED] writes:

 I've been in my new simple GTD system for about a week, and it feels
 very comfortable. Thanks again to Carsten and to the org-mode
 community.

 Now I see what was wrong with my previous uses of org-mode. I never
 used any keywords other than TODO and DONE. This didn't give enough
 information, so it meant that every task I might possibly ever do had
 a TODO item. Because of the absurd number of TODO's I never used the
 agenda feature much, and therefore didn't schedule many things; I
 relied on my cell-phone for scheduling appointments, and never set
 deadlines in my personal coding projects.

 Now I am scheduling more things, and using the agenda views
 regularly. 

 But I am still having one problem. Right now I have a section in my
 One Big Orgfile that looks like this: 

 * Books
 ** TODO Read Tractatus Logico-Philosophicus
 *** DONE Find out about Wittgenstein's notation
 *** NEXT Chapter 5
 *** TODO Chapter 6
 *** TODO Chapter 7
 *** TODO Review entire book
 *** MAYBE [[http://s22318.tsbvi.edu/mathproject/appB-sec1.asp][Spoken 
 mathematics]]
 ** TODO Read The Analysis of Mind
 *** NEXT Chapter 1 

 This gives in the agenda:

  dto:  Scheduled:  NEXT Chapter 5
  dto:  Scheduled:  NEXT Chapter 1

 Without any indication which book the chapters are from.  Can I fix
 this with properties or tags or categories or something?

I'm less than a week into my shiny new GTD setup.

I don't normally schedule tasks that don't need to be scheduled anymore.
I spend more time doing stuff than rescheduling things.  I have a
PROJECT and PROJDONE task which I use only for project headlines - and
the PROJECT task defines what is a project.  I schedule some of the
important PROJECT tasks (not their subtasks) just to keep them on my
radar in the daily agenda view.

My NEXT tag view for @home is @home/NEXT|PROJECT so my view is something
like this:

  todo:   .PROJECT Learn Ruby on Rails - Agile Development on Rails Depot 
Application tutorial
  todo:   ...NEXT Chapter 6  :sub60:

which shows the book title.  You can also use follow mode in the agenda
if you reveal the parent headings with org-show-hierarchy-above t.

I don't know of a way to see it directly in the agenda if you only
display the NEXT task.

HTH,
Bernt



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


[Orgmode] apparent bug in org-insert-link with active region

2007-10-03 Thread William Henney
Hi list

If I call org-insert-link with the region active, then the region
content is instantly deleted while I am prompted for the link. This is
rather disconcerting, but for most link types the region content
magically reappears as the default value of the description. However,
for file: links the default value of the description becomes the
link itself, and the previous content of the region is lost (as far as
I can see). Is this intended?

This is with Org version 5.09 - I'm sure it used to work at some time
in the past.

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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: export all linked images with a certain property or tag

2007-10-03 Thread Fabian Braennstroem
It kind of works...

(defun org-agenda-collect-indirect-trees ()
  (interactive)
  (delete-file ~/org/agenda-indirect-buffer.org)
 ; LOOP
  (org-agenda-tree-to-indirect-buffer)
  (other-window 1)
  (mark-page)

  (write-region (point-min) (point-max)
~/org/agenda-indirect-buffer.org t)
  (write-region \n\n 0 ~/org/agenda-indirect-buffer.org t)
  (other-window 1)
  (next-line)

  (org-agenda-tree-to-indirect-buffer)
  (other-window 1)
  (mark-page)
  (write-region (point-min) (point-max)
~/org/agenda-indirect-buffer.org t)
  (write-region \n\n 0 ~/org/agenda-indirect-buffer.org t)
  (other-window 1)
  (next-line)

  (org-agenda-tree-to-indirect-buffer)
  (other-window 1)
  (mark-page)
  (write-region (point-min) (point-max)
~/org/agenda-indirect-buffer.org t)
  (write-region \n\n 0 ~/org/agenda-indirect-buffer.org t)
  (other-window 1)
  (next-line)

  (org-agenda-tree-to-indirect-buffer)
  (other-window 1)
  (mark-page)
  (write-region (point-min) (point-max)
~/org/agenda-indirect-buffer.org t)
  (write-region \n\n 0 ~/org/agenda-indirect-buffer.org t)
  (other-window 1)
  (next-line)

  (org-agenda-tree-to-indirect-buffer)
  (other-window 1)
  (mark-page)
  (write-region (point-min) (point-max)
~/org/agenda-indirect-buffer.org t)
  (write-region \n\n 0 ~/org/agenda-indirect-buffer.org t)
  (other-window 1)
  (next-line)

  (other-window 1)
  (find-file ~/org/agenda-indirect-buffer.org)
  (org-export-as-html 2 t nil
~/org/agenda-indirect-buffer.html)
)


but it needs some cosmetic like the looping over all
existing agenda entries...


Fabian Braennstroem schrieb am 10/03/2007 05:01 PM:
 
 Bastien schrieb am 10/03/2007 12:24 PM:
 Fabian Braennstroem [EMAIL PROTECTED] writes:

 Sorry, I was not really clear... not the agenda view should be
 exported, but every visible tree should be included in one indirect
 buffer. Right now, 'b' shows the current-headline in an indirect
 buffer, which I can export to html like usual. For this purpose there
 has to be one global indirect agenda-buffer, which gets all those
 visible trees!?
 I don't think this will be easy to do since showing the current headline
 relies on narrowing the indirect buffer to a subtree, and narrowing more
 than one region is not possible in a single buffer.

 It would require to build another buffer with all headlines and subtrees
 that are part of the agenda view.  Interesting!

 
 I gave it a small try, very simple and does not really work:
 
 (defun org-agenda-collect-indirect-trees ()
   (interactive)
   (org-agenda-tree-to-indirect-buffer)
   (other-window 1)
   (mark-page)
 ;  (write-file dummy)
   (write-region nil 0 ~/org/agenda-indirect-buffer.org t)
   (other-window 1)
   (next-line)
   ; Loop over all agenda headlines...
 )
 
 not working means, that it appends the whole buffer content
 and not just the viewable tree. The next problem would be to
 run some kine of loop over all agenda headlines; now I would
 just copy the command about 10 times ...
 Do you think it is a working approach and maybe you got an
 idea about the 'whole-buffer' problem?
 Fabian
 
 
 
 ___
 Emacs-orgmode mailing list
 Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] batch printing of diary/agenda without Scheduled items

2007-10-03 Thread Bastien
Bastien [EMAIL PROTECTED] writes:

 ,
 | (org-add-agenda-custom-command
 |  '((X agenda 
 |((org-agenda-skip-function
 | (lambda() (org-agenda-skip-entry-if 'scheduled 'deadline)))
 `

BTW, I forgot to mention the documentation for this:

  http://orgmode.org/org.html#Special-agenda-views

-- 
Bastien


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


Re: [Orgmode] no running clock

2007-10-03 Thread Bastien
Cezar [EMAIL PROTECTED] writes:

  I get this error/warning most of the time when trying to clock out.

What error/warning message exactly?

In what context are you clocking in/out? Did you insert an empty log
when clocking out?

I guess we need a bit more of context :)

-- 
Bastien


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


Re: [Orgmode] Re: export all linked images with a certain property or tag

2007-10-03 Thread Bastien
Fabian Braennstroem [EMAIL PROTECTED] writes:

 but it needs some cosmetic like the looping over all
 existing agenda entries...

I wouldn't call it cosmetic :)

Can you provide a full example of what you want to do and what the
function you provide actually does, step by step?

When building the agenda view, Org collects all relevant headlines. If
we want to build something like the complete agenda trees buffer (c)
we should perhaps start from this early collection -- going back and
forth from one buffer to another and writing on them could be dangerous.

But thanks for the code, it's something we can start with! 

-- 
Bastien


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


[Orgmode] Re: no running clock

2007-10-03 Thread Bernt Hansen
Bastien [EMAIL PROTECTED] writes:

 Cezar [EMAIL PROTECTED] writes:

  I get this error/warning most of the time when trying to clock out.

 What error/warning message exactly?


My guess would be the text in the subject line: no running clock



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


[Orgmode] Intermittent Font Face problem

2007-10-03 Thread Bernt Hansen
Hi Carsten,

I'm sure this bug is going to be a pain to track down... :(

I'm using multiple org files and I'm clocking time and jumping between
the files for hours.  Then for no reason I can determine the colour
display of tasks breaks.

When it's broken I get black tasks alternating instead of all blue.  I
created a test.org file which shows this problem and it looks like the
following image - task '* two' is black and not blue.

attachment: test.png
This seems to be right after a :PROPERTIES: ... :END: section with no
blank line.  If I insert a blank line before '* two' the task goes blue
again - and if I delete it so there is no blank line between the
properties section and task it is black again.

The fun part of this is if I close down Emacs and start it again it
works perfectly - and all the tasks are coloured correctly. :-P

I noticed this first in my work org files and decided to try to
duplicate it in the test file for publication but it looks like it's
some transient error that gets triggered by something I'm doing during
the day.  Restarting Emacs fixes it until I trigger it again.  I'll try
to capture more information on this if possible.

Below is my my test.org file and my .emacs file with everything that is
not org-related stripped out.

Org-mode version 5.10b
GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 
2007-08-22 on raven, modified by Debian

Bernt

,[ test.org ]
| #+STARTUP:
| * one
| ** TODO one-one
|SCHEDULED: 2007-09-12 Wed
|- State STARTED[2007-09-12 Wed 12:58] \\
|  some note here
| ** WAITING one-two
|SCHEDULED: 2007-09-12 Wed
|- State WAITING[2007-09-12 Wed 12:58] \\
|  This is waiting
|  :PROPERTIES:
|:CATEGORY: test
|:ARCHIVE: %s_archive::
|  :END:
| * two
| ** TODO two-one
|SCHEDULED: 2007-09-12 Wed 
| ** TODO two-two
|SCHEDULED: 2007-09-12 Wed
| 
| 
| * TODO docs
`

,[ .emacs ]
|  .emacs: Emacs customizations
|
| ;;; XEmacs backwards compatibility file
| (setq user-init-file
|   (expand-file-name init.el
| (expand-file-name .xemacs ~)))
| (setq custom-file
|   (expand-file-name custom.el
| (expand-file-name .xemacs ~)))
| 
| (load-file user-init-file)
| (load-file custom-file)
| 
| ;; Appointments
| (display-time)
| (add-hook 'diary-hook 'appt-make-list)
| (diary 0)
| 
| ;;
| ;; Enable color highligthing
| ;;
| (global-font-lock-mode t)
| 
| ;;;
| ;;; Org Mode
| ;;;
| (add-to-list 'load-path (expand-file-name ~/git/org-mode))
| (add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\)$ . org-mode))
| (require 'org-install)
| 
| (setq org-log-done '(state)
|   org-agenda-include-diary t
|   org-cycle-include-plain-lists nil
|   org-agenda-todo-list-sublevels t
|   org-agenda-todo-ignore-deadlines nil
|   org-agenda-todo-ignore-scheduled nil
|   org-agenda-start-with-follow-mode nil
|   org-use-tag-inheritance t
|   org-tags-match-list-sublevels t
|   org-show-hierarchy-above t
|   org-show-following-heading t
|   org-show-siblings nil
|   org-export-with-sub-superscripts nil
|   org-clock-out-when-done t
|   org-use-fast-todo-selection t
|   org-hide-leading-stars t)
| 
| (setq org-todo-keywords
|   '((sequence TODO(t) NEXT(n) | DONE(d))
|   (sequence WAITING(w@) APPT(a) |)
|   (sequence SOMEDAY(S) | CANCELLED(c))
|   (sequence OPEN(O) | CLOSED(C))
|   (sequence PROJECT(P) | PROJDONE(D
| 
| (setq org-tag-alist '((@work . ?w) (@home . ?h) (@errand . ?e) 
(@phone . ?p) 
| (:startgroup . nil) (sub10 . ?1) (sub30 . ?3) 
(sub60 . ?6) (sub2h . ?2) (sub4h . ?4) (subday . ?d) (:endgroup . nil) 
| (admin . ?a) (org . ?o)))
| 
| (setq org-agenda-sorting-strategy '((agenda priority-down time-up category-up)
|   (todo category-keep priority-down)
|   (tags category-keep priority-down)))
| 
| (define-key global-map \C-cl 'org-store-link)
| (define-key global-map \C-ca 'org-agenda)
| 
| ;;
| ;; Fix for org and Gnus...
| ;;
| (require 'planner-gnus)
| (defun gnus-summary-article-header (optional number)
|   (gnus-data-header (gnus-data-find (or number
|  (gnus-summary-article-number)
| (defun mail-header-from (header) (aref header 2))
| (defun mail-header-id (header) (aref header 4))
| (defun mail-header-date (header) (aref header 3))
| (defun gnus-summary-article-subject (optional number) (aref
|  (gnus-data-header (assq (or number (gnus-summary-article-number))
|  gnus-newsgroup-data)) 1))
| 
| (defun bernt-org-todo ()
|   (interactive)
|   (org-narrow-to-subtree)
|   (org-show-todo-tree nil)
|   (widen))
| 
| ;; Custom Key Bindings
| (global-set-key (kbd f5) 'bernt-org-todo)
| (global-set-key (kbd f6) 'org-toggle-archive-tag)
| (global-set-key (kbd C-f8) (lambda () (interactive) (switch-to-buffer 

[Orgmode] Wishlist - Function to get to and reveal the current clocking task

2007-10-03 Thread Bernt Hansen
I'm finding that I want to get back to my current clocking task
frequently.  My org files are fairly large and when I fold all the tasks
the only way I know of to get back to the current clocking task is to
display today's agenda, press 'l' to get a display of my clocked tasks,
and put the cursor on the last entry then hit 'o' to close the other
window and RETURN.  I do this 20 times a day... and it's getting kind of
cumbersome :)

I'd love a function I could bind to a single key press to do this.

I know org-clock-marker points at the current location I want to get to
- I just don't know how to use it to get there and reveal the location
the same as if I used the above procedure from the agenda.

Any suggestions?

Thanks,
Bernt




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


Re: [Orgmode] FR: Using properties to customize global settings on a per-entry basis

2007-10-03 Thread John Wiegley
Carsten Dominik [EMAIL PROTECTED] writes:

 OK, how about a general mechanism like this:  If there is a property
 :org-log-done:, it will be used instead of the current value of
 org-log-done during TODO state changeing, like

 * repetitive entry
   :PROPERTIES:
  :org-log-done: nil
   :END:

Sounds like a great way to do it!

John


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


[Orgmode] Re: no running clock

2007-10-03 Thread Cezar
Bernt Hansen [EMAIL PROTECTED] writes:

 Bastien [EMAIL PROTECTED] writes:

 Cezar [EMAIL PROTECTED] writes:

  I get this error/warning most of the time when trying to clock out.

 What error/warning message exactly?


 My guess would be the text in the subject line: no running clock

You are right ! :)



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


[Orgmode] Re: Wishlist - Function to get to and reveal the current clocking task

2007-10-03 Thread Bernt Hansen
Bastien [EMAIL PROTECTED] writes:

 Bernt Hansen [EMAIL PROTECTED] writes:

 I'd love a function I could bind to a single key press to do this.

 I know org-clock-marker points at the current location I want to get to
 - I just don't know how to use it to get there and reveal the location
 the same as if I used the above procedure from the agenda.

 Something like this?

 (defun org-goto-clocked-in-entry ()
   Go to the currently clocked-in entry.
   (interactive)
   (goto-char org-clock-marker)
   (org-show-entry)
   (org-back-to-heading))

Close :) My first attempt to code this failed miserably.

Your version doesn't handle switching files/buffers.  I also got the
'before first heading' error from your version when not in an org buffer
... so I hacked at it and this is what I have now:

(defun org-goto-clocked-in-entry ()
  Go to the currently clocked-in entry.
  (interactive)
  (if (not (marker-buffer org-clock-marker))
  (error No active clock))
  (display-buffer (marker-buffer org-clock-marker))
  (goto-char org-clock-marker)
  (org-show-entry)
  (org-back-to-heading))

This is closer but still not right.

If I'm in another buffer it splits the window and displays the right
stuff in the other buffer - I just need to close the current window.

My Emacs lisp skills are sadly lacking :(

Thanks!
Bernt


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


[Orgmode] Re: Wishlist - Function to get to and reveal the current clocking task

2007-10-03 Thread Bastien
Bernt Hansen [EMAIL PROTECTED] writes:

 If I'm in another buffer it splits the window and displays the right
 stuff in the other buffer - I just need to close the current window.

(defun org-goto-clocked-in-entry (optional delete-windows)
  Go to the currently clocked-in entry.
If DELETE-WINDOWS is non-nil, delete other windows. Sigh.
  (interactive P)
  (if (not (marker-buffer org-clock-marker))
  (error No active clock))
  (switch-to-buffer-other-window
   (marker-buffer org-clock-marker))
  (if delete-windows (delete-other-windows))
  (goto-char org-clock-marker)
  (org-show-entry)
  (org-back-to-heading))

I guess that comes closer.  

-- 
Bastien


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


[Orgmode] Re: Wishlist - Function to get to and reveal the current clocking task

2007-10-03 Thread Bernt Hansen
Bastien [EMAIL PROTECTED] writes:

 Bernt Hansen [EMAIL PROTECTED] writes:

 If I'm in another buffer it splits the window and displays the right
 stuff in the other buffer - I just need to close the current window.

 (defun org-goto-clocked-in-entry (optional delete-windows)
   Go to the currently clocked-in entry.
 If DELETE-WINDOWS is non-nil, delete other windows. Sigh.
   (interactive P)
   (if (not (marker-buffer org-clock-marker))
   (error No active clock))
   (switch-to-buffer-other-window
(marker-buffer org-clock-marker))
   (if delete-windows (delete-other-windows))
   (goto-char org-clock-marker)
   (org-show-entry)
   (org-back-to-heading))

 I guess that comes closer.  

Thanks!

(global-set-key (kbd C-M-f12) (lambda () (interactive) 
(org-goto-clocked-in-entry t)))

:)

Now the only weird thing it does is after going to the right place - if
I hit C-M-f12 again it goes somewhere else... and again brings it
back.  I'm not sure what's up with that but this is alot better than
navigating through the agenda for me!

Thanks Bastien!!

Regards,
Bernt

P.S. And WOW that's fast response time!!  Much appreciated!


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


[Orgmode] Re: no running clock

2007-10-03 Thread J. David Boyd
Cezar [EMAIL PROTECTED] writes:

 Hello,

  I get this error/warning most of the time when trying to clock out.

  This is how my task looks like:

 ** DONE [#A] my task
SCHEDULED: 2007-10-03 Wed
CLOCK: [2007-10-03 Wed 10:36]
[2007-10-02 Tue]


 Any idea why this happens ?

 Cheers,
 Cezar


Are you exiting Emacs while the clock is started, then restarting
Emacs, and attempting to clock out of an item?  I have seen your error
message when I do that.

In short, AFAIK, you can't do that.  Emacs has to be running all along
to use the clock-in and clock-out features.

Dave



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


[Orgmode] Re: Wishlist - Function to get to and reveal the current clocking task

2007-10-03 Thread Bastien
Bernt Hansen [EMAIL PROTECTED] writes:

 Now the only weird thing it does is after going to the right place -
 if I hit C-M-f12 again it goes somewhere else... and again brings it
 back.

I can't reproduce that. You might have gnomes on your computer. Or we
both have, and mine just misbehave differently!

-- 
Bastien


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


Re: [Orgmode] Re: no running clock

2007-10-03 Thread Bastien
[EMAIL PROTECTED] (J. David Boyd) writes:

 Any idea why this happens ?

 Cheers,
 Cezar

 Are you exiting Emacs while the clock is started, then restarting
 Emacs, and attempting to clock out of an item? I have seen your error
 message when I do that.

If you try to kill a buffer with a running clock, Org asks you whether
you want to clock out.  

If you're not in the buffer where the clock runs, you are still able to
see whether a clock is running: the clocked heading is displayed in the
mode-line.

If you still want to check for a running clock before closing Emacs, you
could perhaps do this:


(defun org-check-running-clock-any-buffer ()
  Check if any Org buffer contains a running clock.
If yes, offer to stop it and to save the buffer with the changes.
  (interactive)
  (let ((buf (marker-buffer org-clock-marker))
(wcf (current-window-configuration)))
(when 
(and buf
 (y-or-n-p 
  (format Clock-out in buffer %s before killing it?  buf)))
  (switch-to-buffer buf)
  (org-clock-out)
  (when (y-or-n-p Save changed buffer? )
(save-buffer))
  (set-window-configuration wcf

(defadvice save-buffers-kill-emacs
  (before org-check-running-clock activate)
  Check for a running clock before quitting.
  (org-check-running-clock-any-buffer))


-- 
Bastien


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


Re: [Orgmode] another GTD question from dto

2007-10-03 Thread Bastien
David O'Toole [EMAIL PROTECTED] writes:

 Without any indication which book the chapters are from.  Can I fix
 this with properties or tags or categories or something?

,
| * Books
| ** TODO Read Tractatus Logico-Philosophicus
|   :PROPERTIES:
|   :CATEGORY: TLP
|   :END:
| 
| *** DONE Find out about Wittgenstein's notation
| *** NEXT Chapter 5
| *** TODO Chapter 6
| *** TODO Chapter 7
| *** TODO Review entire book
| *** MAYBE [[...][Spoken mathematics]]
| ** TODO Read The Analysis of Mind
|   :PROPERTIES:
|   :CATEGORY: TAoM
|   :END:
| 
| *** NEXT Chapter 1 
`

Will give in the agenda:

  TLP:  Scheduled:  NEXT Chapter 5
 TAoM:  Scheduled:  NEXT Chapter 1

It defines a category for each book.

Caveat: when I first discover the power of categories (and other ways to
attach interesting information to a headline) I started to use it a lot.
Because I thought I would finally find something useful to do with these
informations.  But sometimes it's just too much, and the hope for some
useful-thing-to-do-in-a-near-future leads to irrelevant hassle...

So in this case, I would simply put * Chapter 5 of the Tractatus in
the headline. But this might be entirely personal.

BTW, the Tractatus is also on my TODO list :)

-- 
Bastien


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


[Orgmode] Re: Wishlist - Function to get to and reveal the current clocking task

2007-10-03 Thread Bernt Hansen
Bastien [EMAIL PROTECTED] writes:

 Bernt Hansen [EMAIL PROTECTED] writes:

 Now the only weird thing it does is after going to the right place -
 if I hit C-M-f12 again it goes somewhere else... and again brings it
 back.

 I can't reproduce that. You might have gnomes on your computer. Or we
 both have, and mine just misbehave differently!

Well just for fun I synchronised my setup to my laptop and the gnomes
are in both :)

If I fold my buffer it works but if I show all of the buffer with C-c
C-a then repeatedly run the new function it jumps back and forth between
two points in the file (lines 335 and 365 for me - the clock marker is
on line 365 - almost at the end of the file)

Bernt



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


Re: [Orgmode] apparent bug in org-insert-link with active region

2007-10-03 Thread Bastien
William Henney [EMAIL PROTECTED] writes:

 If I call org-insert-link with the region active, then the region
 content is instantly deleted while I am prompted for the link. This is
 rather disconcerting, but for most link types the region content
 magically reappears as the default value of the description.

Yes, maybe the region shouldn't be deleted before the link is actually
inserted.

 However, for file: links the default value of the description
 becomes the link itself, and the previous content of the region is
 lost (as far as I can see). Is this intended?

For me, the default value for the description is *always* the active
region, this one being a simple string or a file link. So I expect the
default value of the description itself being the link itself, since
it equals the active region...  or did I miss something?

-- 
Bastien


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


Re: [Orgmode] Re: Wishlist - Function to get to and reveal the current clocking task

2007-10-03 Thread Bastien
Bernt Hansen [EMAIL PROTECTED] writes:

 If I fold my buffer it works but if I show all of the buffer with C-c
 C-a then repeatedly run the new function it jumps back and forth between
 two points in the file (lines 335 and 365 for me - the clock marker is
 on line 365 - almost at the end of the file)

I guess the point itself is not moving, it's just the buffer being
centered differently. Let's add recenter:


(defun org-goto-clocked-in-entry (optional delete-windows)
  Go to the currently clocked-in entry.
  (interactive P)
  (if (not (marker-buffer org-clock-marker))
  (error No active clock))
  (switch-to-buffer-other-window
   (marker-buffer org-clock-marker))
  (if delete-windows (delete-other-windows))
  (goto-char org-clock-marker)
  (org-show-entry)
  (org-back-to-heading)
  (recenter))


?

-- 
Bastien


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


[Orgmode] Re: diary in agenda

2007-10-03 Thread Christian Egli
Hi

Bastien [EMAIL PROTECTED] writes:

 Christian Egli [EMAIL PROTECTED] writes:

 Hm, I followed my own advice and set *-holidays to nil, but the
 holidays still show up in the agenda (so I guess you cannot disable
 holidays by tweaking these cars). Have to study the code some more
 as to how to get rid of these holiday entries in the agenda.

 Thursday   4 October 2007
   Holiday:Shemini Atzeret
   Diary:  Shemini Atzeret

 The strange thing here is the Holiday: line. 

 AFAIK, all diary entries that Org adds fall in the Diary category.
 Please tell us about the solution when you find it!

Don't know about the Holiday line. I think that was the OPs
problem. My issue is that I want to see the diary entries in my agenda
without the holidays (such as e.g. Shemini Atzeret). As I found out
setting {christian|hebrew|islamic|etc}-holidays to nil doesn't help. 

Some more digging in org.el, calendar.el and holidays.el revealed that
you can either disable the display of holidays altogether in your
agenda or only show specific holidays. For the former set
holidays-in-diary-buffer to nil and for the latter customize
calendar-holidays.

HTH
Christian



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


Re: [Orgmode] apparent bug in org-insert-link with active region

2007-10-03 Thread William Henney
Hi Bastien

Thanks for looking into this.

On 10/3/07, Bastien [EMAIL PROTECTED] wrote:
 William Henney [EMAIL PROTECTED] writes:

  If I call org-insert-link with the region active, then the region
  content is instantly deleted while I am prompted for the link. This is
  rather disconcerting, but for most link types the region content
  magically reappears as the default value of the description.

 Yes, maybe the region shouldn't be deleted before the link is actually
 inserted.

  However, for file: links the default value of the description
  becomes the link itself, and the previous content of the region is
  lost (as far as I can see). Is this intended?

 For me, the default value for the description is *always* the active
 region, this one being a simple string or a file link. So I expect the
 default value of the description itself being the link itself, since
 it equals the active region...  or did I miss something?


Yes, I think you are... I wasn't saying that the active region was of
the form file:something, but rather that the link target was of that
form. What happens for me is the following (when I do org-insert-link
with the region active)

1. The region is deleted in the org buffer

2. I am shown the Link: prompt in the mini-buffer

3. I type in the link (or use arrows or return to grab a stored link)

4. I am shown the Description: prompt in the mini-buffer

5a. If the link I entered in step 3 was something like
http://foo.org;, then all is well - the deleted region from step 1
appears as the default description.

5b. However, if the link I inserted in step 3 was something like
file:/etc/whatever, then I no longer get the deleted region as the
default description. Instead, I just get file:/etc/whatever

I hope this is clearer. I thought perhaps the problem was with my
personal set-up, so I tried it with emacs -Q -q -l minimal-org.el,
where the file minimal-org.el is given below. I still see the problem
(that is, behaviour 5b instead of 5a) whenever the link is of the form
file:/path/to/myfile

I have also found another apparent bug. When I do C-u C-c C-l, then
(as described in the docs) I get prompted for a filename with path
completion. However, this time the default description is blank
(whether or not the region was active).

Cheers

Will

;;;- minimal-org.el 
(add-to-list 'load-path (expand-file-name ~/emacs/lisp/org))
(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
(define-key global-map \C-cl 'org-store-link)
(require 'org-install)
;;;- minimal-org.el 


-- 

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


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