From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32012: 27.0.50; jit-lock--run-functions broken Date: Sat, 30 Jun 2018 14:42:16 +0300 Message-ID: <83bmbsmrfr.fsf@gnu.org> References: <4bf10ce1-6b8a-3197-c0eb-4c9323d714fa@online.de> <8336x4ok8x.fsf@gnu.org> <86f0f3da-d3aa-4a58-9779-73a59060bbcf@online.de> <83in60mths.fsf@gnu.org> <8be5975a-6b51-4a74-745c-7b601bd3ce43@online.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1530358868 24094 195.159.176.226 (30 Jun 2018 11:41:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2018 11:41:08 +0000 (UTC) Cc: 32012@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 30 13:41:03 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 1fZEFT-0006CE-EP for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jun 2018 13:41:03 +0200 Original-Received: from localhost ([::1]:46502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZEHa-0008Ad-BU for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jun 2018 07:43:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZEHT-0008A5-NU for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 07:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZEHO-0002ld-Rr for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 07:43:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60731) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZEHO-0002lV-N0 for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 07:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fZEHO-0005ra-GJ for bug-gnu-emacs@gnu.org; Sat, 30 Jun 2018 07:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jun 2018 11:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32012 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32012-submit@debbugs.gnu.org id=B32012.153035893822484 (code B ref 32012); Sat, 30 Jun 2018 11:43:02 +0000 Original-Received: (at 32012) by debbugs.gnu.org; 30 Jun 2018 11:42:18 +0000 Original-Received: from localhost ([127.0.0.1]:40395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZEGf-0005qa-VR for submit@debbugs.gnu.org; Sat, 30 Jun 2018 07:42:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58493) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZEGf-0005qM-2U for 32012@debbugs.gnu.org; Sat, 30 Jun 2018 07:42:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZEGU-00023o-U3 for 32012@debbugs.gnu.org; Sat, 30 Jun 2018 07:42:11 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZEGU-00023P-QK; Sat, 30 Jun 2018 07:42:06 -0400 Original-Received: from [176.228.60.248] (port=4661 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fZEGU-0004Wv-30; Sat, 30 Jun 2018 07:42:06 -0400 In-reply-to: <8be5975a-6b51-4a74-745c-7b601bd3ce43@online.de> (message from Andreas =?UTF-8?Q?R=C3=B6hler?= on Sat, 30 Jun 2018 13:19:40 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:148009 Archived-At: > Cc: 32012@debbugs.gnu.org > From: Andreas Röhler > Date: Sat, 30 Jun 2018 13:19:40 +0200 > > >> Hmm, by looking at its signature > >> > >> (defun jit-lock-fontify-now (&optional start end) > >> > >> Why that shouldn't work? > > > > That's not what the backtrace suggests. It suggests that you invoked > > jit-lock--run-functions via eval-last-sexp. > > Right. But the arguments are optional. > Wherefrom to expect it failing? A function that has optional argument doesn't necessarily support invocation without arguments in any arbitrary context. It could support that just in some specific cases. You can clearly see in the function that when Start and END are nil, the function sets them to some values, but those values might not make sense in some arbitrary invocation context. Anyway, this discussion would have been much less theoretical if you would to show what exactly did you do in ert tests that caused the problem.