From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas 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 16:16:35 +0000 Message-ID: References: <87361vhjxu.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39202"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39149@debbugs.gnu.org To: Lars Ingebrigtsen , yyoncho Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 17:17:12 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 1kYX5T-000A3O-8Q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 17:17:11 +0100 Original-Received: from localhost ([::1]:46166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYX5S-0004zT-4O for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 12:17:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYX5K-0004xO-32 for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 12:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47890) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYX5J-0007rP-Pj for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 12:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYX5J-0006eY-Lb for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 12:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2020 16:17:01 +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.160407460325547 (code B ref 39149); Fri, 30 Oct 2020 16:17:01 +0000 Original-Received: (at 39149) by debbugs.gnu.org; 30 Oct 2020 16:16:43 +0000 Original-Received: from localhost ([127.0.0.1]:59436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYX50-0006dx-St for submit@debbugs.gnu.org; Fri, 30 Oct 2020 12:16:43 -0400 Original-Received: from mail-ed1-f53.google.com ([209.85.208.53]:36905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYX4z-0006dl-Ls for 39149@debbugs.gnu.org; Fri, 30 Oct 2020 12:16:42 -0400 Original-Received: by mail-ed1-f53.google.com with SMTP id o18so7256135edq.4 for <39149@debbugs.gnu.org>; Fri, 30 Oct 2020 09:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc:content-transfer-encoding; bh=OQr9vDoad7z4V36vDgk1bM6UvYn+SicRsNdKaCp7yrI=; b=kPCDkb5xtuGQfhxTPQRlBO5sP/zYdhbAetVwgvOH1Dgv4sMNQTZNdTkXR55yAH/mP4 evnIFTLKD/Y3vJTzBORNK8w3+a5294A2LSTiOyqGuQGSl8nnDX4u5v6Zt6KJeQ67QtpW oqu1CV93cCOEDoGYEzmqh08dmjj85ryCwbvurWVgNQuyXKElX5hyV52KmRY/AOyjrMEY Fy83YR4Wi1xjxJ1n/SsyyiX3zAfMk0cXTDB+5Fh41Kucv6IxTJLyts/QrhFsDQmCErWA vxpBPTylHqz0XtpKl0Xq7UcQ5MwYD2aLyQHKQqSDTKCNm8lVFVP73FW3zoVfkqU/9qUE D+pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc:content-transfer-encoding; bh=OQr9vDoad7z4V36vDgk1bM6UvYn+SicRsNdKaCp7yrI=; b=fpK45qN65BHYWWr9rePlz7tO+GmV4t3kz9m4MRxPsftS/yrz/U9yDEXC0BjPEWR7gP 7gTZQFyKbp/Y0KmvPTG4IlydiPB5QMKu6gitquNMMIUiIQajmIzuDtNXIEX9mWJYSq1v fZwmC3hgz27VQJ7qEToTjrTx6x8srH4NWabcKZqxgnpM0AASByUVmG1zEaGN94f2GRm7 wPdU9tWGTqfILix9M3P3M2Kcxq/UWj4XZiGQufQ1SLL+wPNkmo3ZMgpkRSyRWbuLwY51 KFYrtqlBQQ22WiHq+oXDxeyD55oVWQGHOgk5BWfKAbuHnFRK1URudveyIPYrLlN4cXG+ jDJw== X-Gm-Message-State: AOAM530kJ5NhOc0Ki4c1sukRlrFcXp41829xlHM6M5t5UhpnLqoSDPsZ I7QobGB2+hIgoYYl0C8W17hsqC1p1xaurx+qApU= X-Google-Smtp-Source: ABdhPJwFEBTxt31+THZfbn5b37dpH2+9mr3i94HlTsh0vtuuTV5LIsPuoRk9WAVlnciVzJSlcpHurj7wanH0gxoVloM= X-Received: by 2002:aa7:d28c:: with SMTP id w12mr3365427edq.282.1604074595935; Fri, 30 Oct 2020 09:16:35 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 30 Oct 2020 16:16:35 +0000 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:192150 Archived-At: Lars Ingebrigtsen writes: > 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. I can reproduce the above on Emacs 26.3, but not on master. Note that there might have been changes here with the merge of scratch/substitute-command-keys. I tried hard to not introduce any regressions or even changes in behavior with that branch, but I might have failed to include the above bug... What is the result output here? Here, the last form evaluates to this on master: "=0C Global Bindings Starting With C-c C-l: key binding --- ------- =0C Function key map translations Starting With C-c C-l: key binding --- ------- " Is this correct? Should it do anything else in addition that it currently does not?