> - (looking-at ".*new.*"))) > + (looking-at "^[^//]*new[^//]*;$"))) That regexp doesn't look right: [^//] doesn't mean "no occurrence of double-slash" but is just the same as [^/].