Questions tagged [warning]
68 questions
21
votes
1 answer
How do I debug `Package cl is deprecated`?
While compiling an Elisp package from github, I get the
Warning: Package cl is deprecated
How do I find out what triggers it?
The specific file that triggers this is tiny and has no CL code.
I think there should be a way to turn the warning into…

sds
- 5,928
- 20
- 39
18
votes
1 answer
Dealing with "Warning: assignment to free variable" when certain libraries can be missing by design
Byte compilation of my mode:
(defun dict-setup-expansions ()
"Add `dict-mode' specific expansions."
(set (make-local-variable 'er/try-expand-list) (list #'dict-mark-article)))
gives warning:
Warning: assignment to free variable…

gavenkoa
- 3,352
- 19
- 36
18
votes
1 answer
suppress warning: assignment to free variable (and others)
How can I suppress the "assignment to free variable" warning when byte compiling an emacs lisp file?
I'm actually mostly interested in suppressing it for a specific buffer when using flycheck, but I understand this is just passing off to the byte…

fommil
- 1,750
- 11
- 24
12
votes
2 answers
`Warning (bytecomp)` is a bit vague - can I get any more information?
When I start emacs, I get a couple of byte compilation warnings in a window that pops up:
Warning (bytecomp): `interactive-p' is an obsolete function (as of 23.2); use `called-interactively-p' instead. [7 times]
Warning (bytecomp): Use…

Tom Seddon
- 275
- 1
- 6
12
votes
2 answers
How do I declare a variable ignorable?
How do I avoid byte-compiler warnings Unused lexical variable in functions defined using macros expanding to defun?
E.g., macro defun-rcirc-command in
rcirc.el
uses the target variable which is not used by several invocations.
In Common Lisp I can…

sds
- 5,928
- 20
- 39
6
votes
1 answer
"Unable to activate package" when starting Emacs
I get the following message when starting Emacs:
Warning (emacs): Unable to activate package `elpy'.
Required package `highlight-indentation-0.5.0' is unavailable
Warning (emacs): Unable to activate package `elpy'.
Required package…

Amelio Vazquez-Reina
- 5,157
- 4
- 32
- 47
6
votes
1 answer
dnd-unescape-uri is undefined
After updating packages from MELPA, I'm getting the message:
Warning (emacs): dnd-unescape-uri is undefined. Some things may not work.
It is a separate buffer. Not in the messages buffer.
I can just close the buffer and Emacs seems to be working…

jajpater
- 323
- 1
- 9
6
votes
1 answer
Warning: Unused lexical variable ‘xxxxx’ for clearly used variables
I have this function:
(defun uikit-autolayout (stackview)
"Ask STACKVIEW to auto layout."
(let* ((orientation-index (pcase (uikit--orientation-of stackview)
('left 0) ; rotate clockwise 0 degree
…

Yuan Fu
- 149
- 10
6
votes
0 answers
Show a warning when there are duplicate headings in org-mode
Sometimes I have quite long org-mode documents. I tend to insert new headings and sub-headings throughout the whole document. However sometimes I think that I already used this text and begin searching in the document. The easier way would be to…

Jens Kubieziel
- 681
- 10
- 26
6
votes
1 answer
Can the byte-compiler warn me about unused variables?
I've just finished a pretty significant refactoring; byte-compiler warnings were a great way to quickly find errors, without even running tests.
Still, there's one kind of code smell that the byte-compiler doesn't seem to catch: unused variables.…

Clément
- 3,924
- 1
- 22
- 37
6
votes
2 answers
Debugging "Warning: Reference to free variable"
I have something like below (from the answer) in my init file:
(add-hook 'LaTeX-mode-hook 'my-latex-hook)
(defun my-latex-hook ()
(require 'tex-site)
(define-key LaTeX-mode-map "-" (lambda () (interactive) (insert "_")))
(define-key…

Name
- 7,689
- 4
- 38
- 84
6
votes
2 answers
How do you disable the buffer end/beginning warnings in the minibuffer?
I see that I can do something like this:
(defun limit-warnings ()
(set (make-local-variable 'warning-minimum-level) 'fatal))
(add-hook 'minibuffer-setup-hook 'disable-warnings)
(Sorry for syntax errors; I'm not very familiar with Lisp and the…

bright-star
- 839
- 9
- 17
5
votes
0 answers
Warning: quoted with ' rather than with #'
After switching from Emacs 25 to Emacs 28 I started to get this warning message during the loading of my custom settings
.emacs.d/init.el: Warning: (lambda nil \.\.\.) quoted with ' rather than with #'
I upgraded all installed packages and…

PinkCollins
- 151
- 8
5
votes
0 answers
Fontconfig Error in Snap version of Emacs
I installed Emacs 26.3 using Snap in my Debian Buster. After I launch it, it gives me the following errors:
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown…

J Arun Mani
- 151
- 4
5
votes
2 answers
Where are these variables defined? - bytecomp Warnings
Lately I'm getting warnings when compiling the .emacs
Warning (bytecomp): reference to free variable ‘url-http-extra-headers’
Warning (bytecomp): reference to free variable ‘oauth--token-data’
Warning (bytecomp): reference to free variable…

Dox
- 955
- 10
- 28