From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#19468: 25.0.50; UI inconveniences with M-. Date: Mon, 05 Jan 2015 01:51:39 +0300 Message-ID: <54A9C3FB.7000602@yandex.ru> References: <83zja6b3tc.fsf@gnu.org> <54A24079.4020902@yandex.ru> <54A2FF47.6010207@yandex.ru> <54A86135.7080004@yandex.ru> <54A90002.7080009@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1420411938 18845 80.91.229.3 (4 Jan 2015 22:52:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2015 22:52:18 +0000 (UTC) Cc: 19468@debbugs.gnu.org To: martin rudalics , Helmut Eller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 04 23:52:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y7u1r-0006kE-1B for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Jan 2015 23:52:11 +0100 Original-Received: from localhost ([::1]:58387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7u1q-0005p5-72 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Jan 2015 17:52:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7u1m-0005os-8k for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 17:52:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7u1i-000054-83 for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 17:52:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7u1i-000050-5a for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 17:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y7u1h-0002lA-PN for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 17:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jan 2015 22:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19468 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19468-submit@debbugs.gnu.org id=B19468.142041190710587 (code B ref 19468); Sun, 04 Jan 2015 22:52:01 +0000 Original-Received: (at 19468) by debbugs.gnu.org; 4 Jan 2015 22:51:47 +0000 Original-Received: from localhost ([127.0.0.1]:36747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7u1T-0002kg-6U for submit@debbugs.gnu.org; Sun, 04 Jan 2015 17:51:47 -0500 Original-Received: from mail-la0-f48.google.com ([209.85.215.48]:47762) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7u1Q-0002kW-U8 for 19468@debbugs.gnu.org; Sun, 04 Jan 2015 17:51:45 -0500 Original-Received: by mail-la0-f48.google.com with SMTP id gf13so16982674lab.7 for <19468@debbugs.gnu.org>; Sun, 04 Jan 2015 14:51:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=zUYEIibyns54bOivUg6gSNhDS/5GHXjkZQVvZaRZzXA=; b=mKoVgqoifbc/09A1gn4tyrtbOmDkGqFqDl+7QrWG5mhhM+EFKcHuQyoSyazMyfufSg 5P3Vx7DAH4BTvc7Z8Xx5YzAyVpkNmeFXytxBXZz3Z4aWt2BislL/Ak/06YhwIMoKmvIl fetSt6oV9PVTUeWITuggcG4buEmmm7hfq76RtCuVkS3+hZFp/Z1VpEvTE5APqcIOfFK7 K5tN7IOA8T3FLPTFR2Qog2WnR/AuDFMKVG8DZujwSW38KmdXgfDNUbK94FSfHgakLWfg y842VzE5bBa6saqpugYj7atQbPwBqujsqYL/91OoXiKbJfW+04DdczmiQivhHzmsWcXH SlFw== X-Received: by 10.152.27.8 with SMTP id p8mr89853612lag.69.1420411904078; Sun, 04 Jan 2015 14:51:44 -0800 (PST) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id i5sm7331181lbh.47.2015.01.04.14.51.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jan 2015 14:51:43 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: <54A90002.7080009@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98006 Archived-At: On 01/04/2015 11:55 AM, martin rudalics wrote: > You could try to bind "q" to a function that invokes `quit-window' for > both windows (preferably in inverse order of how they were made). In all likelihood, we've displayed several buffers in succession in that other window. Or none. Doing `quit-window' there exactly once won't suffice. So I guess this amounts to keeping a buffer-window history of everything that was opened from *xrefs*, and on `q', iterate through that list and, if the given window displays the given buffer, `quit-buffer' on it. Then clear the history and quit *xrefs*. I kinda like that.