all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Emacs Lisp Linter fail to identify function defined in a "use-packag
@ 2023-10-11 13:58 Kiong-Gē Liāu
  2023-10-12  0:29 ` Emanuel Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Kiong-Gē Liāu @ 2023-10-11 13:58 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]

Hi, 

 I did some further test and found that the "function *** is not known
to be defined" error only happen once for either a undefined function
or a function defined in a nested structure, as seen in the attached
screenshot. 

1. The kkl0-fun, which is defined at top-level, linter shows no error 
   at all
2. The kkl1-fun is defined as *kk0l* global variable is assigned as t
3. The first linter error appears when the kkl1-fun is called first
time
4. At the second call-site of kkl1-fun, the linter "undefined-function"
error disappears 
5. the kkl2-fun is totally undefined, and linter identifies the
undefined function error at the first call-site
6. at the second call-site of kkl2-fun, the undefined-function linter
error disappears as well

So, it seems that elint starts to ignore undefined function starting
second call-site regardless that function is defined or not. we need
some further investigation on elint.el's elint-update-env function and
related functions. 

Thanks, 
Kiong-Gē. 

[-- Attachment #2: Screenshot from 2023-10-11 08-56-48.png --]
[-- Type: image/png, Size: 49918 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-12  0:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-11 13:58 Emacs Lisp Linter fail to identify function defined in a "use-packag Kiong-Gē Liāu
2023-10-12  0:29 ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.