all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Andreas Röhler" <andreas.roehler@online.de>
Cc: 32012@debbugs.gnu.org
Subject: bug#32012: 27.0.50; jit-lock--run-functions broken
Date: Sat, 30 Jun 2018 14:42:16 +0300	[thread overview]
Message-ID: <83bmbsmrfr.fsf@gnu.org> (raw)
In-Reply-To: <8be5975a-6b51-4a74-745c-7b601bd3ce43@online.de> (message from Andreas Röhler on Sat, 30 Jun 2018 13:19:40 +0200)

> Cc: 32012@debbugs.gnu.org
> From: Andreas Röhler <andreas.roehler@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.





  reply	other threads:[~2018-06-30 11:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-29 20:16 bug#32012: 27.0.50; jit-lock--run-functions broken Andreas Röhler
2018-06-30  6:34 ` Eli Zaretskii
2018-06-30  6:54   ` Andreas Röhler
2018-06-30 10:57     ` Eli Zaretskii
2018-06-30 11:19       ` Andreas Röhler
2018-06-30 11:42         ` Eli Zaretskii [this message]
2018-06-30 12:33           ` Andreas Röhler
2018-06-30 13:06           ` Andreas Röhler
2018-06-30 13:52             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83bmbsmrfr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=32012@debbugs.gnu.org \
    --cc=andreas.roehler@online.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.