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 11:03:50 -0400 Message-ID: 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="6221"; mail-complaints-to="usenet@ciao.gmane.io" To: 65411@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 20 17:05:22 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 1qXjzU-0001OD-RO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 17:05:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXjzC-0001xa-W3; Sun, 20 Aug 2023 11:05:03 -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 1qXjzB-0001sw-LC for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 11:05:01 -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 1qXjzB-0005Sp-BE for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 11:05:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXjzC-000187-Lm for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 11:05:02 -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 15:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65411 X-GNU-PR-Package: emacs X-Debbugs-Original-To: GNU Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.16925438484267 (code B ref -1); Sun, 20 Aug 2023 15:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Aug 2023 15:04:08 +0000 Original-Received: from localhost ([127.0.0.1]:54596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXjyJ-00016j-IJ for submit@debbugs.gnu.org; Sun, 20 Aug 2023 11:04:08 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:33540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXjyH-00016F-GS for submit@debbugs.gnu.org; Sun, 20 Aug 2023 11:04:06 -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 1qXjyA-0000iW-1v for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 11:03:58 -0400 Original-Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXjy7-0005OS-Dj for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 11:03:57 -0400 Original-Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-4108da3a9efso7841741cf.0 for ; Sun, 20 Aug 2023 08:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692543833; x=1693148633; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=sk5aWRlxfoRssBPiaK+qqO6SJZU3aFm5dz7pYIixgQg=; b=NyYMszkI7vKv8oH+/Gcyc3kuMwexlIzAjsEwTd977znhRIzc7JIQKR1pA1zIS4DqoS CUQZPvoPf6FhxVRvMiVJquHMT68NrvGYT2CgAep8k9uJ5fK0Kji7HzsK6pLAuqDOc11m TJTh6Cfcaue2eD9+2Nw0uWHOD5y+/Fe9MaOqlzFO3dLiyk5SHDShOAisxPaSpzctWUIR FyhGg8WJP3759ZdtnZ8lVXnTthecxnG+2fGZ//xxdMuTjp6dKKwdeJz8zrVgYFB2sSJq likYrw7Hr5sAzi7C0B0XvWcC4FUXpbv6QZ1w7dweSdv3jYSNDaGczAx96Aw7Yzym6OOt 9Dgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692543833; x=1693148633; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sk5aWRlxfoRssBPiaK+qqO6SJZU3aFm5dz7pYIixgQg=; b=bdZkupSYzgIzho/xjdfDoMUY8ZlJtWfjnYOVr2jxHfXFT82bh82uHeQcoxUlQk6RBr bBSkNHpnrxdV48Z8snXYPY07PLFsMS1trxMwtv1WbSaDwvn/YAMKHlOsJZVrMXZEFty9 cpZSJjMT3wf8G45OK9s4pDueTLTFAh5JgaB5tNDfVnNUDqHYSU70F9cfZFWgp7Xid77J c/7hp+KGnq7k7SY9lIGARDRGGA6AIk+Zziu626RZRMh5U68dEiOigEBw/MJXrjgqpSDJ wpOYJCqBQ8dN0+ncMNW5TEffmPzMJC34P0h7zE/APDY0di0MpQJPLR/KYozCZNiMeysM G7IQ== X-Gm-Message-State: AOJu0Yyf921g+UmndH7sOWfSrTFHeEQdr5MKs3ESbWIv49Hz+coJxHZ0 SGO3PXN7IAVBc9Vo3lnPaAUQ6CmSiYI= X-Google-Smtp-Source: AGHT+IErscGKBA46NhNUMWLeFV7G/ABTQxw+4/udDQwSNiWVc/QNOdQdIDXXQajfWpnsIucxUiJ5aw== X-Received: by 2002:a05:622a:10e:b0:410:b5e:6583 with SMTP id u14-20020a05622a010e00b004100b5e6583mr7043636qtw.17.1692543833042; Sun, 20 Aug 2023 08:03:53 -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 l14-20020ac84a8e000000b004035843ec96sm1773275qtq.89.2023.08.20.08.03.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2023 08:03:51 -0700 (PDT) X-Mailer: Apple Mail (2.3696.120.41.1.4) Received-SPF: pass client-ip=2607:f8b0:4864:20::832; envelope-from=hmelman@gmail.com; helo=mail-qt1-x832.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 autolearn=ham autolearn_force=no X-Spam_action: no action 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:268001 Archived-At: In Emacs 29.1 should I be able to do this: (setopt xref-after-jump-hook '(reposition-window = xref-pulse-momentarily)) When I do in my init and then use xref-find-definition I get this = warning: =E2=9B=94 Warning (emacs): Value `((reposition-window = xref-pulse-momentarily))' for `xref-after-jump-hook' does not match type = hook (FYI, I'm doing this in the macport and haven't tried it yet in GNU Emacs) I thought I could because I copied the format from xref.el: (defcustom xref-after-jump-hook '(recenter xref-pulse-momentarily) and if instead I do this: (add-hook 'xref-after-jump-hook 'reposition-window) (add-hook 'xref-after-jump-hook 'xref-pulse-momentarily 'after) and check the value of xref-after-jump-hook it is: (reposition-window xref-pulse-momentarily) which is what I want but confuses me why recenter from the default value isn't there. I don't see xref-after-jump-hook used anywhere else in my init or installed packages. Howard In GNU Emacs 29.1 (build 1, x86_64-apple-darwin21.6.0, Carbon Version 165 AppKit 2113.6) of 2023-08-08 built on Mac-1691500888998.local Repository revision: e173249a143cee72d59ae78c4e11038512f5a00f Repository branch: 29.1-mac-10.0 Windowing system distributor 'Apple Inc.', version 12.6.8 System Description: macOS 12.6.8 Configured using: 'configure --with-mac = --enable-locallisppath=3D/usr/local/share/emacs/site-lisp:/opt/homebrew/sh= are/emacs/site-lisp = --enable-mac-app=3D/Users/runner/work/homebrew-emacsmacport/homebrew-emacs= macport/build-scripts/build_out/tmproot = --prefix=3D/Users/runner/work/homebrew-emacsmacport/homebrew-emacsmacport/= build-scripts/build_out/tmproot --enable-mac-self-contained --with-modules --with-xwidgets --with-tree-sitter --without-lcms2 --without-webp' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE PDUMPER SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER XWIDGETS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: GFM Minor modes in effect: flyspell-mode: t writegood-mode: t recentf-mode: t outline-minor-mode: t wrap-region-mode: t diff-hl-flydiff-mode: t server-mode: t marginalia-mode: t corfu-indexed-mode: t corfu-history-mode: t global-corfu-mode: t corfu-mode: t vertico-multiform-mode: t savehist-mode: t vertico-mode: t which-key-mode: t global-hl-todo-mode: t hl-todo-mode: t beacon-mode: t global-page-break-lines-mode: t gcmh-mode: t repeat-mode: t global-hl-line-mode: t which-function-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mac-mouse-wheel-mode: t tool-bar-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t context-menu-mode: t global-font-lock-mode: t font-lock-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t visual-line-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t Load-path shadows: /Users/hmelman/.emacs.d/elpa/transient-20230812.2142/transient hides = /Applications/Emacs.app/Contents/Resources/lisp/transient /Users/hmelman/.emacs.d/elpa/eglot-20221020.1010/eglot hides = /Applications/Emacs.app/Contents/Resources/lisp/progmodes/eglot Features: (shadow sort mail-extr hippie-exp emacsbug message yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils autorevert filenotify notes3 embark-consult embark ffap info-colors helpful cc-langs cc-vars cc-defs trace edebug debug backtrace info-look f f-shortdoc elisp-refs s rect dabbrev dired dired-loaddefs mwim mule-util orderless flyspell ispell writegood-mode face-remap markdown-mode edit-indirect easy-kill pulse color reposition help-fns radix-tree find-func consult-xref consult bookmark thingatpt xref warnings project char-fold misearch multi-isearch vc-git recentf tree-widget rg files-x rg-info-hack rg-menu rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer ibuffer-loaddefs grep compile text-property-search comint ansi-osc ansi-color time-date vertico-directory exec-path-from-shell add-log jka-compr disp-table bug-reference lisp-mnt noutline outline wrap-region dash diff-hl-flydiff diff diff-hl log-view pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode easy-mmode server marginalia corfu-indexed corfu-history corfu vertico-multiform savehist vertico package-commits ace-link avy ring which-key hl-todo dim beacon page-break-lines gcmh cus-edit pp cus-load icons wid-edit repeat hl-line which-func imenu hrm-tabs saveplace cape-autoloads corfu-autoloads diff-hl-autoloads consult-autoloads embark-autoloads exec-path-from-shell-autoloads flycheck-autoloads gptel-autoloads helpful-autoloads json-mode-autoloads rx literate-calc-mode-autoloads magit-todos-autoloads magit-autoloads pcase magit-section-autoloads hl-todo-autoloads marginalia-autoloads mastodon-autoloads org-modern-autoloads package-lint-autoloads page-break-lines-autoloads transient cl-extra help-mode format-spec edmacro kmacro compat compat-29 reformatter-autoloads rust-mode-autoloads markdown-mode-autoloads transient-autoloads advice info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/mac-win mac-win term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal kqueue mac multi-tty make-network-process emacs) Memory information: ((conses 16 277984 207394) (symbols 48 23953 7) (strings 32 108960 65911) (string-bytes 1 3474112) (vectors 16 50528) (vector-slots 8 1308035 602096) (floats 8 533 1057) (intervals 56 1493 1393) (buffers 984 18)) --=20 Howard