From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.devel Subject: xref buffer and default-directory Date: Fri, 08 Jan 2021 18:15:22 +0100 Message-ID: <877don4afp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19157"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 08 18:18:15 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 1kxvOx-0004t9-6L for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Jan 2021 18:18:15 +0100 Original-Received: from localhost ([::1]:48496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxvOv-0007PK-V6 for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Jan 2021 12:18:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxvMF-000581-Q6 for emacs-devel@gnu.org; Fri, 08 Jan 2021 12:15:27 -0500 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:37445) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxvME-0005qp-AK for emacs-devel@gnu.org; Fri, 08 Jan 2021 12:15:27 -0500 Original-Received: by mail-wm1-x334.google.com with SMTP id q75so9052563wme.2 for ; Fri, 08 Jan 2021 09:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=zXUyegLbYWP8Op/StfY2COwjOEzB57FTAxg3M9gDuyk=; b=hkmqY6IzHEfJXXDvHO/3DJi3COEE0tK2hmR18GVAvegpS77RdxMV4hhflohSw0w99e Avez+KkqodY68o05dX1POXejkXEdSvle9KnsJmO0/02lFTkmPeZlXBcQm8hqq0ChTTb4 sBMJQH4Men+K4k87BaYyagT+wRi9wFp8zuFNtjv2CarVHNef51XtpdNY3+u49I2Bl4j7 kJq826YfJ/kX2/W9BNr/YWW4YHCNs/bdDkV2zBYWY4qW4hS6wTFWlsVLIeGwoePzPsc1 id9PniF98f8XhYjHBzJoeIG13zy8OBP/cnqW5rVW+MyQm8A8TRb7eJl9P2rfW2MsPEvx gXFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=zXUyegLbYWP8Op/StfY2COwjOEzB57FTAxg3M9gDuyk=; b=VxUGgGEB57SBza9+1ajxMwQIq3ryfs6bFSSUUbA82otAT6JKAkQ5fOUNUtL844PJ38 eTbI/LdhxYeesPvBy4kgIW+rx4egOQEI+/KWvJs62FNTmZCYU7+2YJtgKaD4RgYiewPi +lpjApoLW/PqWpPmpudGP2X8JNc/0j4X78N+JK0+nOBqHaYA5/W+Lxtbh1o4rmhuTT0+ cMknEuIcXHXS8/Glk+EYzHjQOIgb4lFC6EGeihIZuQY4b5skCIIOpJmsjq3Jz7U/jt83 pxysKxGu1dzWeIO11etDdb1RW+ypT/sKTvI9xbOXgSPYjuVX1lH+sUWl6jLa96a+MiZ0 ELdA== X-Gm-Message-State: AOAM5327o2+Ppg3ggJghc1wIOpgUl+bRBlfBJDBxeJ7hqJnJNDgX/pwn ybpfWd3he+qor0HNDf1zol8ySeDaRza4Zg== X-Google-Smtp-Source: ABdhPJwBlVpr+3t2Nm/JWOE8H5BLjMDBzIPwW9POf48YqH58qG9ehHlk3NlCsDTlrFoYIorzUzU6yg== X-Received: by 2002:a1c:bc57:: with SMTP id m84mr3906087wmf.163.1610126124312; Fri, 08 Jan 2021 09:15:24 -0800 (PST) Original-Received: from carbon.localdomain ([2a01:e0a:245:c850:98f5:429a:aa8e:95bb]) by smtp.gmail.com with ESMTPSA id h20sm14931986wrb.21.2021.01.08.09.15.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 09:15:23 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=orontee@gmail.com; helo=mail-wm1-x334.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: 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:262764 Archived-At: Hi, I am a heavy and happy user of project-find-regexp (through C-x p g). 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? 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? -- Matthias