From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "numbchild@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: make xref--show-location reuse current window Date: Thu, 21 Dec 2017 13:55:03 +0800 Message-ID: References: <86lgi5dzxc.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1513835648 20472 195.159.176.226 (21 Dec 2017 05:54:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2017 05:54:08 +0000 (UTC) Cc: emacs-help To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 21 06:54:04 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRtns-0004kz-Fy for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Dec 2017 06:54:00 +0100 Original-Received: from localhost ([::1]:33426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRtpq-0000hB-RM for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Dec 2017 00:56:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRtpQ-0000gK-7L for help-gnu-emacs@gnu.org; Thu, 21 Dec 2017 00:55:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRtpP-000188-0k for help-gnu-emacs@gnu.org; Thu, 21 Dec 2017 00:55:36 -0500 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:43676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRtpO-00017u-SB for help-gnu-emacs@gnu.org; Thu, 21 Dec 2017 00:55:34 -0500 Original-Received: by mail-oi0-x233.google.com with SMTP id f69so16154684oig.10 for ; Wed, 20 Dec 2017 21:55:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=y/TRYdaaV6Z9C1rfMvlsYJpobsZNf3CPIGzp6gzIaVo=; b=vXovD1NvWi6EsyhRoZt5mfAXBCx8bgJk56z3pqnvJDwvyACRpw+BwTNJCUEQwSHuM3 gMwoSqTYb9oDkIcVCZ7hM2I5L8M+zcw6nWQ8ZnRoYGRdWMjHbuHct/XpagSFG4Y13e8k 901WSSKC4r93akmOfGwUYw1zyyb6HYylOdtjBxMg5VSnZRW/0tMF6bag4B/3kfLOHwAo FkYa3Xc78f7LUHJZVxooPC2zpCB4+ZZ5Qpm77bkfaobU85ghonzJkGbS6WgkB6AvzAhZ OilVs2lNJ5nBnzycIoLwaJjg1Aen3B2JnTiEb3982P6ixrNkRPBbj6g149GYbv2DCsFs rmvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=y/TRYdaaV6Z9C1rfMvlsYJpobsZNf3CPIGzp6gzIaVo=; b=cIxBS5f9EoFBcGljc0kw5aCx6QRbTDm4Fmp6StxfzUgT8j2PnShcdbz2IjAh1inYyV XGQ4TKGj4GIZpfwt5NrGIvCn7SXf+R/+ymODKHu5YpMiq6Q4kVg/6uR62XbZTRE/9gAp b3iARydOHFylVlWCG0BGCGTGqlcJ37K/jiAMPY5K13cKXZq9w8wEuQWBTWL/6aH8W1uH cqeMA7i1qAGgk625iE5jUxiT7IPHirW5VjUdZ3dfuZsqMnWmgUQ8bJrRK7bob2xVyKPk xXm4yZPkAyzmLv3mn/0giQtMZAPf+EHq7HiYnG4fS/7chdXKwcd/FVi2AgDcizGHcDzf /0wQ== X-Gm-Message-State: AKGB3mKVKSJAytfsSEB3r7S341YwZ8JTHKMK9MZDg9PPVZyb+ARSfZ+U C7BVe5HtGU7NGbZkgK18XihSnpCA/YCTYnSxAg== X-Google-Smtp-Source: ACJfBov3EIiDoD61xiwmQRzijQ+yIjlFS2rN/Bi3OqxJU7tuoP+LZUMeKLja2M0f8XbJUkXlwHpZCOGQgB3+XafocTA= X-Received: by 10.202.72.21 with SMTP id v21mr6500021oia.93.1513835733930; Wed, 20 Dec 2017 21:55:33 -0800 (PST) Original-Received: by 10.157.42.19 with HTTP; Wed, 20 Dec 2017 21:55:03 -0800 (PST) In-Reply-To: <86lgi5dzxc.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::233 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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:115418 Archived-At: You can use this config: (add-to-list 'display-buffer-alist '("^\\*xref\\*$" (display-buffer-same-window))) [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Fri, Dec 15, 2017 at 12:42 AM, Emanuel Berg wrote: > Amos Bird wrote: > > > What can I do to make xref--show-location > > reuse current source window? > > In general, look for an option (setting) to do > this, if there isn't one, see if the interface > takes an argument (if so, write a small Elisp > wrapper that always passes the same argument > value), but if it doesn't, examine the code to > see where this actually happens, then remove or > alter it in a ~duplicated function. > > I could perhaps offer better help, if I had > that function to begin with. But I don't and > I have nothing xref- at all actually. What is > it and how did you get it? > > -- > underground experts united > http://user.it.uu.se/~embe8573 >