Jim Ottaway <[EMAIL PROTECTED]> writes: >> Evan Monroig <[EMAIL PROTECTED]> 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 _______________________________________________ emacs-wiki-discuss mailing list emacs-wiki-discuss@nongnu.org http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss