all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* A lot of warnings. Why?
@ 2023-12-24 20:56 Maske
  2023-12-25  3:25 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Maske @ 2023-12-24 20:56 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

I am receiving a lot of warnings like this:

" Warning (comp): init.el:2351:11: Warning: the function 
`allout-show-all' is not known to be defined."


For a lot of functions and variables in my init file, I am receiving 
that kind of warnings. Whats happening?

For variables:

" Warning (comp): init.el:1978:7: Warning: assignment to free variable 
`ispell-program-name'"

A lot of these too:

"Warning (comp): init.el:1920:2: Warning: docstring wider than 80 
characters"


Best regards


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

* Re: A lot of warnings. Why?
  2023-12-24 20:56 A lot of warnings. Why? Maske
@ 2023-12-25  3:25 ` Eli Zaretskii
  2023-12-25 12:48   ` Maske
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2023-12-25  3:25 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Sun, 24 Dec 2023 21:56:06 +0100
> From: Maske <maske1foro@gmail.com>
> 
> Hi
> 
> I am receiving a lot of warnings like this:
> 
> " Warning (comp): init.el:2351:11: Warning: the function 
> `allout-show-all' is not known to be defined."
> 
> 
> For a lot of functions and variables in my init file, I am receiving 
> that kind of warnings. Whats happening?
> 
> For variables:
> 
> " Warning (comp): init.el:1978:7: Warning: assignment to free variable 
> `ispell-program-name'"
> 
> A lot of these too:
> 
> "Warning (comp): init.el:1920:2: Warning: docstring wider than 80 
> characters"

It sounds like your init.el file should load some packages first,
before referencing the variables and functions in those packages.



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

* Re: A lot of warnings. Why?
  2023-12-25  3:25 ` Eli Zaretskii
@ 2023-12-25 12:48   ` Maske
  2023-12-25 13:39     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Maske @ 2023-12-25 12:48 UTC (permalink / raw)
  To: Eli Zaretskii, help-gnu-emacs

Thanks, Eli

Not sure what to do. This happens randomly (about 50%), but it is very 
disgusting. Like knowing something is wrong in your car, and you can't 
do anything to solve it.

Best regards

On 25/12/2023 4:25, Eli Zaretskii wrote:
>> Date: Sun, 24 Dec 2023 21:56:06 +0100
>> From: Maske <maske1foro@gmail.com>
>>
>> Hi
>>
>> I am receiving a lot of warnings like this:
>>
>> " Warning (comp): init.el:2351:11: Warning: the function
>> `allout-show-all' is not known to be defined."
>>
>>
>> For a lot of functions and variables in my init file, I am receiving
>> that kind of warnings. Whats happening?
>>
>> For variables:
>>
>> " Warning (comp): init.el:1978:7: Warning: assignment to free variable
>> `ispell-program-name'"
>>
>> A lot of these too:
>>
>> "Warning (comp): init.el:1920:2: Warning: docstring wider than 80
>> characters"
> 
> It sounds like your init.el file should load some packages first,
> before referencing the variables and functions in those packages.
> 
> 



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

* Re: A lot of warnings. Why?
  2023-12-25 12:48   ` Maske
@ 2023-12-25 13:39     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2023-12-25 13:39 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Mon, 25 Dec 2023 13:48:40 +0100
> From: Maske <maske1foro@gmail.com>
> 
> Not sure what to do. This happens randomly (about 50%), but it is very 
> disgusting. Like knowing something is wrong in your car, and you can't 
> do anything to solve it.

For each variable or function that you get a warning, find where it is
defined, and make sure to add

  (require 'PACKAGE)

for each PACKAGE where those vatriables/functions are defined, at the
beginning of the file(s) for which Emacs emits this warning.



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

end of thread, other threads:[~2023-12-25 13:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-24 20:56 A lot of warnings. Why? Maske
2023-12-25  3:25 ` Eli Zaretskii
2023-12-25 12:48   ` Maske
2023-12-25 13:39     ` Eli Zaretskii

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.