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 buffer and default-directory Date: Sat, 9 Jan 2021 02:17:44 +0200 Message-ID: References: <877don4afp.fsf@gmail.com> 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="746"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: Matthias Meulien , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 09 01:18:51 2021 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 1ky1xz-00006i-M6 for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Jan 2021 01:18:51 +0100 Original-Received: from localhost ([::1]:51984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ky1xy-0006Uu-Jn for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Jan 2021 19:18:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ky1x1-00063C-DE for emacs-devel@gnu.org; Fri, 08 Jan 2021 19:17:52 -0500 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:34216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ky1wz-00074V-Nq for emacs-devel@gnu.org; Fri, 08 Jan 2021 19:17:51 -0500 Original-Received: by mail-wr1-x42c.google.com with SMTP id q18so10576711wrn.1 for ; Fri, 08 Jan 2021 16:17:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=p8N3N8s1GSKb8g5sLe+aeeCOMJqKA0b/X73wvFe2WHo=; b=iiHcNFH+XkfyMEnt6pyaR4s6y0P25GBUdgPiXTdA0mysFTJOHNxQd8Hve7zJ2tXuBb /GdJ/ZRohwsC2Bw1v5ajI/aOKQPgD3u75KJatqlBYY+K7RqlBbHZ4zrnMMsP8GVH83hG pfUClKeNNjdHtT+bfk7oEur5dRRqllBSEUsN8kAfXzdl8ZkafItL9ZNu3rPO0dCHsRRg b4WYVgcHp6K05Un70PqEFKU3AEWnLhxbQJdlcRTMs92eUq18UEgBqbfi+77mTF0asBEG eAWkIhKK3Y9hZMdbA2zlgWXr1VvNxruyhOaUp22mteClE0thsE30pbr4vQk8bjg8IDit SauQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=p8N3N8s1GSKb8g5sLe+aeeCOMJqKA0b/X73wvFe2WHo=; b=erpWRnLC6Rg1uNuAmr9p02GVKtkc9Z6iy8f+vtOVYdcF7sZ8W6bKgjlqaGPNGqmrTW KJczjn8Yfed2aLRJH9Kr5c43SHrpVPOZtwIe8kytPzMJzeVFNKK24mek0uUZJ9gMznsI Y24SXIYTysBD2c3ckN111tcyepMGFs/kuH6SvnA3oufekXAQ/G0aj8QXb66C/v6MiH9c GE8l+cO+k7JRPGp/SFhZ1YU0outfebVk33MRMQUuFuwxUsBfDQh6zXUKmTtBkJyFG5hP 4cFktZYhg7GJq4Mxhc6ZmIutXX3eV7cpwhTB7kOBU4FU6QSvUB25fuCOIOw4/yAPQFdg 2AzA== X-Gm-Message-State: AOAM532Ttnld1VEpiX3+3E71ZikT8CyeLEcIZNU00uLj+ZmL0/pAmOOC Cam3nZUCvlclMF7uZkb8390kf/6/X1eakA== X-Google-Smtp-Source: ABdhPJwtFXP1u6/AxvSNkYfqEV2g7KU22wn9YgveEoD8ykEOqnrrCzQWDXxRRofB0ucT8nS9YHR+cQ== X-Received: by 2002:a5d:508f:: with SMTP id a15mr6008142wrt.2.1610151466526; Fri, 08 Jan 2021 16:17:46 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id s6sm16385652wro.79.2021.01.08.16.17.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Jan 2021 16:17:45 -0800 (PST) In-Reply-To: <877don4afp.fsf@gmail.com> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42c.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.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.241, 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.23 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" Xref: news.gmane.io gmane.emacs.devel:262777 Archived-At: Hi Matthias, On 08.01.2021 19:15, Matthias Meulien wrote: > Hi, I am a heavy and happy user of project-find-regexp (through C-x p g). Excellent! > Sometime while reading search results from the *xref* buffer I realize > that I should perform another search; I thus press C-x p g again from > the *xref* buffer. But it looks like the local value of > default-directory isn't related to the last search context. And I am > presented search results of an unrelated project. It's confusing and > sometimes I take time to realize that am not reading the search results > of the right project! Are you experiencing the same problem? Looks like I've never really tried this exact scenario before (I almost always search for the string at point, and that means switching to another buffer first). > It looks like the value of default-directory for the *xref* buffer is > not changed between searches. Is this correct? Should we change this > behavior? It was a bug (the default-directory value stayed on from the very first search you did in the current Emacs session). Should be fixed now in 6e73e07a6f. Thanks for the report.