[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: sudden failure to save pages
From: |
Sacha Chua |
Subject: |
[emacs-wiki-discuss] Re: sudden failure to save pages |
Date: |
Wed, 13 Jul 2005 12:34:22 +0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
Paul Lussier <address@hidden> writes:
> For some reason I'm suddenly unable to save my planner pages. I'm not
> sure what's different or what I changed, if anything. I certainly
> don't remember changing anything... Here's a backtrace if anyone can
> make any sense out of it:
That's odd. You can try the following planner-sort-tasks-basic function, but
it's cheating:
(defun planner-sort-tasks-basic ()
"Sort tasks by status (_P>XC) and priority (ABC)."
(skip-chars-forward "#ABC")
(let ((case-fold-search t)
(ch (char-before))
status)
(skip-chars-forward "0123456789 ")
(setq status (char-after))
(+ ;(read (current-buffer))
(cond
((eq status ?P) 1000)
((eq status ?>) 2000)
((eq status ?X) 3000)
((eq status ?C) 4000)
(t 0))
(cond ((eq ch ?A) 100)
((eq ch ?B) 200)
((eq ch ?C) 300)
(t 0)))))
What's happening here is that for some reason, ch is neither A, B, nor
C. Err, perhaps you have a lowercase #a, #b or #c somewhere?
--
Sacha Chua <address@hidden> - open source geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, CS ed
sachac on irc.freenode.net#emacs . YM: sachachua83