Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [warning]

The tag has no usage guidance.

1
vote
1answer
109 views

How disable show warning message in shell?

Emacs 26.1 Every time when I start shell I get the next message: How I can disable this message?
4
votes
1answer
122 views

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)...
3
votes
1answer
66 views

How to get Emacs to know that a symbol has a function definition

While reading the source file prelude-ivy.el in the Prelude modules directory, I saw that there was a warning associated with "here" in the last line, specifically that prelude-required-packages was ...
0
votes
1answer
68 views

Show file name in delete prompt?

When I delete the current buffer's file (in spacemacs via SPC f D, a prompt shows up in the minibuffer: Are you sure you want to delete this file? (y or n) I would find it safer if that warning ...
4
votes
2answers
241 views

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’ ...
1
vote
1answer
135 views

Initialization error related to tramp scp function

When I open emacs, I get an initialization warning: Warning (initialization): An error occurred while loading `/Users/myusername/.emacs': Invalid function: ([scp myusername 128.my.ip.addr nil nil] (...
0
votes
0answers
68 views

How can emacs detect when a file has been modified by another program?

Does emacs have a way of detecting when a file it is editing has been changed by another program? Can it warn and generate a message when that happens, rather than warn you when you are about to edit ...
4
votes
2answers
118 views

Prevent byte-compiler warnings after requiring features

In Elisp packages, we sometimes want to use a feature only if the user has installed another package without specifying that package as a dependency for our own. E.g. (when (require 'markdown-mode ...
3
votes
1answer
47 views

When I (byte-compile-file “my-package.el”), can I treat warnings as errors?

As part of CI testing, I'm byte-compiling package files to make sure there are no errors. I'd like to take this a step further and ensure there are no warnings, either (like 'function not known to be ...
1
vote
1answer
142 views

Emacs init.el warning

When I load up emacs for the first time I get this warning Warning (bytecomp): ‘font-lock-fontify-buffer’ is for interactive use only; use ‘font-lock-ensure’ or ‘font-lock-flush’ instead. [2 times] ...
1
vote
1answer
112 views

Fixing “reference/assignment to free variable” warning during compilation if variable is dynamically bounded

For: (defun my-ag/font-lock-extend-region () (save-excursion (goto-char font-lock-beg) (forward-line 2) (setq font-lock-beg (point)))) I've got: Warning: reference to free variable '...
5
votes
1answer
161 views

How can I make Emacs warn about calls to my pure functions?

Emacs' byte-compiler can tell me if I call pure functions without saving the result: (defun foo-calls-add () ;; value returned from (+ 1 2) is unused: (+ 1 2) 12) However, I don't get any ...
0
votes
1answer
86 views

--debug-init changes emacs behaviour

I have a warning when I start Emacs. No problem, just start it with --debug-init. What!! No warning anymore, and it actually opens scratch instead of Emacs standard spash screen. --debug-init ...
0
votes
1answer
470 views

(emacs:28245): GLib-GObject-WARNING **: IA__g_object_notify: object class `GtkMenuItem' has no property named `label'

working on Red Hat Gnome 2.16.0 (pretty old, I guess). Whenever I launch emacs 24.4.1, i keep getting these warnings popping on the terminal I launched it from. Can anybody either point me to a ...
8
votes
1answer
1k views

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: ...
4
votes
1answer
371 views

Strange elisp byte-compiler warning about unused variables

The following elisp code inserts hello world! 10 times: -*- lexical-binding: t -*- (dotimes (i 10) (insert "hello world!\n")) If I byte-compile that code, I get the following message: hellos.el:2:1:...
4
votes
0answers
110 views

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 ...
13
votes
1answer
3k views

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 ...
6
votes
1answer
113 views

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-...
5
votes
2answers
2k views

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 () (...
1
vote
2answers
752 views

How to disable flycheck fringe markers for warnings?

I find the question mark fringe markers for flycheck warnings slightly distracting. Is there a way to hide them? I'd like to keep the error fringe markers. I tried M-x customize-face <RET> ...
1
vote
0answers
487 views

Debugging a “Warning (bytecomp): reference to free variable” message

I just upgraded to a new bleeding edge version of Emacs in OS X: brew install emacs --HEAD --use-git-head --with-cocoa --with-gnutls --with-rsvg --with-imagemagick I understand that this version is ...
10
votes
2answers
1k views

`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' ...
0
votes
0answers
55 views

Meaning of AucTeX warning here

I've created the following LaTeX file: \documentclass[10pt]{book} \usepackage{subfiles} \usepackage{mystyle} \begin{document} \subfile{./tex/title.tex} \subfile{./tex/intro.tex} %warning here says: ...
1
vote
1answer
348 views

Unable to activate package `emacs-eclim' [duplicate]

When I open my emacs 24.4, I get: Warning (emacs): Unable to activate package `emacs-eclim'. Required package `s-1.9.0' is unavailable but If I open version 24.1 there is no such error. eclim works ...
6
votes
2answers
971 views

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 ...
8
votes
2answers
663 views

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 ...
6
votes
1answer
2k views

“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 ...