From unknown Sun Jun 22 07:56:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65831: 29.1; Mouse click on xref buffer doesn't go to reference Resent-From: "Evan Moses" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Sep 2023 19:46:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65831 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 65831@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169420232413334 (code B ref -1); Fri, 08 Sep 2023 19:46:03 +0000 Received: (at submit) by debbugs.gnu.org; 8 Sep 2023 19:45:24 +0000 Received: from localhost ([127.0.0.1]:45682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qehPu-0003St-B2 for submit@debbugs.gnu.org; Fri, 08 Sep 2023 15:45:24 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qehLS-0003Lb-Ij for submit@debbugs.gnu.org; Fri, 08 Sep 2023 15:40:48 -0400 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 1qehLD-00058K-Vt for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 15:40:33 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qehL7-0003nH-Nf for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 15:40:30 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 23E8D32009B1 for ; Fri, 8 Sep 2023 15:40:20 -0400 (EDT) Received: from imap41 ([10.202.2.91]) by compute2.internal (MEProxy); Fri, 08 Sep 2023 15:40:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emoses.org; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1694202019; x=1694288419; bh=Kj9fx2RGfZ8B5GHuJYp7ihQgq lITxMQAjJ7rJHm90D8=; b=N4jexP39/SqP4WsJaxmgzk17fBgUT/7B9qlv4e7Ur 4Uce5gTV87ikMDukLz/y2SjI/TduhxmTqgX5jyjp4BlUuzKS6nDag5CZLjxxS0vx 9lUAuXGA1wjF0CatFz1h4OrxbP3YRizVYXNY25dbda9aavfRTtxGPmHuN9519ulx sbCSCXscOg5lcAlUYRrrqAB2ACTTurlbG952pDwutJleBoBbqcA6OCHeL1Gv2ANt Fc2WB3bWDT8270Iv2sV0kkr3ebhMZdAOTA4JYB+ykPJwufqasYfL6WC8OWbaeDTR XYZVtXFXuSN23y1iHUpM16FTPDdpaF5agJbxve1AXpX0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1694202019; x=1694288419; bh=Kj9fx2RGfZ8B5GHuJYp7ihQgqlITxMQAjJ7 rJHm90D8=; b=LLasO56qBtNY2DppG3HupDLyvxzyfUoikqKcJTRtCsO9TPfmr2j 8fospE5EQf0iJJ3TKWnW+XbkwcqymgPGtGGxs6FVn46WR/eYX5XJRnHz4KF/Rpn/ kyJQqzK6DhwPUdXoyTzZa0DOLylLTPQWsscv4vgYfx9eu5vGwa+gHA2VJB+7opbL tB2EbLxH3IngUmGriop3dPUn2beBosUmFqV0tKd3FHmOkHRoBmrQ/my+5G/W9W4g bZVAFOkCkEU4DGYG8h0gy4OKCRLokZpvyyag7ctc4Rgrxaw17uNo9fXWPd4b09IA JTmxhG7xE21kPSSw1OtEdgKsBhE6y5B8f1w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehjedgudefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtre erreertdenucfhrhhomhepfdfgvhgrnhcuofhoshgvshdfuceovghvrghnsegvmhhoshgv shdrohhrgheqnecuggftrfgrthhtvghrnhepvdefveduffeljeetveeikeelfedttefhhf ethfeggeeikeelhfeltdehlefhfedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepvghvrghnsegvmhhoshgvshdrohhrgh X-ME-Proxy: Feedback-ID: ided9470c:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 57A64234007E; Fri, 8 Sep 2023 15:40:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-711-g440737448e-fm-20230828.001-g44073744 Mime-Version: 1.0 Message-Id: <5f61138f-8da6-4f02-8499-1968a49ec1ed@app.fastmail.com> Date: Fri, 08 Sep 2023 12:21:29 -0700 From: "Evan Moses" Content-Type: multipart/alternative; boundary=0b9c0595eb474c6b928d45637cfa1930 Received-SPF: pass client-ip=64.147.123.21; envelope-from=evan@emoses.org; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Mailman-Approved-At: Fri, 08 Sep 2023 15:45:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --0b9c0595eb474c6b928d45637cfa1930 Content-Type: text/plain When I have an xref buffer, if I click mouse-1 on a reference when the window containing the xref buffer is inactive, I get a "Choose a reference to visit" error and the point doesn't move. If I switch to the *xref* window first, it works as expected. This appears to be because [mouse-1] and [mouse-2] are bound to xref-goto-ref, which calls (xref--item-at-point) to find the current item; however, at least in my (fairly complex) environment, the point isn't first moved to where the mouse was clicked and xref can't find any item at the point where it was previously. There's another function xref-select-and-show-ref that explicitly sets the point from the mouse event before attempting to follow the xref, and it works fine. I'm not that familiar with mouse event handling in emacs but I hacked up this function (largely copied from xref-goto-xref) which seems to work as expected when I bind it to [mouse-1] in xref--button-map: (defun my:xref-goto-xref-mouse (event &optional quit) (interactive "eP") (let ((xref-buffer) (xref (save-excursion (set-mouse-point event) (setq xref-buffer (current-buffer)) (xref-current-item (xref--item-at-point))))) (if (not xref) (user-error "Choose a reference to visit") (progn (xref--set-arrow) (xref--show-location (xref-item-location xref) (if quit 'quit t)) (next-error-found-buffer xref-buffer))))) (bind-key [mouse-1] #'my:xref-goto-xref-mouse xref--button-map) In GNU Emacs 29.1 (build 2, x86_64-apple-darwin22.6.0, NS appkit-2299.70 Version 13.5 (Build 22G74)) of 2023-08-14 built on C02DR5M6MD6T Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.5.1 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@29/29.1/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus@29/29.1 --with-xml2 --with-gnutls --with-native-compilation --without-compress-install --without-dbus --without-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained 'CFLAGS=-Os -w -pipe -march=nehalem -mmacosx-version-min=13 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' 'CPPFLAGS=-I/usr/local/opt/zlib/include -I/usr/local/opt/jpeg/include -I/usr/local/opt/icu4c/include -F/usr/local/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk' 'LDFLAGS=-L/usr/local/opt/zlib/lib -L/usr/local/opt/jpeg/lib -L/usr/local/opt/icu4c/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -L/usr/local/opt/libgccjit/lib'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: recentf-mode: t dap-tooltip-mode: t dap-ui-many-windows-mode: t dap-ui-controls-mode: t dap-ui-mode: t ivy-mode: t flycheck-color-mode-line-mode: t global-edit-server-edit-mode: t yas-global-mode: t yas-minor-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t pixel-scroll-precision-mode: t savehist-mode: t global-flycheck-mode: t flycheck-mode: t dap-auto-configure-mode: t dap-mode: t lsp-treemacs-sync-mode: t rainbow-delimiters-mode: t projectile-mode: t global-atomic-chrome-edit-mode: t treemacs-filewatch-mode: t treemacs-follow-mode: t treemacs-git-mode: t treemacs-fringe-indicator-mode: t windmove-mode: t global-company-mode: t company-mode: t global-git-commit-mode: t magit-auto-revert-mode: t auto-revert-mode: t shell-dirtrack-mode: t server-mode: t TeX-PDF-mode: t global-treesit-auto-mode: t global-evil-surround-mode: t evil-surround-mode: t evil-cleverparens-mode: t paredit-mode: t global-evil-collection-unimpaired-mode: t evil-collection-unimpaired-mode: t evil-leader-mode: t evil-mode: t evil-local-mode: t global-undo-tree-mode: t undo-tree-mode: t override-global-mode: t editorconfig-mode: t straight-use-package-mode: t straight-package-neutering-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /Users/evan.moses@okta.com/.emacs.d/straight/build/help-fns+/help-fns+ hides ~/.emacs.d/elisp/help-fns+ /Users/evan.moses@okta.com/.emacs.d/straight/build/protobuf-mode/protobuf-mode hides /usr/local/share/emacs/site-lisp/protobuf/protobuf-mode /Users/evan.moses@okta.com/.emacs.d/straight/build/transient/transient hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/transient /Users/evan.moses@okta.com/.emacs.d/straight/build/use-package/use-package-jump hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-package-jump /Users/evan.moses@okta.com/.emacs.d/straight/build/use-package/use-package-diminish hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-package-diminish /Users/evan.moses@okta.com/.emacs.d/straight/build/use-package/use-package hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-package /Users/evan.moses@okta.com/.emacs.d/straight/build/use-package/use-package-delight hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-package-delight /Users/evan.moses@okta.com/.emacs.d/straight/build/use-package/use-package-lint hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-package-lint /Users/evan.moses@okta.com/.emacs.d/straight/build/bind-key/bind-key hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/bind-key /Users/evan.moses@okta.com/.emacs.d/straight/build/use-package/use-package-core hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-package-core /Users/evan.moses@okta.com/.emacs.d/straight/build/use-package/use-package-ensure hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-package-ensure /Users/evan.moses@okta.com/.emacs.d/straight/build/use-package/use-package-bind-key hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-package-bind-key /Users/evan.moses@okta.com/.emacs.d/straight/build/less-css-mode/less-css-mode hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/textmodes/less-css-mode /Users/evan.moses@okta.com/.emacs.d/straight/build/cperl-mode/cperl-mode hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/progmodes/cperl-mode /Users/evan.moses@okta.com/.emacs.d/straight/build/map/map hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/emacs-lisp/map /Users/evan.moses@okta.com/.emacs.d/straight/build/let-alist/let-alist hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/emacs-lisp/let-alist /Users/evan.moses@okta.com/.emacs.d/straight/build/eldoc/eldoc hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/emacs-lisp/eldoc Features: (shadow sort mail-extr emacsbug cl-print edebug debug backtrace shortdoc prettier-js add-node-modules-path typescript-ts-mode org-capture vc-hg vc-bzr vc-src vc-sccs vc-cvs vc-rcs log-view magit-extras emacsql-sqlite-builtin sqlite recentf treemacs-bookmarks treemacs-tags magit-bookmark bookmark counsel counsel-jq swiper tabify ace-window avy misearch multi-isearch lsp-diagnostics lsp-headerline lsp-icons lsp-modeline dap-mouse dap-ui gdb-mi bui bui-list bui-info bui-entry bui-core bui-history bui-button bui-utils lsp-lens vc-git lsp-ui lsp-ui-flycheck lsp-ui-doc evil-collection-lsp-ui-imenu lsp-ui-imenu lsp-ui-peek lsp-ui-sideline lsp-ui-util lsp-zig lsp-tilt lsp-steep lsp-svelte lsp-sqls lsp-ruby-syntax-tree lsp-ruby-lsp lsp-yaml lsp-xml lsp-vimscript lsp-vhdl lsp-volar lsp-vetur lsp-html lsp-verilog lsp-vala lsp-v lsp-typeprof lsp-ttcn3 lsp-toml lsp-terraform lsp-tex lsp-sorbet lsp-solargraph lsp-semgrep lsp-rust lsp-rf lsp-ruff-lsp lsp-remark lsp-racket lsp-r lsp-purescript lsp-python-ms lsp-pylsp lsp-pyls lsp-pwsh lsp-php lsp-pls lsp-perlnavigator lsp-perl lsp-openscad lsp-ocaml lsp-magik lsp-nix lsp-nim lsp-nginx lsp-mint lsp-marksman lsp-markdown lsp-lua lsp-kotlin lsp-json lsp-javascript lsp-idris lsp-haxe lsp-groovy lsp-hack lsp-graphql lsp-glsl lsp-gleam lsp-go lsp-completion lsp-gdscript lsp-fsharp lsp-fortran lsp-eslint lsp-erlang lsp-emmet lsp-elixir lsp-elm lsp-dockerfile lsp-dhall lsp-d lsp-css lsp-csharp lsp-crystal lsp-credo lsp-cmake lsp-clojure lsp-semantic-tokens lsp-clangd lsp-beancount lsp-bash lsp-astro lsp-awk lsp-ansible lsp-angular lsp-ada lsp-actionscript go-ts-mode ivy-hydra evil-collection-ivy ivy delsel ivy-faces ivy-overlay colir flycheck-color-mode-line face-remap company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb edit-server edit-server-autoloads treemacs-projectile treemacs-projectile-autoloads yasnippet-snippets yasnippet yasnippet-snippets-autoloads yasnippet-autoloads terminal-here-autoloads zoom-frm-autoloads frame-cmds-autoloads frame-fns-autoloads help-fns+ help-fns radix-tree help-fns+-autoloads ace-jump-mode cl ace-jump-mode-autoloads flycheck-color-mode-line-autoloads smart-mode-line-light-powerline-theme smart-mode-line rich-minority smart-mode-line-powerline-theme smart-mode-line-powerline-theme-autoloads smart-mode-line-autoloads rich-minority-autoloads powerline powerline-separators powerline-themes powerline-autoloads go-impl exec-path-from-shell exec-path-from-shell-autoloads find-file-in-repository find-file-in-repository-autoloads ripgrep ripgrep-autoloads evil-collection-ag ag vc-svn find-dired ag-autoloads ivy-hydra-autoloads hydra counsel-autoloads display-line-numbers pixel-scroll cua-base savehist ispell gotest go-impl-autoloads flycheck-golangci-lint evil-collection-flycheck flycheck flycheck-golangci-lint-autoloads gotest-autoloads go-dlv go-mode find-file gud go-dlv-autoloads go-mode-autoloads present-minor-mode pyvenv pyvenv-autoloads lsp-python-ms-autoloads python-pytest-autoloads lsp-ivy-autoloads lsp-ui-autoloads dap-java dap-mode dap-tasks dap-launch lsp-docker posframe dap-overlays lsp-java lsp-treemacs lsp-treemacs-generic lsp-treemacs-themes treemacs-treelib lsp-java-autoloads dap-mode-autoloads lsp-docker-autoloads lsp-treemacs-autoloads bui-autoloads ccls ccls-member-hierarchy ccls-inheritance-hierarchy ccls-call-hierarchy ccls-tree ccls-code-lens ccls-semantic-highlight ccls-common lsp-mode lsp-protocol tree-widget network-stream lv f f-shortdoc ewoc ccls-autoloads lsp-mode-autoloads eldoc-autoloads racket-mode-autoloads cider-autoloads sesman-autoloads parseedn-autoloads map-autoloads parseclj-autoloads clojure-mode-autoloads rainbow-delimiters rainbow-delimiters-autoloads evil-paredit evil-paredit-autoloads chatgpt-shell shell-maker view goto-addr ielm evil-collection-eshell em-prompt eshell esh-mode esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util chatgpt-shell-autoloads shell-maker-autoloads mocha-autoloads prettier-js-autoloads less-css-mode-autoloads counsel-jq-autoloads swiper-autoloads ivy-autoloads json-mode-autoloads json-snatcher-autoloads typescript-mode-autoloads web-mode-autoloads xref-js2 vc vc-dispatcher xref-js2-autoloads rjsx-mode-autoloads add-node-modules-path-autoloads jest jest-traversal projectile lisp-mnt grep ibuf-ext ibuffer ibuffer-loaddefs evil-collection-js2-mode js2-mode etags fileloop evil-collection-xref xref project jest-autoloads js2-mode-autoloads projectile-autoloads sqlformat-autoloads atomic-chrome websocket bindat atomic-chrome-autoloads websocket-autoloads nix-mode ffap nix-repl nix-shell nix-store nix-log nix-instantiate nix-shebang nix-format nix nix-mode-autoloads rego-mode-autoloads kubernetes-evil kubernetes kubernetes-overview kubernetes-services kubernetes-secrets kubernetes-persistentvolumeclaims kubernetes-namespaces kubernetes-jobs kubernetes-pod-line kubernetes-ingress kubernetes-errors kubernetes-nodes kubernetes-statefulsets kubernetes-deployments kubernetes-configmaps kubernetes-logs kubernetes-labels kubernetes-commands mode-local kubernetes-popups kubernetes-el-tramp tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat magit-popup kubernetes-pods kubernetes-loading-container kubernetes-contexts kubernetes-yaml kubernetes-utils evil-collection-term term disp-table ehelp kubernetes-modes kubernetes-kubectl kubernetes-state kubernetes-process request kubernetes-core kubernetes-vars kubernetes-ast kubernetes-autoloads request-autoloads magit-popup-autoloads elixir-mode elixir-format elixir-smie elixir-mode-autoloads terraform-mode-autoloads hcl-mode-autoloads vterm-autoloads powershell-autoloads treemacs-evil treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-interface treemacs-persistence treemacs-filewatch-mode treemacs-follow-mode treemacs-rendering treemacs-annotations treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator pulse treemacs-faces treemacs-icons treemacs-scope treemacs-themes treemacs-core-utils pfuture inline hl-line ht treemacs-logging treemacs-customization treemacs-macros s protobuf-mode-autoloads cram-test-mode-autoloads restclient-jq restclient-jq-autoloads jq-mode jq-mode-autoloads scad-mode-autoloads flycheck-yamllint-autoloads flycheck-autoloads pkg-info-autoloads epl-autoloads yaml-mode-autoloads dockerfile-mode-autoloads evil-collection-compile compile plantuml-mode-autoloads groovy-mode-autoloads graphql-mode-autoloads elm-mode-autoloads reformatter-autoloads f-autoloads win-switch windmove win-switch-autoloads arduino-mode-autoloads ede/auto lua-mode-autoloads eldoc-overlay eldoc-overlay-autoloads quick-peek-autoloads inline-docs-autoloads evil-collection-company company company-autoloads forge-list forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy gsexp ghub url-http url-gw nsm url-auth let-alist gnutls forge-notify forge-revnote forge-pullreq forge-issue forge-topic yaml parse-time iso8601 bug-reference forge-post forge-repo forge forge-core forge-db closql emacsql-sqlite-common emacsql emacsql-compiler eieio-base forge-autoloads yaml-autoloads ghub-autoloads treepy-autoloads let-alist-autoloads closql-autoloads emacsql-autoloads magit-delta xterm-color magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit evil-collection-package-menu package url-handlers magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode evil-collection-diff-mode diff-mode git-commit log-edit message sendmail yank-media rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor shell server magit-mode transient magit-git magit-base magit-section cursor-sensor compat magit-delta-autoloads xterm-color-autoloads magit-autoloads magit-section-autoloads git-commit-autoloads with-editor-autoloads transient-autoloads compat-autoloads haml-mode js c-ts-common cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs markdown-mode css-mode sgml-mode facemenu imenu eww url-queue shr pixel-fill kinsoku url-file svg xml dom puny mm-url gnus nnheader gnus-util text-property-search mail-utils range mm-util mail-prsvr evil-collection-ruby-mode ruby-mode smie haml-mode-autoloads haskell-mode-autoloads markdown-mode-autoloads flymd browse-url flymd-autoloads generic-x php-mode-autoloads cperl-mode-autoloads google-c-style google-c-style-autoloads tex crm texmathp auctex-autoloads tex-site treesit-auto treesit treesit-auto-autoloads org-mouse sanityinc-tomorrow-night-theme color-theme-sanityinc-tomorrow color color-theme-sanityinc-tomorrow-autoloads evil-numbers evil-numbers-autoloads treemacs-evil-autoloads treemacs-autoloads cfrs-autoloads posframe-autoloads ht-autoloads hydra-autoloads lv-autoloads pfuture-autoloads ace-window-autoloads avy-autoloads s-autoloads evil-surround evil-surround-autoloads evil-iedit-state-autoloads iedit iedit-lib iedit-autoloads evil-cleverparens evil-cleverparens-text-objects evil-cleverparens-util smartparens loadhist paredit dash evil-cleverparens-autoloads smartparens-autoloads dash-autoloads paredit-autoloads evil-collection-unimpaired evil-collection-restclient evil-collection-replace evil-collection-info evil-collection-elisp-mode evil-collection annalist evil-collection-autoloads annalist-autoloads evil-org-autoloads evil-leader evil-leader-autoloads evil evil-integration evil-maps evil-commands reveal evil-jumps evil-command-window evil-search evil-ex evil-types evil-macros evil-repeat evil-states evil-core evil-common rect evil-digraphs evil-vars evil-autoloads goto-chg-autoloads git-link thingatpt git-link-autoloads undo-tree diff queue undo-tree-autoloads queue-autoloads ox-reveal ox-reveal-autoloads use-package-ensure ob-restclient restclient url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source eieio eieio-core password-cache json map url-vars mailcap ob-restclient-autoloads restclient-autoloads ox-slack ox-slack-autoloads ox-gfm ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-md ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox org-element org-persist xdg org-id org-refile org ob ob-tangle ob-ref ob-lob ob-table org-macro org-src ob-comint org-pcomplete pcomplete comint ansi-osc ansi-color org-list org-footnote org-faces org-entities time-date noutline outline ob-emacs-lisp org-table org-keys org-loaddefs find-func cal-menu calendar cal-loaddefs ring avl-tree generator ol oc ob-exp ob-core org-cycle org-fold org-fold-core org-compat ob-eval org-version org-macs format-spec ox-gfm-autoloads htmlize htmlize-autoloads use-package-bind-key edmacro kmacro bind-key easy-mmode ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util spinner spinner-autoloads editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch pcase editorconfig-autoloads ido-completing-read+ memoize cus-edit pp cus-load wid-edit minibuf-eldef ido-completing-read+-autoloads comp comp-cstr warnings icons rx memoize-autoloads flx-ido flx ido flx-ido-autoloads flx-autoloads finder-inf dired-details+ byte-opt advice dired dired-loaddefs dired-details dired-details+-autoloads dired-details-autoloads use-package-core use-package-autoloads info bind-key-autoloads straight-autoloads cl-seq cl-extra help-mode straight subr-x cl-macs gv cl-loaddefs cl-lib bytecomp byte-compile rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util 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 kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 4413001 235204) (symbols 48 1069773 55) (strings 32 1349526 10723) (string-bytes 1 28696588) (vectors 16 355207) (vector-slots 8 9933206 2743271) (floats 8 897 2859) (intervals 56 60445 41752) (buffers 984 103)) --0b9c0595eb474c6b928d45637cfa1930 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
When I hav= e an xref buffer, if I click mouse-1 on a reference 
= when the window containing the xref buffer is inactive, I get a "Choose<= br>
a reference to visit" error and the point doesn't move.&nb= sp; If I switch to
the *xref* window first, it works = as expected.

This appears to be because [mo= use-1] and [mouse-2] are bound to
xref-goto-ref, which cal= ls (xref--item-at-point) to find the current
item; however= , at least in my (fairly complex) environment, the point
i= sn't first moved to where the mouse was clicked and xref can't find any<= br>
item at the point where it was previously.  Ther= e's another function
xref-select-and-show-ref that explici= tly sets the point from the mouse
event before attempting = to follow the xref, and it works fine.

I'm = not that familiar with mouse event handling in emacs but I hacked up
=
this function (largely copied from xref-goto-xref) which seem= s to work
as expected when I bind it to [mouse-1] in xref-= -button-map:


(defun my:xref-= goto-xref-mouse (event &optional quit)
  (in= teractive "eP")
  (let ((xref-buffer)
<= div>        (xref (save-excursio= n
         &n= bsp;      (set-mouse-point event)
           =      (setq xref-buffer (current-buffer))
          &nbs= p;     (xref-current-item (xref--item-at-point)= ))))
    (if (not xref)
=       (user-error "Choose a reference to v= isit")
      (progn 
        (xref--set-a= rrow)
        (xre= f--show-location (xref-item-location xref) (if quit 'quit t))
<= div>        (next-error-found-bu= ffer xref-buffer)))))

(bind-key [mouse-1] #= 'my:xref-goto-xref-mouse xref--button-map)

=

In GNU Emacs 29.1 (build 2, x86_64-apple-d= arwin22.6.0, NS appkit-2299.70
Version 13.5 (Build 22G74))= of 2023-08-14 built on C02DR5M6MD6T
Windowing system dist= ributor 'Apple', version 10.3.2299
System Description:&nbs= p; macOS 13.5.1

Configured using:
<= /div>
'configure --disable-dependency-tracking --disable-silent-rule= s
--enable-locallisppath=3D/usr/local/share/emacs/site-lis= p
--infodir=3D/usr/local/Cellar/emacs-plus@29/29.1/share/i= nfo/emacs
--prefix=3D/usr/local/Cellar/emacs-plus@29/29.1 = --with-xml2 --with-gnutls
--with-native-compilation --with= out-compress-install --without-dbus
--without-imagemagick = --with-modules --with-rsvg --with-ns
--disable-ns-self-con= tained 'CFLAGS=3D-Os -w -pipe -march=3Dnehalem
-mmacosx-ve= rsion-min=3D13
-isysroot/Library/Developer/CommandLineTool= s/SDKs/MacOSX13.sdk
-DFD_SETSIZE=3D10000 -DDARWIN_UNLIMITE= D_SELECT'
'CPPFLAGS=3D-I/usr/local/opt/zlib/include -I/usr= /local/opt/jpeg/include
-I/usr/local/opt/icu4c/include -F/= usr/local/Frameworks
-isysroot/Library/Developer/CommandLi= neTools/SDKs/MacOSX13.sdk'
'LDFLAGS=3D-L/usr/local/opt/zli= b/lib -L/usr/local/opt/jpeg/lib
-L/usr/local/opt/icu4c/lib= -L/usr/local/lib -F/usr/local/Frameworks
-Wl,-headerpad_m= ax_install_names
-isysroot/Library/Developer/CommandLineTo= ols/SDKs/MacOSX13.sdk
-L/usr/local/opt/libgccjit/lib''
=

Configured features:
ACL GIF GLI= B GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
N= OTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOL= KIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB

I= mportant settings:
  value of $LANG: en_US.UTF-8=
  locale-coding-system: utf-8-unix

Major mode: ELisp/l

Minor = modes in effect:
  recentf-mode: t
  dap-tooltip-mode: t
  dap-ui-many-w= indows-mode: t
  dap-ui-controls-mode: t
  dap-ui-mode: t
  ivy-mode: t<= br>
  flycheck-color-mode-line-mode: t
  global-edit-server-edit-mode: t
  y= as-global-mode: t
  yas-minor-mode: t
<= div>  global-display-line-numbers-mode: t
 =  display-line-numbers-mode: t
  pixel-scrol= l-precision-mode: t
  savehist-mode: t
=
  global-flycheck-mode: t
  flych= eck-mode: t
  dap-auto-configure-mode: t
  dap-mode: t
  lsp-treemacs-sy= nc-mode: t
  rainbow-delimiters-mode: t
  projectile-mode: t
  global-at= omic-chrome-edit-mode: t
  treemacs-filewatch-mo= de: t
  treemacs-follow-mode: t
&n= bsp; treemacs-git-mode: t
  treemacs-fringe= -indicator-mode: t
  windmove-mode: t
<= div>  global-company-mode: t
  company= -mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  auto-= revert-mode: t
  shell-dirtrack-mode: t
  server-mode: t
  TeX-PDF-mode:= t
  global-treesit-auto-mode: t
&= nbsp; global-evil-surround-mode: t
  evil-s= urround-mode: t
  evil-cleverparens-mode: t
<= /div>
  paredit-mode: t
  global-e= vil-collection-unimpaired-mode: t
  evil-collect= ion-unimpaired-mode: t
  evil-leader-mode: t
=
  evil-mode: t
  evil-local= -mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  override-globa= l-mode: t
  editorconfig-mode: t
&= nbsp; straight-use-package-mode: t
  straig= ht-package-neutering-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  = eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-whe= el-mode: t
  menu-bar-mode: t
&nbs= p; file-name-shadow-mode: t
  global-font-l= ock-mode: t
  font-lock-mode: t
&n= bsp; blink-cursor-mode: t
  line-number-mod= e: t
  transient-mark-mode: t
&nbs= p; auto-composition-mode: t
  auto-encrypti= on-mode: t
  auto-compression-mode: t
<= div>
Load-path shadows:
/Users/evan.moses@ok= ta.com/.emacs.d/straight/build/help-fns+/help-fns+ hides ~/.emacs.d/elis= p/help-fns+
/Users/evan.moses@okta.com/.emacs.d/straight/b= uild/protobuf-mode/protobuf-mode hides /usr/local/share/emacs/site-lisp/= protobuf/protobuf-mode
/Users/evan.moses@okta.com/.emacs.d= /straight/build/transient/transient hides /usr/local/Cellar/emacs-plus@2= 9/29.1/share/emacs/29.1/lisp/transient
/Users/evan.moses@o= kta.com/.emacs.d/straight/build/use-package/use-package-jump hides /usr/= local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-pa= ckage-jump
/Users/evan.moses@okta.com/.emacs.d/straight/bu= ild/use-package/use-package-diminish hides /usr/local/Cellar/emacs-plus@= 29/29.1/share/emacs/29.1/lisp/use-package/use-package-diminish
=
/Users/evan.moses@okta.com/.emacs.d/straight/build/use-package/use-= package hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp= /use-package/use-package
/Users/evan.moses@okta.com/.emacs= .d/straight/build/use-package/use-package-delight hides /usr/local/Cella= r/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-package-delig= ht
/Users/evan.moses@okta.com/.emacs.d/straight/build/use-= package/use-package-lint hides /usr/local/Cellar/emacs-plus@29/29.1/shar= e/emacs/29.1/lisp/use-package/use-package-lint
/Users/evan= .moses@okta.com/.emacs.d/straight/build/bind-key/bind-key hides /usr/loc= al/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package/bind-key<= br>
/Users/evan.moses@okta.com/.emacs.d/straight/build/use-pac= kage/use-package-core hides /usr/local/Cellar/emacs-plus@29/29.1/share/e= macs/29.1/lisp/use-package/use-package-core
/Users/evan.mo= ses@okta.com/.emacs.d/straight/build/use-package/use-package-ensure hide= s /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/use-package= /use-package-ensure
/Users/evan.moses@okta.com/.emacs.d/st= raight/build/use-package/use-package-bind-key hides /usr/local/Cellar/em= acs-plus@29/29.1/share/emacs/29.1/lisp/use-package/use-package-bind-key<= br>
/Users/evan.moses@okta.com/.emacs.d/straight/build/less-cs= s-mode/less-css-mode hides /usr/local/Cellar/emacs-plus@29/29.1/share/em= acs/29.1/lisp/textmodes/less-css-mode
/Users/evan.moses@ok= ta.com/.emacs.d/straight/build/cperl-mode/cperl-mode hides /usr/local/Ce= llar/emacs-plus@29/29.1/share/emacs/29.1/lisp/progmodes/cperl-mode
/Users/evan.moses@okta.com/.emacs.d/straight/build/map/map hide= s /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/29.1/lisp/emacs-lisp/= map
/Users/evan.moses@okta.com/.emacs.d/straight/build/let= -alist/let-alist hides /usr/local/Cellar/emacs-plus@29/29.1/share/emacs/= 29.1/lisp/emacs-lisp/let-alist
/Users/evan.moses@okta.com/= .emacs.d/straight/build/eldoc/eldoc hides /usr/local/Cellar/emacs-plus@2= 9/29.1/share/emacs/29.1/lisp/emacs-lisp/eldoc

Features:
(shadow sort mail-extr emacsbug cl-print edeb= ug debug backtrace shortdoc
prettier-js add-node-modules-p= ath typescript-ts-mode org-capture vc-hg
vc-bzr vc-src vc-= sccs vc-cvs vc-rcs log-view magit-extras
emacsql-sqlite-bu= iltin sqlite recentf treemacs-bookmarks treemacs-tags
magi= t-bookmark bookmark counsel counsel-jq swiper tabify ace-window avy
<= /div>
misearch multi-isearch lsp-diagnostics lsp-headerline lsp-icon= s
lsp-modeline dap-mouse dap-ui gdb-mi bui bui-list bui-in= fo bui-entry
bui-core bui-history bui-button bui-utils lsp= -lens vc-git lsp-ui
lsp-ui-flycheck lsp-ui-doc evil-collec= tion-lsp-ui-imenu lsp-ui-imenu
lsp-ui-peek lsp-ui-sideline= lsp-ui-util lsp-zig lsp-tilt lsp-steep
lsp-svelte lsp-sql= s lsp-ruby-syntax-tree lsp-ruby-lsp lsp-yaml lsp-xml
lsp-v= imscript lsp-vhdl lsp-volar lsp-vetur lsp-html lsp-verilog lsp-vala
<= /div>
lsp-v lsp-typeprof lsp-ttcn3 lsp-toml lsp-terraform lsp-tex ls= p-sorbet
lsp-solargraph lsp-semgrep lsp-rust lsp-rf lsp-ru= ff-lsp lsp-remark
lsp-racket lsp-r lsp-purescript lsp-pyth= on-ms lsp-pylsp lsp-pyls
lsp-pwsh lsp-php lsp-pls lsp-perl= navigator lsp-perl lsp-openscad
lsp-ocaml lsp-magik lsp-ni= x lsp-nim lsp-nginx lsp-mint lsp-marksman
lsp-markdown lsp= -lua lsp-kotlin lsp-json lsp-javascript lsp-idris
lsp-haxe= lsp-groovy lsp-hack lsp-graphql lsp-glsl lsp-gleam lsp-go
lsp-completion lsp-gdscript lsp-fsharp lsp-fortran lsp-eslint lsp-erlan= g
lsp-emmet lsp-elixir lsp-elm lsp-dockerfile lsp-dhall ls= p-d lsp-css
lsp-csharp lsp-crystal lsp-credo lsp-cmake lsp= -clojure
lsp-semantic-tokens lsp-clangd lsp-beancount lsp-= bash lsp-astro lsp-awk
lsp-ansible lsp-angular lsp-ada lsp= -actionscript go-ts-mode ivy-hydra
evil-collection-ivy ivy= delsel ivy-faces ivy-overlay colir
flycheck-color-mode-li= ne face-remap company-oddmuse company-keywords
company-eta= gs company-gtags company-dabbrev-code company-dabbrev
comp= any-files company-clang company-capf company-cmake company-semantic
<= /div>
company-template company-bbdb edit-server edit-server-autoload= s
treemacs-projectile treemacs-projectile-autoloads yasnip= pet-snippets
yasnippet yasnippet-snippets-autoloads yasnip= pet-autoloads
terminal-here-autoloads zoom-frm-autoloads f= rame-cmds-autoloads
frame-fns-autoloads help-fns+ help-fns= radix-tree help-fns+-autoloads
ace-jump-mode cl ace-jump-= mode-autoloads
flycheck-color-mode-line-autoloads smart-mo= de-line-light-powerline-theme
smart-mode-line rich-minorit= y smart-mode-line-powerline-theme
smart-mode-line-powerlin= e-theme-autoloads smart-mode-line-autoloads
rich-minority-= autoloads powerline powerline-separators powerline-themes
= powerline-autoloads go-impl exec-path-from-shell
exec-path= -from-shell-autoloads find-file-in-repository
find-file-in= -repository-autoloads ripgrep ripgrep-autoloads
evil-colle= ction-ag ag vc-svn find-dired ag-autoloads ivy-hydra-autoloads
=
hydra counsel-autoloads display-line-numbers pixel-scroll cua-base<= br>
savehist ispell gotest go-impl-autoloads flycheck-golangci= -lint
evil-collection-flycheck flycheck flycheck-golangci-= lint-autoloads
gotest-autoloads go-dlv go-mode find-file g= ud go-dlv-autoloads
go-mode-autoloads present-minor-mode p= yvenv pyvenv-autoloads
lsp-python-ms-autoloads python-pyte= st-autoloads lsp-ivy-autoloads
lsp-ui-autoloads dap-java d= ap-mode dap-tasks dap-launch lsp-docker
posframe dap-overl= ays lsp-java lsp-treemacs lsp-treemacs-generic
lsp-treemac= s-themes treemacs-treelib lsp-java-autoloads
dap-mode-auto= loads lsp-docker-autoloads lsp-treemacs-autoloads
bui-auto= loads ccls ccls-member-hierarchy ccls-inheritance-hierarchy
ccls-call-hierarchy ccls-tree ccls-code-lens ccls-semantic-highlight
ccls-common lsp-mode lsp-protocol tree-widget network-strea= m lv f
f-shortdoc ewoc ccls-autoloads lsp-mode-autoloads e= ldoc-autoloads
racket-mode-autoloads cider-autoloads sesma= n-autoloads
parseedn-autoloads map-autoloads parseclj-auto= loads
clojure-mode-autoloads rainbow-delimiters rainbow-de= limiters-autoloads
evil-paredit evil-paredit-autoloads cha= tgpt-shell shell-maker view
goto-addr ielm evil-collection= -eshell em-prompt eshell esh-mode esh-cmd
esh-ext esh-opt = esh-proc esh-io esh-arg esh-module esh-groups esh-util
cha= tgpt-shell-autoloads shell-maker-autoloads mocha-autoloads
prettier-js-autoloads less-css-mode-autoloads counsel-jq-autoloads
<= /div>
swiper-autoloads ivy-autoloads json-mode-autoloads
json-snatcher-autoloads typescript-mode-autoloads web-mode-autoloads<= br>
xref-js2 vc vc-dispatcher xref-js2-autoloads rjsx-mode-aut= oloads
add-node-modules-path-autoloads jest jest-traversal= projectile lisp-mnt
grep ibuf-ext ibuffer ibuffer-loaddef= s evil-collection-js2-mode js2-mode
etags fileloop evil-co= llection-xref xref project jest-autoloads
js2-mode-autoloa= ds projectile-autoloads sqlformat-autoloads
atomic-chrome = websocket bindat atomic-chrome-autoloads
websocket-autoloa= ds nix-mode ffap nix-repl nix-shell nix-store nix-log
nix-= instantiate nix-shebang nix-format nix nix-mode-autoloads
= rego-mode-autoloads kubernetes-evil kubernetes kubernetes-overview
kubernetes-services kubernetes-secrets kubernetes-persistentvol= umeclaims
kubernetes-namespaces kubernetes-jobs kubernetes= -pod-line
kubernetes-ingress kubernetes-errors kubernetes-= nodes
kubernetes-statefulsets kubernetes-deployments kuber= netes-configmaps
kubernetes-logs kubernetes-labels kuberne= tes-commands mode-local
kubernetes-popups kubernetes-el-tr= amp tramp tramp-loaddefs trampver
tramp-integration files-= x tramp-compat magit-popup kubernetes-pods
kubernetes-load= ing-container kubernetes-contexts kubernetes-yaml
kubernet= es-utils evil-collection-term term disp-table ehelp
kubern= etes-modes kubernetes-kubectl kubernetes-state kubernetes-process
request kubernetes-core kubernetes-vars kubernetes-ast
=
kubernetes-autoloads request-autoloads magit-popup-autoloads elixir= -mode
elixir-format elixir-smie elixir-mode-autoloads terr= aform-mode-autoloads
hcl-mode-autoloads vterm-autoloads po= wershell-autoloads treemacs-evil
treemacs treemacs-header-= line treemacs-compatibility treemacs-mode
treemacs-interfa= ce treemacs-persistence treemacs-filewatch-mode
treemacs-f= ollow-mode treemacs-rendering treemacs-annotations
treemac= s-async treemacs-workspaces treemacs-dom treemacs-visuals
= treemacs-fringe-indicator pulse treemacs-faces treemacs-icons
<= div>treemacs-scope treemacs-themes treemacs-core-utils pfuture inline
hl-line ht treemacs-logging treemacs-customization treemacs-= macros s
protobuf-mode-autoloads cram-test-mode-autoloads = restclient-jq
restclient-jq-autoloads jq-mode jq-mode-auto= loads scad-mode-autoloads
flycheck-yamllint-autoloads flyc= heck-autoloads pkg-info-autoloads
epl-autoloads yaml-mode-= autoloads dockerfile-mode-autoloads
evil-collection-compil= e compile plantuml-mode-autoloads
groovy-mode-autoloads gr= aphql-mode-autoloads elm-mode-autoloads
reformatter-autolo= ads f-autoloads win-switch windmove
win-switch-autoloads a= rduino-mode-autoloads ede/auto lua-mode-autoloads
eldoc-ov= erlay eldoc-overlay-autoloads quick-peek-autoloads
inline-= docs-autoloads evil-collection-company company company-autoloads
forge-list forge-commands forge-semi forge-bitbucket buck forge-g= ogs
gogs forge-gitea gtea forge-gitlab glab forge-github g= hub-graphql treepy
gsexp ghub url-http url-gw nsm url-auth= let-alist gnutls forge-notify
forge-revnote forge-pullreq= forge-issue forge-topic yaml parse-time
iso8601 bug-refer= ence forge-post forge-repo forge forge-core forge-db
closq= l emacsql-sqlite-common emacsql emacsql-compiler eieio-base
forge-autoloads yaml-autoloads ghub-autoloads treepy-autoloads
let-alist-autoloads closql-autoloads emacsql-autoloads magit-delt= a
xterm-color magit-submodule magit-blame magit-stash magi= t-reflog
magit-bisect magit-push magit-pull magit-fetch ma= git-clone magit-remote
magit-commit magit-sequence magit-n= otes magit-worktree magit-tag
magit-merge magit-branch mag= it-reset magit-files magit-refs magit-status
magit evil-co= llection-package-menu package url-handlers magit-repos
mag= it-apply magit-wip magit-log which-func magit-diff smerge-mode
=
evil-collection-diff-mode diff-mode git-commit log-edit message sen= dmail
yank-media rfc822 mml mml-sec epa derived epg rfc606= 8 epg-config
mm-decode mm-bodies mm-encode mail-parse rfc2= 231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailhe= ader pcvs-util add-log magit-core
magit-autorevert autorev= ert filenotify magit-margin magit-transient
magit-process = with-editor shell server magit-mode transient magit-git
ma= git-base magit-section cursor-sensor compat magit-delta-autoloads
xterm-color-autoloads magit-autoloads magit-section-autoloads
git-commit-autoloads with-editor-autoloads transient-autoloa= ds
compat-autoloads haml-mode js c-ts-common cc-mode cc-fo= nts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine= cc-vars cc-defs
markdown-mode css-mode sgml-mode facemenu= imenu eww url-queue shr
pixel-fill kinsoku url-file svg x= ml dom puny mm-url gnus nnheader
gnus-util text-property-s= earch mail-utils range mm-util mail-prsvr
evil-collection-= ruby-mode ruby-mode smie haml-mode-autoloads
haskell-mode-= autoloads markdown-mode-autoloads flymd browse-url
flymd-a= utoloads generic-x php-mode-autoloads cperl-mode-autoloads
google-c-style google-c-style-autoloads tex crm texmathp
= auctex-autoloads tex-site treesit-auto treesit treesit-auto-autoloads
org-mouse sanityinc-tomorrow-night-theme color-theme-sanityi= nc-tomorrow
color color-theme-sanityinc-tomorrow-autoloads= evil-numbers
evil-numbers-autoloads treemacs-evil-autoloa= ds treemacs-autoloads
cfrs-autoloads posframe-autoloads ht= -autoloads hydra-autoloads
lv-autoloads pfuture-autoloads = ace-window-autoloads avy-autoloads
s-autoloads evil-surrou= nd evil-surround-autoloads
evil-iedit-state-autoloads iedi= t iedit-lib iedit-autoloads
evil-cleverparens evil-cleverp= arens-text-objects evil-cleverparens-util
smartparens load= hist paredit dash evil-cleverparens-autoloads
smartparens-= autoloads dash-autoloads paredit-autoloads
evil-collection= -unimpaired evil-collection-restclient
evil-collection-rep= lace evil-collection-info evil-collection-elisp-mode
evil-= collection annalist evil-collection-autoloads annalist-autoloads
evil-org-autoloads evil-leader evil-leader-autoloads evil
evil-integration evil-maps evil-commands reveal evil-jumps
evil-command-window evil-search evil-ex evil-types evil-macros
evil-repeat evil-states evil-core evil-common rect evil-dig= raphs
evil-vars evil-autoloads goto-chg-autoloads git-link= thingatpt
git-link-autoloads undo-tree diff queue undo-tr= ee-autoloads
queue-autoloads ox-reveal ox-reveal-autoloads= use-package-ensure
ob-restclient restclient url url-proxy= url-privacy url-expand
url-methods url-history url-cookie= generate-lisp-file url-domsuf
url-util url-parse auth-sou= rce eieio eieio-core password-cache json map
url-vars mail= cap ob-restclient-autoloads restclient-autoloads ox-slack
= ox-slack-autoloads ox-gfm ox-odt rng-loc rng-uri rng-parse rng-match
=
rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok = nxml-util
ox-md ox-latex ox-icalendar org-agenda ox-html t= able ox-ascii ox-publish
ox org-element org-persist xdg or= g-id org-refile org ob ob-tangle ob-ref
ob-lob ob-table or= g-macro org-src ob-comint org-pcomplete pcomplete
comint a= nsi-osc ansi-color org-list org-footnote org-faces org-entities
time-date noutline outline ob-emacs-lisp org-table org-keys org-lo= addefs
find-func cal-menu calendar cal-loaddefs ring avl-t= ree generator ol oc
ob-exp ob-core org-cycle org-fold org-= fold-core org-compat ob-eval
org-version org-macs format-s= pec ox-gfm-autoloads htmlize
htmlize-autoloads use-package= -bind-key edmacro kmacro bind-key
easy-mmode ediff ediff-m= erg ediff-mult ediff-wind ediff-diff ediff-help
ediff-init= ediff-util spinner spinner-autoloads editorconfig
editorc= onfig-core editorconfig-core-handle editorconfig-fnmatch pcase
=
editorconfig-autoloads ido-completing-read+ memoize cus-edit pp cus= -load
wid-edit minibuf-eldef ido-completing-read+-autoload= s comp comp-cstr
warnings icons rx memoize-autoloads flx-i= do flx ido flx-ido-autoloads
flx-autoloads finder-inf dire= d-details+ byte-opt advice dired
dired-loaddefs dired-deta= ils dired-details+-autoloads
dired-details-autoloads use-p= ackage-core use-package-autoloads info
bind-key-autoloads = straight-autoloads cl-seq cl-extra help-mode straight
subr= -x cl-macs gv cl-loaddefs cl-lib bytecomp byte-compile rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontse= t image
regexp-opt fringe tabulated-list replace newcommen= t 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
t= ibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chi= nese
composite emoji-zwj charscript charprop case-table ep= a-hook
jka-cmpr-hook help abbrev obarray oclosure cl-prelo= aded button loaddefs
theme-loaddefs faces cus-face macroex= p files window text-properties
overlay sha1 md5 base64 for= mat env code-pages mule custom widget keymap
hashtable-pri= nt-readable backquote threads kqueue cocoa ns lcms2
multi-= tty make-network-process native-compile emacs)

<= div>Memory information:
((conses 16 4413001 235204)
(symbols 48 1069773 55)
(strings 32 1349526 10723)=
(string-bytes 1 28696588)
(vectors 16 35520= 7)
(vector-slots 8 9933206 2743271)
(floats = 8 897 2859)
(intervals 56 60445 41752)
(buff= ers 984 103))
--0b9c0595eb474c6b928d45637cfa1930-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 09 03:23:05 2023 Received: (at control) by debbugs.gnu.org; 9 Sep 2023 07:23:05 +0000 Received: from localhost ([127.0.0.1]:46010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qesJ7-0003v0-4k for submit@debbugs.gnu.org; Sat, 09 Sep 2023 03:23:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qesJ2-0003uS-J7 for control@debbugs.gnu.org; Sat, 09 Sep 2023 03:23:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qesIt-000416-Fk for control@debbugs.gnu.org; Sat, 09 Sep 2023 03:22:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to: references; bh=YDVr/Sqas0HoTVagtBaBmVxhEwkEbjERANevDxvfjjA=; b=LP/wBq465KBmeM Cx+Nl+7lkJX7lQwbpuRYghalgosvxF4nPWdfsnJHXQx0Drw++nRgDndHoi0HxIYcdMJmDnrJ0SI65 ww59cZl6dH9kzd3+/dxuNsGkrPQ5PIGRkNmRlSlj1yH/zBEwe0ll4K62Gih7KmgdSYI5KZhzma0le jWYXwrEP59ZBaxUfcWKmqguD6p9NT3p1JYe1hJFCaZGh4G+RVCp3+aTMZyOcRnmC45ueZzGvzLbim 2w0oupCRrBtcHH4NbPdkpX8IIvYpggnzhWfBELPbGjca4lkRKjN1IpHNxoHxl1a75PcMuCyu2dbG5 n5KxNeZLOjWGEp2zDrDg==; Date: Sat, 09 Sep 2023 10:22:44 +0300 Message-Id: <83ledfvmij.fsf@gnu.org> From: Eli Zaretskii To: control@debbugs.gnu.org Subject: Re: bug#65830: 29.1; Mouse click on xref buffer doesn't go to reference X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 65830 65831 thanks From unknown Sun Jun 22 07:56:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65831: 29.1; Mouse click on xref buffer doesn't go to reference Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Sep 2023 22:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65831 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Evan Moses , 65831@debbugs.gnu.org Received: via spool by 65831-submit@debbugs.gnu.org id=B65831.16944720757282 (code B ref 65831); Mon, 11 Sep 2023 22:42:01 +0000 Received: (at 65831) by debbugs.gnu.org; 11 Sep 2023 22:41:15 +0000 Received: from localhost ([127.0.0.1]:55079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfpak-0001tO-UY for submit@debbugs.gnu.org; Mon, 11 Sep 2023 18:41:15 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:42641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfpai-0001t7-0g for 65831@debbugs.gnu.org; Mon, 11 Sep 2023 18:41:14 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2016E5C01EE; Mon, 11 Sep 2023 18:41:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 11 Sep 2023 18:41:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1694472061; x=1694558461; bh=40a9Qu5tj7eiElwfLTwEjqN5q+EEIi+I3ld e9UHzDew=; b=E9gkhAjDfi5Ym/AaOq+e4Yxsm6OhWBzYKOhG+Mf4in1LlsCDaJv hFQOJZJPfBCSZmJfY8mU4Ksj7yRxaYehnSHRwRmlic70BZAtJvsxPC2FKLVJtv6P cTZT36KlOJMfOOFcoOMfsgt1d0qPkF/GTYfE6qHczce/88Cqv/gYsE13IRGfJ1aJ kKebms0ofPRMKc/w6wtKpz9PYyAo0zira+4/uT0YbjhjlNrpOzqq41TkB5FgPZtB O8IqiZNg0ntoTQeidg/rjiFDRfL5EKGbSUSMKwUDACAjDzLwmqzLBJqpSMO/6ruh 3mO47sDVz8aA5HptcfPvZpRXKPcqwA6Cnow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1694472061; x= 1694558461; bh=40a9Qu5tj7eiElwfLTwEjqN5q+EEIi+I3lde9UHzDew=; b=N nWVPtoslni+Z8aj/IE+OG0lZxBmwtVj+YzRHpOWO58s1gU61+jr0BcQTP7QuQW21 lJQBjDdUJHrKl13gBo0CqGfESfd/bs5mf4mESCWrheL2SGGOBeSTq/r8yvmuMq0l j62Z9cG0d/lt8dbDcZSFlDBQ8Wx6+QDyqIiHG8pj9NoGucO1ZlyvTKyc2OvEl8kK 6pDh+2FlNrn5dA9cquvazkZkta0I5QBK/dudwGzgmWTDyWPd5/CDzg1vL3q7PymQ m2NZse1N+EUT8fQyRfgXlQhn3yDEQNRWU+PQ8Dr5/MwxopM6YufKj9Mtvb3srfNt b4IiF5ftMXFOHAx5AR0Hw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeihedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeghedthedujeeiteeutddtjeekheejteeukeehffdutdejuedvfeevueeviedu udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Sep 2023 18:40:59 -0400 (EDT) Message-ID: Date: Tue, 12 Sep 2023 01:40:58 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US References: <5f61138f-8da6-4f02-8499-1968a49ec1ed@app.fastmail.com> From: Dmitry Gutov In-Reply-To: <5f61138f-8da6-4f02-8499-1968a49ec1ed@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.2 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) Hi Evan, On 08/09/2023 22:21, Evan Moses wrote: > This appears to be because [mouse-1] and [mouse-2] are bound to > xref-goto-ref, which calls (xref--item-at-point) to find the current > item; however, at least in my (fairly complex) environment, the point > isn't first moved to where the mouse was clicked and xref can't find any > item at the point where it was previously. That sounds like a problem, but could you try to find out first what makes your environment different? Perhaps it's better to have fixed there, or perhaps it's using some existing Emacs feature that we could fix ourselves too. As it is, though, [mouse-1] seems to function okay in the scenario you described (non-selected window) when I try it with 'emacs -Q' or my own config.