From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#52855: vc-shrink-buffer Date: Wed, 29 Dec 2021 01:53:26 +0200 Message-ID: References: <867dbosit6.fsf@mail.linkov.net> 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="8579"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 To: Juri Linkov , 52855@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 29 00:55:17 2021 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 1n2MJJ-00026O-Ie for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 00:55:17 +0100 Original-Received: from localhost ([::1]:38434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2MJH-00071c-Eu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Dec 2021 18:55:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2MJ4-00071D-Vs for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 18:55:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36163) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2MJ4-0000Vo-JN for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 18:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2MJ4-0000g6-HA for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 18:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Dec 2021 23:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52855 X-GNU-PR-Package: emacs Original-Received: via spool by 52855-submit@debbugs.gnu.org id=B52855.16407356862578 (code B ref 52855); Tue, 28 Dec 2021 23:55:02 +0000 Original-Received: (at 52855) by debbugs.gnu.org; 28 Dec 2021 23:54:46 +0000 Original-Received: from localhost ([127.0.0.1]:47709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2MIo-0000fW-MG for submit@debbugs.gnu.org; Tue, 28 Dec 2021 18:54:46 -0500 Original-Received: from mail-wr1-f48.google.com ([209.85.221.48]:36477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2MIn-0000fJ-73 for 52855@debbugs.gnu.org; Tue, 28 Dec 2021 18:54:45 -0500 Original-Received: by mail-wr1-f48.google.com with SMTP id r17so41070714wrc.3 for <52855@debbugs.gnu.org>; Tue, 28 Dec 2021 15:54:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FVosiu7ewMsjL31LwqqfxBoZl2qCl68SF87+e/TCFxg=; b=oQhKERuG89AopWLZkAHNHufUgpjAdti39cuViXDT1sPtlzJ5O0JoU5ubMM6vnGRe26 FJdLwvKRk/Sp2Dss7BmLIWxarSILwHXbviv2pA8cgNYKNZ9tif20LVFE2aFBqXTB1Udo vkTp1qrXJg4KBOgdnByB5OVJ7+wf7kCAHiBzrJHJkTERVH5iCSQW1BKoTIkRT9JVwoPV FQwSKtIXtCYfGY1yoe8RGzCpCCuaU0PVKn/6VZQ26RuUWQGU/R7NgZB8kQ2Rwh90eV4K HQ8jAEg+b9blOGuZSOGiPF37rtBretomwuKxxG1vgk8FKg2Vg2+k/GbsqJA2OpuGAmPf 8KpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FVosiu7ewMsjL31LwqqfxBoZl2qCl68SF87+e/TCFxg=; b=c/kaZnySxn5dqASg/6pfx4xqbEa4wdZR+k/6aZztZB0O/XUD+xJhq7fq5HrRTex+ul E9cQ/XGwoLFqcl55KQ5BxsJC83VP5uoSLrd2M9OVVdEmXt4kvAnD47Ydnh6zIt7tJZud eKTPitLY7ex4VOlp1IpEjHAYcGg10Ymm5y0fo/Lg5HCOkLMIujH7TEYQ2M1Ef+2Mi5oi y1dEkzevGJQ1RERqcVKNEkrcjz4HnhP2zm8QBIH2rpyaNPFKWeCFxvh9LxVM+bhjKaT3 qjHQHnKvwKEye/+7JEzHxBnGt0Kj4LifZnQfLGR8F5eZSJAWKK+6qoBSi861F5EDQZaD WxFA== X-Gm-Message-State: AOAM531VJIuNE/2dJwQHAcZqctq79PJ9cPUf30azOqWDLO+5LNlKzE0u iF1+HpR3BkgnKdLamV6hikOsOQ6qso19BQ== X-Google-Smtp-Source: ABdhPJzCfXxIkUxo7SOxFnX3Vy3c4oK/FjiGmBrc8cW0xxuuXGEh3fO5FjuxcGDoWj8lP7qCxgmIaw== X-Received: by 2002:adf:e109:: with SMTP id t9mr17917177wrz.387.1640735679246; Tue, 28 Dec 2021 15:54:39 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id m10sm20599785wms.25.2021.12.28.15.54.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Dec 2021 15:54:38 -0800 (PST) In-Reply-To: <867dbosit6.fsf@mail.linkov.net> Content-Language: en-US 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" Xref: news.gmane.io gmane.emacs.bugs:223296 Archived-At: On 28.12.2021 21:29, Juri Linkov wrote: > When no shrink is needed, two new hooks are added in this patch > with the default value containing vc-shrink-buffer to preserve > the current behavior that can be easily removed in user configuration > by e.g.: > > (remove-hook 'vc-diff-finish-functions 'vc-shrink-buffer) > (remove-hook 'vc-log-finish-functions 'vc-shrink-buffer) So the idea is to allow customizing this behavior off? For those users who don't see the benefits? LGTM.