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: Thu, 27 Apr 2023 23:27:24 +0800 Message-ID: References: <87r0s5efab.fsf@frege.mail-host-address-is-not-set> <87edo5bc61.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="15989"; 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 Thu Apr 27 17:28:26 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 1ps3Xl-0003vW-DT for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Apr 2023 17:28:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ps3XA-00037z-V4; Thu, 27 Apr 2023 11:27:49 -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 1ps3X4-00036p-8d for help-gnu-emacs@gnu.org; Thu, 27 Apr 2023 11:27:42 -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 1ps3X2-00012J-4o; Thu, 27 Apr 2023 11:27:41 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9505214c47fso1625272966b.1; Thu, 27 Apr 2023 08:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682609256; x=1685201256; 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=jAw6QjY/ygF3zY/kLin4bTBae/TiPNkmG/EPzGOoow8=; b=pVWNzjwNrHr/Idwzb450tUw4ckyM5R8xAmoAKfSQ8H5HJClbOPNeGMWtWghVfBrU0S hSd7uqFZez2vhiWGV/4raD95KgTcuBVJ2ltaO7rR/BNxeh2uShEmnfroZ7eJga7Oft3T 5EZSH9Q4PMVdkifaKD9P/Qs1U258KNbRh3ZwhQauF7DuXuqC2d7NzMGE5ZqyBCvW27A6 0FYyuPjFxYMJnYR1T6xV3NWyJtqXblVTQd4TigeYTwrVx6UmeA+aUFwEqBi9PainQiYV TdrXoAsZYMijIFPJ9DszsgzY5uLiXYUczo0U9t1gSylHFigIVzUDW8BUxvzqmBsMBH+M mfJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682609256; x=1685201256; 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=jAw6QjY/ygF3zY/kLin4bTBae/TiPNkmG/EPzGOoow8=; b=euCWua2VN1VJivBBqJ02n9MCmhLtcItYkGsu3DSgqaS4puhHuJJ9B6mkwPZOP7YQmu b1ljS2vqcCQLa7TXyytMQxvhskZHDrU5Z45FQ/BHITCAaZzsE+hw7tlYGvrRyYfopWXQ CDfpG8MUjLj80ZOSwKMLGQzSDFwam8OHdAriMzKOH7Sd6NSv8/JdMqWUfFLo4B/gbOEO 4c14id9062i6Qq9F2LwWY2mZk+uiA81W+yOj1ggEM2aMsGJoozap8/Pi0mNjN/fX2vvZ KaUa4kiqZKF7vwd9u+Lhzxzy0oSFWz8JtZJ4IIMxif4UIEPqmFiKUnmj0Z1XKSij3IjO gPgg== X-Gm-Message-State: AC+VfDxVSQ+mVKyl+xSUaRH4cnJoohLGGK9d5vwKQwyMg4CI24RB0G/H zIaOjFDhimY4ApthTUONyL6EpaJeBDqy5zcLPp/cKlJ+USba8kB8opg= X-Google-Smtp-Source: ACHHUZ44TOCscLQoF4uPgXIQJ1MzbxYLf4bYz7mrNg5zzynJWe/AFxRY7Ld1JZc2k8xqS7jk3nnd4ShtdisAn2BIr60= X-Received: by 2002:a17:907:6e16:b0:946:f79b:e785 with SMTP id sd22-20020a1709076e1600b00946f79be785mr2348859ejc.2.1682609256416; Thu, 27 Apr 2023 08:27:36 -0700 (PDT) In-Reply-To: <87edo5bc61.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:143423 Archived-At: On Thu, Apr 27, 2023 at 11:03=E2=80=AFPM Tassilo Horn wrote: > > stefan-husmann@t-online.de writes: > > >> In fact, I already have the following configuration in my init.el > >> file, but it doesn't seem to automatically compile and install > >> pdf-tools: > >> > >> (use-package pdf-tools > >> ;;https://github.com/jwiegley/use-package#magic-handlers > >> :magic ("%PDF" . pdf-view-mode) > >> :config > >> (pdf-tools-install :no-query) > >> ;; C-h o pdf-loader-install RET > >> ;; This function acts as a replacement for =E2=80=98pdf-tools-instal= l=E2=80=99 and > >> ;; makes Emacs load and use PDF Tools as soon as a PDF file is > >> ;; opened, but not sooner. > >> ;;(pdf-loader-install) > >> ) > >> > > > > Indeed this does notinstall anything. use-package is about loading, > > not installing. Use package.el or straight.el (or any other package > > manager) for installing. > > Well, you can add a :ensure t clause to the use-package recipe and it > will tell package.el to install the package. It seems that this is not true. In my testing, I've already set the following option for straight, which ensures that every package specified with `straight-use-package` is automatically installed (ensured) during Emacs startup: (setq straight-use-package-by-default t) ; straight's equivalent of `use-package-always-ensure'. But the problem discussed here still exists. > Bye, > Tassilo Best, Zhao