aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-03-12 10:09:59 +0000
committerRichard M. Stallman2004-03-12 10:09:59 +0000
commit8de4476933f4805e010512ba4dabb39426c4c3bd (patch)
tree9821cab03d014c57846a1b7545f8b7d96fc94665
parent6054c5821413b1c5d521590b6928a3378e0ee76c (diff)
downloademacs-8de4476933f4805e010512ba4dabb39426c4c3bd.tar.gz
emacs-8de4476933f4805e010512ba4dabb39426c4c3bd.zip
(byte-compile-get-constant): For strings, do compare text properties.
-rw-r--r--lisp/emacs-lisp/bytecomp.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index a1ce848d9d7..f4bcb353518 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -10,7 +10,7 @@
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.141 $") 13(defconst byte-compile-version "$Revision: 2.142 $")
14 14
15;; This file is part of GNU Emacs. 15;; This file is part of GNU Emacs.
16 16
@@ -2776,7 +2776,8 @@ If FORM is a lambda or a macro, byte-compile it as a function."
2776 2776
2777(defmacro byte-compile-get-constant (const) 2777(defmacro byte-compile-get-constant (const)
2778 `(or (if (stringp ,const) 2778 `(or (if (stringp ,const)
2779 (assoc ,const byte-compile-constants) 2779 (assoc-default ,const byte-compile-constants
2780 'equal-including-properties nil)
2780 (assq ,const byte-compile-constants)) 2781 (assq ,const byte-compile-constants))
2781 (car (setq byte-compile-constants 2782 (car (setq byte-compile-constants
2782 (cons (list ,const) byte-compile-constants))))) 2783 (cons (list ,const) byte-compile-constants)))))