From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: yyoncho Newsgroups: gmane.emacs.bugs Subject: bug#39149: 27.0.50; describe-buffer-bindings is calling :filter function in wrong buffer Date: Fri, 30 Oct 2020 18:08:10 +0200 Message-ID: References: <87361vhjxu.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000d020005b2e59b36" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2139"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39149@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 17:09:16 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYWxo-0000Rk-4x for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 17:09:16 +0100 Original-Received: from localhost ([::1]:36348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYWxn-0000Eg-5t for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 12:09:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYWxa-0000EG-RS for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 12:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYWxa-0006Bg-Ii for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 12:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYWxa-0006Qa-E1 for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 12:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: yyoncho Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2020 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39149 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 39149-submit@debbugs.gnu.org id=B39149.160407410924640 (code B ref 39149); Fri, 30 Oct 2020 16:09:02 +0000 Original-Received: (at 39149) by debbugs.gnu.org; 30 Oct 2020 16:08:29 +0000 Original-Received: from localhost ([127.0.0.1]:59401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYWx3-0006PM-BQ for submit@debbugs.gnu.org; Fri, 30 Oct 2020 12:08:29 -0400 Original-Received: from mail-lj1-f171.google.com ([209.85.208.171]:34743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYWx2-0006P8-6K for 39149@debbugs.gnu.org; Fri, 30 Oct 2020 12:08:28 -0400 Original-Received: by mail-lj1-f171.google.com with SMTP id y16so7510321ljk.1 for <39149@debbugs.gnu.org>; Fri, 30 Oct 2020 09:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0IdOs1+O+UjV8iqV412P8ozruuAktwXgozXpuTHwdX8=; b=G/kiAEoaozwkNHdp0Rsac1Kh823citLisMrt3y/wpPIYgj9/go0qmw80ZHMfYPKKZD Bw+pOqmnwP81XPumrWJbo9UvcYT2zGJD55r3bCDIEHVoi10gZY8QbMwBGKmF3KwqQGon urblRd0Zbm03+5EAqttAELOuwrOi58W3VvpcLgIMwaKAV6DiI94idA81AXJISy7CVIiF e/h0XuLtf+5UN+LJUrFXhvws6oTtI6It76PUPZo6b92Tov6+XXZee+H/6mTlmZFJYoP0 fctmnleovTjYXM4l76ESsrtHEdApLW7uJ3Lsuuk7DYN0uLzHqb/0iIDqJAtmKxh4V9Xy nzyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0IdOs1+O+UjV8iqV412P8ozruuAktwXgozXpuTHwdX8=; b=H/EDGct8VZ5WdCf7JC+DhEebONA4zZbOG0KDYYckWcmUaybK+Lraqae93223/n45ql /omtMyCCc2u/0JUN1945jjF/L10Sd/iRpJEmyy7UtziY+GALVL8PpleR+W6HBw/m9mF8 Cb7JctDql9P4ufHxGYuyXMAnWb0xYndrtdEDf7mSsXWFStDmnNjhqGofTqw/4BhgcCUO 2H1HdoELcE6Eqo+yXKdY8xn4oWvLGU6MKAgqzPLEGdMJkWLOVH+reDM/Quj9HEID/tbl yo9nH5LG3bbQUCKPaUxMILemEaZpIk4EdRfXJ5QJBwijlzSJTLqNFMmAm7KfScQg15A9 ui9w== X-Gm-Message-State: AOAM533XvreW+83KWC4Ck2Pp5lgzW1TcSG1hMegc0NSysywUCxQdSTMv WObn2ABkBnTVULxfvjZ2+MqV5HnLjHfSkJcvBxc= X-Google-Smtp-Source: ABdhPJyM7V22Md8L6jLwawTXi8AmcLvR61jWLh4bTa/zNtjzg3TlLveoAzl61vzpwyeCpOfxuLYHOrka/FXobT9QumI= X-Received: by 2002:a2e:b4fa:: with SMTP id s26mr1440467ljm.133.1604074102127; Fri, 30 Oct 2020 09:08:22 -0700 (PDT) In-Reply-To: <87361vhjxu.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192146 Archived-At: --0000000000000d020005b2e59b36 Content-Type: text/plain; charset="UTF-8" I tested with emacs27.1 emacs27.1 -q Then pasted the code in scratch buffer, evaluated, and reproduced the described behaviour. Thanks, Ivan On Fri, Oct 30, 2020 at 4:23 PM Lars Ingebrigtsen wrote: > yyoncho writes: > > > To reproduce (eval in scratch buffer) > > (define-key global-map (kbd "C-c C-l r") > > `(menu-item "2" switch-to-buffer > > :filter ,(lambda (cmd) > > (print (format "Called in %s" (current-buffer))) > > cmd))) > > (with-temp-buffer > > (with-output-to-string > > (describe-buffer-bindings (get-buffer "*scratch*") [3 12] t))) > > > > This outputs: > > > > \"Called in *temp*\" > > I tried this recipe, but I'm not getting the :filter function called at > all. Do you have a recipe, starting from "emacs -Q", that reproduces > this bug? > > And your report didn't include the data about the version generated by > report-emacs-bug, so it's hard to guess whether bug is only on some > specific system. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --0000000000000d020005b2e59b36 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I tested with emacs27.1

emacs27.1 -q=C2= =A0

Then pasted the code in scratch buffer, evalua= ted, and reproduced the described behaviour.


<= /div>
Thanks,
Ivan


On Fri, Oct 30, 2020= at 4:23 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
yyoncho <yyoncho@gmail.com> writes:

> To reproduce (eval in scratch buffer)
> (define-key global-map (kbd "C-c C-l r")
>=C2=A0 =C2=A0`(menu-item "2" switch-to-buffer
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:filter ,(lambda= (cmd)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (print (format "Called in %s" (current-buffe= r)))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 cmd)))
> (with-temp-buffer
>=C2=A0 =C2=A0(with-output-to-string
>=C2=A0 =C2=A0 =C2=A0(describe-buffer-bindings (get-buffer "*scratc= h*") [3 12] t)))
>
> This outputs:
>
> \"Called in=C2=A0 *temp*\"

I tried this recipe, but I'm not getting the :filter function called at=
all.=C2=A0 Do you have a recipe, starting from "emacs -Q", that r= eproduces
this bug?

And your report didn't include the data about the version generated by<= br> report-emacs-bug, so it's hard to guess whether bug is only on some
specific system.

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--0000000000000d020005b2e59b36--