From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70949: display-buffer-choose-some-window Date: Thu, 6 Jun 2024 11:19:32 +0200 Message-ID: <69fcca8d-e043-4889-8f44-a14c93010f48@gmx.at> References: <86jzjwqqmd.fsf@mail.linkov.net> <86cypfm6s7.fsf@mail.linkov.net> <86o78xm9y5.fsf@mail.linkov.net> <78dfee56-80b4-4ba7-a012-df31abd21743@gmx.at> <86sey8jv66.fsf@mail.linkov.net> <86zfsfqgtl.fsf@mail.linkov.net> <86plt7dyvu.fsf@mail.linkov.net> <963412d9-85b9-4afe-a29f-52981f24aa5b@gmx.at> <86zfsaaqm1.fsf@mail.linkov.net> <431cc3a7-141e-414f-8650-72771609c407@gmx.at> <86ed9jhkox.fsf@mail.linkov.net> <86frty34km.fsf@mail.linkov.net> <7feb9b0b-8186-499f-8477-2d4f51cec13d@gmx.at> <8634pvrgpn.fsf@mail.linkov.net> <79afb441-6e62-4a0d-affa-27b7b494e406@gmx.at> <86wmn4ln3c.fsf@mail.linkov.net> <86d70100-efeb-4326-aece-3ec78e023a4f@gmx.at> <86v82nbuwb.fsf@mail.linkov.net> Reply-To: martin rudalics 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="23367"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 70949@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 11:20:08 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1sF9Hz-0005q9-1x for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 11:20:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sF9Hi-0002Nv-QN; Thu, 06 Jun 2024 05:19:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sF9Hh-0002ND-8F for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 05:19:49 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sF9Hh-0004F0-0O for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 05:19:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sF9Hu-0000PW-UH for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 05:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jun 2024 09:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70949 X-GNU-PR-Package: emacs Original-Received: via spool by 70949-submit@debbugs.gnu.org id=B70949.17176655971545 (code B ref 70949); Thu, 06 Jun 2024 09:20:02 +0000 Original-Received: (at 70949) by debbugs.gnu.org; 6 Jun 2024 09:19:57 +0000 Original-Received: from localhost ([127.0.0.1]:52329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sF9Hp-0000Oq-Bu for submit@debbugs.gnu.org; Thu, 06 Jun 2024 05:19:57 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:55121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sF9Hm-0000OX-Vf for 70949@debbugs.gnu.org; Thu, 06 Jun 2024 05:19:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1717665573; x=1718270373; i=rudalics@gmx.at; bh=n13DWjde7I0tQm7+cshtQYDQTHx37Bp9AwM0ONaixoE=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=rZ8NrsOoC5FvqZitsiaW4xrLi13BgLJXf2JY60TmlosBF+KMJDCI2D5eiC3A9aIX burTMori/DClfDhsvE9EAfyxI5hmpS9pkusHUlmSNffJeT74jWRooPIX1kE8jjo2B H0jBA9IWdhvHPMN5ly8WbrV1Lg1Z/do3H5WHgMsY0bmI7NY5PjEwKKsBhExbjvhYP 8iCOUse9WwgOz7GLvxDq1eZWHZ4hBbqno1y2PM+hcJjzT1ponxzI9wskQdoagErd7 eRx/t/473+FWrfF0kFfN1ZarroyS480jFmktjg+xSc5wtaWo4KHHjmwAvRo6DaQ25 rIXcLNDHU2+g8a2ONA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.83]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MpDNl-1snakk2gwR-00oyhG; Thu, 06 Jun 2024 11:19:33 +0200 Content-Language: en-US In-Reply-To: <86v82nbuwb.fsf@mail.linkov.net> X-Provags-ID: V03:K1:CpvmxOC+M++Zwc0RneA2x2jkebpifHYQrp3N8GX4mIMtpPDLeGh g2bN0mlhQxOMSuHK07TxYN0hHaW8yH214UQMDhDHkmYGwPuJAD7eP1eN8BRO4+88AgBH28U yA/oAU+IVGI41ZHmN2MbexRK24Y1ShRslxQQtbDFVJwMtFxohzxfEFHRMMW7QaqqybMJVuS IrxFuj2Bt+/+PJqwnUfgg== UI-OutboundReport: notjunk:1;M01:P0:q5sGtYkYdfc=;A0Gi994wuJncbuBXjqA3llc+hyl JFYabkGRHfnsh3hNavI5Ro8enw4lIlmG8SJLVlEnYHkILwIL8qtyHo0kdi5bu2lpHpAeZUes2 YmWLAkqPyyDlUAsPJIsOyst/lndndEgHu8bWuij6iPcQ05D2pzJx1MST/tqSth5YUqMlvjoX1 K58G+0aQsFyo5Af24Xk/HPdEwkAJ7qTzDmDPXa7ezRTA2gZir6YA2BNDlejOd/0wJX1oC4GyW TzsTt8k8DOm4o/Id68P6NNxvKFQQZWOPBTecLDRyiOAZn4LDiXnT66kV1CjQ4SnVfNPhnIbW+ sOraXe5AvDdoWdCNUO0MXoh/ri9BQwDDIueFBQTyfx/OPdc2JUxWGZtUg0w/mfMpkHZZRTNMB pw4i4robsjl2CxqLo9sexrPM19cX4Ian5E8Bj2BWK0ziFkZmHHE2Y8k/tApKy+wF1+kxuaazr dTZzeZ8r7tvYO+blnye9kKottW1CUvPT8b5ZhSmAO24kCwDODIgD4/5LOeQbecFgACwz0ZBnU TsnAaaDQBCwlCFv1J88NfsfsZ32ZtdQBUhyqiQsc1Hz/nHiGRCUmSTt7f1Dvav3zEnt+2SSad uxmq1AWvbQXhwXzDid5ycyYD7Mo5BbZWpijDKZl+m28O/UMK8+lDmNCmRWTNosznefkg4AM1K RDFsWQY6LOj19dBShokIgwnP+XLf0HCx4tgayQPrg+gZFgLaAlamybXn4sh7Zr9Iv/eUpMiGT mM2VOP0Z7xIx7JHrQCMQUwHhPdqk45oHN0iUUTdphV8ac5ULfFXQmi7JxaEWTZEG1darYGO9 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286672 Archived-At: > The same way as the condition function allows to check > the original buffer, e.g. customization to show > outgoing 'vc-diff' buffers in the same window > where the 'vc-dir' was displayed: > > (defun display-buffer-from-vc-dir-p (_buffer-name _action) > (with-current-buffer (window-buffer) > (derived-mode-p '(vc-dir-mode)))) This means that the user has to always go back from the *vc-diff* window back to a *vc-dir* window in order to tell what to show next in the *vc-diff* window. It completely defeats the idea of the advanced mechanics of 'next-error' which autonomously would guess what to show next in the *vc-diff* window without having to continuously hop back to the *vc-dir* buffer. I hardly use 'vc-diff' because I'm not good at reading diffs. When I want to view the differences of a fileset controlled by git I first run git status in a shell window and, based on its output, ediff on all involved files. The crucial aspect here is that whenever I'm done with watching the differences of one file, I'd never want to go back to the shell window because that would disrupt my ediff layout with two side by side windows and the ediff status window on bottom. Rather I use a mechanism that gets me directly from a layout showing the (presumably last) diff for the current file to a layout showing the first diff for the next file listed by git status. martin