Mercurial > emacs
diff lisp/emacs-lisp/byte-opt.el @ 66639:4408f56ebb87
(string-to-syntax): Mark it as pure.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 02 Nov 2005 19:03:17 +0000 |
parents | 5b1a238fcbb4 |
children | eb497460d73a |
line wrap: on
line diff
--- a/lisp/emacs-lisp/byte-opt.el Wed Nov 02 17:33:28 2005 +0000 +++ b/lisp/emacs-lisp/byte-opt.el Wed Nov 02 19:03:17 2005 +0000 @@ -1121,6 +1121,7 @@ (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