GNU bug report logs - #32012
27.0.50; jit-lock--run-functions broken

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> online.de>

Date: Fri, 29 Jun 2018 20:15:02 UTC

Severity: normal

Tags: notabug

Found in version 27.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 32012 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andreas Röhler <andreas.roehler <at> online.de>
Cc: 32012 <at> debbugs.gnu.org
Subject: Re: bug#32012: 27.0.50; jit-lock--run-functions broken
Date: Sat, 30 Jun 2018 14:42:16 +0300
> Cc: 32012 <at> debbugs.gnu.org
> From: Andreas Röhler <andreas.roehler <at> online.de>
> 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.




This bug report was last modified 7 years and 46 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.