Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Compile-time warnings #1335

Open
Open
Compile-time warnings#1335

Description

On emacs 30.2, the byte-compiler is emitting the following warnings (on web-mode.el from the master branch (1e7694a)).

In web-mode-scan-region:
web-mode.el:3361:17: Warning: 'inhibit-point-motion-hooks' is an obsolete
variable (as of 25.1); use 'cursor-intangible-mode' or
'cursor-sensor-mode' instead

In web-mode-block-scan:
web-mode.el:4543:12: Warning: value from call to 'member' is unused
web-mode.el:4552:12: Warning: value from call to 'member' is unused
web-mode.el:4772:9: Warning: value from call to 'string=' is unused

In web-mode-fontify:
web-mode.el:6739:20: Warning: 'inhibit-point-motion-hooks' is an obsolete
variable (as of 25.1); use 'cursor-intangible-mode' or
'cursor-sensor-mode' instead

In web-mode-colorize-foreground:
web-mode.el:7396:19: Warning: 'x-color-values' is an obsolete function (as of
30.1); use 'color-values' instead.

In web-mode-column-show:
web-mode.el:8108:14: Warning: 'goto-line' is for interactive use only; use
'forward-line' instead.
web-mode.el:8111:14: Warning: 'goto-line' is for interactive use only; use
'forward-line' instead.

In web-mode-token-html-indentation:
web-mode.el:9809:29: Warning: 'lax-plist-get' is an obsolete function (as of
29.1); use 'plist-get' instead.
web-mode.el:9811:25: Warning: 'lax-plist-put' is an obsolete function (as of
29.1); use 'plist-put' instead.
web-mode.el:14668:2: Warning: 'defadvice' is an obsolete macro (as of 30.1);
use 'advice-add' or 'define-advice'

In web-mode-set-content-type:
web-mode.el:14828:10: Warning: 'when' with empty body

In end of data:
web-mode.el:9593:21: Warning: the function 'web-mode-part-args-beginning' is
not known to be defined.

The "[...] is unused" warnings, and the "'when' with empty body" warning appear to be truthful. (Harmless, but might as well fix?)

The "'web-mode-part-args-beginning' is not known to be defined." also appears truthful, and is a bit more concerning (though I haven't noticed any deliterious effects myself.)


web-mode-debug says:

--- WEB-MODE DEBUG BEG ---
versions: emacs(30.2) web-mode("17.3.22")
vars: engine(nil) minor(nil) content-type("") file("*Compile-Log*")
system: window(pgtk) config("x86_64-pc-linux-gnu")
colors: fg(nil) bg(nil)
minor modes: (buffer-read-only minibuffer-regexp-mode show-paren-mode global-eldoc-mode straight-package-neutering-mode straight-use-package-mode save-place-mode vertico-mode which-key-mode override-global-mode editorconfig-mode goto-address-mode global-goto-address-mode global-treesit-auto-mode global-flycheck-mode magit-auto-revert-mode global-git-commit-mode magit-todos-mode)
vars:
web-mode-enable-current-column-highlight=nil
web-mode-enable-current-element-highlight=nil
indent-tabs-mode=nil
--- WEB-MODE DEBUG END ---

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions