* with-eval-after-load warnings
@ 2023-04-03 21:56 Samuel Wales
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Wales @ 2023-04-03 21:56 UTC (permalink / raw)
To: help-gnu-emacs
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.]
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"))))
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: with-eval-after-load warnings
@ 2023-04-04 13:33 Ruijie Yu via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 2+ messages in thread
From: Ruijie Yu via Users list for the GNU Emacs text editor @ 2023-04-04 13:33 UTC (permalink / raw)
To: Samuel Wales; +Cc: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-04 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03 21:56 with-eval-after-load warnings Samuel Wales
-- strict thread matches above, loose matches on Subject: below --
2023-04-04 13:33 Ruijie Yu via Users list for the GNU Emacs text editor
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.