unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Does map-y-or-n-p works in trunk?
Date: Fri, 12 Jul 2013 11:05:14 +0200	[thread overview]
Message-ID: <87mwpsf8s5.fsf@gmail.com> (raw)
In-Reply-To: loom.20130712T092332-18@post.gmane.org

Fabrice Popineau <fabrice.popineau@gmail.com> writes:

> Hi,
>
> I get this backtrace when trying to use map-y-or-n-p:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp #[257 
> "\301\300@\"\207" [(#1) format] 4 "
>
> (fn OBJECT)"])
>   format(#[257 "\301\300@\"\207" [(#0) format] 4 "\n\n(fn OBJECT)"] 1)
>   #[257 "\301\300@\"\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 




  parent reply	other threads:[~2013-07-12  9:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-12  7:26 Does map-y-or-n-p works in trunk? Fabrice Popineau
2013-07-12  8:40 ` Stephen Berman
2013-07-12  9:02   ` Thierry Volpiatto
2013-07-12  9:05 ` Thierry Volpiatto [this message]
2013-07-12  9:35 ` Andreas Schwab
2013-07-12 11:10   ` Fabrice Popineau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwpsf8s5.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).