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

_______________________________________________
bug-groff mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to