[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: remember: Preventing xref on day page?
From: |
Sacha Chua |
Subject: |
[emacs-wiki-discuss] Re: remember: Preventing xref on day page? |
Date: |
Sat, 07 Jan 2006 22:42:56 +0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
address@hidden (Bjørn-Helge Mevik) writes:
> When using M-x remember, and giving the name of a project page, for
> instance TaskPool, as the page to put the remember note on, I get a
> cross-reference link to the note on todays day page.
Workaround:
(defadvice remember-planner-append (around bhs2 activate)
"Do not cross-reference with day pages if PAGE is not a date."
(unless (or page (not planner-use-plan-pages))
(setq page
(let ((planner-default-page (or remember-planner-page
(planner-today))))
(when (or (not planner-use-day-pages)
remember-planner-xref-p)
(planner-read-name (planner-file-alist))))))
(if (string-match planner-date-regexp page)
ad-do-it
(let ((planner-use-day-pages nil))
ad-do-it)))
Must think of a proper way to control this behavior...
--
Sacha Chua <address@hidden> - open source, free software geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, public speaking
sachac on irc.freenode.net#emacs . YM: sachachua83