emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Lisp Linter fail to identify function defined in a "use-packag


From: Emanuel Berg
Subject: Re: Emacs Lisp Linter fail to identify function defined in a "use-package" block
Date: Thu, 26 Oct 2023 22:29:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

> The problems with vanilla Emacs source files, that are
> brought to our attention thanks to elint, are:
>
>   - they do not `provide' (e.g. startup.el) [...]

A work-around is to simply `defvar' the missing variables.

I don't know if the linter has succeeded in improving the
code, but I added to .emacs this,

  (defvar auto-save-list-file-prefix)
  (defvar backup-inhibited)
  (defvar inhibit-default-init)
  (defvar inhibit-startup-screen)
  (defvar initial-scratch-message)
  (defvar make-backup-files)
  (defvar user-emacs-directory)

and Elint doesn't mention them.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]