Re: [Orgmode] howto fine tune agenda view

2007-09-06 Thread Gijs Hillenius
On  6 Sep 2007, Gijs Hillenius wrote:

   > -- Replying to my own post without quoting it:
>
> I should add, that I *now* understand this is a FAQ and it
> could potentially be solved by adding a timestamp instead of
> scedule/deadline. But all of my WRITE items come with deadlines...
>
> I believe (I'm trying it out now) that having a DEADLINE sort of
> blocks what the timestamp could do.. or I would have to manually
> delete the deadlines..

Manually deleting the (passed) deadline and adding a timestamp indeed
gives me the result I want. But now I've destroyed my deadline
info. Is there another trick I could try?

Thx

Gijs

-- 
To iterate is human, to recurse, divine.
-- Robert Heller


___
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] buffer-locale setting of locale for day names in time-stamps

2007-09-06 Thread William Henney
Hi Bastien

On 9/6/07, Bastien <[EMAIL PROTECTED]> wrote:
> "William Henney" <[EMAIL PROTECTED]> writes:
>
> > Is there any way to have buffer-local (or file-local) setting of the
> > locale.
>
> What about the #+LANGUAGE option?
>

Yes, I use this option. However, this value is not respected by the
time-stamps, which are implemented using format-time-string (a
built-in emacs function, written in C)

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


Re: [Orgmode] blank lines and keystrokes for org remember templates

2007-09-06 Thread John Wiegley
"Scott Jaderholm" <[EMAIL PROTECTED]> writes:

> If I write TODO something I get a blank line after it in my org file even
> though I didn't put a newline when using remember.

Even stranger is that it *doesn't* put a blank line if you have multiple lines
of text in your remember block.  I'd vote that if the template has no blank
line, the entry never gets a blank line.

John


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


Re: [Orgmode] running remember with emacsclient - how to get a new frame

2007-09-06 Thread John Wiegley
"Scott Jaderholm" <[EMAIL PROTECTED]> writes:

> On 9/6/07, Jason F. McBrayer <[EMAIL PROTECTED]> wrote:
>
>> I define this function in my .emacs:
>>
>> (defun my-remember nil
>>   (progn (select-frame
>>   (make-frame '((name . "*Remember*") )))
>>  (raise-frame)
>>  (remember)))
>>
>
> Jason,
>
> This is great. How would you make it so that the frame displays with
> remember as the only window ?

I've made changes to remember.el to support this kind of usage.  Just replace
the `remember' function in your remember.el file with the following.

John

(defcustom remember-in-new-frame nil
  "Non-nil means use a separate frame for capturing remember data."
  :type 'boolean
  :group 'remember)

;;;###autoload
(defun remember (&optional initial)
  "Remember an arbitrary piece of data.
With a prefix, uses the region as INITIAL."
  (interactive
   (list (when current-prefix-arg
   (buffer-substring (point) (mark)
  (funcall (if remember-in-new-frame
   #'frame-configuration-to-register
 #'window-configuration-to-register) remember-register)
  (let* ((annotation
  (if remember-run-all-annotation-functions-flag
  (mapconcat 'identity
 (delq nil (mapcar 'funcall 
remember-annotation-functions))
 "\n")
(run-hook-with-args-until-success
 'remember-annotation-functions)))
 (buf (get-buffer-create remember-buffer)))
(run-hooks 'remember-before-remember-hook)
(funcall (if remember-in-new-frame
 #'switch-to-buffer-other-frame
   #'switch-to-buffer-other-window) buf)
(if remember-in-new-frame
(set-window-dedicated-p
 (get-buffer-window (current-buffer) (selected-frame)) t))
(remember-mode)
(when (= (point-max) (point-min))
  (when initial (insert initial))
  (setq remember-annotation annotation)
  (when remember-initial-contents (insert remember-initial-contents))
  (when (and (stringp annotation)
 (not (equal annotation "")))
(insert "\n\n" annotation))
  (setq remember-initial-contents nil)
  (goto-char (point-min)))
(message "Use C-c C-c to remember the data.")))

;;;###autoload
(defun remember-other-frame (&optional initial)
  (interactive
   (list (when current-prefix-arg
   (buffer-substring (point) (mark)
  (let ((remember-in-new-frame t))
(remember initial)))


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


Re: [Orgmode] running remember with emacsclient - how to get a new frame

2007-09-06 Thread Scott Jaderholm
On 9/6/07, Jason F. McBrayer <[EMAIL PROTECTED]> wrote:

> I define this function in my .emacs:
>
> (defun my-remember nil
>   (progn (select-frame
>   (make-frame '((name . "*Remember*") )))
>  (raise-frame)
>  (remember)))
>

Jason,

This is great. How would you make it so that the frame displays with
remember as the only window ?

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


[Orgmode] blank lines and keystrokes for org remember templates

2007-09-06 Thread Scott Jaderholm
Hi,

1. When I use remember with a template I get a blank line after the text
that I type.

My template looks like this:
(setq org-remember-templates
  '((?l "* TODO %?" "~/Documents/org/life.org" "New Tasks")))

If I write TODO something I get a blank line after it in my org file even
though I didn't put a newline when using remember.

Is this default behavior? Is there a way to change it so that a newline
isn't inserted?

2. How do I bind a keystroke to start remember with one of the
org-remember-templates rather than prompting you for the template name?

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


Re: [Orgmode] buffer-locale setting of locale for day names in time-stamps

2007-09-06 Thread Bastien
"William Henney" <[EMAIL PROTECTED]> writes:

> Is there any way to have buffer-local (or file-local) setting of the
> locale.

What about the #+LANGUAGE option? 

See (info "(Org)Export options") for details.

-- 
Bastien


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


[Orgmode] Re: Navigation problem - 5.08

2007-09-06 Thread Bernt Hansen
Bernt Hansen <[EMAIL PROTECTED]> writes:

> Hi Carsten,
>
> I've been running into what I think is a bug over the last few days.  I
> normally live in the agenda for today with my todo tasks displayed and
> ordered by priority.
>
> I've noticed that sometimes (rarely) using SPACE or TAB on an entry
> jumps to my single org file but in the wrong place.  I've been bitten by
> this at least twice when using T to change the TODO status of an entry.
> It prompts for the log message and changes the item to DONE (as
> requested... ) but it changes the wrong item.
>
> My org file looks something like this
>
> ,[ todo.org ]
> | MY PROJECTS  -*- mode: org; fill-column: 78 -*-
> | 
> | #+STARTUP: overview
> | #+STARTUP: lognotestate
> | #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) APPT(a) | DONE(d) DEFERRED(p) 
> CANCELLED(c)
> | #+TAGS: { SCHOOL(s) WORK(w) } CALL(c) ERRAND(e)
> | * Tasks
> | * Timelog
> | 
> | * Client1 - Timelog
> | * Client1 - Project1
> | ** TODO [#B] Some Task...
> | 
> | * Client2 - Timelog
> | * Client2 - Project1...
> | * Client2 - Project2...
> | 
> | . . .
> `
>
> Each level 1 category has a #+CATEGORY and #+ARCHIVE line following it
> followed by level 2 tasks for each project.
>
> After using TAB (to the wrong place) if I return to the agenda buffer
> and do it again it works right.  Sometimes I think I'm going crazy :)
> except when the task TODO state change and accompanying note end up on
> the wrong task.
>
> The last time this happened (a few minutes ago) the cursor was on 
>
>   Client1:Scheduled:  TODO [#B] Some Task
>
> in the agenda.  I hit T to change the item to DONE and entered my note.
> As soon as that was complete the agenda line looked like this:
>
>   Client1:Scheduled:  DONE Timelog
>
> I hit TAB and got to the
>
> * Timelog
>
> entry instead (2nd level 1 task instead of the level 2 task)
>
> so I ended up with 
>
> * DONE Timelog
> [date and comment stuff went here from closing the task]
>
> I have the following org-mode variables set in my .emacs:
>
> ,[ org related .emacs stuff ]
> | (add-hook 'org-mode-hook '(lambda () (flyspell-mode 1)))
> | 
> | ;;;
> | ;;; Org Mode
> | ;;;
> | (add-to-list 'load-path (expand-file-name "~/org-mode"))
> | (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> | (require 'org-install)
> | 
> | (global-font-lock-mode 1) ; for all buffers
> | (setq org-log-done t
> |   org-agenda-include-diary nil
> |   org-cycle-include-plain-lists nil
> |   org-agenda-todo-list-sublevels t
> |   org-agenda-todo-ignore-deadlines t
> |   org-agenda-todo-ignore-scheduled t
> |   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 nil
> |   org-show-siblings nil
> |   org-export-with-sub-superscripts nil
> |   org-clock-out-when-done nil
> |   org-use-fast-todo-selection t)
> | 
> | (setq org-agenda-sorting-strategy '((agenda time-up priority-down)
> | (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)
> | 
> | (add-hook 'remember-mode-hook 'org-remember-apply-template)
> | ;
> | (custom-set-variables
> |  '(org-default-notes-file "~/org/notes.org")
> |  '(org-agenda-ndays 7)
> |  '(org-deadline-warning-days 14)
> |  '(org-agenda-show-all-dates t)
> |  '(org-agenda-skip-deadline-if-done t)
> |  '(org-agenda-skip-scheduled-if-done t)
> |  '(org-agenda-start-on-weekday nil)
> |  '(org-reverse-note-order t)
> |  '(org-fast-tag-selection-single-key (quote expert))
> |  '(org-agenda-custom-commands
> |(quote (("d" todo "DELEGATED" nil)
> |("c" todo "DONE|DEFERRED|CANCELLED" nil)
> |("w" todo "WAITING" nil)
> |("W" agenda "" ((org-agenda-ndays 21)))
> |("A" agenda ""
> | ((org-agenda-skip-function
> |   (lambda nil
> | (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]")))
> |  (org-agenda-ndays 1)
> |  (org-agenda-overriding-header "Today's Priority #A tasks: ")))
> |("u" alltodo ""
> | ((org-agenda-skip-function
> |   (lambda nil
> | (org-agenda-skip-entry-if (quote scheduled) (quote deadline)
> |   (quote regexp) "<[^>\n]+>")))
> |  (org-agenda-overriding-header "Unscheduled TODO entries: "))
> |  '(org-remember-store-without-prompt t)
> |  '(org-remember-templates
> |(quote ((116 "* TODO %?\n  %u" "~/org/todo.org" "Tasks")
> |(110 "* %u %?" "~/org/notes.org" "Notes"
> |  '(remember-annotation-functions (quote (org-remember-annotation)))
> |  '(remember-handler-functions (quote (org-remember-handler
> | 
> | (setq org-todo-keyword-faces
> |   '(("TODO"  . (:fore

[Orgmode] Navigation problem - 5.08

2007-09-06 Thread Bernt Hansen
Hi Carsten,

I've been running into what I think is a bug over the last few days.  I
normally live in the agenda for today with my todo tasks displayed and
ordered by priority.

I've noticed that sometimes (rarely) using SPACE or TAB on an entry
jumps to my single org file but in the wrong place.  I've been bitten by
this at least twice when using T to change the TODO status of an entry.
It prompts for the log message and changes the item to DONE (as
requested... ) but it changes the wrong item.

My org file looks something like this

,[ todo.org ]
| MY PROJECTS  -*- mode: org; fill-column: 78 -*-
| 
| #+STARTUP: overview
| #+STARTUP: lognotestate
| #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) APPT(a) | DONE(d) DEFERRED(p) 
CANCELLED(c)
| #+TAGS: { SCHOOL(s) WORK(w) } CALL(c) ERRAND(e)
| * Tasks
| * Timelog
| 
| * Client1 - Timelog
| * Client1 - Project1
| ** TODO [#B] Some Task...
| 
| * Client2 - Timelog
| * Client2 - Project1...
| * Client2 - Project2...
| 
| . . .
`

Each level 1 category has a #+CATEGORY and #+ARCHIVE line following it
followed by level 2 tasks for each project.

After using TAB (to the wrong place) if I return to the agenda buffer
and do it again it works right.  Sometimes I think I'm going crazy :)
except when the task TODO state change and accompanying note end up on
the wrong task.

The last time this happened (a few minutes ago) the cursor was on 

  Client1:Scheduled:  TODO [#B] Some Task

in the agenda.  I hit T to change the item to DONE and entered my note.
As soon as that was complete the agenda line looked like this:

  Client1:Scheduled:  DONE Timelog

I hit TAB and got to the

* Timelog

entry instead (2nd level 1 task instead of the level 2 task)

so I ended up with 

* DONE Timelog
[date and comment stuff went here from closing the task]

I have the following org-mode variables set in my .emacs:

,[ org related .emacs stuff ]
| (add-hook 'org-mode-hook '(lambda () (flyspell-mode 1)))
| 
| ;;;
| ;;; Org Mode
| ;;;
| (add-to-list 'load-path (expand-file-name "~/org-mode"))
| (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
| (require 'org-install)
| 
| (global-font-lock-mode 1) ; for all buffers
| (setq org-log-done t
|   org-agenda-include-diary nil
|   org-cycle-include-plain-lists nil
|   org-agenda-todo-list-sublevels t
|   org-agenda-todo-ignore-deadlines t
|   org-agenda-todo-ignore-scheduled t
|   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 nil
|   org-show-siblings nil
|   org-export-with-sub-superscripts nil
|   org-clock-out-when-done nil
|   org-use-fast-todo-selection t)
| 
| (setq org-agenda-sorting-strategy '((agenda time-up priority-down)
|   (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)
| 
| (add-hook 'remember-mode-hook 'org-remember-apply-template)
| ;
| (custom-set-variables
|  '(org-default-notes-file "~/org/notes.org")
|  '(org-agenda-ndays 7)
|  '(org-deadline-warning-days 14)
|  '(org-agenda-show-all-dates t)
|  '(org-agenda-skip-deadline-if-done t)
|  '(org-agenda-skip-scheduled-if-done t)
|  '(org-agenda-start-on-weekday nil)
|  '(org-reverse-note-order t)
|  '(org-fast-tag-selection-single-key (quote expert))
|  '(org-agenda-custom-commands
|(quote (("d" todo "DELEGATED" nil)
|  ("c" todo "DONE|DEFERRED|CANCELLED" nil)
|  ("w" todo "WAITING" nil)
|  ("W" agenda "" ((org-agenda-ndays 21)))
|  ("A" agenda ""
|   ((org-agenda-skip-function
| (lambda nil
|   (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]")))
|(org-agenda-ndays 1)
|(org-agenda-overriding-header "Today's Priority #A tasks: ")))
|  ("u" alltodo ""
|   ((org-agenda-skip-function
| (lambda nil
|   (org-agenda-skip-entry-if (quote scheduled) (quote deadline)
| (quote regexp) "<[^>\n]+>")))
|(org-agenda-overriding-header "Unscheduled TODO entries: "))
|  '(org-remember-store-without-prompt t)
|  '(org-remember-templates
|(quote ((116 "* TODO %?\n  %u" "~/org/todo.org" "Tasks")
|  (110 "* %u %?" "~/org/notes.org" "Notes"
|  '(remember-annotation-functions (quote (org-remember-annotation)))
|  '(remember-handler-functions (quote (org-remember-handler
| 
| (setq org-todo-keyword-faces
|   '(("TODO"  . (:foreground "red" :weight bold))
|   ("STARTED"  . (:foreground "red" :weight bold))
|   ("WAITING"  . (:foreground "orange" :weight bold))
|   ("APPT"  . (:foreground "blue" :weight bold :underline t))
|   ("DONE"  . (:foreground "forest green" :weight 

[Orgmode] buffer-locale setting of locale for day names in time-stamps

2007-09-06 Thread William Henney
Hi list

I am using org mode to publish HTML pages, some of which are for an
English-speaking audience and some of which are for a Spanish-speaking
audience. Therefore, I would like the day-of-week names in the default
org time-stamps to be localised appropriately. However, the only way I
know to change the locale is with set-locale-environment, which
changes it globally. Is there any way to have buffer-local (or
file-local) setting of the locale.

I realise this is not strictly an org-mode question, but maybe some of
you know the answer...

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] Using org-store-link in an indirect buffer

2007-09-06 Thread William Henney
Currently, one cannot use org-store-link in an indirect buffer. The
stack trace is given below. Would it be possible to fix this?

Cheers

Will

Debugger entered--Lisp error: (error "Cannot link to a buffer which is
not visiting a file")
  signal(error ("Cannot link to a buffer which is not visiting a file"))
  error("Cannot link to a buffer which is not visiting a file")
  (cond ((run-hook-with-args-until-success ...) (setq link ... desc
...)) ((eq major-mode ...) (let ... ... ...)) ((eq major-mode ...)
(setq link ...) (setq cpltxt ...) (org-store-link-props :type "info"
:file Info-current-file :node Info-current-node)) ((eq major-mode ...)
(let ... ... ...)) ((or ... ...) (and ... ...)
(vm-follow-summary-cursor) (save-excursion ... ...)) ((eq major-mode
...) (let* ... ... ... ... ...)) ((or ... ...) (let ... ... ... ...))
((eq major-mode ...) (save-excursion ...)) ((eq major-mode ...) (let
... ... ... ...)) ((memq major-mode ...) (and ... ...) (let* ... ...
... ...)) ((eq major-mode ...) (setq cpltxt ... link ...)
(org-store-link-props :type "w3" :url ...)) ((eq major-mode ...) (setq
cpltxt ... link ...) (org-store-link-props :type "w3m" :url ...))
((setq search ...) (setq link ...) (setq cpltxt ...)) ((eq major-mode
...) (setq cpltxt ... link ...) (org-store-link-props :type "image"
:file buffer-file-name)) ((eq major-mode ...) (setq cpltxt ... link
...)) ((and buffer-file-name ...) (setq cpltxt ...) (when ... ...) (if
... ...) (setq link ...)) (buffer-file-name (setq cpltxt ...) (when
... ... ...) (setq link ...)) ((interactive-p) (error "Cannot link to
a buffer which is not visiting a file")) (t (setq link nil)))
  (let (link cpltxt desc description search txt) (cond (... ...) (...
...) (... ... ... ...) (... ...) (... ... ... ...) (... ...) (... ...)
(... ...) (... ...) (... ... ...) (... ... ...) (... ... ...) (... ...
...) (... ... ...) (... ...) (... ... ... ... ...) (buffer-file-name
... ... ...) (... ...) (t ...)) (if (consp link) (setq cpltxt ... link
...)) (setq link (or link cpltxt) desc (or desc cpltxt)) (if (equal
desc "NONE") (setq desc nil)) (if (and ... link) (progn ... ...) (and
link ...)))
  org-store-link(nil)
  call-interactively(org-store-link)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)


-- 

  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] non-destructive navigation/searching of org files (was Feature request: navigate history of folding views)

2007-09-06 Thread William Henney
[Subject line changed to reflect broadened scope]

On 9/6/07, William Henney <[EMAIL PROTECTED]> wrote:
> One way that this could be improved (without implementing a history
> mechanism) would be if sparse trees were always created in indirect
> buffers, so the original view could be recovered. Would this be an
> easier solution to implement? It seems that "C-c C-j" (org-goto)
> already works in this sort of way (I only discovered org-goto a few
> days ago and I am rapidly falling in love with it).

Another option would be to expand on the abilities of org-goto. I just
discovered that "C-s" works in the *org-goto* buffer, which is great.
If "C-c /" would work there as well, that would just about have me
covered. Even better with a key binding of just "/"

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


Re: [Orgmode] Feature request: navigate history of folding views

2007-09-06 Thread William Henney
Hi Carsten

On 9/4/07, Carsten Dominik <[EMAIL PROTECTED]> wrote:
>
> On Sep 3, 2007, at 19:23, William Henney wrote:
> > On 7/11/07, Eddward DeVilla <[EMAIL PROTECTED]> wrote:
> >> For my uses, what I would love is a way to have org-mode remember how
> >> a subtree was folded so I could hide a subtree and then reopen it
> >> later with all of it children exposed or hidden as they were before.
> >> I like to use hiding for context in a project, but I get by without
> >> it.
> >
> > This is similar to something that I have often wished for: some sort
> > of history mechanism for the expose/hide states of a buffer. The ideal
> > interface would simply be for "C-_" (undo) to work on the folding
> > views. Is this at all feasible?
>
> Not easily.  outline-mode uses overlays to hide parts of the buffer,
> and overlay changes don't make it into the undo list.  Text property
> changes would be undoable.
>

OK, I understand this isn't going to happen any time soon.

> I guess storing the hiding state in some way is in principle
> possible but a lot of work.  More-over, it would be hard to write
> it in a way that it would this smoothly integrate into the normal
> work flow.
>

Yes. On further reflection, my suggestion of just adding folding
changes to the undo list wasn't a good one. We would really want a
separate navigable list, similar to "C-c &" for buffer positions.

Perhaps there are other ways to achieve what I want. Here is a common
scenario where I have felt that a history of folding states would be
useful:

Say I am working on two or three small parts of a large org file. The
rest of the file is folded. At some point I need information from
elsewhere in the file, so I use "C-c /" to look for it. This creates a
sparse tree that wipes out the particular folding state that I had
originally created, so I now have to go back and search for the
contexts that I was working in. Not good!

One way that this could be improved (without implementing a history
mechanism) would be if sparse trees were always created in indirect
buffers, so the original view could be recovered. Would this be an
easier solution to implement? It seems that "C-c C-j" (org-goto)
already works in this sort of way (I only discovered org-goto a few
days ago and I am rapidly falling in love with it).

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


Re: [Orgmode] running remember with emacsclient - how to get a new frame

2007-09-06 Thread pete phillips
> "Jason" == Jason F McBrayer <[EMAIL PROTECTED]> writes:

Jason> I define this function in my .emacs:

Many thanks for that.  It works perfectly. I have function key F9 bound
in xbindkeys to run the remember command, and after ^C the frame
disappears. Superb.

Pete


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


Re: [Orgmode] org priority cycling - removing priorities

2007-09-06 Thread William Henney
Hi Rick

On 9/6/07, Rick Moynihan <[EMAIL PROTECTED]> wrote:
> Every now and then I find myself mispressing SHIFT-up/SHIFT-down on an
> outline and assigning a priority to it.  This then often leads me to
> navigating the point to the priority to delete it manually.
>

In the meantime, you can always use "C-_" to undo the mistake...

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


Re: [Orgmode] howto fine tune agenda view

2007-09-06 Thread Gijs Hillenius
   -- Replying to my own post without quoting it:

I should add, that I *now* understand this is a FAQ and it
could potentially be solved by adding a timestamp instead of
scedule/deadline. But all of my WRITE items come with deadlines...

I believe (I'm trying it out now) that having a DEADLINE sort of
blocks what the timestamp could do.. or I would have to manually
delete the deadlines..


Gijs
-- 
"I don't have to take this abuse from you -- I've got hundreds of
people waiting to abuse me."
-- Bill Murray, "Ghostbusters"


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


[Orgmode] org priority cycling - removing priorities

2007-09-06 Thread Rick Moynihan
Every now and then I find myself mispressing SHIFT-up/SHIFT-down on an 
outline and assigning a priority to it.  This then often leads me to 
navigating the point to the priority to delete it manually.


It would be great if SHIFT-up/SHIFT-down would cycle through:

[#A]
[#B]
[#C]
_ - blank (i.e. no priority).

This way I could easily undo the operation with the same keys.  Is there 
any good reason not to have this behaviour?


R.


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


[Orgmode] Re: Two org-remember bugs in 5.07

2007-09-06 Thread Tassilo Horn
Carsten Dominik <[EMAIL PROTECTED]> writes:

Hi Carsten,

> What happens if you leave an empty line before the "* Remember" line?

It works as it should. ;-)

Bye,
Tassilo
-- 
Tom Clancy has to pay royalties  to Chuck Norris because "The Sum of All
Fears" is the name of Chuck Norris' autobiography.



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


[Orgmode] howto fine tune agenda view

2007-09-06 Thread Gijs Hillenius
Hi!

With so many options in this org forest, it is easy to miss the tree
I'm looking for ...

Would appreciate it if someone could kick me in the right direction,
apologies for the length of my question:

I use org-mode to keep track of items i'm supposed to write and track
these until i've invoiced them, after which they're in my "Eekboek"
 a Dutch open source bookkeeping application  and I can
track 'em there.

So, studying the documentation, I added this to my set up

(setq org-todo-keywords
  '((sequence "TODO" "|" "DONE")
(sequence "WRITE" "VERIFY" "INVOICE" "|" "INVOICED")))

In most cases the time between INVOICE and INVOICED will be a few
days. In some cases it is a month or more :-( as I wait for the client
to send me some details I need add with the invoice.

I definitively want the WRITE in my agenda view. But is there a tweak
that allows me to make some of these INVOICE todo's disappear at least
temporary from my agenda view? I'm not sure scheduling does this.

Thx


-- 
 Selma: Hmm... It is probably my last chance to be a mommy.
Waiter: Cigarette, Mrs. McClure?
  Troy: You bet! From now on, she's smoking for two!
-- "A Fish Called Selma"


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


Re: [Orgmode] Feature Request: org-agenda-set-category

2007-09-06 Thread T. V. Raman

That would get some level of consistency  in which sounds like a
good idea.

> "Bastien" == Bastien  <[EMAIL PROTECTED]> writes:
Bastien> "T. V. Raman" <[EMAIL PROTECTED]> writes:
>> Could we perhaps introduce a special property that is used
>> by org-agenda to build the left column?
Bastien> 
Bastien> What about:
Bastien> 
Bastien>   :PROPERTIES: :CATEGORY: general :ARCHIVE:
Bastien> archives:: :END:
Bastien> 
Bastien> as a future replacement for #+CATEGORY and
Bastien> #+ARCHIVE?
Bastien> 
Bastien> -- Bastien
Bastien> 
Bastien> 
Bastien> ___
Bastien> Emacs-orgmode mailing list Emacs-orgmode@gnu.org
Bastien> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


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


Re: [Orgmode] Two org-remember bugs in 5.07

2007-09-06 Thread Carsten Dominik

What happens if you leave an empty line before the "* Remember" line?

- Carsten

On Sep 5, 2007, at 18:08, Tassilo Horn wrote:


Hi,

I think I've discovered two problems with org's remember integration.
Sadly I use 5.07 since 5.08 hasn't been incorporated Emacs trunk yet.

Here's my remember setup:

--8<---cut here---start->8---
(setq org-default-notes-file "~/org/main.org"
  org-remember-default-headline "Remember"
  org-remember-templates '(;; TODOs
   (?t "* TODO %?\n(created: %U)\n%i\n%a")
   ;; Ideas
   (?i "* Idea: %^{Title}\n(created: 
%U)\n%?\n%i\n%a")

   ;; Notes
   (?n "* Note: %?\n(created: 
%U)\n%i\n%a")))


(setq remember-annotation-functions '(org-remember-annotation)
  remember-handler-functions'(org-remember-handler)
  org-remember-store-without-prompt t)

(add-hook 'remember-mode-hook 'org-remember-apply-template)
--8<---cut here---end--->8---

The file ~/org/main.org is my only org file.  It starts with

* Remember
#+CATEGORY: Remember
** TODO ...
...

and several level-1 headlines and categories follow.  When I file an
item with remember, it should be added as subitem to the "* Remember"
headline.

Bug 1: That doesn't happen.  The new TODO, idea or note is appended to
  the file.  It's always the last entry of the last headline.  I also
  tried letting org-remember-default-headline at its default value ""
  and used remember templates like

  (?t "* TODO %?\n(created: %U)\n%i\n%a" nil "Remember")

  but that makes no difference.  I also tried using "* Remember" as
  headline, but still no luck.

Bug 2: The docs say

  ,[ (info "(org)Storing notes") ]
  | If the variable `org-adapt-indentation' is non-nil, the entire
  | text is also indented so that it starts in the same column as the
  | headline (after the asterisks).
  `

  but that doesn't happen, although its value is t.  For example a todo
  made with the remember template above results in something like this.

--8<---cut here---start->8---
** TODO test
(created: [2007-09-05 Wed 18:02])

[[info:org:Storing%20notes][org:Storing notes]]
--8<---cut here---end--->8---

  I would expect the "(created..." and the link to be aligned with the
  headline.  I inserted spaces after the \n in the template, because 
the

  doc-string of `org-adapt-indentation' says that column 0 entries in
  the body won't be aligned, but then only the single space is 
inserted,

  resulting in

--8<---cut here---start->8---
** TODO test
 (created: [2007-09-05 Wed 18:02])

 [[info:org:Storing%20notes][org:Storing notes]]
--8<---cut here---end--->8---

I'll check if the problem still persists with 5.08 as soon as it's
included in the emacs trunk.  Please ping me when that's done.

Bye,
Tassilo



___
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] running remember with emacsclient - how to get a new frame

2007-09-06 Thread Jason F. McBrayer
pete phillips <[EMAIL PROTECTED]> writes:

> Hi
>
> I want to bind a keyboard key to run 
>
>   /usr/bin/emacsclient.emacs-snapshot  -e "(remember)"

I define this function in my .emacs:

(defun my-remember nil
  (progn (select-frame
  (make-frame '((name . "*Remember*") )))
 (raise-frame)
 (remember)))

And this additional code to close the frame if remember was opened in
its own frame:

(setq remember-all-handler-functions t)
(setq remember-handler-functions
  '(org-remember-handler
  (lambda nil
(let* ((frame-names-alist (make-frame-names-alist))
   (frame (cdr (assoc "*Remember*" frame-names-alist
  (if frame
  (delete-frame frame t))
 
And use a script called 'remember' that runs:

emacsclient -n --eval '(my-remember)'

I've got quite a bit of other code to make emacsclient maximally
desktop-environment-friendly --- emacsclient always opening in new
frames, closing frames killing the associated buffer,
server-done closing the frame, a script to either start emacs or use
emacsclient as needed, running emacs with the initial frame unmapped,
letting you delete all visible frames, and a .desktop file that wraps
the aforementioned script.  One of these days I should package it all
up, but it's kind of all over the place.

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


[Orgmode] Re: running remember with emacsclient - how to get a new frame

2007-09-06 Thread Tassilo Horn
pete phillips <[EMAIL PROTECTED]> writes:

Hi Pete,

> Is there anything I can pass to emacs using emacsclient which will force
> it to open up a new frame on my current desktop ?  (and preferably close
> the frame once I have hit ^C^C)

I think this should work.

(add-hook 'server-switch-hook 'make-frame)
(add-hook 'server-done-hook   'delete-frame)

Probably you need to `C-x #' in the new frame to close it.

Bye,
Tassilo
-- 
Fighting patents one by one  will never eliminate the danger of software
patents,  any  more than  swatting  mosquitoes  will eliminate  malaria.
(Richard M. Stallman)



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


[Orgmode] running remember with emacsclient - how to get a new frame

2007-09-06 Thread pete phillips
Hi

I want to bind a keyboard key to run 

/usr/bin/emacsclient.emacs-snapshot  -e "(remember)"

so that whatever I am doing I can easily and quickly add a note to my
org file using remember.

However, when I run 

 /usr/bin/emacsclient.emacs-snapshot  -e "(remember)"

from the command line, the prompt comes up in an existing buffer
(usually on another virtual desktop as well!) which I have to go
searching for.

Is there anything I can pass to emacs using emacsclient which will force
it to open up a new frame on my current desktop ?  (and preferably close
the frame once I have hit ^C^C)

Pete





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


[Orgmode] Re: Feature Request: org-agenda-set-category

2007-09-06 Thread Christian Egli
T. V. Raman  users.sf.net> writes:

> I'm perfectly happy to do this with properties rather than
> categories. But I suggested categories because that is what
> agenda  views are using at present in the left column.
> Could we perhaps introduce a special property that is used by
> org-agenda to build the left column?

If you are just trying to change the layout of the agenda entries you might want
to look at org-finalize-agenda-entries or org-agenda-highlight-todo to see if
you could make the output for one agenda line somehow customizeable.

HTH
Christian 



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


Re: [Orgmode] canonical modifications to makefile for ubuntu feisty emacs 22.1.1?

2007-09-06 Thread Ian Barton


At some point, I made a mess of things in upgrading org-mode; stupidly 
I sometimes modified the makefile so as to install the local lisp 
files to a local lisp tree ~/emacs/site-lisp (loaded by my .emacs) and 
sometimes so that they ended up in /usr/local/share/emacs/site-lisp. 
My bad.



Brian,

Having got some similar holes in my feet I install in my /home directory.

In my Makefile I have:

# Where local software is found
prefix=~/emacs

# Where local lisp files go.
lispdir = $(prefix)/org

In my .emacs:

(setq load-path (cons "~/emacs/org" load-path))

Thus any mistakes only affect my /home directory an so are more easily 
fixed. If you are the only user of the computer, this method works well.


Ian.


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