Package: elpa-highlight-indentation
Version: 0.7.0-6
Severity: normal
Tags: upstream
Forwarded: https://github.com/antonj/Highlight-Indentation-for-Emacs/issues/57
Dear maintainer,
When executed in a buffer with major mode web-mode, ‘highlight-indentation’
aborts formatting the buffer:
File mode specification error: (void-variable web-mode-html-offset)
This is because the variable 'web-mode-html-offset' is obsolete and no
longer defined, as of web-mode version 3.00 in 2012
<URL: https://github.com/fxbois/web-mode/commit/e72c8da9631f56583d5aa564f0708508663cacc2>.
In ‘highlight-mode’ version 0.7.0, the variable is referenced when
‘web-mode’ is detected:
=====
(defun highlight-indentation-guess-offset ()
"Get indentation offset of current buffer"
(cond ((and (eq major-mode 'python-mode) (boundp 'python-indent))
python-indent)
[…]
((eq major-mode 'web-mode)
web-mode-html-offset) ; other similar vars: web-mode-{css-indent,scripts}-offset
[…]
=====
‘highlight-indentation’ should avoid using any obsolete variables so that
it will not abort formatting any buffer.
-- System Information:
Debian Release: forky/sid
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 7.3.4+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages elpa-highlight-indentation depends on:
ii dh-elpa-helper 2.2.0
ii emacsen-common 3.0.8
Versions of packages elpa-highlight-indentation recommends:
ii emacs 1:30.2+1-11
ii emacs-pgtk [emacs] 1:30.2+1-11
elpa-highlight-indentation suggests no packages.
-- no debconf information
--
\ “Actually I made up the term “object-oriented”, and I can tell |
`\ you I did not have C++ in mind.” —Alan Kay, creator of |
_o__) Smalltalk, at OOPSLA 1997 |
Ben Finney <bign…@debian.org>