unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39149: 27.0.50; describe-buffer-bindings is calling :filter function in wrong buffer
@ 2020-01-16  6:59 yyoncho
  2020-10-30 14:23 ` Lars Ingebrigtsen
  2020-10-30 15:16 ` Andreas Schwab
  0 siblings, 2 replies; 19+ messages in thread
From: yyoncho @ 2020-01-16  6:59 UTC (permalink / raw)
  To: 39149

[-- Attachment #1: Type: text/plain, Size: 522 bytes --]

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*\"

Expected: the filter function must be called in *scratch* since this is
the buffer you want to check the bindings.

[-- Attachment #2: Type: text/html, Size: 1433 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-04-17 16:06 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16  6:59 bug#39149: 27.0.50; describe-buffer-bindings is calling :filter function in wrong buffer yyoncho
2020-10-30 14:23 ` Lars Ingebrigtsen
2020-10-30 16:08   ` yyoncho
2020-10-30 16:16   ` Stefan Kangas
2020-10-30 18:03     ` Basil L. Contovounesios
2020-11-01 14:56       ` Stefan Kangas
2020-11-01 17:01         ` Basil L. Contovounesios
2020-11-01  4:31     ` Stefan Kangas
2020-11-15  0:24   ` Stefan Kangas
2020-11-15 15:15     ` Eli Zaretskii
2020-11-15 16:08       ` Stefan Kangas
2020-11-15 16:28         ` Eli Zaretskii
2022-04-17 15:37     ` Lars Ingebrigtsen
2022-04-17 16:02       ` Eli Zaretskii
2022-04-17 16:06         ` Lars Ingebrigtsen
2020-10-30 15:16 ` Andreas Schwab
2020-10-30 16:23   ` Stefan Kangas
2020-10-30 16:32     ` yyoncho
2020-10-30 16:46     ` Andreas Schwab

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).