From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#36859: Customizable fit-window-to-buffer Date: Fri, 09 Aug 2019 00:39:20 +0300 Organization: LINKOV.NET Message-ID: <87sgqbe2td.fsf@mail.linkov.net> References: <87sgqnp9z8.fsf@mail.linkov.net> <6a42d2af-b17a-d2da-1c3c-655f3f2a356f@gmx.at> <87sgqmq67t.fsf@mail.linkov.net> <1d94d43d-45d8-c917-426f-f3ba8c0feabf@gmx.at> <87wofuue1e.fsf@mail.linkov.net> <87ef20wzuw.fsf@mail.linkov.net> <1779fe6f-3196-a6f9-99af-4344008be1ae@gmx.at> <878ss7tgmh.fsf@mail.linkov.net> <1b0ee8ff-2fbb-ad3e-3554-fd73399af4eb@gmx.at> <87r25yq6se.fsf@mail.linkov.net> <87o910my8p.fsf@mail.linkov.net> <3323fa25-d095-06d1-6318-a902ba70c844@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="227933"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 36859@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 09 00:02:09 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hvqU5-000xDu-7L for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2019 00:02:09 +0200 Original-Received: from localhost ([::1]:55316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvqU3-0006S2-D8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Aug 2019 18:02:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44044) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvqTz-0006Rw-G8 for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 18:02:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvqTy-0007cl-Uf for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 18:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hvqTy-0007cG-Mm for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 18:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hvqTy-0002Oo-Gm for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 18:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Aug 2019 22:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36859 X-GNU-PR-Package: emacs Original-Received: via spool by 36859-submit@debbugs.gnu.org id=B36859.15653016909181 (code B ref 36859); Thu, 08 Aug 2019 22:02:02 +0000 Original-Received: (at 36859) by debbugs.gnu.org; 8 Aug 2019 22:01:30 +0000 Original-Received: from localhost ([127.0.0.1]:41827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvqTS-0002O0-8m for submit@debbugs.gnu.org; Thu, 08 Aug 2019 18:01:30 -0400 Original-Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:9114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvqTP-0002Nr-MC for 36859@debbugs.gnu.org; Thu, 08 Aug 2019 18:01:28 -0400 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 9468422D55; Thu, 8 Aug 2019 22:01:26 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a13.g.dreamhost.com (100-96-11-241.trex.outbound.svc.cluster.local [100.96.11.241]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2595022EE9; Thu, 8 Aug 2019 22:01:26 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a13.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Thu, 08 Aug 2019 22:01:26 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Vacuous-Stretch: 378d3a9d1533e013_1565301686371_1311821172 X-MC-Loop-Signature: 1565301686371:1138376077 X-MC-Ingress-Time: 1565301686371 Original-Received: from pdx1-sub0-mail-a13.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTP id 700EC806FB; Thu, 8 Aug 2019 15:01:21 -0700 (PDT) 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=Bvm86HuNw0PnpYt9lr+DggoebIs=; b= KzmzEc17zMwCojNn93SY/VxuKK5hhvwr974VUa5dXY1HfaJH3uONaIH6XHZoBVJg wXodKDLHEvP2me0jOYqZd9T/WmsZw5n4mKhuabD4ziwzd89AE9pXcbN/3ABae+nm mY4iN86N7ZUvGNPGUftS4XTUDrR9ACDhi0MbrenzdKI= Original-Received: from mail.jurta.org (m91-129-103-91.cust.tele2.ee [91.129.103.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-a13.g.dreamhost.com (Postfix) with ESMTPSA id 6D3D5803B9; Thu, 8 Aug 2019 15:01:18 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a13 In-Reply-To: <3323fa25-d095-06d1-6318-a902ba70c844@gmx.at> (martin rudalics's message of "Thu, 8 Aug 2019 09:27:12 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudduiedgtdefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrdeludenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrdeluddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgeptd 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:164780 Archived-At: >> I see there is a hook already in vc: 'vc-post-command-functions'. >> But it's unclear how to use it to call 'shrink-window-if-larger-than-buffer' >> from the hook only on vc-log and vc-diff commands. >> >> Maybe vc-log-internal-common and vc-diff-internal could provide new hooks, >> e.g. vc-log-post-command-functions and vc-diff-post-command-functions. > > What's the scope of a command? When it invokes an asynchonous process > does it end when that process starts or when it finishes? Since I > think that it's the former (how else could we then distiniguish "this" > command from the "last" command), the idiom "post-command" appears > inappropriate here. Indeed vc-post-command-functions is a misnomer, and should have been called vc-post-process-functions.