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: Wed, 5 Jun 2024 10:46:27 +0200 Message-ID: <86d70100-efeb-4326-aece-3ec78e023a4f@gmx.at> References: <86jzjwqqmd.fsf@mail.linkov.net> <86jzjoo23l.fsf@mail.linkov.net> <9e29cbbc-65ee-4dd8-8a41-539946e19a7c@gmx.at> <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> 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="12264"; 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 Wed Jun 05 10:47:24 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 1sEmIl-0002xZ-Hq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Jun 2024 10:47:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEmIE-0005fK-NW; Wed, 05 Jun 2024 04:46: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 1sEmID-0005ek-0q for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 04:46: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 1sEmIC-00019h-Or for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 04:46:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sEmIQ-0004cY-Ad for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2024 04:47: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: Wed, 05 Jun 2024 08:47: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.171757721217732 (code B ref 70949); Wed, 05 Jun 2024 08:47:02 +0000 Original-Received: (at 70949) by debbugs.gnu.org; 5 Jun 2024 08:46:52 +0000 Original-Received: from localhost ([127.0.0.1]:43035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEmIG-0004bw-6q for submit@debbugs.gnu.org; Wed, 05 Jun 2024 04:46:52 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:41051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEmID-0004bT-4E for 70949@debbugs.gnu.org; Wed, 05 Jun 2024 04:46:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1717577189; x=1718181989; i=rudalics@gmx.at; bh=NG6fy1veaDySkI1ZIYiLHk1t12ey3uQoVrnQroNqLsc=; 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=JaKBHEPlEjX0bGu0uR0lAxHO0/FGgE2T171gr6ycoUif/GwSeD4Oc668EGSF7TqE CZ87799ZDc6g4Psvt3TPE4iIuyftrsOw5/+Q7kxJSl9zEaRiFrnoui/1wPObqgySY 8Rb4RSfIX1vQ8Pkh1+PKBQHfKbxiGb1jDybRdYguw53XrQ0+dRo+KlhfLMJNklxjA nqEUNdxyg8B90jjqXcP6j5QFr+RWhbxIFldbbZy+Kqrt21dMKoO38bg3wDvV5MtXp AVqE5Lx5laJcS1M8e0eV+/C5ebjP9rgenPgyxX+IUsWTEmF7ZfXboIFhBPM8HBlXf zeABFEo1CvTMovPstg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([213.142.97.156]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M3lcJ-1sFbV9300R-003u2w; Wed, 05 Jun 2024 10:46:28 +0200 Content-Language: en-US In-Reply-To: <86wmn4ln3c.fsf@mail.linkov.net> X-Provags-ID: V03:K1:87sHw+d7F2W8f7reokAwTeLFHElvoCyQ27oLdvYCD7UwywO3YwJ syl+/kvIlUbjexX/bmmWElV2hqlVzOcGe3Xvpg+56qGiUBlh3yixHel4JNLOFz2WQp2Pqyx 5xgjqonQg0C2EX8iz40fOlPKsVGSxlmnxk83omEJWGUCo9RVPDoKambqd3DijhxyZTbS1VU UNzuwTOBqbUXBjHdYj4/A== UI-OutboundReport: notjunk:1;M01:P0:Mx24S/GEV5c=;42nVy8TxihAv/OK5icqCZKQaisB /qcNy5zaYenmRyYqAyR2Z9CNQJ9993TVSiTQFCyqa/zv/j7eDRWpmQQPW4AZSz8E6ATT44bCY h+eBjJMLSwmG3RLnC6nDFcOn8V4fmh588hJCiVojGigxuF+2p9Pqyqr9Zq+yLAtE6QOLgWvz/ 0jN4UDbHW0nCHfiOYa7JQL45JnxFJWGfWv335Jr9cLtNKyLFKLmj2stWP1S1KkgGSc+64hVev XoM0pyyZySxLBJ4sNFQxLvmY6ZIwhiaDiU+tC/pgRXwy3KKhD4u49DYLEN1UZifdS59K6HB05 3SVjSEPPvKa5qx1RY2cPjSgzodTYWM0inHeAMfr8IC1jC/f8Y/EUMqKGeQSta7GqUyZvtl3ly xoWbe/piE3FBOLwvFxLU1KSrwYZHBy0VyhR+lmEUIB+W7txh993XeIJpJrLFp+f65QtCySYNe Jis0LY9WS5drRPo86CBXRAcEG7ELJon2Svay0wUI+9FvxCS4YhJSPbF6FOMPPGjGlEtZABaGC wqInxcxLWdVNigmmwtxmloJf/oPPElT1UL9u5QKQVIszCZSzT/dVOLxPcn4RMf+xG4xOA3DtG Tj99B/N19irk/GZxv3ijHkWihZ9UP/wUgggfxRAWwHT/p8k6BklyyR6qB/WPl9djq6e3aLzoD GJEhNgCJL7mI0NAI1b7Rr1Fcnymhr4EGv0snG8uF6Oqhu5alMDxSzYs4c+zgruAVDaB0antZW LCKz9QVPp7TKe5HL2/A6F23QmTeHidbObC8fYKz6GgbjHmlZlxwnwFFCqod9pc5A/30nMgJc 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:286582 Archived-At: > The most reliable way to identify a series of related buffers > is to set a buffer-local variable in the origin buffer > to the window where outgoing buffers are displayed. How would this work in the case of 'vc-dir'? There you have a status buffer whose buffer-local variable you probably want to set. You call 'vc-diff' which calls 'vc-diff-internal' which eventually calls 'pop-to-buffer' which chooses the window of the outgoing buffer. How would you set up the variable in this scenario? > Ideally, the users need to express their preference by a single alist entry. > For example: > > (use-previous-window . t) -- then all outgoing buffers will be displayed > in the same window > > (use-mru-window . t) -- then all outgoing buffers will be displayed > in the most recently used window > instead of the default lru > > Or maybe a unified alist entry: > > (prefer . previous-window) > (prefer . mru-window) It's trivial to set up such an association for "*vc-diff*". But what would you do when calling 'vc-diff' with a different BUFFER argument? Which kind of association would you set up for showing the next error buffer in compilation output? martin