comparison lisp/emacs-lisp/bytecomp.el @ 50729:680d6365cfea

(byte-compile-cl-warn): Use `string-match'.
author John Paul Wallington <jpw@pobox.com>
date Tue, 29 Apr 2003 02:53:39 +0000
parents bd043e09b74c
children 1bd0d75dbaa9
comparison
equal deleted inserted replaced
50728:2acee3c76744 50729:680d6365cfea
8 ;; Maintainer: FSF 8 ;; Maintainer: FSF
9 ;; Keywords: lisp 9 ;; Keywords: lisp
10 10
11 ;;; This version incorporates changes up to version 2.10 of the 11 ;;; This version incorporates changes up to version 2.10 of the
12 ;;; Zawinski-Furuseth compiler. 12 ;;; Zawinski-Furuseth compiler.
13 (defconst byte-compile-version "$Revision: 2.130 $") 13 (defconst byte-compile-version "$Revision: 2.131 $")
14 14
15 ;; This file is part of GNU Emacs. 15 ;; This file is part of GNU Emacs.
16 16
17 ;; GNU Emacs is free software; you can redistribute it and/or modify 17 ;; GNU Emacs is free software; you can redistribute it and/or modify
18 ;; it under the terms of the GNU General Public License as published by 18 ;; it under the terms of the GNU General Public License as published by
1270 ;; have suitable compiler macros, but those aren't 1270 ;; have suitable compiler macros, but those aren't
1271 ;; expanded at this stage. There should probably be more 1271 ;; expanded at this stage. There should probably be more
1272 ;; here than caaar and friends. 1272 ;; here than caaar and friends.
1273 (not (and (eq (get func 'byte-compile) 1273 (not (and (eq (get func 'byte-compile)
1274 'cl-byte-compile-compiler-macro) 1274 'cl-byte-compile-compiler-macro)
1275 (match-string "\\`c[ad]+r\\'" (symbol-name func))))) 1275 (string-match "\\`c[ad]+r\\'" (symbol-name func)))))
1276 (byte-compile-warn "Function `%s' from cl package called at runtime" 1276 (byte-compile-warn "Function `%s' from cl package called at runtime"
1277 func))) 1277 func)))
1278 form) 1278 form)
1279 1279
1280 (defun byte-compile-print-syms (str1 strn syms) 1280 (defun byte-compile-print-syms (str1 strn syms)