From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#6952: jit-lock with default, small chunk-size causing incorrect fontification in cc-mode Date: Fri, 29 Jun 2018 19:05:38 -0400 Message-ID: <87y3exmbwd.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1530313450 30276 195.159.176.226 (29 Jun 2018 23:04:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2018 23:04:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 6952@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 30 01:04:05 2018 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 1fZ2Qv-0007nH-Ka for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jun 2018 01:04:05 +0200 Original-Received: from localhost ([::1]:44835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ2T2-0007J6-NN for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jun 2018 19:06:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ2Sr-0007Ho-Di for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 19:06:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZ2So-0006qS-3m for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 19:06:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZ2Sn-0006ps-VF; Fri, 29 Jun 2018 19:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fZ2Sn-0002rF-Jo; Fri, 29 Jun 2018 19:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 29 Jun 2018 23:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6952 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 6952-submit@debbugs.gnu.org id=B6952.153031354810966 (code B ref 6952); Fri, 29 Jun 2018 23:06:01 +0000 Original-Received: (at 6952) by debbugs.gnu.org; 29 Jun 2018 23:05:48 +0000 Original-Received: from localhost ([127.0.0.1]:40183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZ2Sa-0002qj-7k for submit@debbugs.gnu.org; Fri, 29 Jun 2018 19:05:48 -0400 Original-Received: from mail-io0-f180.google.com ([209.85.223.180]:42350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZ2SY-0002qP-Hc; Fri, 29 Jun 2018 19:05:47 -0400 Original-Received: by mail-io0-f180.google.com with SMTP id r24-v6so9829120ioh.9; Fri, 29 Jun 2018 16:05:46 -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=FsBCmY9VOFpZw98b1WUPSkQkYI9bRxvGWhzx1WY58Lw=; b=Huh830bfgqcdUbtPYIvpz+8bgoozcZ3YzfAKKqIl550CyWjnSQhcx4wa9Pzviywav0 p+AHLR2kN77W1s6q0hDs/pZi2BsWsP0aCZ6jID502Qp98O9W/yHfAdyuybTwTQKYZA1v TdXu7GuWRGBq4yNpjGxoG/gQJfAA6sKingz0ltshDlJjxyeUQM9ZT25/v2S/LfICmP0+ iJXBkjDwRF2ZieHkR4EssIe6AJgj23xRTEQnLzbNiGh4Zi62wJbChJSnDDK1ybImzcf6 oK9XLVFGCfoJ9iRgtSAYT6sNkMzLHkcjo19tr3sh8ETvW/22jvytWK5Vi8BgS6ycFaeV 2+Rw== 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=FsBCmY9VOFpZw98b1WUPSkQkYI9bRxvGWhzx1WY58Lw=; b=Faq6YIeVGK9M0b9QtK4FoWwGqn+ozb3CL4yu2k3pfIIHVfnAMXLU8hqKPcDLtN51V7 zw/m89T3PKxSNnTYdAO0oGUJQJG40/yyqMj4vG5Yngj30x8VyNasVbqUY59ivyF+rd0N Ca9pl9ukv43muPyl31PXGt2Vx/15V1oMgFt6uZXjcLRMu1qyGBs+iDo9snSSAyyC2fQx 2357isu23tm1yCI3QkABXIfwS7gu1yzP6UU2Dnrg0l/l5sFGIAabFpWyBgRA0xIdfq6e I/JT4laj+7PquvbNu/uflj6yBEjPB5IK7d874lU29zlT0X3k7s9Wt5g2Hy75/A5SLttd Hn3w== X-Gm-Message-State: APt69E0svQ0kuKy7kLmGQPjubIGoIAl/R7C8x7SVPwDACjC/0vF45eiZ 2uto/wrnxXy+Se2ZO51LYSjvfg== X-Google-Smtp-Source: AAOMgpdJv6Aggh8EXIf1f/7kJAaQlqE+e5T7wIzXUbqsh7Xmw6WhOV9iN6WPqxulpVeJyWkFwrVDMg== X-Received: by 2002:a6b:5a15:: with SMTP id o21-v6mr13129435iob.134.1530313541060; Fri, 29 Jun 2018 16:05:41 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id p67-v6sm4997935iop.40.2018.06.29.16.05.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Jun 2018 16:05:40 -0700 (PDT) In-Reply-To: (Daniel Colascione's message of "Mon, 30 Aug 2010 16:52:45 -0700") 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:147979 Archived-At: tags 6952 + unreproducible quit Daniel Colascione writes: > I've attached a file that demonstrates incorrect fontification with > cc-mode and jit-lock used together -- the last function in the file is > not fontified as a function when a file is first visited with > jit-lock-chunk-size equal to its default 512. I can't reproduce this, neither by setting jit-lock-chunk-size to 512, nor with the default of 500. The fontification of that file looks fine. Tested from 24.3 to current master (27.0.50).