From: Ruijie Yu via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Samuel Wales <samologist@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: with-eval-after-load warnings
Date: Tue, 4 Apr 2023 21:33:02 +0800 [thread overview]
Message-ID: <CC8F2AB1-55D4-4DD0-9C4B-E6B791F9B929@netyu.xyz> (raw)
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
next reply other threads:[~2023-04-04 13:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-04 13:33 Ruijie Yu via Users list for the GNU Emacs text editor [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-04-03 21:56 with-eval-after-load warnings Samuel Wales
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CC8F2AB1-55D4-4DD0-9C4B-E6B791F9B929@netyu.xyz \
--to=help-gnu-emacs@gnu.org \
--cc=ruijie@netyu.xyz \
--cc=samologist@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.