From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: use pdf-tools in Emacs. Date: Fri, 28 Apr 2023 20:43:41 +0800 Message-ID: References: <87r0s5efab.fsf@frege.mail-host-address-is-not-set> <87edo5bc61.fsf@gnu.org> <87edo52mtg.fsf@gnu.org> <87o7n8jwzw.fsf@gnu.org> Mime-Version: 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="3438"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 14:45:43 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 1psNTp-0000de-OU for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Apr 2023 14:45:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psNSC-0000OG-32; Fri, 28 Apr 2023 08:44:00 -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 1psNS9-0000Jk-IZ for help-gnu-emacs@gnu.org; Fri, 28 Apr 2023 08:43:57 -0400 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psNS7-0001yd-VQ; Fri, 28 Apr 2023 08:43:57 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-959a626b622so1020869366b.0; Fri, 28 Apr 2023 05:43:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682685833; x=1685277833; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=K4f9KoJUhBGIPZV78wCDXrE4mn+zGvUZC46fWueOhDE=; b=POWBLG+iT2sGXAqElO4tUi4Xo37Fi6pwcEP+laX+8ywWNqwjd4ngw8Qg4limdvPRP9 WzIV+sPJHNc2b9Z6VUZc9/GU0ojreiakZJOsOXAJ2RdDqgB4NmiJn4fGj4cvzv5F126J Xfl7s2rLeWSHIC6FchzU4YZAcEkHBo4oNBQc0PrvrKG8pajRQM7cCNkGytCCU+C7L9RN i01XKzKt8gYwRfJIqGFF3QuY513hjLrmabGzeGCSGSHXpaTECg7/PoxwbSd2Ig8GB2z9 DBq+uRSuAPM4u/OGEwDmA5fInX7ghUAifw9dyjCqbxZL09wEu99xkYCX98N+fbp3/G8Q yt5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682685833; x=1685277833; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K4f9KoJUhBGIPZV78wCDXrE4mn+zGvUZC46fWueOhDE=; b=fEXTa8wHo1XwsVzqcPX56C0f+MARy7e3DJCXmC2WbaJQRu+z2Tj34lfVj/ktwiHrOZ OwIZcLZ8R1B8XWpXeWDXilAHhXN6M3O9SD/mQpjLIC6X6usge4B9JNm3+uBamaZZ0/en AjLAVZFI6zzrVRS256VrgH3dHJaovGWJEaQX1Ue2hqpweceaHWA5y6SgX9WO4uoPLGvV z6DwD5xQ+7icoisxzE+2gItJUEDPR42RugNTTRJKP8OJRZFMG3Dz1sQC+XruiWanyHlQ Hp8sZ7/eHl3Sy4wtTUZVyVx1Xaj34eZosFo0D6SinDZFQXf24YDXaene1LbdVlTeBomd Bw7Q== X-Gm-Message-State: AC+VfDzgZ0RbQshgufdbPx5tj7tzKfbMkQym7Xlnt7E+NJCmZGd+hmR+ g+ol06ol4bVukpywkiVZSDFb2yvVfWg3xmWojZwdOtEGx+Ae8KUcSgA= X-Google-Smtp-Source: ACHHUZ6ESUWQfh1Bm2Pu2eKhsrB4bWtOcPQ8udgNCeWlTVeTJ2K0yTT5loWCrfUiPglt3eonoU2OzrorSvP6ayv1ZPU= X-Received: by 2002:a17:906:c153:b0:957:800:912f with SMTP id dp19-20020a170906c15300b009570800912fmr4969194ejc.71.1682685833357; Fri, 28 Apr 2023 05:43:53 -0700 (PDT) In-Reply-To: <87o7n8jwzw.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x62e.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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:143437 Archived-At: On Fri, Apr 28, 2023 at 3:18=E2=80=AFPM Tassilo Horn wrote: > > 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. But I wonder how to do the following things when using pdf-tools: 1. How to skip to a specific page by page number quickly? 2. How to show PDF in a separate window? > Bye, > Tassilo Regards, Zhao