diff options
| author | Richard M. Stallman | 2006-11-28 02:22:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-11-28 02:22:17 +0000 |
| commit | 7fb4fa10a82d1a44f69d9027a0304c4eee89db61 (patch) | |
| tree | c3c50ded0b8a02dc4517058294b372a431745116 | |
| parent | 503bc651bd1d9cfa1079023df5249ee219dc44a0 (diff) | |
| download | emacs-7fb4fa10a82d1a44f69d9027a0304c4eee89db61.tar.gz emacs-7fb4fa10a82d1a44f69d9027a0304c4eee89db61.zip | |
(byte-compile-get-constant):
Replace incorrect use of assoc-default with a loop.
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 02a88c13973..0fa2da23721 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -2864,8 +2864,12 @@ That command is designed for interactive use only" fn)) | |||
| 2864 | 2864 | ||
| 2865 | (defmacro byte-compile-get-constant (const) | 2865 | (defmacro byte-compile-get-constant (const) |
| 2866 | `(or (if (stringp ,const) | 2866 | `(or (if (stringp ,const) |
| 2867 | (assoc-default ,const byte-compile-constants | 2867 | ;; In a string constant, treat properties as significant. |
| 2868 | 'equal-including-properties nil) | 2868 | (let (result) |
| 2869 | (dolist (elt byte-compile-constants) | ||
| 2870 | (if (equal-including-properties (car elt) ,const) | ||
| 2871 | (setq result elt))) | ||
| 2872 | result) | ||
| 2869 | (assq ,const byte-compile-constants)) | 2873 | (assq ,const byte-compile-constants)) |
| 2870 | (car (setq byte-compile-constants | 2874 | (car (setq byte-compile-constants |
| 2871 | (cons (list ,const) byte-compile-constants))))) | 2875 | (cons (list ,const) byte-compile-constants))))) |