From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: xref call project-current in correct buffer Date: Tue, 15 Nov 2022 23:48:13 +0200 Message-ID: References: <8635ak9hny.fsf@stephe-leake.org> <86y1sb99vv.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9388"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 To: Stephen Leake , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 15 22:49:11 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ov3nq-0002KH-PT for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Nov 2022 22:49:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ov3nE-0000vC-9L; Tue, 15 Nov 2022 16:48:33 -0500 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 1ov3n9-0000uy-BS for emacs-devel@gnu.org; Tue, 15 Nov 2022 16:48:27 -0500 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ov3n7-0005MS-IJ for emacs-devel@gnu.org; Tue, 15 Nov 2022 16:48:26 -0500 Original-Received: by mail-wm1-x329.google.com with SMTP id v7so10604302wmn.0 for ; Tue, 15 Nov 2022 13:48:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=SiioVpi3D5qJVEy435YBrSa/+lBoEJ9V/KwmWc7Hfv4=; b=JQEr5zfUHXtvxWIlRWHEyy32S2duAuisAjsSn8Gt5TMra7lkXBWwJBDS6o4OzqrY63 nMcdRUSGRSQDvfU8rPNtM+oOMboP3tiGEbI/zVVwIyb6AGwl/6NrmkdohT2BMfuTmNMZ asTXShYbRM64eXWe+PSU3j6M8FyQmP2iwAb/uvYlf1+ev9RCcg3qv1a30g1fk8yHFpxO EzSc2x/o8v56AcYdw703jvhVsgbCobB9/R7YnWKv4647v1sRMa+k+I0aNz3vEUnAAyxt DbvHzaaDO/n7JheZE8LxjetJcnZ9VKEBrv59B0bcXEbClCdQia8QBP38d1VdAhJiEpLi h+JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SiioVpi3D5qJVEy435YBrSa/+lBoEJ9V/KwmWc7Hfv4=; b=cnNrTh6mDMa/rYENSzRAaitqL9DJVPFm0zrG3w8ftqatIQZEcWzewdV3rzeUxg6ZXb gAX+DP/enCv/0f9JDOzPPZSg9ANgFwhUxz4//BDxAMb0acxGdDcJ7XL/6gMObdInTLqf 5ULY9G+Xkbypbd8wqka6/n+a1AyZ5Bdfw8uHylxik2RAN9azWW3rgC0N5/n3xuF27wH4 Nb5gVjSDwVKzn9EqlGSPATnlgXvgpB8tusWfpM9sOy4l091L2tqj/1Kz3O8qH191/2/D etQv6sdsWQC8IdwX2mgemt/bqgY+nHBsKDqeFNd5OA8bIFjWZCnQa5rINuPeM9ksXHNv kWYw== X-Gm-Message-State: ANoB5pnuazBVqiQ6jGRMgiZ+LA/QQ7em4DaLAUWJqC5IZW2yYPcZBGyg Vm2MnSQ2YUpCKIQK8PkyfbqbwDN6QAg= X-Google-Smtp-Source: AA0mqf6urAqMG5UvsiRve8cC2YuFeeEW2Bw0Q1jyVV3W75f+kWlYZwxB8Ybjw9jxl6gk2S0IvBr5bQ== X-Received: by 2002:a05:600c:54ce:b0:3cf:8b2d:8cbc with SMTP id iw14-20020a05600c54ce00b003cf8b2d8cbcmr173617wmb.89.1668548895816; Tue, 15 Nov 2022 13:48:15 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id t5-20020a5d4605000000b0022dc6e76bbdsm13507175wrq.46.2022.11.15.13.48.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Nov 2022 13:48:15 -0800 (PST) Content-Language: en-US In-Reply-To: <86y1sb99vv.fsf@stephe-leake.org> Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=raaahh@gmail.com; helo=mail-wm1-x329.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299887 Archived-At: On 15.11.2022 23:37, Stephen Leake wrote: > + ;; xref--analyze uses (project-current), so it must be done in > + ;; the original buffer. > + (setq xrefs (xref--analyze xrefs)) LGTM, thanks! Maybe change the comment from "uses" to "can use" (or "might"), because that only happens with the currently default value of xref-file-name-display. Or not. That's a very minor detail.