Closed protesilaos closed 4 years ago
The issue seems to be that there used to be a function named eldoc-highlight-function-argument
before emacs-25, but there is also a face named eldoc-highlight-function-argument
with the same name which triggers the error.
Can you share some code which, when linted, produces this issue?
Sure, this is in the context of a theme. Here is a minimal code that reproduces the issue:
;;; testing-theme.el --- Testing -*- lexical-binding:t -*-
;; Author: Protesilaos Stavrou <info@protesilaos.com>
;; URL: https://protesilaos.com
;; Version: 0.1.0
;; Package-Requires: ((emacs "26.1"))
;;; Commentary:
;; This is a test.
;;; Code:
(deftheme testing
"Testing.")
(custom-theme-set-faces
'testing
`(eldoc-highlight-function-argument ((t :foreground "red"))))
(provide-theme 'testing)
(provide 'testing-theme)
;;; testing-theme.el ends here
Thanks, that's helpful. The issue here is that package-lint
only has very basic detection of references to functions and variables, and to package-lint
the above looks like it calls eldoc-highlight-function-argument
as a function. We don't actually macroexpand or execute the code to detect which references actually are variables and functions, because that would be unsafe in the context of MELPA etc. So this is unlikely to get fixed, but to placate package-lint
in this instance you could reformulate it slightly:
(custom-theme-set-faces
'testing
(list 'eldoc-highlight-function-argument '((t :foreground "red"))))
Thank you for this! It woks. This issue can be closed now.
Thank you for providing this package! I am trying to configure
eldoc-highlight-function-argument
only to get an error:Checking the source code, does not seem to indicate that this face has been removed.
M-x find-library eldoc
contains this:The face's docstring does offer a warning. Same for the
eldoc-documentation-function
. Though I cannot pinpoint the source of the error message I am getting.Is this error spurious? Is there some way to silence the linter?