help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with debugging error from jit-lock-fontify-now


From: Amin Bandali
Subject: Help with debugging error from jit-lock-fontify-now
Date: Tue, 14 Apr 2020 22:42:49 -0400

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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]