unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15611: 24.3; "args out of range" error in C mode fontification
@ 2013-10-14 17:26 Gareth Rees
  2016-03-06  4:34 ` bug#15611: not reproduced Michael Wright
  0 siblings, 1 reply; 3+ messages in thread
From: Gareth Rees @ 2013-10-14 17:26 UTC (permalink / raw)
  To: 15611

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.)

-- 
Gareth Rees




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#15611: not reproduced
  2013-10-14 17:26 bug#15611: 24.3; "args out of range" error in C mode fontification Gareth Rees
@ 2016-03-06  4:34 ` Michael Wright
  2019-08-07 16:13   ` Noam Postavsky
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Wright @ 2016-03-06  4:34 UTC (permalink / raw)
  To: 15611

[-- Attachment #1: Type: text/plain, Size: 880 bytes --]

Gareth Rees <gdr@garethrees.org> 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

[-- Attachment #2: Type: text/html, Size: 1369 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#15611: not reproduced
  2016-03-06  4:34 ` bug#15611: not reproduced Michael Wright
@ 2019-08-07 16:13   ` Noam Postavsky
  0 siblings, 0 replies; 3+ messages in thread
From: Noam Postavsky @ 2019-08-07 16:13 UTC (permalink / raw)
  To: Michael Wright; +Cc: 15611

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.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-07 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-14 17:26 bug#15611: 24.3; "args out of range" error in C mode fontification Gareth Rees
2016-03-06  4:34 ` bug#15611: not reproduced Michael Wright
2019-08-07 16:13   ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).