[Orgmode] [org-timer] PATCH add hooks to org-timer.el
Hello all-- I'm experimenting with the pomodoro technique [1] and trying to integrate it with org mode. I've attached a patch that defines some hooks for org-timer.el. My intention is to use these hooks to automate record keeping and interactions with org-clock. If this isn't the correct approach to adding hooks to timer functions, what would you suggest? Thanks for considering it, /au [1] http://www.pomodorotechnique.com From 86de94d18302bda17379c35f11423788b11348c2 Mon Sep 17 00:00:00 2001 From: Austin F. Frank austin.fr...@gmail.com Date: Sat, 20 Feb 2010 08:22:47 -0500 Subject: [PATCH 3/3] add hooks for relative and countdown timers --- lisp/org-timer.el | 36 ++-- 1 files changed, 34 insertions(+), 2 deletions(-) diff --git a/lisp/org-timer.el b/lisp/org-timer.el index ed5a423..47397aa 100644 --- a/lisp/org-timer.el +++ b/lisp/org-timer.el @@ -48,6 +48,31 @@ the value of the relative timer. :group 'org-time :type 'string) +(defcustom org-timer-start-hook nil + Hook run after relative timer is started. + :group 'org-time + :type 'hook) + +(defvar org-timer-stop-hook nil + Hook run before relative timer is stopped. + :group 'org-time + :type 'hook) + +(defvar org-timer-pause-hook nil + Hook run before relative timer is paused. + :group 'org-time + :type 'hook) + +(defvar org-timer-set-hook nil + Hook run after countdown timer is set. + :group 'org-time + :type 'hook) + +(defvar org-timer-cancel-hook nil + Hook run before countdown timer is canceled. + :group 'org-time + :type 'hook) + ;;;###autoload (defun org-timer-start (optional offset) Set the starting time for the relative timer to now. @@ -82,7 +107,8 @@ the region 0:00:00. (org-timer-set-mode-line 'on) (message Timer start time set to %s, current value is %s (format-time-string %T org-timer-start-time) - (org-timer-secs-to-hms (or delta 0)) + (org-timer-secs-to-hms (or delta 0))) + (run-hooks 'org-timer-start-hook (defun org-timer-pause-or-continue (optional stop) Pause or continue the relative timer. With prefix arg, stop it entirely. @@ -102,6 +128,7 @@ the region 0:00:00. (org-timer-set-mode-line 'on) (message Timer continues at %s (org-timer-value-string))) (t +(run-hooks 'org-timer-pause-hook) ;; pause timer (setq org-timer-pause-time (current-time)) (org-timer-set-mode-line 'pause) @@ -110,6 +137,7 @@ the region 0:00:00. (defun org-timer-stop () Stop the relative timer. (interactive) + (run-hooks 'org-timer-stop-hook) (setq org-timer-start-time nil org-timer-pause-time nil) (org-timer-set-mode-line 'off)) @@ -264,6 +292,7 @@ VALUE can be `on', `off', or `pause'. (interactive) (mapc (lambda(timer) (when (eval timer) +(run-hooks 'org-timer-cancel-hook) (cancel-timer timer) (setq timer nil))) '(org-timer-timer1 @@ -317,7 +346,10 @@ VALUE can be `on', `off', or `pause'. (setq org-timer-last-timer (run-with-timer secs nil 'org-notify (format %s: time out hl) t)) - (set timer org-timer-last-timer))) + (setq org-timer-mode-line-timer +(run-with-timer 1 1 'org-timer-update-mode-line)) + (set timer org-timer-last-timer) + (run-hooks 'org-timer-set-hook))) '(org-timer-timer1 org-timer-timer2 org-timer-timer3) -- 1.7.0 -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgpsQVrbZg3Vk.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [org-timer] mode line request
Hi! Would it be possible for timers set using org-timer-set-timer to display their current value in the mode line? I think all of the required pieces to implement this exist already, but I haven't been able to get it to work. The relevant functions seem to be org-timer-update-mode-line and parts of org-timer-show-remaining-time. I'd like to be able to watch as the timer counts down towards zero. If this behavior isn't desired generally, could we introduce a variable to control whether these timers are shown in the mode line? Thanks, /au -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgpaNZVhczxDA.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Exporting babel-result images inline
Hello I have org-babel code like #+begin_src R :var data=foo :file foo.png :exports results pie(data[,2], labels = data[,1]) #+end_src Which ends up html-exported as: pimg ... //p I would like to export the generated image inline rather than as a separate paragraph. However matching that p does not work with CSS as it lacks parent selectors. ATTR_HTML only affects the img which does not help. Any ideas? - Taru Karttunen ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [org-timer] PATCH add hooks to org-timer.el
Hi Austin, I have applied most of the patch, but I have a question: @@ -317,7 +346,10 @@ VALUE can be `on', `off', or `pause'. (setq org-timer-last-timer (run-with-timer secs nil 'org-notify (format %s: time out hl) t)) - (set timer org-timer-last-timer))) + (setq org-timer-mode-line-timer +(run-with-timer 1 1 'org-timer-update-mode- line)) + (set timer org-timer-last-timer) + (run-hooks 'org-timer-set-hook))) '(org-timer-timer1 org-timer-timer2 org-timer-timer3) Could you please coment on the above section? What exactly is it doing and why? - Carsten On Feb 20, 2010, at 2:41 PM, Austin Frank wrote: Hello all-- I'm experimenting with the pomodoro technique [1] and trying to integrate it with org mode. I've attached a patch that defines some hooks for org-timer.el. My intention is to use these hooks to automate record keeping and interactions with org-clock. If this isn't the correct approach to adding hooks to timer functions, what would you suggest? Thanks for considering it, /au [1] http://www.pomodorotechnique.com From 86de94d18302bda17379c35f11423788b11348c2 Mon Sep 17 00:00:00 2001 From: Austin F. Frank austin.fr...@gmail.com Date: Sat, 20 Feb 2010 08:22:47 -0500 Subject: [PATCH 3/3] add hooks for relative and countdown timers --- lisp/org-timer.el | 36 ++-- 1 files changed, 34 insertions(+), 2 deletions(-) diff --git a/lisp/org-timer.el b/lisp/org-timer.el index ed5a423..47397aa 100644 --- a/lisp/org-timer.el +++ b/lisp/org-timer.el @@ -48,6 +48,31 @@ the value of the relative timer. :group 'org-time :type 'string) +(defcustom org-timer-start-hook nil + Hook run after relative timer is started. + :group 'org-time + :type 'hook) + +(defvar org-timer-stop-hook nil + Hook run before relative timer is stopped. + :group 'org-time + :type 'hook) + +(defvar org-timer-pause-hook nil + Hook run before relative timer is paused. + :group 'org-time + :type 'hook) + +(defvar org-timer-set-hook nil + Hook run after countdown timer is set. + :group 'org-time + :type 'hook) + +(defvar org-timer-cancel-hook nil + Hook run before countdown timer is canceled. + :group 'org-time + :type 'hook) + ;;;###autoload (defun org-timer-start (optional offset) Set the starting time for the relative timer to now. @@ -82,7 +107,8 @@ the region 0:00:00. (org-timer-set-mode-line 'on) (message Timer start time set to %s, current value is %s (format-time-string %T org-timer-start-time) - (org-timer-secs-to-hms (or delta 0)) + (org-timer-secs-to-hms (or delta 0))) + (run-hooks 'org-timer-start-hook (defun org-timer-pause-or-continue (optional stop) Pause or continue the relative timer. With prefix arg, stop it entirely. @@ -102,6 +128,7 @@ the region 0:00:00. (org-timer-set-mode-line 'on) (message Timer continues at %s (org-timer-value-string))) (t +(run-hooks 'org-timer-pause-hook) ;; pause timer (setq org-timer-pause-time (current-time)) (org-timer-set-mode-line 'pause) @@ -110,6 +137,7 @@ the region 0:00:00. (defun org-timer-stop () Stop the relative timer. (interactive) + (run-hooks 'org-timer-stop-hook) (setq org-timer-start-time nil org-timer-pause-time nil) (org-timer-set-mode-line 'off)) @@ -264,6 +292,7 @@ VALUE can be `on', `off', or `pause'. (interactive) (mapc (lambda(timer) (when (eval timer) +(run-hooks 'org-timer-cancel-hook) (cancel-timer timer) (setq timer nil))) '(org-timer-timer1 @@ -317,7 +346,10 @@ VALUE can be `on', `off', or `pause'. (setq org-timer-last-timer (run-with-timer secs nil 'org-notify (format %s: time out hl) t)) - (set timer org-timer-last-timer))) + (setq org-timer-mode-line-timer +(run-with-timer 1 1 'org-timer-update-mode- line)) + (set timer org-timer-last-timer) + (run-hooks 'org-timer-set-hook))) '(org-timer-timer1 org-timer-timer2 org-timer-timer3) -- 1.7.0 -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [org-timer] PATCH add hooks to org-timer.el
On Sat, Feb 20 2010, Carsten Dominik wrote: @@ -317,7 +346,10 @@ VALUE can be `on', `off', or `pause'. + (setq org-timer-mode-line-timer +(run-with-timer 1 1 'org-timer-update-mode- line)) Could you please coment on the above section? What exactly is it doing and why? These two lines were left in accidentally. This was my initial attempt at addressing the issue I brought up in my other post about putting countdown timers in the mode line. It didn't work and can be removed. A clean patch is attached. Thanks, /au From ec22f579f9c1fe3169e6103ad05d05658ab90f8e Mon Sep 17 00:00:00 2001 From: Austin F. Frank austin.fr...@gmail.com Date: Sat, 20 Feb 2010 09:42:48 -0500 Subject: [PATCH] add hooks to start/stop/pause functions for relative and countdown timers --- lisp/org-timer.el | 34 -- 1 files changed, 32 insertions(+), 2 deletions(-) diff --git a/lisp/org-timer.el b/lisp/org-timer.el index ed5a423..9cee0b4 100644 --- a/lisp/org-timer.el +++ b/lisp/org-timer.el @@ -48,6 +48,31 @@ the value of the relative timer. :group 'org-time :type 'string) +(defcustom org-timer-start-hook nil + Hook run after relative timer is started. + :group 'org-time + :type 'hook) + +(defvar org-timer-stop-hook nil + Hook run before relative timer is stopped. + :group 'org-time + :type 'hook) + +(defvar org-timer-pause-hook nil + Hook run before relative timer is paused. + :group 'org-time + :type 'hook) + +(defvar org-timer-set-hook nil + Hook run after countdown timer is set. + :group 'org-time + :type 'hook) + +(defvar org-timer-cancel-hook nil + Hook run before countdown timer is canceled. + :group 'org-time + :type 'hook) + ;;;###autoload (defun org-timer-start (optional offset) Set the starting time for the relative timer to now. @@ -82,7 +107,8 @@ the region 0:00:00. (org-timer-set-mode-line 'on) (message Timer start time set to %s, current value is %s (format-time-string %T org-timer-start-time) - (org-timer-secs-to-hms (or delta 0)) + (org-timer-secs-to-hms (or delta 0))) + (run-hooks 'org-timer-start-hook (defun org-timer-pause-or-continue (optional stop) Pause or continue the relative timer. With prefix arg, stop it entirely. @@ -102,6 +128,7 @@ the region 0:00:00. (org-timer-set-mode-line 'on) (message Timer continues at %s (org-timer-value-string))) (t +(run-hooks 'org-timer-pause-hook) ;; pause timer (setq org-timer-pause-time (current-time)) (org-timer-set-mode-line 'pause) @@ -110,6 +137,7 @@ the region 0:00:00. (defun org-timer-stop () Stop the relative timer. (interactive) + (run-hooks 'org-timer-stop-hook) (setq org-timer-start-time nil org-timer-pause-time nil) (org-timer-set-mode-line 'off)) @@ -264,6 +292,7 @@ VALUE can be `on', `off', or `pause'. (interactive) (mapc (lambda(timer) (when (eval timer) +(run-hooks 'org-timer-cancel-hook) (cancel-timer timer) (setq timer nil))) '(org-timer-timer1 @@ -317,7 +346,8 @@ VALUE can be `on', `off', or `pause'. (setq org-timer-last-timer (run-with-timer secs nil 'org-notify (format %s: time out hl) t)) - (set timer org-timer-last-timer))) + (set timer org-timer-last-timer) + (run-hooks 'org-timer-set-hook))) '(org-timer-timer1 org-timer-timer2 org-timer-timer3) -- 1.7.0 -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgpGSOskDj4TN.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Fix clock-in with effort and percent complete cookie
Fixes Lisp error: (error Not enough arguments for format string) when the task to be clocked in has both a % in the heading due to the [%] cookie and an effort. --- I had a task Update environment [90%] that triggered this error when it contained an effort estimate. This commit is available at git://git.norang.ca/org-mode for-carsten lisp/org-clock.el |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 6e895bf..e3866be 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -405,8 +405,8 @@ pointing to it. Number of seconds between mode line clock string updates.) (defun org-clock-get-clock-string () - Form a clock-string, that will be show in the mode line. -If an effort estimate was defined for current item, use + Form a clock-string, that will be shown in the mode line. +If an effort estimate was defined for the current item, use 01:30/01:50 format (clocked/estimated). If not, show simply the clocked time like 01:50. (let* ((clocked-time (org-clock-get-clocked-time)) @@ -425,7 +425,7 @@ If not, show simply the clocked time like 01:50. (effort-str (format org-time-clocksum-format effort-h effort-m)) (clockstr (org-propertize (concat [%s/ effort-str - ] ( org-clock-heading )) + ] ( (replace-regexp-in-string % %% org-clock-heading) )) 'face 'org-mode-line-clock))) (format clockstr work-done-str)) (org-propertize (format -- 1.7.0.14.g7e948 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] Fix clock-in with effort and percent complete cookie
Applied, thanks. - Carsten On Feb 20, 2010, at 5:47 PM, Bernt Hansen wrote: Fixes Lisp error: (error Not enough arguments for format string) when the task to be clocked in has both a % in the heading due to the [%] cookie and an effort. --- I had a task Update environment [90%] that triggered this error when it contained an effort estimate. This commit is available at git://git.norang.ca/org-mode for-carsten lisp/org-clock.el |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 6e895bf..e3866be 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -405,8 +405,8 @@ pointing to it. Number of seconds between mode line clock string updates.) (defun org-clock-get-clock-string () - Form a clock-string, that will be show in the mode line. -If an effort estimate was defined for current item, use + Form a clock-string, that will be shown in the mode line. +If an effort estimate was defined for the current item, use 01:30/01:50 format (clocked/estimated). If not, show simply the clocked time like 01:50. (let* ((clocked-time (org-clock-get-clocked-time)) @@ -425,7 +425,7 @@ If not, show simply the clocked time like 01:50. (effort-str (format org-time-clocksum-format effort-h effort- m)) (clockstr (org-propertize (concat [%s/ effort-str - ] ( org-clock-heading )) + ] ( (replace-regexp-in-string % %% org-clock-heading) )) 'face 'org-mode-line-clock))) (format clockstr work-done-str)) (org-propertize (format -- 1.7.0.14.g7e948 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Footnotes in headings results in strange entries in the table of contens of the latex - pdf export
Hi, I tracked down the problem to latex itself, the generated code looks like this: \section{This is a simple heading \footnote{A footnote }} \label{sec-1} But to get a correct table of contents entry when a section title contains a footnote it should look like this: \section[This is a simple heading]{This is a simple heading \footnote{A footnote }} \label{sec-1} The solution was not found by me, I took it from http://www.mathlinks.ro/Forum/viewtopic.php?t=243820 But I don't want to edit the tex-file manually, how can I fix the renderer? I looked into it but I don't really understand how the export (and the latex backend) do their work. Geralt. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Git Store Link Broken?
Hello all, I noticed when I upgraded org from 6.21 (which comes with Emacs) to the git version (6.34trans), org-store-link stopped working. When I try to store a link from dired, I get a stringp nil error, with this debugger output: ## Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match(^/tmp_mnt/ nil) abbreviate-file-name(nil) org-git-store-link() run-hook-with-args-until-success(org-git-store-link) org-store-link(nil) call-interactively(org-store-link nil nil) ## It looks like something is going wrong when it enters org-git-store-link, even though it is not a git link that I'm storing. From what I can tell from the lisp code (I'm no lisper), it looks like it cycles trhough all the link types until one succeeds. Mine always chokes on the org-git-store-link. Is anyone else having this problem, or do I perhaps have something configured badly? By the way, Org-mode is fantastic. -- Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913,338.7164 (FAX) Up the airy mountain, Down the rushy glen, We daren't go a-hunting, For fear of little men. --- William Allingham (Donegal, Ireland) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Fix goto last refile location
Move the marker for the last refile location to the heading instead of at the end of the entry. This was causing C-u C-u C-c C-w to end up on the heading following the newly refiled entry. --- This uses the same mechanism that remember mode uses for bookmarking the last stored location. I originally had a save-excursion and org-back-to-heading call before setting the bookmark but this seems to work probably due to a side-effect. lisp/org.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index e5b2f56..8ba782a 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9399,8 +9399,9 @@ See also `org-refile-use-outline-path' and `org-completion-use-ido' (goto-char (point-min)) (or (outline-next-heading) (goto-char (point-max) (if (not (bolp)) (newline)) - (bookmark-set org-refile-last-stored) (org-paste-subtree level) + (and org-auto-align-tags (org-set-tags nil t)) + (bookmark-set org-refile-last-stored) (if (fboundp 'deactivate-mark) (deactivate-mark)) (run-hooks 'org-after-refile-insert-hook (if regionp -- 1.7.0.14.g7e948 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [PATCH] Fix goto last refile location
This commit is available at git://git.norang.ca/org-mode for-carsten -Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Org-depends: schedule X days after last completion
Hello, using the org-depends package, is there any way to set the next task to be scheduled a certain number of days after the current one is finished? Thanks, Nathaniel Flath ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Hiding items on agenda until day they are scheduled
Hello, Is there a property that will hide an item from the agenda until the day it is scheduled? I don't want to do this globally, just for specific items. Setting the style to 'habit' does this, but I was wondering if there was a more semantically-correct way. Thanks, Nathaniel Flath ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Git Store Link Broken?
Hi Daniel, Daniel E. Doherty wrote: Hello all, I noticed when I upgraded org from 6.21 (which comes with Emacs) to the git version (6.34trans), org-store-link stopped working. When I try to store a link from dired, I get a stringp nil error, with this debugger output: It's a small glitch in `org-git-store-link': Orgmode calls all registered store-link functions to see if one declares itself of being responsible for the particular file or buffer. `org-git-store-link' tries to make an assumption on whether the file that is currently visited is inside a git repository w/o taking into consideration that there are buffers that are not associated with a file -- like a dired buffer. Attached patch fixes this. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. maus.da...@gmail.com 0001-Avoid-trying-to-run-org-git-store-link-on-buffers-th.patch Description: Binary data pgpu4PFbRsAMK.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Git Store Link Broken?
Applied, thanks. - Carsten On Feb 20, 2010, at 7:48 PM, David Maus wrote: Hi Daniel, Daniel E. Doherty wrote: Hello all, I noticed when I upgraded org from 6.21 (which comes with Emacs) to the git version (6.34trans), org-store-link stopped working. When I try to store a link from dired, I get a stringp nil error, with this debugger output: It's a small glitch in `org-git-store-link': Orgmode calls all registered store-link functions to see if one declares itself of being responsible for the particular file or buffer. `org-git-store-link' tries to make an assumption on whether the file that is currently visited is inside a git repository w/o taking into consideration that there are buffers that are not associated with a file -- like a dired buffer. Attached patch fixes this. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. maus.da...@gmail.com 0001-Avoid-trying-to-run-org-git-store-link-on-buffers- th.patch___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Tables in ASCII export
On Feb 19, 2010, at 7:54 PM, Michael Gauland wrote: carsten.dominik this behavior is now the default, controlled by the new user option carsten.dominik `org-export-ascii-table-widen-columns'. Thanks. That's a start, but what I really want is to have long cells folded, so that one table row might become several lines in the ASCII export. For example, if my table looks like this in org: | / | 10R | 20 | | | 1 | The quick brown fo= | | | 2 | Now is the time for | I want my ASCII export to look like this: 1 The quick brown fox jumped over the lazy dogs. 2 Now is the time for all good me to come to the aid of the party. No, this is not possible. For multi-line fields, please check out table.el, which makes such tables. And Org does export them correctly. - Carsten I've started looking at org-table-align to get a feel for how org deals with tables, but I'm still trying to puzzle out where this folding should be done. Any advice on that? Thanks, Mike - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Wiki?
Manish mailtomanish.sha...@gmail.com writes: have you tried Wes Hardaker's generic exporter? C-c C-e g RET. it should already be able to do a lot of what you want. Ah thanks perfect, that's more than enough! Making modification possible is of course too much trouble, having a single command to export to wiki syntax and be able to paste directly is already very nice... ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Remove scheduled date when switch TODO states
Hello, I have a todo state, PENDING, that I organize tasks that I cannot perform immediately. Is there a way to configure org-todoconfigure so that when a task is switched to PENDING, if it has a scheduled date that date is removed? Thanks, Nathaniel Flath ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-batch-agenda-csv shows incomplete time
Hi, Org-mode version 6.21b in GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-10 on vernadsky, modified by Debian. The Org entry: * Appointments :work: #+CATEGORY: Appt ** Testing 2010-02-20 Sat 22:00-23:30 produces the following incomplete output with org-batch-agenda-csv : emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv a org-agenda-ndays 1)' Appt,Testing,timestamp,,work,2010-2-20,2200,,,1000,2010-2-20 whereas the output of org-batch-agenda shows the correct time: emacs -batch -l ~/.emacs -eval '(org-batch-agenda a org-agenda-ndays 1)' Appt: 22:00-23:30 Testing :work:: Thanks, Max ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: schedule repeated reminder on multiple days for multiple weeks
Richard Riley rileyrg...@gmail.com writes: Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: Richard Riley rileyrg...@gmail.com writes: What would the best approach be to schedule something like a radio program which is on monday to friday at a certain time for the next 20 weeks? * Incredible Radio Show 20:00-20:55 %%(and (and ( 0 (calendar-day-of-week date)) ( (calendar-day-of-week date) 6)) (diary-block 2010 3 1 2010 7 18)) Just to follow up on this, this format worked for me: %%(and (and ( 0 (calendar-day-of-week date)) ( (calendar-day-of-week date) 6)) (diary-block 2 1 2010 7 18 2010)) History Of The World In 100 Objects (R4) 19:45-19:59 The actual text in the heading was ignored and the text to display must follow the regexp. regards, r. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Remove scheduled date when switch TODO states
On Sun, Feb 21, 2010 at 1:43 AM, Nathaniel Flath wrote: Hello, I have a todo state, PENDING, that I organize tasks that I cannot perform immediately. Is there a way to configure org-todoconfigure so that when a task is switched to PENDING, if it has a scheduled date that date is removed? i'm not aware of any in-built way of doing this but org-schedule can be called with org-trigger-hook to do the job but i still don't know sufficient elisp to help with an implementation. :( http://orgmode.org/worg/org-configs/org-hooks.php#sec-1.15 -- manish ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Hiding items on agenda until day they are scheduled
On Sat, Feb 20, 2010 at 11:42 PM, Nathaniel Flath wrote: Hello, Is there a property that will hide an item from the agenda until the day it is scheduled? I don't want to do this globally, just for specific items. Setting the style to 'habit' does this, but I was wondering if there was a more semantically-correct way. i'm not clear which agenda you're talking about (a custom agenda block or a daily/weekly agenda. please take a look at following variables, they may do what you need: 1. org-agenda-skip-scheduled-if-deadline-is-shown 2. org-agenda-skip-scheduled-if-done 3. org-agenda-skip-timestamp-if-done 4. org-agenda-todo-ignore-deadlines 5. org-agenda-todo-ignore-scheduled 6. org-agenda-todo-ignore-with-date hth -- manish ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org-depends: schedule X days after last completion
On Sat, Feb 20, 2010 at 11:28 PM, Nathaniel Flath wrote: Hello, using the org-depends package, is there any way to set the next task to be scheduled a certain number of days after the current one is finished? not at the moment. though one can visualize the TRIGGER property chain-siblings-scheduled to be like chain-siblings-scheduled(x) where x is the number of days to be added to the CLOSED time of the previous entry to compute new SCHEDULED time. wish i knew sufficient elisp. -- manish ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: listing tasks with no TODO keyword in global TODO list
On Sat, Feb 20, 2010 at 8:00 AM, Matt Lundin wrote: [snip (15 lines)] i seem to recall that there was an instance where an item without a TODO keyword could be treated as if it was an unDONE item but i can't seem to find it anymore. Assuming that you only use DONE as an inactive todo, I believe you can get all headings *not* marked done with the following search: C-c a m /-DONE thanks! a custom agenda built around this does the job well. Are you perhaps thinking of the default setting for stuck projects? (setq org-stuck-projects '(+LEVEL=2/-DONE (TODO NEXT NEXTACTION) nil )) This defines projects based on their level (i.e., all level two items not marked DONE). possibly.. but i suspect it was something else. thanks again. -- manish ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-batch-agenda-csv shows incomplete time
Fixed, thanks. This fix is available in the git repository and will eventually be part of release 6.35. - Carsten On Feb 20, 2010, at 10:51 PM, Max wrote: Hi, Org-mode version 6.21b in GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-10 on vernadsky, modified by Debian. The Org entry: * Appointments :work: #+CATEGORY: Appt ** Testing 2010-02-20 Sat 22:00-23:30 produces the following incomplete output with org-batch-agenda-csv : emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv a org-agenda-ndays 1)' Appt,Testing,timestamp,,work,2010-2-20,2200,,,1000,2010-2-20 whereas the output of org-batch-agenda shows the correct time: emacs -batch -l ~/.emacs -eval '(org-batch-agenda a org-agenda- ndays 1)' Appt: 22:00-23:30 Testing :work:: Thanks, Max ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-publish-validate-link
Hi THomas, org-publish-validate-link validate links to files that show up in the list `org-publish-files-alist'. THis list contains all file names that are considered part of a project and should be published. It is updated each time you issue a command to publish a project. Are you sure that you are republishing the document that should contain the link? If that document has not changed, it will not republish it, so the ink will also not be fixed. You can force republishing by calling your publish command with a C-u prefix. Have you tried that? - Carsten On Feb 17, 2010, at 9:50 PM, Thomas S. Dye wrote: Aloha all, org-publish-validate-link rejects a valid link to a file when the file is created during an editing session. With ./test.org and ./support/test.pdf present at the start of a session, the first link in test.org (below) is validated. When ./ support/test-copy.pdf is added during the session, the second link is not validated and only the description of the link is output to test.html. - test.org * A test - link to [[file:support/test.pdf][test.pdf]] - link to [[file:support/test-copy.pdf][test-copy.pdf]] - If org-publish-validate-link is not used, then the link is placed correctly in the html output. I have read the org-mode manual, briefly searched the list archive, and read the function's documentation string, but didn't find anything that might alert me to this behavior. My expectation was that org-publish-validate-link would understand the org-mode publishing process and would validate links in the production environment that were correctly established in the publication location. I'm using Org-mode version 6.34trans (release_6.34c.89.g0c39) on emacs 23. All the best, Tom Thomas S. Dye, Ph.D. T. S. Dye Colleagues, Archaeologists, Inc. Phone: (808) 529-0866 Fax: (808) 529-0884 http://www.tsdye.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Slow speed of week and month views
Hi Matt, I am afraid I don't see any major speed improvements that could make this happen. Yes, one could parse all the files once, build a table in memory and get the entries for each day from there - but that comes down to a complete rewrite of the parser, maybe even to switching to an internal representation model for Org-mode. I don't see that happening, I am afraid. - Carsten On Feb 16, 2010, at 8:58 PM, Matt Lundin wrote: Currently I use org-mode to keep track of todos, projects, deadlines and the emacs diary to keep track of appointments. I would prefer to keep the latter in org-mode, but the slow speed of the weekly and monthly agenda views makes it difficult to gain a quick calendar overview of all upcoming timestamped items. Has anyone had success in setting up a *fast* calendar view for org-mode? I use the following custom command to get a view of timestamped items only: --8---cut here---start-8--- (cc Calendar (events) agenda ((org-agenda-ndays 1) (org-agenda-time-grid nil) (org-agenda-prefix-format %-12:t ) (org-agenda-include-all-todo nil) (org-agenda-repeating-timestamp-show-all t) (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline 'scheduled --8---cut here---end---8--- With 25 agenda files, if I type v m (view month) in the agenda results for this custom command, it takes over 16 seconds to generate the monthly calendar.[1] I get similar results if I type v m in the default agenda view.[2] As a point of comparison, I've included the time it takes to generate an agenda view for a single day on my system.[3] As far as I can tell, org-mode scans each agenda file anew for each day shown in the weekly or monthly agenda (hence the many invocations of org-agenda-get-day-entries in the results below), so the time it takes to generate the agenda is roughly proportional to the number of days in the view. Does anyone have any tips for speeding up the weekly or monthly agenda views? I have vague and utterly naïve notions of a function that would scan each agenda file *once* for timestamps within a given range rather than searching the agenda files again for each new day---but such a function is far beyond my elisp skills. Any help would be greatly appreciated. Thanks! Matt Footnotes: [1] Monthly view of custom command with 25 agenda files: org-agenda-view-mode-dispatch 1 15.528815 15.528815 org-agenda-month-view 1 15.384877 15.384877 org-agenda-change-time-span 1 15.384839 15.384839 org-agenda-redo 1 15.383679 15.383679 org-agenda-list 1 15.382742 15.382742 org-agenda-get-day-entries 700 13.948870999 0.0199269585 org-agenda-get-scheduled 700 6.416371 0.0091662457 org-agenda-skip-entry-if 12871 5.325690 0.0004137744 org-agenda-skip-if 12871 5.175026 0.0004020686 org-agenda-get-deadlines 700 4.247898 0.0060684271 org-agenda-get-timestamps 700 1.728949 0.0024699285 org-agenda-get-sexps 700 0.676313 0.0009661614 org-agenda-get-blocks 700 0.608785 0.0008696942 org-agenda-todayp 14000.333693 0.0002383528 org-agenda-skip 15534 0.045096 2.903...e-06 org-agenda-files 3 0.016815 0.005605 org-agenda-cleanup-fancy-diary 28 0.006259 0.0002235357 org-agenda-mode 1 0.00606 0.00606 org-agenda-highlight-todo 86 0.004180 4.860...e-05 org-agenda-format-date-aligned 28 0.003379 0.0001207142 org-agenda-new-marker 136 0.001280 9.419...e-06 org-agenda-mark-clocking-task 1 0.00121 0.00121 org-agenda-align-tags 1 0.000903 0.000903 org-agenda-find-same-or-today-or-agenda 1 0.000499 0.000499 org-agenda-fontify-priorities 1 0.000394 0.000394 org-agenda-fix-displayed-tags