From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ruijie Yu via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: with-eval-after-load warnings Date: Tue, 4 Apr 2023 21:33:02 +0800 Message-ID: Reply-To: Ruijie Yu Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Samuel Wales Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 04 15:33:57 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pjgnN-0002ih-Kw for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 04 Apr 2023 15:33:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjgmx-0006qC-FM; Tue, 04 Apr 2023 09:33:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjgmw-0006pw-8w for help-gnu-emacs@gnu.org; Tue, 04 Apr 2023 09:33:30 -0400 Original-Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjgmr-0006H3-4b for help-gnu-emacs@gnu.org; Tue, 04 Apr 2023 09:33:30 -0400 Original-Received: from smtpclient.apple ( [27.18.235.120]) by netyu.xyz (OpenSMTPD) with ESMTPSA id e8a24530 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 4 Apr 2023 13:33:16 +0000 (UTC) X-Mailer: iPad Mail (20D67) Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143213 Archived-At: =EF=BB=BF Samuel Wales 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. >=20 > (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--- --=20 Best, RY