[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Release: Org-mode 5.09

From: Levin
Subject: Re: [Orgmode] Release: Org-mode 5.09
Date: Tue, 18 Sep 2007 17:00:17 +0800
User-agent: KMail/1.9.7

Hi Carsten,

>    - Priority cycling goes back to the nil state.

Priority cycling is a bit odd. When I use M-n to cycle, it turns 
from #C-> nil-> #C-> nil, and M-p will be #A->nil->#A->nil.

So I write this small patch to achieve: M-n will cycle from 
#A->#B->#C->nil->#A, and M-p will cycle from #C->#B->#A->nil->#C.

Hope it helps.


;; This patch is against org 5.09

diff --git a/lisp/org/org.el b/lisp/org/org.el
index f4746b4..a5567f5 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -13462,7 +13462,11 @@ ACTION can be `set', `up', `down', or a character."
       (if (looking-at org-priority-regexp)
          (setq current (string-to-char (match-string 2))
                have t)
-       (setq current org-default-priority))
+       (setq current (if (eq action 'up)
+                         (1+ org-lowest-priority)
+                       (if (eq action 'down)
+                           (1- org-highest-priority)
+                         org-default-priority))))
        ((or (eq action 'set) (integerp action))
        (if (integerp action)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]