Package: emacs25-common
Version: 25.2+1-6
Severity: normal
File: /usr/share/emacs/25.2/lisp/progmodes/js.elc
Dear Maintainer,
I'm getting a strange lisp error when opening a desktop session which
contains a JS file. The error message is:
Debugger entered--Lisp error: (void-variable sgml-name-re)
(concat "\\|/>")
(defconst js--jsx-end-tag-re (concat "\\|/>")
("/usr/share/emacs/25.2/lisp/progmodes/js.elc" . 55920))
require(js)
byte-code("\301\302!\210\301\303!\210\301\304!\210\301\305!\210\306\307\"\203 \301\310!\210\2028\311\312\313\314#\210\315\316\317\"\210\315\320\321\"\210\315\322\323\"\210\315\324\325\"\210\314\207"
[emacs-version require cl-lib imenu js etags version< "25.0" js2-old-indent
defvaralias js2-basic-offset js-indent-level nil defalias
js2-proper-indentation js--proper-indentation js2-jsx-indent-line
js-jsx-indent-line js2-indent-line js-indent-line js2-re-search-forward
js--re-search-forward] 4)
autoload-do-load((autoload "js2-mode" "Major mode for editing JavaScript
code.\n\n(fn)" t nil) js2-mode)
desktop-load-file(js2-mode)
desktop-create-buffer(208
"/home/jirka/autopatchwork/AutoPatchWork.safariextension/js/Storage.js"
"Storage.js" js2-mode (font-lock-mode auto-revert-mode icicle-mode) 812 (74
nil) nil nil ((buffer-file-coding-system . undecided-unix)) ((mark-ring (812
The complaint about undefined sgml-name-re is strange, because js.el(c)
does indeed require sgml-mode and sgml-mode.el(c) contains definition of
sgml-name-re. Is there anything else that could be wrong?
Regards
Jiri Palecek
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500,
'testing-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 4.13.0-rc7-686-pae (SMP w/2 CPU cores)
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2), LANGUAGE=cs_CZ
(charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages emacs25-common depends on:
ii emacsen-common 2.0.8
ii install-info6.4.90.dfsg.1-1+b1
Versions of packages emacs25-common recommends:
pn emacs25-el
Versions of packages emacs25-common suggests:
ii emacs25-common-non-dfsg 25.2+1-1
ii ncurses-term 6.0+20170902-1
-- no debconf information