diff options
| author | Stefan Monnier | 2000-10-15 04:49:20 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-10-15 04:49:20 +0000 |
| commit | 70e58f900243cdddd46910ce406bbfe2f5767891 (patch) | |
| tree | 39cc0dfc24666e910cd1585de0a1842ed456651f | |
| parent | 6c5bcbc1b1444cc4a4160ada897301099b00f802 (diff) | |
| download | emacs-70e58f900243cdddd46910ce406bbfe2f5767891.tar.gz emacs-70e58f900243cdddd46910ce406bbfe2f5767891.zip | |
(cl-builtin-gethash, cl-builtin-remhash)
(cl-builtin-clrhash, cl-builtin-maphash): Add for byte-compatibility.
| -rw-r--r-- | lisp/emacs-lisp/cl-extra.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el index 83f0ff717d0..194f6c6d9b4 100644 --- a/lisp/emacs-lisp/cl-extra.el +++ b/lisp/emacs-lisp/cl-extra.el | |||
| @@ -668,6 +668,13 @@ The Common Lisp keywords :rehash-size and :rehash-threshold are ignored." | |||
| 668 | (t (assoc* key sym :test test)))) | 668 | (t (assoc* key sym :test test)))) |
| 669 | sym str))) | 669 | sym str))) |
| 670 | 670 | ||
| 671 | ;; These variables are just kept for compatibility with code | ||
| 672 | ;; byte-compiled by Emacs-20. | ||
| 673 | (defvar cl-builtin-gethash (symbol-function 'gethash)) | ||
| 674 | (defvar cl-builtin-remhash (symbol-function 'remhash)) | ||
| 675 | (defvar cl-builtin-clrhash (symbol-function 'clrhash)) | ||
| 676 | (defvar cl-builtin-maphash (symbol-function 'maphash)) | ||
| 677 | |||
| 671 | (defun cl-gethash (key table &optional def) | 678 | (defun cl-gethash (key table &optional def) |
| 672 | "Look up KEY in HASH-TABLE; return corresponding value, or DEFAULT." | 679 | "Look up KEY in HASH-TABLE; return corresponding value, or DEFAULT." |
| 673 | (if (consp table) | 680 | (if (consp table) |