From 455b893d25923b18c5de7ec0d50d918677883a10 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sun, 16 Jul 2023 01:09:51 +1000 Subject: changing invisible to a display string --- wiki-markup.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wiki-markup.el') diff --git a/wiki-markup.el b/wiki-markup.el index f6d7699..f6543b5 100644 --- a/wiki-markup.el +++ b/wiki-markup.el @@ -114,7 +114,7 @@ This can be overriden with .dir-locals.el." (match-beginning 0))))) (cond ((not end) (goto-char limit)) ((or (not next-start) (>= next-start end)) - (put-text-property start end 'invisible t) + (put-text-property start end 'display ";)") (goto-char end)) (t (goto-char next-start)))))) @@ -239,7 +239,7 @@ This can be overriden with .dir-locals.el." nil (font-lock-extra-managed-props invisible font-lock-face button-data action category - button htmlize-link help-echo))) + button htmlize-link help-echo display))) (setq-local outline-regexp wiki-outline-re) (setq-local outline-level 'wiki-outline-level) ;; We have to do this again because `outline-mode' used the default -- cgit v1.2.3