]> code.delx.au - gnu-emacs/commitdiff
(string-to-syntax): Mark it as pure.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 2 Nov 2005 19:03:17 +0000 (19:03 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 2 Nov 2005 19:03:17 +0000 (19:03 +0000)
lisp/emacs-lisp/byte-opt.el

index 7d47d809673684a6fb82f8bff7c0773e94fbd598..940b4869f5110906ace22f171b2fef2188e138b9 100644 (file)
 (put 'symbol-name 'byte-optimizer 'byte-optimize-pure-func)
 (put 'regexp-opt 'byte-optimizer 'byte-optimize-pure-func)
 (put 'regexp-quote 'byte-optimizer 'byte-optimize-pure-func)
+(put 'string-to-syntax 'byte-optimizer 'byte-optimize-pure-func)
 (defun byte-optimize-pure-func (form)
   "Do constant folding for pure functions.
 This assumes that the function will not have any side-effects and that