From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33870: 27.0.50; xref-goto-xref not configurable Date: Wed, 09 Jan 2019 02:15:02 +0200 Organization: LINKOV.NET Message-ID: <8736q2ka0h.fsf@mail.linkov.net> References: <87a7ktqqx7.fsf@mail.linkov.net> <9215183d-0a44-88b5-5b3c-d0da31f749ad@yandex.ru> <878t02egph.fsf@mail.linkov.net> <878t011lch.fsf@mail.linkov.net> <83lg403o9c.fsf@gnu.org> <87r2dq8z9n.fsf@mail.linkov.net> <5C31C477.9040108@gmx.at> <874laluz3g.fsf@mail.linkov.net> <5C3315E6.9010709@gmx.at> <87wongazxq.fsf@mail.linkov.net> <5C346C49.6060003@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1546993707 13091 195.159.176.226 (9 Jan 2019 00:28:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2019 00:28:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 33870@debbugs.gnu.org, joaotavora@gmail.com, dgutov@yandex.ru To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 09 01:28:23 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gh1jK-0003HM-Ly for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Jan 2019 01:28:22 +0100 Original-Received: from localhost ([127.0.0.1]:42755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gh1lR-0004uh-Ji for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jan 2019 19:30:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gh1ky-0004WS-SN for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:30:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gh1kw-0006cJ-UD for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:30:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51397) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gh1kw-0006bw-Qw for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gh1kw-0001Pu-Le for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jan 2019 00:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33870 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33870-submit@debbugs.gnu.org id=B33870.15469937475299 (code B ref 33870); Wed, 09 Jan 2019 00:30:02 +0000 Original-Received: (at 33870) by debbugs.gnu.org; 9 Jan 2019 00:29:07 +0000 Original-Received: from localhost ([127.0.0.1]:50671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gh1k2-0001NP-Ic for submit@debbugs.gnu.org; Tue, 08 Jan 2019 19:29:06 -0500 Original-Received: from lavender.maple.relay.mailchannels.net ([23.83.214.99]:42259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gh1k0-0001N9-QZ for 33870@debbugs.gnu.org; Tue, 08 Jan 2019 19:29:05 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 79FAB5022E3; Wed, 9 Jan 2019 00:29:03 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a54.g.dreamhost.com (unknown [100.96.20.98]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1AE1A5028DA; Wed, 9 Jan 2019 00:29:03 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a54.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Wed, 09 Jan 2019 00:29:03 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Trail-Bitter: 543ef00e6a4083ff_1546993743369_1171721104 X-MC-Loop-Signature: 1546993743368:3206071519 X-MC-Ingress-Time: 1546993743368 Original-Received: from pdx1-sub0-mail-a54.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTP id A6B2781357; Tue, 8 Jan 2019 16:29:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=4/h2uKVt4ue673jU+u+DK6Bpwic=; b= AQRSzHE9s9ULT9ELj6eqTUX9oIpI/YifKBzM40ZY1dWbKG7hf45LDPKqXlhdKMGk 5EcYuf7zwP3xiwy6R1T7vtED9BNg802c9lycVRUG5bA6DSzaT8M9QxTb+vT9jcQD csrIPo0ADXXRoiD4v0U9qjHujjht9XaljQmFaJbzds4= Original-Received: from mail.jurta.org (m91-129-101-91.cust.tele2.ee [91.129.101.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTPSA id 524F88135E; Tue, 8 Jan 2019 16:28:58 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a54 In-Reply-To: <5C346C49.6060003@gmx.at> (martin rudalics's message of "Tue, 08 Jan 2019 10:24:25 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrfedtgddvfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtuddrledunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtuddrledupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:154278 Archived-At: >> I propose to remove this function and replace its parts with >> more alists, i.e. this blob >> >> `(,(if temp-buffer-resize-mode >> '(window-height . resize-temp-buffer-window) >> '(window-height . fit-window-to-buffer)) >> ,(when temp-buffer-resize-mode >> '(preserve-size . (nil . t)))) >> >> with something shorter like `(fit-to-buffer . t)' > > Can't we add this via a special value for the 'window-height' alist > entry? Where we explicitly state that it obeys > 'temp-buffer-resize-mode' if that is active and the buffer qualifies > as temporary and so on ... Or is that what you mean already? I meant to make it shorter in any possible way, so using something like '(window-height . resize)' seems to achieve this goal. >> And also to replace a long list of display-buffer-* that is a copy of >> `display-buffer-fallback-action' with something shorter like an alist >> `(pre-action . display-buffer-fallback-action). > > I'm not sure I understand you. 'display-buffer-fallback-action' is > always tried after everything else failed. Would you want to run it > _before_ something else? Exactly. There is a long list of actions in display-buffer--maybe-at-bottom before calling the main action 'display-buffer-at-bottom', so it makes sense to move them somewhere to a common place. >>> A single window frame where the buffer is not displayed runs this >>> part. >> >> You are lucky if you can invoke its second branch. I always get only >> its third branch in all tried configurations when testing with >> completions of `C-x C-f TAB TAB'. > > I now always display completions in a child frame so I never run into > practical problems with it. Then what problems are possible with binding 'split-width-threshold' or 'split-height-threshold' to nil? >> After resizing an initial frame to 12 lines, so every vertically split >> window gets 6 lines, typing `C-x C-f TAB TAB' displays *Completions* in >> the upper window, when a previous window where *Completions* was >> previously displayed was moved to the upper window, e.g. >> >> 0. emacs -Q >> 1. resize the frame to 12 lines >> 2. C-x 2 >> 3. C-x C-f TAB TAB C-g ;; *Completions* were displayed in the bottom window >> 4. C-x 0 >> 5. C-x 2 >> 6. C-x C-f TAB TAB C-g ;; *Completions* displayed in the upper window that was previous > > Your bag of tricks is fathomless :-) Basically, this means that > 'display-buffer-in-previous-window' and 'display-buffer-at-bottom' are > inherently irreconcilable when a window was at bottom once and moved > upwards. We could abuse the existing 'side' action alist entry for > not-atomic, non-side windows in the following sense: If 'side' equals > 'bottom', a window is eligible for reuse if and only if it appears on > that side of the frame. To be obeyed by 'display-buffer-reuse-window' > and 'display-buffer-in-previous-window', I presume. WDYT? This makes sense. Even more, maybe it would be possible to use only an alist '(side . bottom)' instead of specyfying the action 'display-buffer--maybe-at-bottom'?