Re: [Orgmode] postponing todos
Hi Richard, [EMAIL PROTECTED] writes: At the moment, all uncompleted todo entries appear in my agenda views, regardless of scheduling. Is there something I could use as query string to filter the list based on scheduling, like SCHEDULED=today? One way to do this is to define your own agenda view through `org-agenda-custom-commands': For example: bzg-agenda-command.el Description: application/emacs-lisp BTW: you can replace :timestamp by :deadline or whatever `org-diary' is supposed to understand -- but so far i cannot get :scheduled display today's scheduled entries. I think it's a bug about time computation in `org-agenda-get-day-entries'. Hope this helps, -- Bastien ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Integration of Org mode and mairix
Georg C. F. Greve [EMAIL PROTECTED] writes: On Sat, 04 Aug 2007 21:44:48 -0400 Xiao-Yong Jin [EMAIL PROTECTED] wrote: xj Perhaps we should actually suggest Carsten build nnir support in xj org-mode and at the same time persuade the maintainer of nnir.el to xj support mairix? ;-) I think this could be a clean solution to the problem. Here is a patch against latest org-mode 5.04 as a first attempt of implementing custom link-types (stored in `org-link-custom-types'.) diff --git a/org.el b/org.el index 1fc081e..c139be1 100644 --- a/org.el +++ b/org.el @@ -968,6 +968,23 @@ Automatically means, when TAB or RET or C-c C-c are pressed in the line. The value of this is taken from the #+LINK lines.) (make-variable-buffer-local 'org-link-abbrev-alist-local) +(defcustom org-link-custom-types nil + Alist of recognized link types. +This types are appended to `org-link-types'. +Each cell is of the form + + \(\type\ \(follow-function store-function major-mode\)\) + +where \type\ is the string defining the type, follow-function +is the function that Org will call to follow these links, +store-function the function that Org will use to store these link +and major-mode the major mode where it's active. + :group 'org-link + :type '(repeat (list (string :tag Type (string) ) + (function :tag Follow function ) + (function :tag Store function ) + (function :tag Active in major mode + (defcustom org-link-abbrev-alist nil Alist of link abbreviations. The car of each element is a string, to be replaced at the start of a link. @@ -4140,8 +4157,11 @@ that will be added to PLIST. Returns the string that was modified. (require 'font-lock) (defconst org-non-link-chars ]\t\n\r) -(defconst org-link-types '(http https ftp mailto file news bbdb vm - wl mhe rmail gnus shell info elisp)) +(defconst org-link-types + (append (list http https ftp mailto file news bbdb vm + wl mhe rmail gnus shell info elisp) + (delq nil (mapcar (lambda(x) (car x)) org-link-custom-types + (defconst org-link-re-with-space (concat ?\\( (mapconcat 'identity org-link-types \\|) \\): @@ -10410,9 +10430,13 @@ For links to usenet articles, arg negates `org-usenet-links-prefer-google'. For file links, arg negates `org-context-in-file-links'. (interactive P) (setq org-store-link-plist nil) ; reset - (let (link cpltxt desc description search txt) + (let (link cpltxt desc description search txt cus) (cond + ((setq cus (assq major-mode (mapcar '(lambda(e) (reverse e)) + org-link-custom-types))) + (funcall (nth 1 cus))) + ((eq major-mode 'bbdb-mode) (let ((name (bbdb-record-name (bbdb-current-record))) (company (bbdb-record-getprop (bbdb-current-record) 'company))) @@ -11006,7 +11030,7 @@ optional argument IN-EMACS is non-nil, Emacs will visit the file. (org-remove-occur-highlights nil nil t) (if (org-at-timestamp-p t) (org-follow-timestamp-link) -(let (type path link line search (pos (point))) +(let (type path link line search (pos (point)) cus) (catch 'match (save-excursion (skip-chars-forward ^]\n\r) @@ -11177,7 +11201,10 @@ optional argument IN-EMACS is non-nil, Emacs will visit the file. (message %s = %s cmd (eval (read cmd))) (error Abort - (t + ((setq cus (assoc type org-link-custom-types)) + (funcall (nth 1 cus) path)) + + (t (browse-url-at-point) (move-marker org-open-link-marker nil)) It lets you define an alist of custom link-types. See the docstring of `org-link-custom-types'. Then you need to define the follow/store functions by yourself. Here are the defuns I use (in addition to Georg's mairix.el): org-mairix.el Description: application/emacs-lisp I think the nnir.el support could be provided via custom link types, instead of being hardcoded within org.el. Please test it and give me feedback! PS: i started to have a look at nnir.el to make it aware of mairix. But i'm not sure i'll have time for this till the end of the week. -- Bastien ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: table formulas revisited
I think I fixed my problem, but I was wondering if someone with some more elisp org-code knowledge could check this for me. The 5.04 diff is 8876a8877 elements It looks like an argument to the first mapconcat was missing in org-table-make-reference. Edd On 7/27/07, Eddward DeVilla [EMAIL PROTECTED] wrote: I must have been asleep at the wheel when 5.04 came out. Anyhow, that doesn't work either. Edd On 7/27/07, Eddward DeVilla [EMAIL PROTECTED] wrote: Hi all, This is something I thought I had working before. In anycase, anytime I use a range in a table, I cannot get it to evaluate. It dies before even reaching the formula debugger with Wrong number of arguments: #subr mapconcat, 2. This is org 5.03 and I've tried it on emacs 21.1.1 and 21.3.50.1. What's really weird is that I think this was working eariler this week on the same version of org and emacs. Can anyone else try dropping this table in an org buffer and hitting C-cC-c on the TBLFM line to confirm if it's just me? Thanks, Edd * wealth management |--+-+-| | item | amount | balance | |--+-+-| | paid | 50.00 | 50.00 | | baby's new pair of shoes | -25.00 | 25.00 | | chips| -2.50 | 22.50 | | my birthday! | 100.00 | 122.50 | | speeding fine :( | -200.00 | -77.50 | |--+-+-| #+TBLFM: $3='(apply '+ '(@-I$-1..$-1));N%.2f ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] new bug in table editor
Hi, I found a bug in the table formula editor. When I enter a range like @-I$3..$3, it get converted to. @-I$3..C in the editor. When I move the cursor onto the range in the table formula, instead of just highlighting the cells in column 3 down to the current cell, it highlights a rectangle as if I had entered @-I$3..$-0. This only seems to affect the formula editor and not formula evaluation. Edd ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: postponing todos
Hi [EMAIL PROTECTED] writes: I would like to have a solution for the following problem: I browse TODOs in my agenda view and I would like to postpone them, so agenda buffers don't list them until a certain date. I would like to quickly (by using shortcuts) postpone a todo entry from the agenda buffer by: - 1-2-3 day - coming monday/friday - next monday/friday What is possible with current org mode? What I usually do is to schedule the TODOs for a specific day. Then I use the weekly agenda where I can postpone the TODOs easily with S-right and S-left. So a move of a couple of days is easily done. You can even specify the number of days to move forward or back with e.g. C-u 5 S-right. It would be fairly easy to extend the function behind S-right (org-agenda-date-later) to do some date calculation (next monday, etc) with the help of the calendar routines and to bind this to some key in the agenda view. C-h f org-agenda-date-later RET should give you a lead. HTH Christian ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode