#325449: emacs-snapshot parses '?\ ' differently from emacs21?
Hi,
> > elserv.el
> > elserv-url-decode-string()
> > (push ?\ decoded)
> >
> > is breaking in emacs-snapshot.
> >
> > emacs-snapshot probably wants
> > (push ?\\ decoded)
>
> In emacs21, the following S expressions return the value of `(32)'.
> But in emacs-snapshot (of course it was changed from `?\' to `?\\' as
> you say) the value is `(92)'.
>
> (let (decode)
> (push ?\ decode))
>
> Is it really a solution?
I misread the code, sorry.
I am assuming that (push ?\ decoded) really means
("push" "?\ " "decoded"), 32 (space) escaped with a backslash.
The following is the smallest testcase I could come up with:
(setq decoded '())
(push ?\ decoded) -- works in emacs21, fails with emacs22
(push ?\ decoded) -- works in both emacs21 and emacs22
emacs22 seems to require an extra space.
regards,
junichi
--
dancer@{debian.org,netfort.gr.jp} Debian Project
Reply to: