From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: christian de larrinaga via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: use pdf-tools in Emacs. Date: Fri, 28 Apr 2023 11:48:57 +0100 Message-ID: <87edo41dql.fsf@firsthand.net> References: <87r0s5efab.fsf@frege.mail-host-address-is-not-set> <87edo5bc61.fsf@gnu.org> <87edo52mtg.fsf@gnu.org> <87o7n8jwzw.fsf@gnu.org> Reply-To: cdel@firsthand.net Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27033"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.10; emacs 30.0.50 Cc: Hongyi Zhao , stefan-husmann@t-online.de, help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 28 12:52:16 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 1psLi3-0006oJ-NE for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Apr 2023 12:52:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psLhT-0007fq-2H; Fri, 28 Apr 2023 06:51:39 -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 1psLhQ-0007ch-Mz for help-gnu-emacs@gnu.org; Fri, 28 Apr 2023 06:51:37 -0400 Original-Received: from firsthand.net ([2a00:1098:84:258::1] helo=dogon.vs.mythic-beasts.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psLhO-0003W6-Ga; Fri, 28 Apr 2023 06:51:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=firsthand.net; s=dogon; h=Content-Type:MIME-Version:Message-ID:In-reply-to: Reply-To:Date:Subject:Cc:To:From:References:Sender:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=M9d1z3pCrT7rJHSZgMNsQY+09aqtxn7G46VAvazY9UU=; b=PGrclU15+60lPz4ZpWolkh8oJ5 pKGwYk7xrRP3KBgfogty1BHHSXVPGd/BUfiitoy0sRE+fIjhwQXbplPukSdGdQAZEXa0XXZ7cU3Je MVf3ogMv/TJ56QstcomzInaa2XCp5a43cVsRZzyRnv9d32W1WCdImfqG0slEofrVA4C0=; Original-Received: from 1.4.5.d.8.2.1.9.5.8.3.0.2.0.0.a.6.9.3.4.8.d.e.f.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:fed8:4396:a002:385:9128:d541] helo=christian-tux) by dogon.vs.mythic-beasts.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1psLhK-0008R9-JA; Fri, 28 Apr 2023 10:51:30 +0000 In-reply-to: <87o7n8jwzw.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1098:84:258::1; envelope-from=cdel@firsthand.net; helo=dogon.vs.mythic-beasts.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , X-ACL-Warn: , christian de larrinaga 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:143434 Archived-At: thank you for this pointer. I had reconfigured emacs a while back and hadn't got round to improving pdf performance to match the increasing number of pdf docs I need to reference. I installed I thought pdf-tools but it wasn't behaving. The :init did the trick great list! Christian Tassilo Horn writes: > Hongyi Zhao writes: > >>> (use-package pdf-tools >>> :ensure t >>> :init >>> (pdf-tools-install)) >> >> I confirm that the above configuration can solve the problem. > > There you go. So the issue was that you've put (pdf-tools-install) in > the :config rather than the :init clause. That would have called it > when pdf-tools is loaded which never happened because pdf-tools-install > arranges that it will be used when finding a pdf file. > > Bye, > Tassilo -- christian de larrinaga https://firsthand.net