help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: with-eval-after-load warnings


From: Ruijie Yu
Subject: Re: with-eval-after-load warnings
Date: Tue, 4 Apr 2023 21:33:02 +0800


Samuel Wales <samologist@gmail.com> writes:

> i just installed pdf-view using my os.  [not clear on the differences
> among emacs pms and also the os, but the os is convenient.]

Well, Emacs is run by a single user so only the user sees the package.
With OS package manager all potential users on your machine see this
package.

> i get copmiler warning if i do not say with-no-warnings.
> 
> (with-eval-after-load 'pdf-view
>  (add-hook 'pdf-view-mode-hook '(myc (pdf-view-midnight-minor-mode)))
>  (with-no-warnings (setq pdf-view-midnight-colors '("#f8aa00" . "#000000"))))

Can you prepend the `with-eval-after-load' call with this snippet, and
see if that gets rid of the compiler warning?  (I presume it is about
potentially unbound variable `pdf-view-midnight-colors'?)

--8<---------------cut here---------------start------------->8---
(eval-when-compile (require 'pdf-view))
--8<---------------cut here---------------end--------------->8---

-- 
Best,


RY




reply via email to

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