Dear all,<br><br>Can you explain me the strange behaviour of this short TeX script:<br><br>% -*- tex-command: &quot;xelatex&quot; -*-<br>\documentclass{minimal}<br>\usepackage{xltxtra}<br><br>\let\dash—<br>\catcode`\—=\active<br>
\def—{\ifdim\lastskip&gt;0pt\message{!!!}\showthe\lastskip\fi\dash}<br><br>\begin{document}<br>This is a test.—<br>\end{document}<br><br>In my case (XeTeX, Version 3.1415926-2.2-0.9994.1 (Web2C 7.5.6); xltxtra 2008/07/29 v0.4) it executes the TRUE clause of \if with message, but shows zero lastskip there.  But when I add a soft hyphen in &quot;te\-st&quot;, \if condition changes to FALSE, hence no message.<br>
<br>Without xltxtra, no message in both cases (with or without soft hyphen).<br><br>Vadim<br>