[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does map-y-or-n-p works in trunk?
From: |
Thierry Volpiatto |
Subject: |
Re: Does map-y-or-n-p works in trunk? |
Date: |
Fri, 12 Jul 2013 11:05:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Fabrice Popineau <address@hidden> writes:
> Hi,
>
> I get this backtrace when trying to use map-y-or-n-p:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp #[257
> "address@hidden"\207" [(#1) format] 4 "
>
> (fn OBJECT)"])
> format(#[257 "address@hidden"\207" [(#0) format] 4 "\n\n(fn OBJECT)"] 1)
> #[257 "address@hidden"\207" [(#0) format] 4 "\n\n(fn OBJECT)"](1)
> map-y-or-n-p("Even ?" (lambda (x) (evenp x)) (1 2 3 4 5 6))
> eval((map-y-or-n-p "Even ?" (function (lambda (x) (evenp x))) (quote (1 2 3
> 4 5 6))) nil)
> eval-last-sexp-1(nil)
> eval-last-sexp(nil)
> call-interactively(eval-last-sexp nil nil)
> command-execute(eval-last-sexp)
>
> (This is from 'emacs -Q')
> Is it a subtle bug specific to me?
I can reproduce it, however:
(map-y-or-n-p #'(lambda (x) (format "Evenp `%s'? " x))
#'(lambda (x) (evenp x)) (quote (1 2 3 4 5 6)))
is working as expected.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997