[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: <nop> problem
From: |
Sacha Chua |
Subject: |
[emacs-wiki-discuss] Re: <nop> problem |
Date: |
Thu, 18 Mar 2004 12:49:19 +0800 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
chris wallace <address@hidden> writes:
> I was editting the following
> <pre>
> --- *fatness* ----
> BMI bmi (sum, diff) for sib pair
> WaistHip waist_hip_ratio for sib pair
> Tri triceps (sum, diff) for sib pair
> Bi biceps (sum, diff) for sib pair
> Sub subscapular (sum, diff) for sib pair
> Sup suprailiac (sum, diff) for sib pair
> Fat bmi>25 (both or one member of sib pair)
> VFat bmi>30 (both or one member of sib pair)
> </pre>
Better to use <example>.
<example>
....
....
....
</example>
although it looks like you're trying to make a table, so
BMI | bmi (sum, diff) for sib pair
<nop>WaistHip | ...
> and everything up to "25 (both or..." was swallowed into invisibleness. (The
> <nop was matching to the next > and swallowing the bits in between).
Here's a better nop method:
(defun emacs-wiki-nop-tag (beg end highlight-p)
(when (= (- end beg) 5)
(if highlight-p
(add-text-properties beg end '(invisible t intangible t)))
(when (looking-at emacs-wiki-name-regexp)
(unless highlight-p
(add-text-properties beg (match-end 0)
'(rear-nonsticky (read-only) read-only t))))))
Added to latest emacs-wiki and planner-dev archives.
Thanks for reporting this bug!
--
Sacha Chua <address@hidden> - Ateneo CS faculty geekette
interests: emacs, gnu/linux, making computer science education fun
http://sacha.free.net.ph/ - PGP Key ID: BE2D08EC