all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Help with debugging error from jit-lock-fontify-now
@ 2020-04-15  2:42 Amin Bandali
  2020-04-15  4:27 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Amin Bandali @ 2020-04-15  2:42 UTC (permalink / raw)
  To: Help GNU Emacs

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-04-15 12:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-15  2:42 Help with debugging error from jit-lock-fontify-now Amin Bandali
2020-04-15  4:27 ` Stefan Monnier
2020-04-15  4:54   ` Amin Bandali
2020-04-15 12:48     ` Stefan Monnier

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.