From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.bugs Subject: bug#65411: 29.1; setopt of xref-after-jump-hook gives warning Date: Sun, 20 Aug 2023 12:12:13 -0400 Message-ID: <5B343C6B-DE9E-4BC2-8963-AFE9353E062D@gmail.com> References: <83h6otwwsp.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) 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="7431"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65411@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 20 18:13:24 2023 Return-path: Envelope-to: geb-bug-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 1qXl3M-0001mP-2f for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 18:13:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXl30-0006xO-9S; Sun, 20 Aug 2023 12:13:02 -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 1qXl2y-0006x2-Bo for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 12:13:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXl2y-0003gz-3O for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 12:13:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXl2z-00030b-Hm for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 12:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Howard Melman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Aug 2023 16:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65411 X-GNU-PR-Package: emacs Original-Received: via spool by 65411-submit@debbugs.gnu.org id=B65411.169254794511521 (code B ref 65411); Sun, 20 Aug 2023 16:13:01 +0000 Original-Received: (at 65411) by debbugs.gnu.org; 20 Aug 2023 16:12:25 +0000 Original-Received: from localhost ([127.0.0.1]:54667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXl2O-0002zk-PG for submit@debbugs.gnu.org; Sun, 20 Aug 2023 12:12:25 -0400 Original-Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:59822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXl2M-0002zW-Rc for 65411@debbugs.gnu.org; Sun, 20 Aug 2023 12:12:23 -0400 Original-Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-76ce59842c1so144962285a.3 for <65411@debbugs.gnu.org>; Sun, 20 Aug 2023 09:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692547935; x=1693152735; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2hqH1OtXCTHPB/Z9k7rjsVs4qXs3SsHbrgzlORlFv94=; b=jXJk/xgItCzL3XkQXlZ9aHFmeHU3u5BqSUxfRx6wNiEsNR3Wh5BFbIl11CROf99WGD 8YSVTYXYXxKB/9BJ7ejyqDNcdgX2geuNsdq1g2Gr306itjl2UgQH3lPDcwvDuC+kCgOG TmBP4ryxyB40Fl8lnapjleM2DgwVUFr53lwOLj+i/1PfTKOyN73blh/FJetPNxRyxZSU ziKdjNf1+6rtdXuM8YFarx5il6tsWXbM+/KrkiMS5HyYQSOhCPFLj8i/eOx7T3iYi9e4 O+87KqdeNeXehgBb+yM2e1QOZ1rCkvfjFGenF5hz7QuyoBLnPn1PnlT8aMfCdFKb5mXc lepA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692547935; x=1693152735; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2hqH1OtXCTHPB/Z9k7rjsVs4qXs3SsHbrgzlORlFv94=; b=UEAyZt4n4tOueKim7inMABXqGeHGr1iwxB4Yr5bVBmsCD3Ow3mbWoIOo8OkAx1iM1Q AWizB2C4JWyjy8T5jIUWtQSA7aREEFpYRB6+bbYmBZAv5EVTgJGXo0Yi0yKDEQo2nAk2 TRrLzSJM7Ehl2UZZ+lxvPz7/PhIl/2XI0UhK/IGnuU+O8zEdPKStrL6pIp+n3EWwbi3H DdxP/HOGuTeH2kSx3qScz+6d8jG2BXpUAFxZU9LgenlN9vkxvnmNqQoLyAA9wNbRYXh0 ktrxrLB777p1u6pVUesRzWJUnOmE9Ibik/KupTlyxAEvyR0Rsxvs3WFYfOvnsLIz9NlP mmTw== X-Gm-Message-State: AOJu0YwvKjTsYIaDuQVMjLh4D8Ep8CfGJTcH32CZq1v9vpTBiQOjYvd0 rO2bW20F3eU1MA9shMsBjTM= X-Google-Smtp-Source: AGHT+IFNhy7AL81AxT6HQKIPYGw83pyHevcrtGaueRs0aPubfp1Ci+PGGlDuG82EWfOi6d3ufKvYWg== X-Received: by 2002:a05:620a:d59:b0:76c:8611:8cb1 with SMTP id o25-20020a05620a0d5900b0076c86118cb1mr3856333qkl.76.1692547935338; Sun, 20 Aug 2023 09:12:15 -0700 (PDT) Original-Received: from smtpclient.apple (pool-108-26-231-137.bstnma.fios.verizon.net. [108.26.231.137]) by smtp.gmail.com with ESMTPSA id b18-20020a05620a119200b0076ca9269de7sm1887039qkk.124.2023.08.20.09.12.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2023 09:12:14 -0700 (PDT) In-Reply-To: <83h6otwwsp.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.120.41.1.4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268006 Archived-At: On Aug 20, 2023, at 11:36 AM, Eli Zaretskii wrote: >=20 >> From: Howard Melman >> Date: Sun, 20 Aug 2023 11:03:50 -0400 >>=20 >>=20 >> In Emacs 29.1 should I be able to do this: >>=20 >> (setopt xref-after-jump-hook '(reposition-window = xref-pulse-momentarily)) >>=20 >> When I do in my init and then use xref-find-definition I get this = warning: >>=20 >> =E2=9B=94 Warning (emacs): Value `((reposition-window = xref-pulse-momentarily))' for `xref-after-jump-hook' does not match type = hook >=20 > xref-pulse-momentarily is not an autoloaded function, and xref.el is > not preloaded. You need to load xref.el, and then the above will > work; it does for me. Thanks very much. Indeed, doing this works fine for me: (with-eval-after-load 'xref (setopt xref-after-jump-hook '(reposition-window = xref-pulse-momentarily))) Also I found doing (just) this works fine: (setq xref-after-jump-hook '(reposition-window xref-pulse-momentarily)) So why does it fail using setopt? AFAIU the xref-pulse-momentarily in = the value is just a symbol and I don't see the warning until I call = xref-find-definition which loads xref. And it works using setq without loading xref. The warning shows double parentheses which I also don't understand how=20= that happened (I see it does some widget conversion). If there's some = extra restriction on using setopt to set hooks (which are user options), could = it be=20 explained in the manual or docstring? Howard