[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: Syntax and Hard Newlines
From: |
Richard Stallman |
Subject: |
Re: Patch: Syntax and Hard Newlines |
Date: |
Thu, 16 Nov 2006 10:01:35 -0500 |
However, unlike `assoc' which returns the matching cons,
`assoc-default' returns the cdr. In the code in question it is always
nil.
Does this code work right?
*** bytecomp.el 08 Jul 2006 16:59:45 -0400 2.186
--- bytecomp.el 16 Nov 2006 08:24:45 -0500
***************
*** 2864,2871 ****
(defmacro byte-compile-get-constant (const)
`(or (if (stringp ,const)
! (assoc-default ,const byte-compile-constants
! 'equal-including-properties nil)
(assq ,const byte-compile-constants))
(car (setq byte-compile-constants
(cons (list ,const) byte-compile-constants)))))
--- 2864,2875 ----
(defmacro byte-compile-get-constant (const)
`(or (if (stringp ,const)
! ;; 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)))))
- Re: Patch: Syntax and Hard Newlines, (continued)
- Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/14
- Re: Patch: Syntax and Hard Newlines, Miles Bader, 2006/11/15
- Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/15
- Re: Patch: Syntax and Hard Newlines, Johan Bockgård, 2006/11/15
- Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/15
- Re: Patch: Syntax and Hard Newlines, Richard Stallman, 2006/11/16
- Re: Patch: Syntax and Hard Newlines,
Richard Stallman <=
- Re: Patch: Syntax and Hard Newlines, Johan Bockgård, 2006/11/24
Re: Patch: Syntax and Hard Newlines, Richard Stallman, 2006/11/14
Re: Patch: Syntax and Hard Newlines, Richard Stallman, 2006/11/13
RE: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/14
RE: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/16