org-ehtml icon indicating copy to clipboard operation
org-ehtml copied to clipboard

Caught Error: (wrong-type-argument integer-or-marker-p nil)

Open map7 opened this issue 9 months ago • 2 comments

In Emacs 30.1 when using org-ehtml I get the following error

Caught Error: (wrong-type-argument integer-or-marker-p nil)

How do I fix this, it works under Emacs 29.4 with the same config

Here is how I have it configured

(use-package web-server :ensure t)
(use-package org-ehtml
  :ensure t
  :config
  (setq org-ehtml-docroot (expand-file-name "~/org/business"))
  (setq org-ehtml-everything-editable t)
  (ws-start org-ehtml-handler 8888 nil :host "0.0.0.0"))

map7 avatar May 11 '25 23:05 map7

Turning on the debugger I get the following backtrace;

Debugger entered--Lisp error: (void-variable flymake-allowed-file-name-masks)
  byte-code("\302\10B\20\303\11B\21\304\305\306\"\210\307\310!\207" [flymake-allowed-file-name-masks flymake-err-line-patterns (".+\\.scss$" flymake-scss-init) ("on line \\([0-9]+\\) of \\([^ ]+\\)$" 2 1 nil 2) add-to-list auto-mode-alist ("\\.scss\\'" . scss-mode) provide scss-mode] 3)
  require(scss-mode nil t)
  apply(require (scss-mode nil t))
  timer-event-handler([t 0 5 0 nil require (scss-mode nil t) idle 0 nil])

map7 avatar Jun 10 '25 05:06 map7

I managed to fix the problem by doing the following;

1. Disable the following for indium package
   : :defer 5

2. Disable editing within org-ehtml
   : ;; (setq org-ehtml-everything-editable t)    

map7 avatar Jun 10 '25 05:06 map7