From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#28349: 26.0.50; compilation mode syntax highlighting incorrect Date: Sun, 10 Sep 2017 23:41:45 +0100 Message-ID: References: <834lsh2mke.fsf@gnu.org> <83o9qjvjb0.fsf@gnu.org> <87bmmi8o6i.fsf@bapiya> <83r2vetk6c.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1505083400 4384 195.159.176.226 (10 Sep 2017 22:43:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2017 22:43:20 +0000 (UTC) Cc: 28349@debbugs.gnu.org, Tom Tromey To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 11 00:43:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drAwS-0000Mg-C9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Sep 2017 00:43:04 +0200 Original-Received: from localhost ([::1]:54507 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drAwZ-0001wy-NY for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Sep 2017 18:43:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drAwT-0001wZ-DV for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 18:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drAwQ-0001Ft-B7 for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 18:43:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51240) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drAwQ-0001Fl-6k for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 18:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1drAwP-0003nP-OP for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 18:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Sep 2017 22:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28349 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28349-submit@debbugs.gnu.org id=B28349.150508334414537 (code B ref 28349); Sun, 10 Sep 2017 22:43:01 +0000 Original-Received: (at 28349) by debbugs.gnu.org; 10 Sep 2017 22:42:24 +0000 Original-Received: from localhost ([127.0.0.1]:59921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drAvn-0003mO-Kb for submit@debbugs.gnu.org; Sun, 10 Sep 2017 18:42:23 -0400 Original-Received: from mail-ua0-f182.google.com ([209.85.217.182]:36123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drAvm-0003mA-2D for 28349@debbugs.gnu.org; Sun, 10 Sep 2017 18:42:22 -0400 Original-Received: by mail-ua0-f182.google.com with SMTP id q29so9426354uaf.3 for <28349@debbugs.gnu.org>; Sun, 10 Sep 2017 15:42:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+jrnCA/X1ZuAgpvp5z2z8sK+ihrLqbatRP0WlUyCeEg=; b=eiR4L7DsVn8mUlejblLgEGOHdi+QoJMekxWA1o8n3EtoFWrSyiYFX1fyt9AO6Zillt 2fOyuY8u/GrpLjadK8tFfsPIIpAQjdzRGMX3aKarlbZwThcAuKzkmhY58EAhqhhr0DPD Zpc3GZhXl+UBEp0FoDDILFzQK0MFZzF0ibKnbxmj3vlZJLV3CqQANHr9oucaKmzZjo65 HaxOiSWqvWrDZwSgZhYPfCHEPpZbuLZrzGpifo0IScCUyUHxrkaBb3GCOyiQcC5NieEN Dkavesan0ov4xTeKd+TbYP/sHVsyTqUutsCcM5M2OEhvrfrdQ1a9Sz7Bvt+Bw65Yz2LP 6G1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+jrnCA/X1ZuAgpvp5z2z8sK+ihrLqbatRP0WlUyCeEg=; b=Bk/db2/efOjG3SjUYHr00vG2DOuAUlN2iIeAD3XKepQ3pLQkKJZ4W7u7mab5fg0Hfv YzJmxI5kX5ZmHobDAJvCb//I3CD1fcHTmmI9rzrxhp7P2uL8JLCHlLaEKV81+ls8KY/A YxM04sPPbpBCTGNU8ucKBDA3lGqfBrpUcD6iR/Eka3gme2w+2ao5V+Xeqc2l4JZ4k9YF Hn1vFOz1igzWPWbpmDLvH7pmImwTNtTQ828DiP++WmeoB/7dFzx/n8qwR49PHtTBFnFs RDx3qIOJZK9xmlq+ggnbQhtW2AI9LECRWPWa0t0jEqTEg9lhGMOxceo4N322Sjb5QbpZ vhWg== X-Gm-Message-State: AHPjjUhH80uY0QwS6qWiHxkKkcTpsgJHyEL0JvpsCwJNXxP7pimPqQIk XnkoJnp+hLsI9SVBj7aBqVIgho5fdg== X-Google-Smtp-Source: AOwi7QCxdr7PbiX7nnYHiS6XyYNFCwpBSIb9bHe8M8xeHYtAPmB/EZvtjhyn1b2CqvezsuyLMynmg+sBBVMOOmYTMZk= X-Received: by 10.176.24.146 with SMTP id t18mr7850149uag.14.1505083336418; Sun, 10 Sep 2017 15:42:16 -0700 (PDT) Original-Received: by 10.159.41.102 with HTTP; Sun, 10 Sep 2017 15:41:45 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136750 Archived-At: On 10 September 2017 at 20:57, Richard Copley wrote: > On 10 September 2017 at 20:42, Eli Zaretskii wrote: >>> From: Richard Copley >>> Date: Sun, 10 Sep 2017 19:33:44 +0100 >>> Cc: Tom Tromey , 28349@debbugs.gnu.org >>> >>> Thanks. There seems to be another similar issue remaining. >>> Font-locking still fails for some lines "at random". This time the errors are >>> >>> Error during redisplay: (jit-lock-function 94586) signaled >>> (args-out-of-range 0 3) >>> Error during redisplay: (jit-lock-function 284681) signaled >>> (args-out-of-range 0 3) >>> Error during redisplay: (jit-lock-function 285181) signaled >>> (args-out-of-range 0 3) >> >> Can you show a more informative Lisp backtrace? > > If I disable jit-lock and enable debug-on-error, then re-run the > compilation (toggling font-lock-mode is not sufficient), I get: > > Debugger entered--Lisp error: (args-out-of-range 0 3) > add-text-properties(0 3 (compilation-message #s(compilation--message > :loc (nil 37 (("addpm.c" "c:/projects/emacs/nt") nil (37 #3)) nil nil) > :type 0 :end-loc nil) help-echo "mouse-2: visit this file and line" > keymap compilation-button-map mouse-face highlight)) > compilation-parse-errors(6217 #) > compilation--parse-region(6217 #) > compilation--ensure-parse(6913) > font-lock-fontify-keywords-region(6217 6913 nil) > font-lock-default-fontify-region(6217 6913 nil) > font-lock-fontify-region(6217 6913) > font-lock-after-change-function(6217 6913 0) > compilation-filter(# "make[1]: Entering > directory '/c/projects/emacs/lib'\n AR libgnu.a\nmake[1]: > Leaving directory '/c/projects/emacs/lib'\nmake[1]: Entering directory > '/c/projects/emacs/nt'\n CCLD addpm.exe\naddpm.c:42:0: warning: > \"_WIN32_WINNT\" redefined\n #define _WIN32_WINNT _WIN32_WINNT_WIN7\n > \nIn file included from > C:/msys64/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10:0,\n > from C:/msys64/mingw64/x86_64-w64-mingw32/include/stdlib.h:9,\n > from > addpm.c:37:\nC:/msys64/mingw64/x86_64-w64-mingw32/include/_mingw.h:225:0: > note: this is the location of the previous definition\n #define > _WIN32_WINNT 0x502\n \nmake[1]: Leaving directory > '/c/projects/emacs/nt'\nmake -C lib-src all\n") This is the backtrace when string-match sets the match data to (0 3): (file-truename (cdr file)) (if (cdr file) (progn (file-truename (cdr file)) (debug))) (let ((filename (car file)) (spec-directory (if (cdr file) (file-truename (cdr file))))) (if (and (boundp 'comint-file-name-prefix) (not (equal comint-file-name-prefix ""))) (progn (if (file-name-absolute-p filename) (setq filename (concat comint-file-name-prefix filename)) (if spec-directory (setq spec-directory (file-truename (concat comint-file-name-prefix spec-directory))))))) (if compilation-parse-errors-filename-function (progn (setq filename (funcall compilation-parse-errors-filename-function filename)))) (setq filename (command-line-normalize-file-name filename)) (puthash file (or (gethash (cons filename spec-directory) compilation-locs) (puthash (cons filename spec-directory) (cons (list filename spec-directory) (cons fmt nil)) compilation-locs)) compilation-locs)) (or (gethash file compilation-locs) (let ((filename (car file)) (spec-directory (if (cdr file) (file-truename (cdr file))))) (if (and (boundp 'comint-file-name-prefix) (not (equal comint-file-name-prefix ""))) (progn (if (file-name-absolute-p filename) (setq filename (concat comint-file-name-prefix filename)) (if spec-directory (setq spec-directory (file-truename (concat comint-file-name-prefix spec-directory))))))) (if compilation-parse-errors-filename-function (progn (setq filename (funcall compilation-parse-errors-filename-function filename)))) (setq filename (command-line-normalize-file-name filename)) (puthash file (or (gethash (cons filename spec-directory) compilation-locs) (puthash (cons filename spec-directory) (cons (list filename spec-directory) (cons fmt nil)) compilation-locs)) compilation-locs))) compilation-get-file-structure(("addpm.c" . "/c/projects/emacs/nt") nil) compilation-internal-error-properties(("addpm.c" . "/c/projects/emacs/nt") 37 nil nil nil 0 nil) compilation-error-properties(1 2 nil 3 nil 0 nil) compilation-parse-errors(290 #) compilation--parse-region(290 #) compilation--ensure-parse(742) font-lock-fontify-keywords-region(290 742 nil) font-lock-default-fontify-region(290 742 nil) font-lock-fontify-region(290 742) font-lock-after-change-function(290 742 0) compilation-filter(# " CCLD addpm.exe\naddpm.c:42:0: warning: \"_WIN32_WINNT\" redefined\n #define _WIN32_WINNT _WIN32_WINNT_WIN7\n \nIn file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10:0,\n from C:/msys64/mingw64/x86_64-w64-mingw32/include/stdlib.h:9,\n from addpm.c:37:\nC:/msys64/mingw64/x86_64-w64-mingw32/include/_mingw.h:225:0: note: this is the location of the previous definition\n #define _WIN32_WINNT 0x502\n \n")