From: Amin Bandali <bandali@gnu.org>
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Help with debugging error from jit-lock-fontify-now
Date: Tue, 14 Apr 2020 22:42:49 -0400 [thread overview]
Message-ID: <874ktltqom.fsf@gnu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2689 bytes --]
Hello,
I'm running into the following error when using a third-party package:
--8<---------------cut here---------------start------------->8---
jit-lock-fontify-now: Wrong type argument: number-or-marker-p, nil
--8<---------------cut here---------------end--------------->8---
The package is scpaste [0], and the command that results in the above
error is scpaste-index. I recently landed a patch [1] in scpaste, which
adds support for using Emacs's htmlfontify library when the external
htmlize library is not installed.
[0]: https://github.com/technomancy/scpaste
[1]: https://github.com/technomancy/scpaste/commit/ca95a8d
I tried using edebug but things started going over my head when it got
to jit-lock-fontify-now. I'd appreciate some help with debugging this
issue. FWIW, scpaste's other two commands, scpaste and scpaste-region,
seem to work just fine and don't trigger this error in jit-lock.
Here is what *Backtrace* looks like:
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
jit-lock--run-functions(1 10813)
jit-lock-fontify-now()
hfy-force-fontification()
htmlfontify-buffer()
scpaste("index")
scpaste-index()
funcall-interactively(scpaste-index)
call-interactively(scpaste-index record nil)
command-execute(scpaste-index record)
counsel-M-x-action("scpaste-index")
ivy-call()
ivy-read("M-x " ("toggle-debug-on-error" "scpaste-index" "scpaste" "scpaste-region" "htmlfontify-buffer" "borg-assimilate" "cvs-update" "disable-theme" "load-theme" "whitespace-mode" "eww" "byte-compile-file" "flyspell-buffer" "untabify" "auto-fill-mode" "auto-insert" "hl-line-mode" "counsel-esh-history" "gnus-bug" "display-time-mode" "completion-at-point" "ivy-mode" "list-processes" "report-emacs-bug" "display-battery-mode" "imenu" "enable-theme" "flymake-mode" "flyspell-mode" "pop-to-buffer" "debug-on-entry" "column-number-mode" "cancel-debug-on-entry" "ebdb-counsel" "list-colors-display" "electric-indent-local-mode" "ido-mode" "org-timer" "mhtml-mode" "tab-bar-mode" "hs-minor-mode" "icomplete-mode" "customize-group" "counsel-yank-pop" "byte-recompile-file" "electric-indent-mode" "indent-for-tab-command" "ebdb-mua-update-records" "pp-macroexpand-last-sexp" "electric-quote-local-mode" ...) :predicate #f(compiled-function (x) #<bytecode 0x159116523c5d>) :require-match t :history counsel-M-x-history :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
counsel-M-x()
funcall-interactively(counsel-M-x)
call-interactively(counsel-M-x nil nil)
command-execute(counsel-M-x)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 857 bytes --]
next reply other threads:[~2020-04-15 2:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-15 2:42 Amin Bandali [this message]
2020-04-15 4:27 ` Help with debugging error from jit-lock-fontify-now Stefan Monnier
2020-04-15 4:54 ` Amin Bandali
2020-04-15 12:48 ` Stefan Monnier
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=874ktltqom.fsf@gnu.org \
--to=bandali@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.