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: How to have a frame dedicated to buffers of a certain kind? (was: use pdf-tools in Emacs.) Date: Wed, 3 May 2023 11:38:39 +0800 Message-ID: References: <87o7n8jwzw.fsf@gnu.org> <87jzxwjghd.fsf@gnu.org> <87fs8kjedb.fsf@gnu.org> <87ildfdqwu.fsf@gnu.org> <87fs8jauv0.fsf@gnu.org> <87y1mafo4i.fsf@gnu.org> <87354h9osf.fsf@gnu.org> <878re8h87w.fsf@gnu.org> <875y9ak17o.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="4114"; 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 Wed May 03 05:39:36 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 1pu3L5-0000rW-LH for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 May 2023 05:39:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pu3KS-0000OZ-9p; Tue, 02 May 2023 23:38:56 -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 1pu3KQ-0000OR-NM for help-gnu-emacs@gnu.org; Tue, 02 May 2023 23:38:54 -0400 Original-Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pu3KP-0001FS-0g; Tue, 02 May 2023 23:38:54 -0400 Original-Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-956ff2399c9so918571866b.3; Tue, 02 May 2023 20:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683085131; x=1685677131; 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=P5a8II+MzC4vSbtwDYqeSVXMjKuHCsrBOgBcrdKw2ww=; b=kgR9JlYIG1mrJA9XlVWGO+z/8nVXJrRmJbdAB78B7jh7YDy/nQ6pBbPNoNv8keEQR9 Q/JLCeqin5TeWzL5+LPosbxyAWJmcz8dkYceFAMZmuiGHcFpofb1+KemK6dVC57EErei O0xGyljJWW803jZFqV4CTCMpAWfc8Z58zDVMKSb3U/uJgKO0+gdmB2k42sdx/sfIWlaX qllqRa38sgL7bTies8PIHb1Psq8yVfGTxG6jXt8AIMUnTlmSd8n5102oQ9+524fGimFW hNVxK6KS814RA1rfcOHA42XUwp1TOpuV98CxqxMQq4NyWCOERk42Ka5h4W89+yWanZhK eJjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683085131; x=1685677131; 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=P5a8II+MzC4vSbtwDYqeSVXMjKuHCsrBOgBcrdKw2ww=; b=TLNOCJgH29FFC898QNxAEdnE/dK+vtOa7j3bcW/hP8Ny/rNEoLLDtvAmPGkQYr8Glk k/gPhIFHN93ITeO5NjuvfvO7RR5qddVxfsDVvwnoZ8oFS6nCIuWAKy6Z2XjS4qg9fao1 efo/0fGGH0hhH/vtYAR4WlzBHsh+vhJ6K/KSpwJrAv5cb+n6E1w7sDauDGLj1/ewczfZ +wMwi/Ore2ABy4abhocLd9E8AdfsA7cHKSlSLVqVb/s4mXoVuS7xjwGHHPDHsCt1debE eZLRL9Z2mQWBy+I0LrCL0f1rp+KDYdjpW+Rnc42NZX3hl60ah07Qqq+8ydjkTahFgxWG mXAQ== X-Gm-Message-State: AC+VfDzYMCYxF0yWv7XH6lehR/SoD3bvLvpDKuMCozZilvIOCy/k36Mw TbLptIm/Jdh55H3LNO41shk8Vyt3EVL+PeN45zk= X-Google-Smtp-Source: ACHHUZ5NCEeVv0a+JjDFAoY6vzaKoFQ54Fa1uUchtw1voYCJAbmfioJRIhMw+Az7cReE//yKXobCtlqUWdjLdTqKOjs= X-Received: by 2002:a17:907:2d93:b0:94a:785e:6a46 with SMTP id gt19-20020a1709072d9300b0094a785e6a46mr1996407ejc.24.1683085131110; Tue, 02 May 2023 20:38:51 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x634.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:143501 Archived-At: On Wed, May 3, 2023 at 11:24=E2=80=AFAM Hongyi Zhao = wrote: > > On Wed, May 3, 2023 at 10:40=E2=80=AFAM Ruijie Yu wrot= e: > > > > > > Hongyi Zhao writes: > > > > > ;; Split windows horizontally and display the PDF and TeX source side= -by-side > > > (setq split-width-threshold 1000) > > > (add-hook 'TeX-after-compilation-finished-functions > > > #'(lambda () (pdf-tools-deactivate-strip))) > > > > No need for the #'(lambda () ...) wrapping. In general, you don't need > > to #' any lambdas. In this specific case, just saying > > #'pdf-tools-deactivate-strip as the second argument to `add-hook' is > > sufficient. > > I tried, but all the above methods don't work, as shown in the attached f= ile. And I also noticed the following errors: error in process sentinel: run-hook-with-args: Symbol=E2=80=99s function definition is void: pdf-tools-deactivate-strip error in process sentinel: Symbol=E2=80=99s function definition is void: pdf-tools-deactivate-strip > > -- > > Best, > > > > > > RY > > Zhao