From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: xref mode question Date: Sat, 16 Nov 2019 10:00:27 +0200 Message-ID: <83woc06yjo.fsf@gnu.org> References: <002d7166-73c8-09ac-f409-8fd87575c819@comcast.net> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="78200"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 16 09:00:50 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iVt0h-000K8o-Gr for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Nov 2019 09:00:47 +0100 Original-Received: from localhost ([::1]:46778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iVt0g-0003LJ-DB for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Nov 2019 03:00:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52900) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iVt0R-0003L3-S5 for help-gnu-emacs@gnu.org; Sat, 16 Nov 2019 03:00:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iVt0R-0006ru-MY for help-gnu-emacs@gnu.org; Sat, 16 Nov 2019 03:00:31 -0500 Original-Received: from [176.228.60.248] (port=3222 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iVt0Q-0005sP-8H for help-gnu-emacs@gnu.org; Sat, 16 Nov 2019 03:00:31 -0500 In-reply-to: <002d7166-73c8-09ac-f409-8fd87575c819@comcast.net> (message from David Spain on Fri, 15 Nov 2019 16:23:57 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121847 Archived-At: > From: David Spain > Date: Fri, 15 Nov 2019 16:23:57 -0500 > > I'm using Emacs 25.2.2 and am trying to figure out a way in which from > the XREF window of an Emacs tags table search to get it to visit an > entry listed in that same window and not overwrite the original source > window I had open which I'm visiting the tag from. In other words, I'd > like the XREF window to go away and be replaced with the source from the > followed xref. > > I miss the older functionality of the default binding of 'C-x 4 .' or as > it was known in Emacs 23 and previous versions (find-tag-other-window). There isn't any single command to do that, because making the XREF window "go away" makes it hard to get that window back, if you want to examine the other candidates. However, you can close the XREF window with the 'q' command, when you don't need it anymore. The XREF facility doesn't usually show the XREF window, because it in most cases finds just one candidate and shows it immediately, and in those cases "C-x 4 ." works just like it did with etags. We tried to implement something like what you want, but every attempt caused some unpleasant side effects. The problem is not bad, however, at least IMO, because you can easily go back to your original source buffer with "M-,". > I DO like the newer xref mechanism as it shows all found references, I > just want to be able to visit a specific xref without losing my original > source window in the process. The C-o command tries to do that, but only if there's another window showing the file where the tag lives. > I thought maybe the key would do this in the XREF buffer, the > documentation would lead me to believe that, BUT the key doesn't > do anything but attempt to insert a tab into the XREF buffer. ??? Does that happen in "emacs -Q"? It doesn't for me. However, TAB just buries the XREF buffer, it doesn't necessarily leave your previous buffer displayed in some other window. > I do have a customization set on the key for c-mode for the > way I prefer it to work. Could that be causing trouble? I tend to > doubt that. Could be, trying in "emacs -Q" will tell.