GNU bug report logs - #77747
'cursor-face-highlight-mode' signals 'args-out-of-range' in narrowed buffer

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ship Mints <shipmints@HIDDEN>; dated Fri, 11 Apr 2025 15:33:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 77747 <at> debbugs.gnu.org:


Received: (at 77747) by debbugs.gnu.org; 13 Apr 2025 11:29:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 13 07:29:08 2025
Received: from localhost ([127.0.0.1]:39905 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u3vWJ-0003oY-Kv
	for submit <at> debbugs.gnu.org; Sun, 13 Apr 2025 07:29:07 -0400
Received: from mail-vk1-xa31.google.com ([2607:f8b0:4864:20::a31]:42305)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1u3vWG-0003mv-1T
 for 77747 <at> debbugs.gnu.org; Sun, 13 Apr 2025 07:29:01 -0400
Received: by mail-vk1-xa31.google.com with SMTP id
 71dfb90a1353d-5240a432462so3113936e0c.1
 for <77747 <at> debbugs.gnu.org>; Sun, 13 Apr 2025 04:29:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1744543734; x=1745148534; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=T+InOHkyi9UAdRxNf+7sL0pw91FSbdzmt4rmHYaLmgI=;
 b=Wg4n5AjawF+ksHA9CBaYqeWeU9Wou4RUFGd1fAqDKWPHs5+Jhy3vv4jQZ95ShXVPp7
 QFD7QxHGrEZD1IGpWiJRIPYRbvQNgJnShuU/fESw+cpFudCUDF5DSEf0TPDbMEQsradK
 xH2NA637iWBNsBR/PQIW+5IOTTO3JY6yDOYYXCSARmSUBsNyTsEwH3jrxamVTrN66k4c
 v/tozRBruVumaQwDOe/hcy+Geb15dGUxWRJyb1BYVwemH6jfCq2HuosWLY2TS72PnXJb
 +cVPrVBSOgew9Ls//KqIZWV5CsMvtPsFsDp0iVm6PM5H4uK1S2DTlUvL/r4J1HYJngxR
 WUHg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1744543734; x=1745148534;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=T+InOHkyi9UAdRxNf+7sL0pw91FSbdzmt4rmHYaLmgI=;
 b=Iu0kaPmO9tbkaG33kQpMG9KQLbFF3/dU9LGysBg3JiCilbQ/A3fRBMPGgvK/VZGn3d
 Y6BZWMN33elcR7liHcJvftdYvMiJQAzni+12L6+itkTUnoJr2etRqaMh7Mvly4o5Ky7M
 ocGMHEitQX1tOpp8H5HKwM0KsgBgwJm0tizt3tb7W/ti/dY2GZfnTaPn8oF6n8YgLK4g
 Z1tHKtEfXmfFndNo9P5ITI+NNCDj/xRJe/hnXLs4gVZbwIllYjkvxpv2dh3q/24ANsE7
 hypQc74B2ssiH00fZWINucyxkPRAHetwvUz0Fyf1HVUtO9/feGaJBITbVpSNmXbQDKeg
 8DzQ==
X-Gm-Message-State: AOJu0Ywsr2A+UX7xQhOd5YZeX/SXyirWgKHN8OYhgJGtotVv3e7ZiwQ5
 9OrGcEyOUOZauyC3jfUd/uVRdpWTIrVN470huOv4MlSdg5I6eqQKb6JuVFVrcn3wqngGJ5KIzsD
 AIdWqEf4nv6gA8AXzcbCXqtBB5Pk0p6DX
X-Gm-Gg: ASbGnctRTWkSs1s0sIAtfDMXwN0TA/EfMXjQEXEmgwTIFwuAEeVyz8EopNVGFf1ZPM+
 dzpvyWHJf0j/JtGT0n5+AhJ7L5NSmVpOlAjH8xwylqZhhULnnT3x5s7ij/6ehR+6f8LfiCBDX9w
 RNEtLXla3+T/GP0vgcLvUhnA==
X-Google-Smtp-Source: AGHT+IE/pk+vmbZefBQeJ2typHFUlckesmelaPCTOX4noXsfljquuCvWIEQmXu2QostMxqwbg04n10VpqKUkWs1qLWc=
X-Received: by 2002:a05:6122:da3:b0:51f:a02b:45d4 with SMTP id
 71dfb90a1353d-527c2e94963mr6739371e0c.1.1744543733985; Sun, 13 Apr 2025
 04:28:53 -0700 (PDT)
MIME-Version: 1.0
References: <CAN+1HbrcbGaR8atcJWL_VnPLMPaHEFB4-R4p97z4i=2=H+WKcg@HIDDEN>
 <86wmbojslo.fsf@HIDDEN>
In-Reply-To: <86wmbojslo.fsf@HIDDEN>
From: Ship Mints <shipmints@HIDDEN>
Date: Sun, 13 Apr 2025 07:28:43 -0400
X-Gm-Features: ATxdqUFsJHeIEi1wDn-UlL91kHDDtAH15qOzV9u3gIu655ivJAsfpbhLyxXEYUU
Message-ID: <CAN+1Hbqc-Qn15KAXkDKcefjZnJsntvXEPzpWEgMAnDFGtN_R4A@HIDDEN>
Subject: Re: bug#77747: 'cursor-face-highlight-mode' signals
 'args-out-of-range' in narrowed buffer
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000008f3ad40632a73dbb"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77747
Cc: 77747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000008f3ad40632a73dbb
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, Apr 13, 2025 at 5:52=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote:

> > From: Ship Mints <shipmints@HIDDEN>
> > Date: Fri, 11 Apr 2025 11:32:18 -0400
> >
> > -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")))
>
> Thanks, does the below fix it?
>
> diff --git a/lisp/simple.el b/lisp/simple.el
> index ee09a6f..9e9dd15 100644
> --- a/lisp/simple.el
> +++ b/lisp/simple.el
> @@ -7265,7 +7265,7 @@ redisplay--update-cursor-face-highlight
>                (pt (window-point window))
>                (cursor-face (get-text-property pt 'cursor-face)))
>          (let* ((start (previous-single-property-change
> -                       (1+ pt) 'cursor-face nil (point-min)))
> +                       (min (1+ pt) (point-min)) 'cursor-face nil
> (point-min)))
>                 (end (next-single-property-change
>                       pt 'cursor-face nil (point-max)))
>                 (new (redisplay--highlight-overlay-function
>

Not quite.  That winds up coalescing the highlight across lines rather than
just the line with the cursor.

This works better but I'm not sure if this is in the true spirit of the
intended use as the property change may not be floored to bol?

diff --git a/lisp/simple.el b/lisp/simple.el
index 7037158df8d..9ebe9a0ba34 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -7259,7 +7259,7 @@ redisplay--update-cursor-face-highlight
               (pt (window-point window))
               (cursor-face (get-text-property pt 'cursor-face)))
         (let* ((start (previous-single-property-change
-                       (1+ pt) 'cursor-face nil (point-min)))
+                       (min (1+ pt) (pos-bol)) 'cursor-face nil
(point-min)))
                (end (next-single-property-change
                      pt 'cursor-face nil (point-max)))
                (new (redisplay--highlight-overlay-function

--0000000000008f3ad40632a73dbb
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">=
On Sun, Apr 13, 2025 at 5:52=E2=80=AFAM Eli Zaretskii &lt;<a href=3D"mailto=
:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:</span></div></div><div class=3D"=
gmail_quote gmail_quote_container"><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex">&gt; From: Ship Mints &lt;<a href=3D"mailto:shipmints@HIDDEN"=
 target=3D"_blank">shipmints@HIDDEN</a>&gt;<br>
&gt; Date: Fri, 11 Apr 2025 11:32:18 -0400<br>
&gt; <br>
&gt; -Q reproducer<br>
&gt; <br>
&gt; ;; The culprit appears to be `redisplay--update-cursor-face-highlight&=
#39;<br>
&gt; (setq debug-on-error t)<br>
&gt; (cursor-face-highlight-mode)<br>
&gt; (save-excursion (insert (propertize &quot;cursor face text\n&quot;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&#39;cursor-f=
ace &#39;region)))<br>
&gt; (narrow-to-region (pos-bol) (pos-eol))<br>
&gt; (setq unread-command-events (mapcar #&#39;identity<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(kbd &quot;C-=
n&quot;)))<br>
<br>
Thanks, does the below fix it?<br>
<br>
diff --git a/lisp/simple.el b/lisp/simple.el<br>
index ee09a6f..9e9dd15 100644<br>
--- a/lisp/simple.el<br>
+++ b/lisp/simple.el<br>
@@ -7265,7 +7265,7 @@ redisplay--update-cursor-face-highlight<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(pt (window-point wi=
ndow))<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(cursor-face (get-te=
xt-property pt &#39;cursor-face)))<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(let* ((start (previous-single-property-c=
hange<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0(1+ pt) &#39;cursor-face nil (point-min)))<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0(min (1+ pt) (point-min)) &#39;cursor-face nil (point-min)))<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (end (next-single-p=
roperty-change<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 pt &#39;cursor-face nil (point-max)))<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (new (redisplay--hi=
ghlight-overlay-function<br></blockquote><div><br></div><div class=3D"gmail=
_default" style=3D"font-family:monospace">Not quite.=C2=A0 That winds up co=
alescing the highlight across lines rather than just the line with the curs=
or.</div><div class=3D"gmail_default" style=3D"font-family:monospace"><br><=
/div><div class=3D"gmail_default" style=3D"font-family:monospace">This work=
s better but I&#39;m not sure if this is in the true spirit of the intended=
 use as the property change=C2=A0may not be floored to bol?</div><div class=
=3D"gmail_default" style=3D"font-family:monospace"><br></div><div class=3D"=
gmail_default" style=3D"font-family:monospace">diff --git a/lisp/simple.el =
b/lisp/simple.el<br>index 7037158df8d..9ebe9a0ba34 100644<br>--- a/lisp/sim=
ple.el<br>+++ b/lisp/simple.el<br>@@ -7259,7 +7259,7 @@ redisplay--update-c=
ursor-face-highlight<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0(pt (window-point window))<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0(cursor-face (get-text-property pt &#39;cursor-face)))<br>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(let* ((start (previous-single-property-c=
hange<br>- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 (1+ pt) &#39;cursor-face nil (point-min)))<br>+ =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (min (1+ pt=
) (pos-bol)) &#39;cursor-face nil (point-min)))<br>=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (end (next-single-property-change<br>=C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 pt &=
#39;cursor-face nil (point-max)))<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 (new (redisplay--highlight-overlay-function<br></div></di=
v></div>

--0000000000008f3ad40632a73dbb--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77747; Package emacs. Full text available.

Message received at 77747 <at> debbugs.gnu.org:


Received: (at 77747) by debbugs.gnu.org; 13 Apr 2025 09:53:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 13 05:53:04 2025
Received: from localhost ([127.0.0.1]:39374 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u3u1P-0003WI-V0
	for submit <at> debbugs.gnu.org; Sun, 13 Apr 2025 05:53:04 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50138)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1u3u1N-0003Uw-DF
 for 77747 <at> debbugs.gnu.org; Sun, 13 Apr 2025 05:53:02 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1u3u1H-0006n5-Gy; Sun, 13 Apr 2025 05:52:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=txy+ZBA8yLUqNs1h5O0F3dNIYitY2BQkZwVRAGuGdI8=; b=ArIb7kUo7ziO
 9cDwdfkVr1a69Lt06DuTJnin626hlclpeImhK6MXj42Vn23C548reKdDXXdJ6+ts3b06KfyCzB05S
 S7KhqraQmRF32lXkVxApJyB4h5c7/rTVn04iRZzg2lzXuUu0jWeLVyUD1NgU7XLF1VHXNvdv9gH23
 Ql9wXh1ZF9S1HuBnuqniy7Py30hFkhM0+aOTw3LBJxABaWi8immf76IF4i71+io+HYCWXkrMFg/Ff
 xkaGEbLFzc0tPzc/cFqipo9zabqv/+nmmNIaEehfNRS4/GY4YhwH9W7tn1GJDA0kMekBd66/KHpNA
 05tnoIkj39HhgjGriFaubQ==;
Date: Sun, 13 Apr 2025 12:52:51 +0300
Message-Id: <86wmbojslo.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Ship Mints <shipmints@HIDDEN>
In-Reply-To: <CAN+1HbrcbGaR8atcJWL_VnPLMPaHEFB4-R4p97z4i=2=H+WKcg@HIDDEN>
 (message from Ship Mints on Fri, 11 Apr 2025 11:32:18 -0400)
Subject: Re: bug#77747: 'cursor-face-highlight-mode' signals
 'args-out-of-range' in narrowed buffer
References: <CAN+1HbrcbGaR8atcJWL_VnPLMPaHEFB4-R4p97z4i=2=H+WKcg@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77747
Cc: 77747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Ship Mints <shipmints@HIDDEN>
> Date: Fri, 11 Apr 2025 11:32:18 -0400
> 
> -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")))

Thanks, does the below fix it?

diff --git a/lisp/simple.el b/lisp/simple.el
index ee09a6f..9e9dd15 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -7265,7 +7265,7 @@ redisplay--update-cursor-face-highlight
               (pt (window-point window))
               (cursor-face (get-text-property pt 'cursor-face)))
         (let* ((start (previous-single-property-change
-                       (1+ pt) 'cursor-face nil (point-min)))
+                       (min (1+ pt) (point-min)) 'cursor-face nil (point-min)))
                (end (next-single-property-change
                      pt 'cursor-face nil (point-max)))
                (new (redisplay--highlight-overlay-function




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77747; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Apr 2025 15:32:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 11 11:32:43 2025
Received: from localhost ([127.0.0.1]:51336 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u3GN1-0006p2-2i
	for submit <at> debbugs.gnu.org; Fri, 11 Apr 2025 11:32:43 -0400
Received: from lists.gnu.org ([2001:470:142::17]:47404)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1u3GMy-0006om-0H
 for submit <at> debbugs.gnu.org; Fri, 11 Apr 2025 11:32:40 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <shipmints@HIDDEN>)
 id 1u3GMr-0007lq-VL
 for bug-gnu-emacs@HIDDEN; Fri, 11 Apr 2025 11:32:34 -0400
Received: from mail-vk1-xa2f.google.com ([2607:f8b0:4864:20::a2f])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <shipmints@HIDDEN>)
 id 1u3GMq-0002S7-9F
 for bug-gnu-emacs@HIDDEN; Fri, 11 Apr 2025 11:32:33 -0400
Received: by mail-vk1-xa2f.google.com with SMTP id
 71dfb90a1353d-523fa0df55dso2891681e0c.1
 for <bug-gnu-emacs@HIDDEN>; Fri, 11 Apr 2025 08:32:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1744385550; x=1744990350; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=rwKED2nwUnzacdVH40lzvwcUf2Uj55yJ90Tq6vUX34c=;
 b=U5TygLTHa+iVQLlkJX8jb9gsWcRhhhQXWVkroc1Tt4mQLvK1jbf88Ew12cRspF+pzO
 FVIbLL2ln9CFSzRMlAVjrQ12VsO8HSzTsDAF8gL1gHWhuzLiuUfZE/eCayYvYsyBoVmT
 saV0yz0s/C4F7BnDhvbrQ6+866B5ZP0/fDQaNg0IymGYU/L/uNdOb4z1c0767seSPW2Q
 u1Z0Xd65Md4zl+4Hgy9MlcxadHpZ+IhHj7FYiUQYvfj9bKZ46cX2aQTB4UEKCQ0RoILP
 K+of2GSU+V9pZ1dOMuS6NN7GcjFIT8aJlYAVbPnZ4o/D0X+Rr2Q3SLjPKCXPdtRTtRHg
 txFw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1744385550; x=1744990350;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=rwKED2nwUnzacdVH40lzvwcUf2Uj55yJ90Tq6vUX34c=;
 b=qzpFMQfbsMmGg+icaagJhwe5naktCITvFJlFnL8xr1r7aWiTPRoy6ZNRU4A9ZomrIA
 so2bhe5j9O4vr/ZIIwPXI/UOR7FUo7fFLfJUILSp8sHpwSOigCFxe+IM/ZV+Hz6W8M00
 GCXCP+uqhUDP5qrp0jdWgvKjVGr+V/ZBc2QxaM+ymdLe0SpGv7ZFtgmC/S9lV2pLK6gW
 /WNcCJZPe/rwEUriggp8iFsAJbjYwUV7olI41u6rEuJkMDbMgyAvI4m/QB0DBEfhI49Z
 oVwJrZuj0gZW1k8ozc4lYGciYf0vkpm+9gNyS0WkdRuUEJLT+S7CTBk6UER9TbXB6amj
 nzGA==
X-Gm-Message-State: AOJu0YzD5MAyGohaNTXY1ThakXRyIX3yJ1JQnC9nV3cjlWioxzelC+KF
 y7mKGCQF9DZehFS+cRK3U57PvRDCn40GApQiUlk/foGTGxHKmwq9/Lec0Obfe50ytY4wGrrvlqG
 5jQ7ZQTO4/zMeIhhsAxWyCQYUyjqLSn7J
X-Gm-Gg: ASbGncuNAiL+RktZbfTkHrssCrOoP/aIIwQX3CvcG+chE310GLkDBiLV6BccM43M1K3
 jzBaVqsXB42xGcoz7oClChm3oeV/6LPrSGkH4WdY0pnCvXnXNecM2RlAZT8u+0KzJX5FuNiLsh7
 4s0iJ6oIvV3XetLV7TePvp1A==
X-Google-Smtp-Source: AGHT+IETBsMZzl0NCgoz07gDgctWs1e4Twb6hPNBqSi0ngKsYcHX8fhYAXvHNPqQRKlv9e2vwSstyLMlbHmYVFXmqKI=
X-Received: by 2002:a05:6122:2202:b0:524:2fe0:3898 with SMTP id
 71dfb90a1353d-527b5ecab7cmr6152955e0c.5.1744385550537; Fri, 11 Apr 2025
 08:32:30 -0700 (PDT)
MIME-Version: 1.0
From: Ship Mints <shipmints@HIDDEN>
Date: Fri, 11 Apr 2025 11:32:18 -0400
X-Gm-Features: ATxdqUHMRRAm361vyadGTXnT60-T6cN9pOoU-4zaluSVF1u3EDOFYYAFrCUhVDU
Message-ID: <CAN+1HbrcbGaR8atcJWL_VnPLMPaHEFB4-R4p97z4i=2=H+WKcg@HIDDEN>
Subject: 'cursor-face-highlight-mode' signals 'args-out-of-range' in narrowed
 buffer
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000175f53063282692b"
Received-SPF: pass client-ip=2607:f8b0:4864:20::a2f;
 envelope-from=shipmints@HIDDEN; helo=mail-vk1-xa2f.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, TVD_SPACE_RATIO=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--000000000000175f53063282692b
Content-Type: text/plain; charset="UTF-8"

-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

--000000000000175f53063282692b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">-Q reproducer</div><div class=3D"gmail_default" style=3D"font-family:mon=
ospace"><br></div><div class=3D"gmail_default" style=3D"font-family:monospa=
ce">;; The culprit appears to be `redisplay--update-cursor-face-highlight&#=
39;</div><div class=3D"gmail_default" style=3D"font-family:monospace">(setq=
 debug-on-error t)<br>(cursor-face-highlight-mode)<br>(save-excursion (inse=
rt (propertize &quot;cursor face text\n&quot;<br>=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 &#39;cursor-face &#39;region)))<br>(narrow-to-r=
egion (pos-bol) (pos-eol))<br>(setq unread-command-events (mapcar #&#39;ide=
ntity<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (kbd &quot;C-n&=
quot;)))<br></div><div class=3D"gmail_default" style=3D"font-family:monospa=
ce"><br></div><div class=3D"gmail_default" style=3D"font-family:monospace">=
-Stephane</div></div>

--000000000000175f53063282692b--




Acknowledgement sent to Ship Mints <shipmints@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#77747; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 13 Apr 2025 11:30:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.