[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: display-buffer vs. current-buffer vs. post-command-hook
From: |
Stefan Monnier |
Subject: |
Re: display-buffer vs. current-buffer vs. post-command-hook |
Date: |
Tue, 04 Oct 2016 08:00:02 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) |
> The following snippet (saved in x.el), when loaded in 25.1.1 using
> [google-emacs -Q -l x.el], generates the message:
> *scratch* *scratch* *Help*
> demonstrating that (current-buffer) has a stale value after describe-key
> returns (I expect post to match the [run-at-time 0] value, not the pre
> value).
You're confusing current-buffer and selected-window, I think.
Stefan