Re: [Orgmode] Behavior Change/Bug: Agenda sorting of deadline itemsv > 4.73
Hi Eric, thanks for your report, this is fixed now. The deadline priority is now 100 on the due date, and it changes by 100 over the duration of the warning day period. I hope this does work better. - Carsten On Feb 1, 2008, at 5:57 PM, Eric J Haywiser wrote: Hm, the 4.67c behaviour seems a bit more sensible as it incorporates the number of days that a deadline is delayed into the priority calculation. Have a look at the function org-agenda-get-deadlines where the priority of a deadline is calculated. Specifically the following code: : (setq s (match-string 1) : pos (1- (match-beginning 1)) : d2 (org-time-string-to-absolute (match-string 1) d1) : diff (- d2 d1) : wdays (org-get-wdays s) : dfrac (/ (* 1.0 (- wdays diff)) wdays) : upcomingp (and todayp (> diff 0))) and : 'priority (+ (if upcomingp (floor (* dfrac 10.)) 100) : (org-get-priority txt)) You might be able to tweak this to get the desired behaviour. Hope that helps Christian Thank you. That pointer was very helpful. Without understanding all the details of the priority mechanism, I have this tweak which may introduce other issues. It maps deadlines in range [-deadline-warning-days -> +deadline- warning-days] to a priority [2*d-w-d -> 0]. The other priorities coming from org-get-priority are shifted 10x relative to 2*d-w-d regardless of d-w-d's value. This makes priorites coming from o-g-p have more weight than those calculated within o-a-g-d. I think this may have been the original idea with the (* 1000 and (+ 100 but I'm not really sure. diff org-5.19a.el org.el 14979d14978 < 14984,14985c14983,14984 < (* 1000 (- org-lowest-priority org-default-priority)) < (* 1000 (- org-lowest-priority --- (* (expt 10 (+ (floor (log10 (* 2 org-deadline-warning-days))) 1)) (- org-lowest-priority org-default-priority)\ ) (* (expt 10 (+ (floor (log10 (* 2 org-deadline-warning-days))) 1)) (- org-lowest-priority 21165c21164,21167 < upcomingp (and todayp (> diff 0))) --- partialpriority (+ (- 0 diff) wdays) upcomingp (and todayp (> diff 0)) pastp (<= diff 0) ) 21204,21205c21206 < 'priority (+ (if upcomingp (floor (* dfrac 10.)) 100) < (org-get-priority txt)) --- 'priority (+ partialpriority (org-get-priority txt)) ___ 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] bug report: setting tags via %^G in remember template
Fixed, thanks. - Carsten On Jan 31, 2008, at 5:24 PM, Austin Frank wrote: Hello! When I include a %^G in a remember template, I am prompted to enter tags whenever I use that template. I get tab completion for all tags that are in any agenda files. If I choose a tag that starts with "@", for example "@FUN", when the tags are written to the headline the leading "@" is stripped, resulting in the tag ":FUN:". remember template: org-remember-templates '(("todo" ?t "* TODO %? %^G\n CREATED: %u\n%a\n" "~/todo.org" "Unscheduled tasks")) Intended result: * TODO template entry :@FUN: Actual result: * TODO template entry :FUN: If others don't have this problem, I will try to track down what the problem is in my setup. This is only a minor annoyance, but I reckon its a bug nonetheless. Thanks! /au -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc ___ 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] org-export-region-as-latex exports more than region
On Jan 28, 2008, at 8:41 PM, Scott Otterson wrote: Tables are one of the handiest org mode features, especially since I can export them into latex. But there's a small bug: If I select a single table in an org file, and then type: M-x org-export-region-as-latex This command creates a temporary buffer with the LaTeX code but does not write it to a file. You are supposed to copy the code from the temporary buffer. If you select a table and then export to latex normally, you should get a file with just the table and some document setup around it. So maybe this is a misunderstanding, or I cannot reproduce what you describe. - Carsten org mode exports all tables in that file, plus some miscellaneous headlines. Scott ___ 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] using org-mode and screen
Well, Andrew, if you write an extension, I will put it into the CONTRIB directory of the distribution. - Carsten On Jan 28, 2008, at 12:41 AM, Andrew Hyatt wrote: Hi everyone, I use org-mode religiously these days. I blogged about my use here (http://technical-dresese.blogspot.com/2007/08/org-mode.html ) (please excuse the fact that when I wrote this I didn't know about the existing org-mode functionality to jump to the current clock). I generally have a problem of integrating the work I do in the shell with the tasks in org-mode. Plus, I often need access to the shells at home I started from work. I thought I'd combine these problems into a little org-mode extension that ties screen and org- mode together, via ansi-term. For these to work, you have to load ansi-term, which my hack is based on. If there's enough interest, I'll make a real .el file out of this. The general idea is that you start a task in which all the work will take place in a shell. This usually is not a leaf-task for me, but usually the parent of a leaf task. From a task in your org-file, M- x ash-org-screen will prompt for the name of a session. Give it a name, and it will insert a link. Open the link at any time to go the screen session containing your work! It works pretty well for me. The only problem is that I often run emacs in a screen session itself, and I can never get scrolling to work right in screen-in-screen. (defun ash-org-screen-buffer-name (name) "Returns the buffer name corresponding to the screen name given." (concat "*screen " name "*")) (defun ash-org-screen-helper (name arg) ;; Pick the name of the new buffer. (let ((term-ansi-buffer-name (generate-new-buffer-name (ash-org- screen-buffer-name name (setq term-ansi-buffer-name (term-ansi-make-term term-ansi-buffer-name "/usr/bin/ screen" nil arg name)) (set-buffer term-ansi-buffer-name) (term-mode) (term-char-mode) (term-set-escape-char ?\C-x) term-ansi-buffer-name)) (defun ash-org-screen (name) "Start a screen session with name" (interactive "MScreen name: ") (save-excursion (ash-org-screen-helper name "-S")) (insert-string (concat "[[screen:" name "]]"))) And don't forget to add ("screen" . "elisp:(ash-org-goto-screen \"%s \")") to org-link-abbrev-alist. ___ 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] Installation on windows
I don't know of any install wizard for org-mode or any other emacs add on. What I did was create a directory to put emacs plugins. I added it to emacs's load-path by putting the following in my .emacs file. (I don't know where that file is in windows if you don't use cygwin.) ;; set up my own package directory (setq load-path (append (list nil "~/.emacs_packages") ;; make this any path you choose load-path)) I then download the latest org-mode zip file and unpack it in a temporary directory. I then copy the elisp files (*.el) in the top level into my package directory. It tend to be about 4 files. I don't copy the files out of the sub directories (like the xemacs stuff) because I haven't needed them. Lastly I added the follow once to the .emacs: ;; setup Org mode (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)); to make emacs recognize org files (define-key global-map "\C-cl" 'org-store-link); (optional) to store links in non-org-mode buffers/files (define-key global-map "\C-ca" 'org-agenda); (optional) to open an agenda buffer from anywhere (add-hook 'org-mode-hook 'turn-on-font-lock); org-mode requires font-lock (require 'org-install) When you upgrade, just copy in the new .el files into you package directory. I generally don't compile. I've only needed to compile when I was using huge tables that I needed to manipulate. Edd On Feb 2, 2008 11:15 PM, shirish <[EMAIL PROTECTED]> wrote: > Hi all, > Isn't there a simple executable or someway I can install orgmode > in Emacs 22.1 on windows? Why do I need to do all that as given in the > org.pdf file? And how do I do the compiling in Windows? I'm sure I'm > not the first one to ask around so if there have been any discussions > before please point me to them. > -- > Regards, > Shirish Agarwal > This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/ > > 065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17 > > > ___ > 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] using org-mode and screen
Cool. I'll send something along to you when I package it up... On Feb 3, 2008 3:22 AM, Carsten Dominik <[EMAIL PROTECTED]> wrote: > Well, Andrew, > if you write an extension, I will put it into the CONTRIB directory of the > distribution. > > - Carsten > > On Jan 28, 2008, at 12:41 AM, Andrew Hyatt wrote: > > Hi everyone, > I use org-mode religiously these days. I blogged about my use here ( > http://technical-dresese.blogspot.com/2007/08/org-mode.html) (please > excuse the fact that when I wrote this I didn't know about the existing > org-mode functionality to jump to the current clock). > > I generally have a problem of integrating the work I do in the shell with > the tasks in org-mode. Plus, I often need access to the shells at home I > started from work. I thought I'd combine these problems into a little > org-mode extension that ties screen and org-mode together, via ansi-term. > > For these to work, you have to load ansi-term, which my hack is based on. > > > If there's enough interest, I'll make a real .el file out of this. > > The general idea is that you start a task in which all the work will take > place in a shell. This usually is not a leaf-task for me, but usually the > parent of a leaf task. From a task in your org-file, M-x ash-org-screen > will prompt for the name of a session. Give it a name, and it will insert a > link. Open the link at any time to go the screen session containing your > work! > > It works pretty well for me. The only problem is that I often run emacs > in a screen session itself, and I can never get scrolling to work right in > screen-in-screen. > > (defun ash-org-screen-buffer-name (name) > > "Returns the buffer name corresponding to the screen name given." > > (concat "*screen " name "*")) > > > > (defun ash-org-screen-helper (name arg) > > ;; Pick the name of the new buffer. > > (let ((term-ansi-buffer-name (generate-new-buffer-name > (ash-org-screen-buffer-name name > (setq term-ansi-buffer-name > > (term-ansi-make-term term-ansi-buffer-name "/usr/bin/screen" nil > >arg name)) > > > > (set-buffer term-ansi-buffer-name) > > (term-mode) > > (term-char-mode) > > > > (term-set-escape-char ?\C-x) > > term-ansi-buffer-name)) > > > > (defun ash-org-screen (name) > > "Start a screen session with name" > > (interactive "MScreen name: ") > > > > (save-excursion > > (ash-org-screen-helper name "-S")) > > (insert-string (concat "[[screen:" name "]]"))) > > And don't forget to add ("screen" . "elisp:(ash-org-goto-screen \"%s\")") > to org-link-abbrev-alist. > ___ > 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 > > ___ 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] Un-SCHEDULING isn't working for me :-(
I am trying to Un-Schedule something. In the *Org Agenda* buffer I press: C-u C-c C-s the buffer says: "Item is no longer Scheduled" but when I regenerate the buffer, it still has the scheduling information. The line looks like this: WAITING Jim to set up All Wales review group SCHEDULED: <2008-01-28 Mon> :Office:Jim: Any thoughts ? I am using 5.19a on emacs 23.0.60.1 under Ubuntu 7.10. Regards, Pete -- Pete Phillips, Acting Director, | http://www.smtl.co.uk/ Surgical Materials Testing Lab, | http://www.worldwidewounds.com/ Princess of Wales Hospital, S Wales | http://www.dressings.org/ Tel/Fax: +44 1656-752820/30 | [EMAIL PROTECTED] ___ 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