mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 15:00:34 -08:00
(byte-compile-get-constant):
Replace incorrect use of assoc-default with a loop.
This commit is contained in:
parent
503bc651bd
commit
7fb4fa10a8
1 changed files with 6 additions and 2 deletions
|
|
@ -2864,8 +2864,12 @@ That command is designed for interactive use only" fn))
|
|||
|
||||
(defmacro byte-compile-get-constant (const)
|
||||
`(or (if (stringp ,const)
|
||||
(assoc-default ,const byte-compile-constants
|
||||
'equal-including-properties nil)
|
||||
;; In a string constant, treat properties as significant.
|
||||
(let (result)
|
||||
(dolist (elt byte-compile-constants)
|
||||
(if (equal-including-properties (car elt) ,const)
|
||||
(setq result elt)))
|
||||
result)
|
||||
(assq ,const byte-compile-constants))
|
||||
(car (setq byte-compile-constants
|
||||
(cons (list ,const) byte-compile-constants)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue