Subject: 'cursor-face-highlight-mode' signals 'args-out-of-range' in narrowed buffer
From: Ship Mints <[email-masked]>
To: [email-masked]
Date: Fri, 11 Apr 2025 11:32:18 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

-Q reproducer

;; The culprit appears to be `redisplay--update-cursor-face-highlight'
(setq debug-on-error t)
(cursor-face-highlight-mode)
(save-excursion (insert (propertize "cursor face text\n"
                                    'cursor-face 'region)))
(narrow-to-region (pos-bol) (pos-eol))
(setq unread-command-events (mapcar #'identity
                                    (kbd "C-n")))

-Stephane