From unknown Wed Jun 18 00:24:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15611 <15611@debbugs.gnu.org> To: bug#15611 <15611@debbugs.gnu.org> Subject: Status: 24.3; "args out of range" error in C mode fontification Reply-To: bug#15611 <15611@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:24:23 +0000 retitle 15611 24.3; "args out of range" error in C mode fontification reassign 15611 emacs,cc-mode submitter 15611 Gareth Rees severity 15611 normal tag 15611 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 13:27:37 2013 Received: (at submit) by debbugs.gnu.org; 14 Oct 2013 17:27:37 +0000 Received: from localhost ([127.0.0.1]:49201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VVlvc-0007m0-LB for submit@debbugs.gnu.org; Mon, 14 Oct 2013 13:27:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60881) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VVlva-0007ld-JW for submit@debbugs.gnu.org; Mon, 14 Oct 2013 13:27:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVlvL-0005Mh-PS for submit@debbugs.gnu.org; Mon, 14 Oct 2013 13:27:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVlvL-0005Md-MF for submit@debbugs.gnu.org; Mon, 14 Oct 2013 13:27:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVlvE-00068h-9E for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 13:27:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVlv6-0005JR-SI for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 13:27:12 -0400 Received: from raven.ravenbrook.com ([94.229.129.33]:53473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVlv6-0005Hz-Jp for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 13:27:04 -0400 Received: from [172.30.64.198] (ravenbrook.nsdsl.net [80.248.191.199]) (authenticated bits=0) by raven.ravenbrook.com (8.14.7/8.14.5) with ESMTP id r9EHQuN5088340 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 14 Oct 2013 18:26:57 +0100 (BST) (envelope-from gdr@garethrees.org) X-Authentication-Warning: raven.ravenbrook.com: Host ravenbrook.nsdsl.net [80.248.191.199] claimed to be [172.30.64.198] From: Gareth Rees Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Oct 2013 18:26:48 +0100 Subject: 24.3; "args out of range" error in C mode fontification To: bug-gnu-emacs@gnu.org Message-Id: <24EDAAEE-E76C-4725-B254-0F72735E2A85@garethrees.org> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (raven.ravenbrook.com [94.229.129.33]); Mon, 14 Oct 2013 18:26:57 +0100 (BST) X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) In a fresh emacs -Q, I opened the file test.c, which has the following = contents: void a() { #define b() \ c \ d(e, (f)); \ g } I typed M-: (font-lock-fontify-region 1 (point-max)) RET and the following error was signalled: Error during redisplay: (jit-lock-function 1) signaled = (args-out-of-range 39 55) I expect C mode not to signal an error in this case. (I'm running GNU Emacs 24.3.1 (x86_64-apple-darwin, NS = apple-appkit-1038.36) of 2013-03-13.) --=20 Gareth Rees= From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 15:14:37 2014 Received: (at control) by debbugs.gnu.org; 8 Feb 2014 20:14:37 +0000 Received: from localhost ([127.0.0.1]:58212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCEIP-0000k9-FE for submit@debbugs.gnu.org; Sat, 08 Feb 2014 15:14:37 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:42705) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCEIO-0000k2-2K for control@debbugs.gnu.org; Sat, 08 Feb 2014 15:14:36 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WCEIN-0007a3-Rb for control@debbugs.gnu.org; Sat, 08 Feb 2014 15:14:35 -0500 Date: Sat, 08 Feb 2014 15:14:35 -0500 Message-Id: Subject: control message for bug 16695 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) merge 15611 16695 From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 15:15:22 2014 Received: (at control) by debbugs.gnu.org; 8 Feb 2014 20:15:23 +0000 Received: from localhost ([127.0.0.1]:58216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCEJ7-000190-Uz for submit@debbugs.gnu.org; Sat, 08 Feb 2014 15:15:22 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:42712) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCEJ5-000165-LE for control@debbugs.gnu.org; Sat, 08 Feb 2014 15:15:19 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WCEJ5-0007jM-Bb for control@debbugs.gnu.org; Sat, 08 Feb 2014 15:15:19 -0500 Date: Sat, 08 Feb 2014 15:15:19 -0500 Message-Id: Subject: control message for bug 15611 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) # typo in previous control message unmerge 15611 From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 06 01:35:22 2016 Received: (at 15611) by debbugs.gnu.org; 6 Mar 2016 06:35:22 +0000 Received: from localhost ([127.0.0.1]:36082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acSHh-000170-Hg for submit@debbugs.gnu.org; Sun, 06 Mar 2016 01:35:22 -0500 Received: from mail-ig0-f169.google.com ([209.85.213.169]:34322) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acQOP-0006Px-Ly for 15611@debbugs.gnu.org; Sat, 05 Mar 2016 23:34:10 -0500 Received: by mail-ig0-f169.google.com with SMTP id ir4so26699559igb.1 for <15611@debbugs.gnu.org>; Sat, 05 Mar 2016 20:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=yY6tDEY/MQI7HRE5v8KniioutHKhkMSYqmPOMi7qL2s=; b=o36TCF/DCuYsPU/nT5a22X85KnRJRQJSFl3WgrOC1dzOxvihY+GOygCEV6MPWZGBPH aF0DNb0jOM6ia85npRUMEtOtCNwYfM7RkPo0LkLNuT7kQ87D/uqMl/8tdYV4zpL+pElI 6+SBpZHCHeJKOCX7TNYA2fYXzUDaubKWpLTZu8my0MP170PKAG55rIJL46dQQ8wpVNc4 Uk1/axorUQ3sREZaBamsrHtn5LB27gzSOdmetm5IYnvRUaUM42CvaZwqkJXqTKzqkVcy 23Qa0E1ZN14ti4PxM5RcZqyJsQ4hM1XQmOVk8GjkqHMvHIVS8DBbuRUFkmvWAUaLXw/r Nuwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=yY6tDEY/MQI7HRE5v8KniioutHKhkMSYqmPOMi7qL2s=; b=MmX2wWIGu+JqvNGgZ2KfHMcnYLNx+Tz8qCb6itc7Y1/0bchyTlaasKiNjFnalzIBAV 4PAIwKUF2zdQCoJHfK/yesliYMnTEN6ipaw1o8GxTJFXUcZia819W7WNAzHOoVxNoR9m LZzE63fcnFG8VXyl6uAzF2PA4QjOlyNl6Fn7GWu3xDExdUKkChK/b7wHE21be4QfLM0d a3w4g5dDpdxpOFpXtf/kfAAwpfxbV1z8Q/HjhQOY8i4WhCyYNPyy+PT2I3lvoOoLf4HL X7wwsRbf9p3LXtD3y2TwlrdeOft/dEyWTsERp8X4aF/xjUtepVCBxafe2LAcFPR+fxy4 VTYA== X-Gm-Message-State: AD7BkJKFKHW0vq1MzD9bLrh49VzEEQuIlcT2u/gtmsChqOjWJ6I+JNw1MCqhehGi/5Xnge1pGdPfFAkWbrveBg== MIME-Version: 1.0 X-Received: by 10.50.160.9 with SMTP id xg9mr4067106igb.41.1457238844041; Sat, 05 Mar 2016 20:34:04 -0800 (PST) Received: by 10.50.30.234 with HTTP; Sat, 5 Mar 2016 20:34:03 -0800 (PST) Date: Sat, 5 Mar 2016 20:34:03 -0800 Message-ID: Subject: bug#15611: not reproduced From: Michael Wright To: 15611@debbugs.gnu.org Content-Type: multipart/alternative; boundary=001a11c31746a6f6df052d59dba5 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15611 X-Mailman-Approved-At: Sun, 06 Mar 2016 01:35:18 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a11c31746a6f6df052d59dba5 Content-Type: text/plain; charset=UTF-8 Gareth Rees writes: > In a fresh emacs -Q, I opened the file test.c, which has the following contents: > > void a() > { > #define b() \ > c \ > d(e, (f)); \ > g > } > > I typed > > M-: (font-lock-fontify-region 1 (point-max)) RET > > and the following error was signalled: > > Error during redisplay: (jit-lock-function 1) signaled (args-out-of-range 39 55) > > I expect C mode not to signal an error in this case. > > (I'm running GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-13.) When I attempted to recreate this in a build from the emacs-24 git branch today, I do not see the error in the bug report. I do, however, see a message echoed: (jit-lock-bounds 1 . 55) GNU Emacs 25.0.92.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1507)) of 2016-03-05 --001a11c31746a6f6df052d59dba5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Gareth Rees <gdr@garethrees.org> writes:

> In a fresh emacs -Q, I opened the file test.c, which has the followin= g contents:
>
> =C2=A0 =C2=A0 void a()
= > =C2=A0 =C2=A0 {
> =C2=A0 =C2=A0 #define b() \
&= gt; =C2=A0 =C2=A0 =C2=A0 c \
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 d(e= , (f)); \
> =C2=A0 =C2=A0 =C2=A0 g
> =C2=A0 =C2= =A0 }
>
> I typed
>
> = =C2=A0 =C2=A0 M-: (font-lock-fontify-region 1 (point-max)) RET
&g= t;
> and the following error was signalled:
>
> =C2=A0 =C2=A0 Error during redisplay: (jit-lock-function 1) sig= naled (args-out-of-range 39 55)
>
> I expect C mo= de not to signal an error in this case.
>
> (I= 9;m running GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)= of 2013-03-13.)

When I attempted to recreate this= in a build from the emacs-24 git branch today, I do not see the error in t= he bug report.=C2=A0 I do, however, see a message echoed:
=C2=A0(= jit-lock-bounds 1 . 55)

GNU Emacs 25.0.92.1 (= x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1507)= )
=C2=A0of 2016-03-05
--001a11c31746a6f6df052d59dba5-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 07 12:13:26 2019 Received: (at 15611) by debbugs.gnu.org; 7 Aug 2019 16:13:26 +0000 Received: from localhost ([127.0.0.1]:39263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvOZ4-00085p-33 for submit@debbugs.gnu.org; Wed, 07 Aug 2019 12:13:26 -0400 Received: from mail-ot1-f47.google.com ([209.85.210.47]:34053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvOZ0-00085W-P5; Wed, 07 Aug 2019 12:13:24 -0400 Received: by mail-ot1-f47.google.com with SMTP id n5so106574558otk.1; Wed, 07 Aug 2019 09:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=lX/XG2EPCrUsFycvRZUXqAC24UrihPo9fq/T44+13Vg=; b=c0Z67sJG3qhIzKayhpvKOoY7O/d18mReeEM1sH0P4GlNt08t+MJgLeoriuWMi1ekoy C8FIo5lnRX6Njio2qJKIiVSFvQHbkbS1d4TQHAWMP8Qx/aTkjXb10dqWdN5wA+dgD2N0 KumMI6qxnzV/ldU0iMGEnZXtkMXw6QT7eGgsOrZDSKpXS8LgQahPj0l+anyJ38L6ChUI vhyvmfOi3vMT33b/M+zQfFvDFlSUCvNXaPFvxFg9ZZON0q4VIhBqomglu/TbInCfg6GI iQXoiRvNdxhB/dwc5V0uviE2BXvxcZbdjRzeZnWmYr8x8OfPMUYu3uYc3PyUXXGoXD2H b0Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=lX/XG2EPCrUsFycvRZUXqAC24UrihPo9fq/T44+13Vg=; b=FMGNBpFOsOYQWVJ1+HhiL3aWpHcqrV/vrfxwt+mK2vwh+g+Im/NNIBKgmKG1ucGT19 TS785IejAB3rFzmPHiUsXgbWU5xz4fQ8LbTUtL6Wn1DS11PMtuRG25tMKzE0krBPrGMa nzgA5LvR07VhCVN6+8nqhskRutHxYayrUcWD8zXryNFk3fifMyBxKO2LZev0V7CcoHgS JN3VPU+8+mENySbh0QjcHHPpL4G1U0H/PtVnrJdYadSX3gw+daamErGxOabJShlQu6+j 2yEnCyf0NRXnW3D4vBJEnitb02sdiU49VlHZiR5UaqOXkVZ/1RwXIJFmeZUSqg504sSk hpEA== X-Gm-Message-State: APjAAAWwtnEikyN6fPOXj5VVhgQcp5WceSfUthYgR9IYB86GYRMRpBzD Mtc2er/7huViz6r76P0enQJP8nM0 X-Google-Smtp-Source: APXvYqzdAEK0/VsalfgddyAVc0QXSyEMwF5UU03UpipV4PWsGP3ab9U+2fqJNlOcKHrdz1pmqY1YCw== X-Received: by 2002:a05:6602:228e:: with SMTP id d14mr848893iod.85.1565194396915; Wed, 07 Aug 2019 09:13:16 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id b3sm76326875iot.23.2019.08.07.09.13.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Aug 2019 09:13:16 -0700 (PDT) From: Noam Postavsky To: Michael Wright Subject: Re: bug#15611: not reproduced References: <24EDAAEE-E76C-4725-B254-0F72735E2A85@garethrees.org> Date: Wed, 07 Aug 2019 12:13:14 -0400 In-Reply-To: (Michael Wright's message of "Sat, 5 Mar 2016 20:34:03 -0800") Message-ID: <85sgqd2btx.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15611 Cc: 15611@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 15611 fixed close 15611 24.5 quit >> M-: (font-lock-fontify-region 1 (point-max)) RET >> >> and the following error was signalled: >> >> Error during redisplay: (jit-lock-function 1) signaled (args-out-of-range 39 55) >> >> I expect C mode not to signal an error in this case. >> >> (I'm running GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-13.) > > When I attempted to recreate this in a build from the emacs-24 git branch > today, I do not see the error in the bug report. I do, however, see a > message echoed: > (jit-lock-bounds 1 . 55) Which is fine. This bug seems to have been fixed in 24.5. From unknown Wed Jun 18 00:24:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Sep 2019 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator