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 07:54:19 +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="36378"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tassilo Horn , stefan-husmann@t-online.de, help-gnu-emacs@gnu.org To: Ruijie Yu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 28 01:55:04 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 1psBS4-0009H7-0X for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Apr 2023 01:55:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psBRb-0000yz-5X; Thu, 27 Apr 2023 19:54:35 -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 1psBRa-0000ym-5c for help-gnu-emacs@gnu.org; Thu, 27 Apr 2023 19:54:34 -0400 Original-Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psBRY-0004j6-LD; Thu, 27 Apr 2023 19:54:33 -0400 Original-Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-94ed7e49541so1443596266b.1; Thu, 27 Apr 2023 16:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682639671; x=1685231671; 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=1hU94UTZ4Vn5zonPfHqw2ei2n/JpqBpJQCKpapBG5Lc=; b=HUUXn7cljnyRzFkqjqUu/9Naj11L5tV8tpf+NLGLIQJGqy1CY/t2K16Lq14ARAOOOB WKjNvhXnhNZxKsbc+K0eMqO68kRHZzP6/LXVUkZFMcCfQItgRs29SBe7ZMq17yE6sC56 j94HuxYdvQcZ0upMMnfh0nHZp0G5vUUD+bE75a0vsHqBctBKFM42uj/1qng3F/z9KhXH 1BHuPNQpRJzy8Ogl/JVIGfY1kHnzJNH4c02MYidGV+3iliaM//jvzKW97tr6JfLnIDqc sV74QSC8L6IiOTOLDZFvzCOvD4ukhVhOhQeHDfpqBt0PWrZqUjpfpoBmQ8AHobq/obky 7T1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682639671; x=1685231671; 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=1hU94UTZ4Vn5zonPfHqw2ei2n/JpqBpJQCKpapBG5Lc=; b=hMRLHlSaulqwBgWOozmqnQxMMbjRW7xhzw3avGjll/dvbXCZpXTSYbm4uTb9kvTbYa zA6UgXclwSk0dhxZGvDEGNdKhXk/JI7uUoF+AUBfNCL4nIj+9NZgexg08wDdz7GiEME+ Q6B+y3u1kp3RdRFq4G6hzU8B79jNJsOr8Up7U9UV8poP/E1C/pq1vGSdU9LT6IT1N5cy 2zZDlauW+yW3ccaOtr+aHTViaSg2vtWUaLJDaAZy/TQ0ThLaIeehkCTO7CAbBiU7msnu YQk6dpMz0+tjlbSPqKVrHbKYL+Qp17gSHKclRORUDeE7+tVuONPQ+S+Yk2MA5FtfkXrQ VBkA== X-Gm-Message-State: AC+VfDxqKD4aJ97nAOAJrUPtKFNb+1jU7I71uG0/Gn86k6BySsxjosZQ M2xTHdjDTrYCd7dBjR4xp8FlE+n8O5c37TciAfk= X-Google-Smtp-Source: ACHHUZ7mt90uMiEbWj/qjWqkGf3UXk6W0UTT2a2GAH4djVZxynbXT8mvigNdZXoHOao8cPdyPBME2hNsdT4HJEmBTMQ= X-Received: by 2002:a17:906:c152:b0:94a:5a9e:9da0 with SMTP id dp18-20020a170906c15200b0094a5a9e9da0mr4104975ejc.77.1682639670732; Thu, 27 Apr 2023 16:54:30 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x630.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:143429 Archived-At: On Thu, Apr 27, 2023 at 11:57=E2=80=AFPM Ruijie Yu wrote= : > > > Hongyi Zhao writes: > > > On Thu, Apr 27, 2023 at 11:03=E2=80=AFPM Tassilo Horn wr= ote: > > > 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 > > Try adding `:demand t' in the `use-package' form. It ensures that the > package is loaded right away (installing it if necessary), instead of > defering it later. Here, `:ensure t` should be used, as explained below: The line `:demand t` is an option that can be passed to the "use-package" macro to ensure that the package is loaded immediately, rather than being loaded lazily. This is useful when you want to make sure a package is loaded before using any of its features. The line `:ensure t` is another option that tells "use-package" to install the package if it is not already installed. This is useful when you want to automatically download and install packages from a package repository like MELPA or ELPA. > If that doesn't work, also try to move the install part from `:config' > to `:init'. I used to have something about pdf-tools in my config, but > that has long gone. This change is also necessary. Thank you for pointing this out. > -- > Best, > > > RY Zhao > [Please note that this mail might go to spam due to some > misconfiguration in my mail server -- still investigating.]