emacs-wiki-discuss
[Top][All Lists]
Advanced

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

Re: [emacs-wiki-discuss] planner-mode wishlist


From: Evan Monroig
Subject: Re: [emacs-wiki-discuss] planner-mode wishlist
Date: Wed, 15 Mar 2006 14:25:11 +0900
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Jim Ottaway <address@hidden> writes:
>> Evan Monroig <address@hidden> writes:
>>
>> - hide tasks ids {{Tasks:2}}, etc.
>>
>>   I don't know the internals, but looking at my plan pages, I see that
>>   half of the text of a link is hidden from view. So why not also hide
>>   the tasks ids, with a regexp like "{{Tasks:\\[0-9\\]\\+}}" ?
>
> You could re-define planner-id-markup like this:
>
> (defun planner-id-markup (beg end &optional verbose)
>   "Highlight IDs as unobtrusive, clickable text from BEG to END.
> VERBOSE is ignored."
>   (goto-char beg)
>   (while (re-search-forward "\\s-*{{Tasks:[^}]+}}" end t)
>     (planner-highlight-region
>      (match-beginning 0)
>      (match-end 0)
>      'planner-id 60
>      (list
>       'invisible 'muse
>       'intangible nil
>       ;;'keymap planner-id-keymap
>       ))))

Hi, thanks for the follow up.

I tried the code, but it didn't want. First I thought that it was
because I don't use muse but emacs-wiki, so I replaced 

    'invisible 'muse

by

    'invisible t

but that didn't work either. So I made sure that the regexp matches by
using 

    'face 'planner-id-face

which grays the string {{Task:12}} in plan pages. So the problem is not
here.

I also tried to put only

    'invisible t

in the list or only

    'intangible t

and many combinations of the above, but it didn't work. Each time I made
sure to restart emacs.

Did I miss something?

> It's possible that the task id might get accidentally deleted while
> one is editing though.

Right, so that means that this should not be the default behavior. But
still it might be nice to have it, or be able to turn it on/off ^^.

Evan




reply via email to

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