[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
.ie .. .el is broken without braces (sometimes)
From: |
Steffen Nurpmeso |
Subject: |
.ie .. .el is broken without braces (sometimes) |
Date: |
Mon, 24 Nov 2014 17:26:25 +0100 |
User-agent: |
s-nail v14.7.8-73-g5bf9347 |
Hello,
for the record, imagine this in a macro:
. ie 'Ar'\$1' .
. el .ie 'Cm'\$1' .
. el .ie 'Dv'\$1' .
. el .ie 'Er'\$1' .
. el .ie 'Ev'\$1' .
. el .ie 'Fl'\$1' .
. el .ie 'Fn'\$1' .tm1 DAS IST WERKLICH
. el .ie 'Fo'\$1' .
. el .ie 'Ic'\$1' .tm1 ic ich ic ic
. el .ie 'Pa'\$1' .
. el .ie 'Va'\$1' .
. el .ie 'Sh'\$1' .
. el .ie 'Ss'\$1' .
. el .ie 'Sx'\$1' .
. el .ie 'Xr'\$1' .
. el \{\
.tm1 "===== BYPASSING <\$1> <\$*> =====
. return
. \}
. nr doc-mx-ard +1
. ds doc-mx-arn\n[doc-mx-ard] \$1
.tm1 NEW LEVEL FOR \*[doc-mx-arn\n[doc-mx-ard]], ARGS \n[.$]
Gives:
doc-mx-mac-enter Fn dietcurd
DAS IST WERKLICH
===== BYPASSING <Fn> <Fn dietcurd> =====
The .el is executed even if 'Fn'\$1' matched!
On the other hand, embraced via
. ie 'Ar'\$1' \{\
.
. \}
. el \{\
.ie 'Cm'\$1' \{\
.
.\}
..
. el \{\
.ie 'Fn'\$1' \{\
.tm1 DAS IST WERKLICH
.\}
..
. el \{\
.tm1 "===== BYPASSING <\$1> <\$*> =====
. return
. \}
. \}\}\}\}\}\}\}\}\}\}\}\}\}\}
Results in:
doc-mx-mac-enter 2, <Fn> <dietcurd>
DAS IST WERKLICH
NEW LEVEL FOR Fn, ARGS 2
Hey, that made my monday!!
--steffen
- .ie .. .el is broken without braces (sometimes),
Steffen Nurpmeso <=