Subject: bug#69259: 30.0.50; (get-pos-property 9483 'cursor-intangible) gives args-out-of-range error in folded magit buffer

From: Stefan Monnier <[email-masked]>
Date: Thu, 22 Feb 2024 10:30:56 -0500

> That was my guess.  The merged commit just forgoes calling that function
> if things aren't as expected.  My plan was (and obviously still is) to
> look into instead ensuring that the expected buffer is current, making
> it current if necessary.

As alluded to in my other message, maybe we should consider it a bug
if `post-command-hook` functions get called with (current-buffer)
different from (window-buffer) and similarly I'd consider it a bug if
such a function breaks this invariant.

[ Just putting this out there, hoping to influence who you
  blame at the end of your "look into" 🙂  ]

        Stefan